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 99 - + 29
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL MAX( DISTINCT - - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL MAX ( DISTINCT - - 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT + CASE + - 13 WHEN 51 THEN + 61 WHEN 70 THEN NULL END * 65 / 95 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2
SELECT + CASE + - 13 WHEN 51 THEN + 61 WHEN 70 THEN NULL END * 65 / 95 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 82 + + + 15 + + ( 75 ) - 93 + + + 54 AS col1
----
133

query II rowsort
SELECT 23, + ( ( + 13 ) ) AS col2
----
23
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT DISTINCT MAX( - - 41 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT MAX ( - - 41 ) col0
----
41

query I rowsort
SELECT DISTINCT 80 * ( 71 )
----
5680

query I rowsort
SELECT 8 + 54 + + 82
----
144

query I rowsort
SELECT 82 * + 59
----
4838

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT 17 + CASE - 24 WHEN + - COUNT( * ) + - 42 THEN NULL WHEN + - 10 * ( - 9 ) THEN - 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT 17 + CASE - 24 WHEN + - COUNT ( * ) + - 42 THEN NULL WHEN + - 10 * ( - 9 ) THEN - 34 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-10
SELECT 88 DIV + ( 22 ) AS col1, 87
----
4
87

skipif mysql # not compatible
query II rowsort label-10
SELECT 88 / + ( 22 ) AS col1, 87
----
4
87

query I rowsort
SELECT 24 * NULLIF ( 20, ( - + 16 ) * 80 + - - 20 )
----
480

query I rowsort
SELECT DISTINCT - 47 * + - 71 * + + 88 AS col0
----
293656

query I rowsort
SELECT 94 + 31 * - 11 * 33 AS col1
----
-11159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-14
SELECT - + CASE 54 WHEN - - 44 THEN - COUNT( * ) * + + COUNT( * ) DIV + 65 + + - MAX( - 64 ) * - - 54 WHEN + 9 DIV - 48 THEN 16 DIV + 96 - + MIN( 35 ) ELSE - COALESCE ( 45, COUNT( * ), - 67 * - 14 DIV 6 ) * + 23 END
----
1035

skipif mysql # not compatible
query I rowsort label-14
SELECT - + CASE 54 WHEN - - 44 THEN - COUNT ( * ) * + + COUNT ( * ) / + 65 + + - MAX ( - 64 ) * - - 54 WHEN + 9 / - 48 THEN 16 / + 96 - + MIN ( 35 ) ELSE - COALESCE ( 45, COUNT ( * ), - 67 * - 14 / 6 ) * + 23 END
----
1035

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-15
SELECT - 95 DIV + COUNT( - 76 ) - + 92 * + 7, 73 AS col2
----
-739
73

skipif mysql # not compatible
query II rowsort label-15
SELECT - 95 / + COUNT ( - 76 ) - + 92 * + 7, 73 AS col2
----
-739
73

onlyif mysql # DIV for integer division: 
query I rowsort label-16
SELECT DISTINCT - 66 DIV 9 DIV + - 79
----
0

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT - 66 / 9 / + - 79
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-18
SELECT DISTINCT CASE - 61 WHEN + + NULLIF ( - 76, + - 14 * + 15 + + 73 - - 85 ) + 88 + CAST( NULL AS SIGNED ) THEN 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT CASE - 61 WHEN + + NULLIF ( - 76, + - 14 * + 15 + + 73 - - 85 ) + 88 + CAST ( NULL AS INTEGER ) THEN 67 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-19
SELECT - COUNT( * ) AS col0, 65 - - 25 + - 39 AS col0
----
-1
51

skipif mysql # not compatible
query II rowsort label-19
SELECT - COUNT ( * ) AS col0, 65 - - 25 + - 39 AS col0
----
-1
51

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT DISTINCT + CAST( + + COALESCE ( + 88, - 12 ) AS SIGNED ) * + - 12 + 38 AS col0
----
-1018

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT + CAST ( + + COALESCE ( + 88, - 12 ) AS INTEGER ) * + - 12 + 38 AS col0
----
-1018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-23
SELECT DISTINCT - CASE ( + 37 ) WHEN - - CAST( - 89 AS SIGNED ) * + 33 + 14 * + 43 THEN NULL ELSE - CAST( + COUNT( * ) AS SIGNED ) END * 16 * + - 80 DIV + COUNT( * )
----
-1280

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT - CASE ( + 37 ) WHEN - - CAST ( - 89 AS INTEGER ) * + 33 + 14 * + 43 THEN NULL ELSE - CAST ( + COUNT ( * ) AS INTEGER ) END * 16 * + - 80 / + COUNT ( * )
----
-1280

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT ALL + - 37 * - CASE + 21 WHEN - 44 THEN + 8 * - + COUNT( * ) * - 56 / + ( - - 68 ) * + 40 * - - COUNT( * ) END + - 86 * + 18 / - + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL + - 37 * - CASE + 21 WHEN - 44 THEN + 8 * - + COUNT ( * ) * - 56 / + ( - - 68 ) * + 40 * - - COUNT ( * ) END + - 86 * + 18 / - + 47 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL COUNT( * ) * + 56 * + ( - 10 ) + 39
----
-521

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL COUNT ( * ) * + 56 * + ( - 10 ) + 39
----
-521

query II rowsort
SELECT ALL + 36 * 57 + 24 AS col2, + 16 * - 28 AS col2
----
2076
-448

query I rowsort
SELECT DISTINCT + 41 * 87 + + 32
----
3599

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

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

query I rowsort
SELECT + 17 * 54 * - 67
----
-61506

query I rowsort
SELECT + 46 * + NULLIF ( - ( 44 ), - 45 )
----
-2024

query II rowsort
SELECT + 78 AS col2, 9
----
78
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-32
SELECT SUM( ALL - 56 ) AS col2, + COALESCE ( COUNT( * ), + + COUNT( * ) DIV - 81 * + 31 )
----
-56
1

skipif mysql # not compatible
query II rowsort label-32
SELECT SUM ( ALL - 56 ) AS col2, + COALESCE ( COUNT ( * ), + + COUNT ( * ) / - 81 * + 31 )
----
-56
1

query II rowsort
SELECT - 87 * + + 14 col0, - 68 AS col1
----
-1218
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT ALL 31 * + + COUNT( * ) - 49 * + - 68
----
3363

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL 31 * + + COUNT ( * ) - 49 * + - 68
----
3363

query I rowsort
SELECT + ( 60 ) col0
----
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-37
SELECT + CAST( + AVG ( DISTINCT + - 5 ) AS SIGNED ) * + + 91 AS col0, 87 + + + 56 + 1 * - + 10 DIV + 84
----
-455
143

skipif mysql # not compatible
query II rowsort label-37
SELECT + CAST ( + AVG ( DISTINCT + - 5 ) AS INTEGER ) * + + 91 AS col0, 87 + + + 56 + 1 * - + 10 / + 84
----
-455
143

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - COUNT( 9 ) * + ( - + 85 ) * 13
----
1105

skipif mysql # not compatible
query I rowsort label-38
SELECT - COUNT ( 9 ) * + ( - + 85 ) * 13
----
1105

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

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

query I rowsort
SELECT ALL 74 - 92 * - 54 col1
----
5042

query I rowsort
SELECT - ( - - 19 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-42
SELECT + COALESCE ( - COALESCE ( - CAST( + 43 AS SIGNED ), - COUNT( * ) ), - - 35 * ( + - 6 ), 66, + - 11 * 19 DIV - MAX( 98 ) - - 49 ) - - 2 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-42
SELECT + COALESCE ( - COALESCE ( - CAST ( + 43 AS INTEGER ), - COUNT ( * ) ), - - 35 * ( + - 6 ), 66, + - 11 * 19 / - MAX ( 98 ) - - 49 ) - - 2 AS col1
----
45

query I rowsort
SELECT + 91 * + 61 * + 39 AS col2
----
216489

query I rowsort
SELECT ALL COALESCE ( - 15, 39, - ( + - 45 ) )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-45
SELECT 38 AS col1, + 30 * COUNT( DISTINCT 35 ) + 16 - CAST( NULL AS SIGNED ) * + 79
----
38
NULL

skipif mysql # not compatible
query II rowsort label-45
SELECT 38 AS col1, + 30 * COUNT ( DISTINCT 35 ) + 16 - CAST ( NULL AS INTEGER ) * + 79
----
38
NULL

query II rowsort
SELECT 42, 80 AS col1
----
42
80

query I rowsort
SELECT - 84 * + - 51 + 0 AS col1
----
4284

query II rowsort
SELECT ALL + 55 AS col1, 24 - + 38 AS col2
----
55
-14

query II rowsort
SELECT - 12 col0, 91
----
-12
91

onlyif mysql # aggregate syntax: 
query III rowsort label-50
SELECT ALL 34, 96 AS col0, + COALESCE ( + + MIN( + - 75 ), - + 31 * - + 95 ) AS col2
----
34
96
-75

skipif mysql # not compatible
query III rowsort label-50
SELECT ALL 34, 96 AS col0, + COALESCE ( + + MIN ( + - 75 ), - + 31 * - + 95 ) AS col2
----
34
96
-75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-52
SELECT - CAST( + + ( - - 26 ) AS SIGNED ) + - 42 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-52
SELECT - CAST ( + + ( - - 26 ) AS INTEGER ) + - 42 AS col0
----
-68

query I rowsort
SELECT - + 99 * - 34 * + 4 AS col1
----
13464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-54
SELECT - - 82 DIV - + 27 * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-54
SELECT - - 82 / - + 27 * + COUNT ( * )
----
-3

query I rowsort
SELECT DISTINCT - 77 + 35 * 13 * + 98 AS col2
----
44513

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

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

query I rowsort
SELECT ALL - 44 + - 4 col2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-58
SELECT - - 38 + 93 DIV + - 33
----
36

skipif mysql # not compatible
query I rowsort label-58
SELECT - - 38 + 93 / + - 33
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-59
SELECT + 56 - NULLIF ( 77, 56 * - AVG ( 39 ) + 95 + CAST( NULL AS SIGNED ) ) + - 92
----
-113

skipif mysql # not compatible
query I rowsort label-59
SELECT + 56 - NULLIF ( 77, 56 * - AVG ( 39 ) + 95 + CAST ( NULL AS INTEGER ) ) + - 92
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT DISTINCT + SUM( ALL - - 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT + SUM ( ALL - - 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT - COUNT( * ) + - ( + 19 ) - COUNT( * ) * + + 42 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-61
SELECT - COUNT ( * ) + - ( + 19 ) - COUNT ( * ) * + + 42 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-62
SELECT ALL - 47, COUNT( ALL + + NULLIF ( + + 60, - ( - 40 ) * + 38 ) ) AS col0
----
-47
1

skipif mysql # not compatible
query II rowsort label-62
SELECT ALL - 47, COUNT ( ALL + + NULLIF ( + + 60, - ( - 40 ) * + 38 ) ) AS col0
----
-47
1

query I rowsort
SELECT ALL - 41 * - ( + 7 ) AS col1
----
287

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT ALL + 61 DIV + + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + 61 / + + 92 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-65
SELECT ALL 16 DIV - 20 + + 21 * - 57 AS col2, + 19
----
-1197
19

skipif mysql # not compatible
query II rowsort label-65
SELECT ALL 16 / - 20 + + 21 * - 57 AS col2, + 19
----
-1197
19

onlyif mysql # aggregate syntax: 
query II rowsort label-66
SELECT + + COUNT( * ), 34 * + COUNT( 24 ) + CASE + + 79 WHEN - - 98 * - - MAX( + - 83 ) THEN + - MIN( ALL - 68 ) / 50 WHEN + ( - + ( 22 ) ) * + 8 * + - 95 + + 43 THEN - 58 WHEN + - 23 THEN NULL END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-66
SELECT + + COUNT ( * ), 34 * + COUNT ( 24 ) + CASE + + 79 WHEN - - 98 * - - MAX ( + - 83 ) THEN + - MIN ( ALL - 68 ) / 50 WHEN + ( - + ( 22 ) ) * + 8 * + - 95 + + 43 THEN - 58 WHEN + - 23 THEN NULL END AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT + + 22 + + + ( - - MAX( 59 ) ) + + + 2 * - + ( + NULLIF ( 76, 73 ) ) * + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-67
SELECT + + 22 + + + ( - - MAX ( 59 ) ) + + + 2 * - + ( + NULLIF ( 76, 73 ) ) * + COUNT ( * )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-68
SELECT CAST( + COUNT( + + 1 ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-68
SELECT CAST ( + COUNT ( + + 1 ) AS INTEGER ) col1
----
1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-71
SELECT + CAST( + - COUNT( * ) AS SIGNED ), 34 * - - ( + 53 ) AS col0
----
-1
1802

skipif mysql # not compatible
query II rowsort label-71
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ), 34 * - - ( + 53 ) AS col0
----
-1
1802

query I rowsort
SELECT DISTINCT 58 * - 1 - + NULLIF ( 83, - 10 * - + 14 ) + - + 57 AS col2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT ALL 69 * - 52 * - + COALESCE ( - - 34, COUNT( * ) ) AS col2
----
121992

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL 69 * - 52 * - + COALESCE ( - - 34, COUNT ( * ) ) AS col2
----
121992

query I rowsort
SELECT ALL - 92 * + 80 col2
----
-7360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-75
SELECT + ( - 5 ), - 82 + CASE CAST( NULL AS SIGNED ) WHEN 16 - - 1 + - - ( - COUNT( * ) ) + + + NULLIF ( - 44, + COUNT( * ) ) + - 0 + 52 THEN 59 END AS col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-75
SELECT + ( - 5 ), - 82 + CASE CAST ( NULL AS INTEGER ) WHEN 16 - - 1 + - - ( - COUNT ( * ) ) + + + NULLIF ( - 44, + COUNT ( * ) ) + - 0 + 52 THEN 59 END AS col2
----
-5
NULL

query I rowsort
SELECT ALL 33 * + 13 AS col2
----
429

query I rowsort
SELECT + 33 + - + 66
----
-33

query I rowsort
SELECT + 97 * - ( - 91 )
----
8827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-79
SELECT + COALESCE ( - CAST( - - MAX( DISTINCT 96 ) AS SIGNED ), COUNT( * ), - 9 ) + - 32 + 14 + - 88 * + CAST( NULL AS SIGNED ) * + 53 + + ( 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT + COALESCE ( - CAST ( - - MAX ( DISTINCT 96 ) AS INTEGER ), COUNT ( * ), - 9 ) + - 32 + 14 + - 88 * + CAST ( NULL AS INTEGER ) * + 53 + + ( 23 )
----
NULL

query I rowsort
SELECT ALL COALESCE ( + - 92, + - 58 ) AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-81
SELECT COALESCE ( - + 48, + 17 DIV - COUNT( * ) - 10 ) DIV + 33 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-81
SELECT COALESCE ( - + 48, + 17 / - COUNT ( * ) - 10 ) / + 33 AS col2
----
-1

query I rowsort
SELECT + 77 + - + 56 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT COUNT( * ) * - - NULLIF ( - COUNT( * ), ( 73 ) * - 33 * + COUNT( * ) / + 51 * - + 27 * + 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-83
SELECT COUNT ( * ) * - - NULLIF ( - COUNT ( * ), ( 73 ) * - 33 * + COUNT ( * ) / + 51 * - + 27 * + 4 )
----
-1

query II rowsort
SELECT ALL - - 44 + + 33, 41 AS col1
----
77
41

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

query II rowsort
SELECT ALL - 39 * + 9 * 20 + + 86 + 0 AS col0, 10 * 95 * 49 AS col0
----
-6934
46550

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

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + - 80 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - CAST ( NULL AS INTEGER ) + - 93 + + ( - - 40 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-89
SELECT ALL + - 64 + + + 12 AS col0, - CAST( + 89 AS SIGNED )
----
-52
-89

skipif mysql # not compatible
query II rowsort label-89
SELECT ALL + - 64 + + + 12 AS col0, - CAST ( + 89 AS INTEGER )
----
-52
-89

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

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

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

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

query I rowsort
SELECT ALL - 81 + + 52 + 96 * - + 10 AS col2
----
-989

onlyif mysql # aggregate syntax: 
query II rowsort label-93
SELECT DISTINCT - - 26 + - COUNT( * ), 27 AS col2
----
25
27

skipif mysql # not compatible
query II rowsort label-93
SELECT DISTINCT - - 26 + - COUNT ( * ), 27 AS col2
----
25
27

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

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

query I rowsort
SELECT 83 + 95 + + 58 col1
----
236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-96
SELECT 31 - - - CAST( NULL AS SIGNED ) + 75 * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-96
SELECT 31 - - - CAST ( NULL AS INTEGER ) + 75 * - 41
----
NULL

query I rowsort
SELECT DISTINCT + 78 * 79 col2
----
6162

query I rowsort
SELECT 83 * + + 17
----
1411

query II rowsort
SELECT ALL - 63 col2, 48 * 13 * 1 col0
----
-63
624

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT COUNT( * ) - - 11 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-100
SELECT COUNT ( * ) - - 11 AS col1
----
12

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

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

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

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

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL - MAX ( ALL - - ( - - 68 ) )
----
-68

query II rowsort
SELECT DISTINCT - 69, + 41 + 19 - + 24 AS col1
----
-69
36

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT ALL MAX( - + 56 ) * + ( 66 )
----
-3696

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL MAX ( - + 56 ) * + ( 66 )
----
-3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-106
SELECT DISTINCT NULLIF ( - - 59, + 5 * - 20 ) * + CAST( + COUNT( * ) AS SIGNED ) + - CASE 67 WHEN - + ( - ( + COUNT( - + 12 ) ) ) * + 20 + + + MIN( - 49 ) THEN + 71 + 13 WHEN + - SUM( DISTINCT - - 34 ) * 27 + + AVG ( DISTINCT + + COALESCE ( + 97, - 36 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT NULLIF ( - - 59, + 5 * - 20 ) * + CAST ( + COUNT ( * ) AS INTEGER ) + - CASE 67 WHEN - + ( - ( + COUNT ( - + 12 ) ) ) * + 20 + + + MIN ( - 49 ) THEN + 71 + 13 WHEN + - SUM ( DISTINCT - - 34 ) * 27 + + AVG ( DISTINCT + + COALESCE ( + 97, - 36 ) ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 37 + - + 60 AS col2
----
-97

query I rowsort
SELECT - 75 * 7 * + 22
----
-11550

query I rowsort
SELECT 59 - + 46
----
13

query II rowsort
SELECT - 47 AS col0, 34
----
-47
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-111
SELECT 18 DIV 71 * - 93 DIV - 26, 15 DIV + NULLIF ( - + COUNT( * ), + ( 17 ) ) AS col2
----
0
-15

skipif mysql # not compatible
query II rowsort label-111
SELECT 18 / 71 * - 93 / - 26, 15 / + NULLIF ( - + COUNT ( * ), + ( 17 ) ) AS col2
----
0
-15

query I rowsort
SELECT - 41 - - - 23 AS col2
----
-64

query I rowsort
SELECT + 55 + - 72
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT CASE - 17 WHEN 86 + - 84 THEN NULL WHEN - 97 DIV + 23 + + - 18 * 21 THEN NULL ELSE - - 16 END DIV + 12 - - + 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-114
SELECT CASE - 17 WHEN 86 + - 84 THEN NULL WHEN - 97 / + 23 + + - 18 * 21 THEN NULL ELSE - - 16 END / + 12 - - + 5 AS col0
----
6

query I rowsort
SELECT ALL + 16 + 40 AS col0
----
56

query I rowsort
SELECT 28 * - - 27 AS col1
----
756

query I rowsort
SELECT - NULLIF ( + 19, + 70 - - - 27 ) AS col1
----
-19

query I rowsort
SELECT ALL + 36 + 7 AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-119
SELECT - CASE - 45 WHEN 97 THEN - + 83 + + ( 69 ) ELSE + 27 * - CAST( NULL AS SIGNED ) + - 6 END - + + MAX( ALL + - 0 ) * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT - CASE - 45 WHEN 97 THEN - + 83 + + ( 69 ) ELSE + 27 * - CAST ( NULL AS INTEGER ) + - 6 END - + + MAX ( ALL + - 0 ) * - 11
----
NULL

query I rowsort
SELECT - 4 - - + 20
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-121
SELECT 8 * COUNT( * ) * - + 3 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-121
SELECT 8 * COUNT ( * ) * - + 3 / + 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-122
SELECT - 48 + + - 13 - - 52 DIV 44 DIV + 30 * - 53 + - 67
----
-128

skipif mysql # not compatible
query I rowsort label-122
SELECT - 48 + + - 13 - - 52 / 44 / + 30 * - 53 + - 67
----
-128

query I rowsort
SELECT DISTINCT 5 * - + 51 * 50
----
-12750

onlyif mysql # aggregate syntax: 
query II rowsort label-124
SELECT MAX( ALL - - 22 ) AS col0, + 73 AS col0
----
22
73

skipif mysql # not compatible
query II rowsort label-124
SELECT MAX ( ALL - - 22 ) AS col0, + 73 AS col0
----
22
73

query I rowsort
SELECT 11 + - 87
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-126
SELECT CAST( + 79 AS SIGNED ) DIV 56 + ( + COUNT( * ) ) col2
----
2

skipif mysql # not compatible
query I rowsort label-126
SELECT CAST ( + 79 AS INTEGER ) / 56 + ( + COUNT ( * ) ) col2
----
2

query I rowsort
SELECT 18 * 9 * - 88 AS col1
----
-14256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT 29 * - - 71 + + 84 + 63 + - COUNT( + COALESCE ( - + 21, 38 ) ) * + ( - 75 ) AS col1
----
2281

skipif mysql # not compatible
query I rowsort label-129
SELECT 29 * - - 71 + + 84 + 63 + - COUNT ( + COALESCE ( - + 21, 38 ) ) * + ( - 75 ) AS col1
----
2281

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT 8 DIV + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-131
SELECT 8 / + 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL 99 * - 97 * - 17 + + COALESCE ( - COUNT( * ), + CASE - 43 WHEN + ( + - 89 ) * + 73 * + + 81 THEN - 33 ELSE NULL END, - MAX( - - 19 ) )
----
163250

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL 99 * - 97 * - 17 + + COALESCE ( - COUNT ( * ), + CASE - 43 WHEN + ( + - 89 ) * + 73 * + + 81 THEN - 33 ELSE NULL END, - MAX ( - - 19 ) )
----
163250

query I rowsort
SELECT - 80 - - + ( 24 )
----
-56

query I rowsort
SELECT - 56 + + 66 + - + 70 * - - 22 * + - 72 AS col1
----
110890

query I rowsort
SELECT DISTINCT - ( - 10 ) + - 86
----
-76

query I rowsort
SELECT - + 75 + - - 98
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT - - 0 + - COALESCE ( 76, - ( - + 64 ) * + SUM( DISTINCT 21 ) ) + + - 97
----
-173

skipif mysql # not compatible
query I rowsort label-137
SELECT - - 0 + - COALESCE ( 76, - ( - + 64 ) * + SUM ( DISTINCT 21 ) ) + + - 97
----
-173

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT COUNT( - 2 ) * - 52 * 29 + + - 53 + + COUNT( * )
----
-1560

skipif mysql # not compatible
query I rowsort label-139
SELECT COUNT ( - 2 ) * - 52 * 29 + + - 53 + + COUNT ( * )
----
-1560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT + 75 + COUNT( - + 1 ) + + CASE - 29 WHEN - SUM( - - 74 ) THEN + 52 WHEN ( - + ( - 47 ) ) THEN NULL WHEN - + 94 THEN + 11 - - - MAX( + - CAST( + NULLIF ( + + 71, - 65 ) AS SIGNED ) ) ELSE NULL END + + COUNT( * ) - - 9 * 85 + - 38 + - - COUNT( * ) * - 49 / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT + 75 + COUNT ( - + 1 ) + + CASE - 29 WHEN - SUM ( - - 74 ) THEN + 52 WHEN ( - + ( - 47 ) ) THEN NULL WHEN - + 94 THEN + 11 - - - MAX ( + - CAST ( + NULLIF ( + + 71, - 65 ) AS INTEGER ) ) ELSE NULL END + + COUNT ( * ) - - 9 * 85 + - 38 + - - COUNT ( * ) * - 49 / 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL + SUM( ALL + 94 ) * 65
----
6110

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL + SUM ( ALL + 94 ) * 65
----
6110

query I rowsort
SELECT + 2 + 7 AS col0
----
9

query I rowsort
SELECT ALL - ( 52 ) - + 1 - - 53 * 69
----
3604

query I rowsort
SELECT - - 99 * - 65 AS col2
----
-6435

query I rowsort
SELECT + + 93 * - + ( - 42 ) AS col2
----
3906

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-146
SELECT - - CAST( - 22 AS SIGNED ) col0, + 80
----
-22
80

skipif mysql # not compatible
query II rowsort label-146
SELECT - - CAST ( - 22 AS INTEGER ) col0, + 80
----
-22
80

query II rowsort
SELECT ALL 46 * - 13 * 86, - 70 AS col1
----
-51428
-70

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

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

query I rowsort
SELECT + NULLIF ( - 26, + + 66 * - 59 ) + - ( - 56 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-150
SELECT + NULLIF ( + COUNT( * ), CAST( 37 AS DECIMAL ) * - - 90 + + + 88 ) * + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-150
SELECT + NULLIF ( + COUNT ( * ), CAST ( 37 AS REAL ) * - - 90 + + + 88 ) * + - 93
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-151
SELECT + 46 + + 42 - - + ( + + 45 ) * 13 / - + 74 + + + CAST( NULL AS DECIMAL ) * + 78 + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-151
SELECT + 46 + + 42 - - + ( + + 45 ) * 13 / - + 74 + + + CAST ( NULL AS REAL ) * + 78 + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT DISTINCT SUM( DISTINCT + + 53 ) * - ( - 27 ) AS col2
----
1431

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT SUM ( DISTINCT + + 53 ) * - ( - 27 ) AS col2
----
1431

query I rowsort
SELECT ALL 10 * 83 AS col0
----
830

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT + 22 DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT + 22 / 62 AS col1
----
0

query I rowsort
SELECT + 71 * + - 48 - + 98
----
-3506

query II rowsort
SELECT + 84, ( ( + 0 ) ) AS col0
----
84
0

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

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

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

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT + 57 / COUNT ( * ) + - COUNT ( * ) - + 99 AS col1
----
-43

query II rowsort
SELECT DISTINCT + 49, 28 * 61 AS col1
----
49
1708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-160
SELECT ALL + COALESCE ( - + 82, 28 DIV + COUNT( * ) + - + 79 ) * + 40 - + + COUNT( 54 ) + - + 84
----
-3365

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL + COALESCE ( - + 82, 28 / + COUNT ( * ) + - + 79 ) * + 40 - + + COUNT ( 54 ) + - + 84
----
-3365

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

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT - 32 DIV 13
----
-2

skipif mysql # not compatible
query I rowsort label-162
SELECT - 32 / 13
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-163
SELECT ALL - CAST( NULL AS SIGNED ) * + 69 + - + 22 + - 9 * - 59 + - 8 + - CAST( NULL AS SIGNED ) / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL - CAST ( NULL AS INTEGER ) * + 69 + - + 22 + - 9 * - 59 + - 8 + - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 60 * - 61 AS col0
----
3660

query I rowsort
SELECT ALL - - 82 * - - 9 + 76 + + 44 AS col0
----
858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-166
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / 99 * 32, + COUNT( DISTINCT + 22 ) * 50 AS col2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-166
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / 99 * 32, + COUNT ( DISTINCT + 22 ) * 50 AS col2
----
NULL
50

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

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

query I rowsort
SELECT - + 44 * - 70
----
3080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-169
SELECT ALL - - 53 DIV - 79 + - MIN( + 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - - 53 / - 79 + - MIN ( + 35 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + 57 * + 81 - + - COUNT( * ) AS col0
----
4618

skipif mysql # not compatible
query I rowsort label-170
SELECT + 57 * + 81 - + - COUNT ( * ) AS col0
----
4618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-171
SELECT + NULLIF ( - + CAST( NULL AS SIGNED ), COUNT( * ) ) * 40 * + COUNT( * ) * - ( - 38 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-171
SELECT + NULLIF ( - + CAST ( NULL AS INTEGER ), COUNT ( * ) ) * 40 * + COUNT ( * ) * - ( - 38 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - - ( - NULLIF ( + 73, - + MIN( DISTINCT 73 ) ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-172
SELECT - - ( - NULLIF ( + 73, - + MIN ( DISTINCT 73 ) ) ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT DISTINCT CASE + 58 WHEN SUM( DISTINCT - 48 ) THEN NULLIF ( + 84, 24 ) WHEN + 95 * 14 * - 64 THEN + + 21 - + 55 ELSE ( 82 ) - 36 END
----
46

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT CASE + 58 WHEN SUM ( DISTINCT - 48 ) THEN NULLIF ( + 84, 24 ) WHEN + 95 * 14 * - 64 THEN + + 21 - + 55 ELSE ( 82 ) - 36 END
----
46

query I rowsort
SELECT DISTINCT ( + - NULLIF ( 19, + 3 ) )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-175
SELECT ALL 6 * + COUNT( * ) DIV - 20 AS col2
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-176
SELECT ALL 63 AS col2, + 54 DIV 11 AS col1
----
63
4

skipif mysql # not compatible
query II rowsort label-176
SELECT ALL 63 AS col2, + 54 / 11 AS col1
----
63
4

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT + 29 - + MIN( + 70 ) * + + 4
----
-251

skipif mysql # not compatible
query I rowsort label-177
SELECT + 29 - + MIN ( + 70 ) * + + 4
----
-251

query I rowsort
SELECT - 40 * 94 AS col1
----
-3760

query I rowsort
SELECT + 5 + 68
----
73

query I rowsort
SELECT + 81 * - 67 col0
----
-5427

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT - COUNT( * ) * - - 95 * - 65
----
6175

skipif mysql # not compatible
query I rowsort label-181
SELECT - COUNT ( * ) * - - 95 * - 65
----
6175

query I rowsort
SELECT DISTINCT - 29 + + 56 AS col1
----
27

query II rowsort
SELECT 55 AS col0, ( + + 93 ) + - 94 col2
----
55
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-184
SELECT ALL CAST( NULL AS SIGNED ) + - 72 + + 15 * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL CAST ( NULL AS INTEGER ) + - 72 + + 15 * 95 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT 1 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-185
SELECT 1 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-186
SELECT COUNT( * ) + - 44 col0, 15 col1
----
-43
15

skipif mysql # not compatible
query II rowsort label-186
SELECT COUNT ( * ) + - 44 col0, 15 col1
----
-43
15

query I rowsort
SELECT 46 + - 67 * - 93 AS col0
----
6277

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL 97 + CASE COUNT( * ) WHEN + 52 THEN COUNT( * ) * + COUNT( * ) * + 52 + + 70 + COALESCE ( - 91, 42 ) * - 5 * 47 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL 97 + CASE COUNT ( * ) WHEN + 52 THEN COUNT ( * ) * + COUNT ( * ) * + 52 + + 70 + COALESCE ( - 91, 42 ) * - 5 * 47 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-189
SELECT DISTINCT CASE 78 WHEN - ( + + 31 ) THEN NULL WHEN - 50 THEN - 36 / + COUNT( * ) + + + 25 * + CASE + - ( - 13 ) WHEN + CAST( SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS SIGNED ) * - CASE - - 30 WHEN - + AVG ( DISTINCT 32 ) THEN - 51 ELSE NULL END THEN - 34 ELSE NULL END END * + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT CASE 78 WHEN - ( + + 31 ) THEN NULL WHEN - 50 THEN - 36 / + COUNT ( * ) + + + 25 * + CASE + - ( - 13 ) WHEN + CAST ( SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - CASE - - 30 WHEN - + AVG ( DISTINCT 32 ) THEN - 51 ELSE NULL END THEN - 34 ELSE NULL END END * + 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT 67 * COALESCE ( COUNT( DISTINCT - - 33 ), - - 39, - 61 ) * + COUNT( * ) * - + 63 + - - 82 + + COUNT( * ) AS col0
----
-4138

skipif mysql # not compatible
query I rowsort label-190
SELECT 67 * COALESCE ( COUNT ( DISTINCT - - 33 ), - - 39, - 61 ) * + COUNT ( * ) * - + 63 + - - 82 + + COUNT ( * ) AS col0
----
-4138

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT COUNT( * ) * - 48 col1
----
-48

skipif mysql # not compatible
query I rowsort label-191
SELECT COUNT ( * ) * - 48 col1
----
-48

query I rowsort
SELECT 62 * + 5 * - 93 AS col1
----
-28830

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT - 34 * + MIN( 35 ) + + - 20 + - 54 * - 2 AS col2
----
-1102

skipif mysql # not compatible
query I rowsort label-193
SELECT - 34 * + MIN ( 35 ) + + - 20 + - 54 * - 2 AS col2
----
-1102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-194
SELECT ALL 77 - + 30 - 54 DIV COUNT( DISTINCT 36 ) + + 25 AS col2, + 0 - 79
----
18
-79

skipif mysql # not compatible
query II rowsort label-194
SELECT ALL 77 - + 30 - 54 / COUNT ( DISTINCT 36 ) + + 25 AS col2, + 0 - 79
----
18
-79

query I rowsort
SELECT ALL 82 * - 29
----
-2378

query I rowsort
SELECT 3 + 65 AS col0
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-197
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) AS col2, - 59
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-197
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col2, - 59
----
NULL
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT + 44 + COUNT( * ) + - + 89 + + 34
----
-10

skipif mysql # not compatible
query I rowsort label-198
SELECT + 44 + COUNT ( * ) + - + 89 + + 34
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT 96 * - MAX( 9 )
----
-864

skipif mysql # not compatible
query I rowsort label-199
SELECT 96 * - MAX ( 9 )
----
-864

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT + + 11 * + + 97 + + 34 + - 95 + + 48 + + - 35 * + 17 * + 49 * SUM( + 50 ) col2
----
-1456696

skipif mysql # not compatible
query I rowsort label-202
SELECT + + 11 * + + 97 + + 34 + - 95 + + 48 + + - 35 * + 17 * + 49 * SUM ( + 50 ) col2
----
-1456696

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

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

query I rowsort
SELECT ( - 79 ) * + 97
----
-7663

query I rowsort
SELECT 6 + 16 + 25 AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-206
SELECT - 93 - 7 + + + 71 + COUNT( ALL CAST( NULL AS SIGNED ) ) * 41 * 86 col1
----
-29

skipif mysql # not compatible
query I rowsort label-206
SELECT - 93 - 7 + + + 71 + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 41 * 86 col1
----
-29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-208
SELECT + - 82 * - + CAST( NULL AS SIGNED ) / + 37 * + - ( - - COUNT( * ) ) / 46 + 73 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT + - 82 * - + CAST ( NULL AS INTEGER ) / + 37 * + - ( - - COUNT ( * ) ) / 46 + 73 - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-209
SELECT ALL - AVG ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - AVG ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT - 51 * CASE + ( + 69 ) WHEN + 65 * 24 * - COUNT( 78 ) + + 21 + + ( - 16 ) THEN - 2 ELSE + 80 END
----
-4080

skipif mysql # not compatible
query I rowsort label-210
SELECT - 51 * CASE + ( + 69 ) WHEN + 65 * 24 * - COUNT ( 78 ) + + 21 + + ( - 16 ) THEN - 2 ELSE + 80 END
----
-4080

query II rowsort
SELECT ALL - 85 AS col1, - 35 * ( - 20 )
----
-85
700

query II rowsort
SELECT - 56, 70 AS col0
----
-56
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-213
SELECT + 17 * + - 9, 42 - CASE - 54 WHEN + - 2 THEN NULL ELSE + CASE AVG ( DISTINCT - 73 ) WHEN - 22 THEN 62 - + + ( NULLIF ( 95, - CAST( - - 80 AS SIGNED ) ) ) WHEN + - 23 THEN + 61 ELSE NULL END END AS col0
----
-153
NULL

skipif mysql # not compatible
query II rowsort label-213
SELECT + 17 * + - 9, 42 - CASE - 54 WHEN + - 2 THEN NULL ELSE + CASE AVG ( DISTINCT - 73 ) WHEN - 22 THEN 62 - + + ( NULLIF ( 95, - CAST ( - - 80 AS INTEGER ) ) ) WHEN + - 23 THEN + 61 ELSE NULL END END AS col0
----
-153
NULL

query I rowsort
SELECT 76 * - + 74
----
-5624

query II rowsort
SELECT 11 + + - 25 AS col0, + ( + + 37 ) + + NULLIF ( - + ( 24 ), 43 + - 6 * - + 60 ) + 27 + + 80 AS col2
----
-14
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-216
SELECT DISTINCT + SUM( - - NULLIF ( - + 26, + 59 * - 5 ) ) DIV 1 * - 52
----
1352

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT + SUM ( - - NULLIF ( - + 26, + 59 * - 5 ) ) / 1 * - 52
----
1352

query I rowsort
SELECT DISTINCT - 33 + - 27 + + 58 AS col0
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL - COUNT( * ) + - NULLIF ( - COUNT( * ), 84 ) + - 63 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL - COUNT ( * ) + - NULLIF ( - COUNT ( * ), 84 ) + - 63 AS col2
----
-63

query I rowsort
SELECT ALL - 43 + - - 97 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-221
SELECT ALL + COALESCE ( ( 0 ), + MIN( ALL 79 ) * - + 87 + + - COUNT( * ) ) + COUNT( * ), CASE - + COALESCE ( + COUNT( * ), CASE 2 WHEN - 25 * + 53 THEN + COALESCE ( - ( + COUNT( * ) ), - - 3 * ( + AVG ( DISTINCT - 26 ) ) / - 12 - - COALESCE ( - + 2, - 32 ) + - + 45 + ( - CAST( 29 AS SIGNED ) - + COUNT( * ) ) ) - + CAST( NULL AS SIGNED ) WHEN ( 24 ) THEN NULL WHEN 82 THEN NULL END ) WHEN 69 THEN + COUNT( ALL 42 ) + + 34 / 82 WHEN 94 / + 69 + COUNT( * ) THEN NULL ELSE 78 END AS col1
----
1
78

skipif mysql # not compatible
query II rowsort label-221
SELECT ALL + COALESCE ( ( 0 ), + MIN ( ALL 79 ) * - + 87 + + - COUNT ( * ) ) + COUNT ( * ), CASE - + COALESCE ( + COUNT ( * ), CASE 2 WHEN - 25 * + 53 THEN + COALESCE ( - ( + COUNT ( * ) ), - - 3 * ( + AVG ( DISTINCT - 26 ) ) / - 12 - - COALESCE ( - + 2, - 32 ) + - + 45 + ( - CAST ( 29 AS INTEGER ) - + COUNT ( * ) ) ) - + CAST ( NULL AS INTEGER ) WHEN ( 24 ) THEN NULL WHEN 82 THEN NULL END ) WHEN 69 THEN + COUNT ( ALL 42 ) + + 34 / 82 WHEN 94 / + 69 + COUNT ( * ) THEN NULL ELSE 78 END AS col1
----
1
78

query II rowsort
SELECT DISTINCT 16 * - + 29, 58 AS col0
----
-464
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT ALL - 16 + + 38 + CASE - + 43 WHEN - + 13 - 94 - - - ( - 88 ) DIV + 65 THEN 88 * - 71 + - + 20 + - - 11 + - MIN( ALL 77 ) DIV + COUNT( * ) WHEN - 43 THEN - + 43 WHEN COUNT( + 73 ) THEN 61 END
----
-21

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL - 16 + + 38 + CASE - + 43 WHEN - + 13 - 94 - - - ( - 88 ) / + 65 THEN 88 * - 71 + - + 20 + - - 11 + - MIN ( ALL 77 ) / + COUNT ( * ) WHEN - 43 THEN - + 43 WHEN COUNT ( + 73 ) THEN 61 END
----
-21

query I rowsort
SELECT 17 * - 80 * + 9 col0
----
-12240

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL - CASE - + 45 WHEN + 66 * + 98 THEN + - 90 WHEN + 5 + + 23 THEN NULL WHEN + 65 THEN - - MIN( - + 42 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL - CASE - + 45 WHEN + 66 * + 98 THEN + - 90 WHEN + 5 + + 23 THEN NULL WHEN + 65 THEN - - MIN ( - + 42 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT 80 * - COUNT( ( + 87 ) ) - - NULLIF ( - 22, + 8 ) + 24 * - 49
----
-1278

skipif mysql # not compatible
query I rowsort label-226
SELECT 80 * - COUNT ( ( + 87 ) ) - - NULLIF ( - 22, + 8 ) + 24 * - 49
----
-1278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT - 30 DIV - - 2 - - MIN( ALL - 84 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-227
SELECT - 30 / - - 2 - - MIN ( ALL - 84 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT ALL + CASE - + 21 WHEN 46 THEN + COUNT( * ) * - - AVG ( DISTINCT - ( - 0 ) ) END - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL + CASE - + 21 WHEN 46 THEN + COUNT ( * ) * - - AVG ( DISTINCT - ( - 0 ) ) END - 86
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-230
SELECT + 32 DIV + - COUNT( * ) AS col2, 36 - 93
----
-32
-57

skipif mysql # not compatible
query II rowsort label-230
SELECT + 32 / + - COUNT ( * ) AS col2, 36 - 93
----
-32
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-231
SELECT 51 * + + CASE - 87 WHEN + + 5 * + - 35 + - 85 THEN NULL ELSE + 12 DIV - 72 + + COUNT( * ) END AS col2
----
51

skipif mysql # not compatible
query I rowsort label-231
SELECT 51 * + + CASE - 87 WHEN + + 5 * + - 35 + - 85 THEN NULL ELSE + 12 / - 72 + + COUNT ( * ) END AS col2
----
51

query I rowsort
SELECT ALL 11 * + + 30
----
330

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT - 99 DIV 16 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-233
SELECT - 99 / 16 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT + 69 * + 35 + - + COUNT( * ) * - + 96 + 10 * + 13 * 81
----
13041

skipif mysql # not compatible
query I rowsort label-234
SELECT + 69 * + 35 + - + COUNT ( * ) * - + 96 + 10 * + 13 * 81
----
13041

query I rowsort
SELECT + 49 * - 65 AS col2
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT ALL - 81 + + + CASE - + MAX( ALL + - 89 ) WHEN + 38 * 62 * NULLIF ( + + 80, + 76 * + 43 + - COALESCE ( - 48, - + 85 * + 58 ) + + ( + 23 ) - - 33 + - - 94 * + 30 * + 21 ) * - 68 + + COUNT( * ) - - ( MIN( DISTINCT - 33 ) ) - ( - 43 ) - - 0 * 59 - 70 THEN NULL WHEN 42 THEN + 62 * + 17 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL - 81 + + + CASE - + MAX ( ALL + - 89 ) WHEN + 38 * 62 * NULLIF ( + + 80, + 76 * + 43 + - COALESCE ( - 48, - + 85 * + 58 ) + + ( + 23 ) - - 33 + - - 94 * + 30 * + 21 ) * - 68 + + COUNT ( * ) - - ( MIN ( DISTINCT - 33 ) ) - ( - 43 ) - - 0 * 59 - 70 THEN NULL WHEN 42 THEN + 62 * + 17 END col1
----
NULL

query I rowsort
SELECT DISTINCT - 23 + - 95 AS col1
----
-118

query I rowsort
SELECT 46 + + 23 - + - 31
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-239
SELECT ALL 41 + + - 85 DIV + 31 + + 71 * - 31 + + 94 AS col0
----
-2068

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL 41 + + - 85 / + 31 + + 71 * - 31 + + 94 AS col0
----
-2068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-240
SELECT - COUNT( * ) * - NULLIF ( - - COALESCE ( - - 57, 89 * MIN( DISTINCT - - 89 ) * + - 25 ), - 49 * + ( - 98 ) ) * + + 99 * + COUNT( * ) DIV COUNT( * ) col0
----
5643

skipif mysql # not compatible
query I rowsort label-240
SELECT - COUNT ( * ) * - NULLIF ( - - COALESCE ( - - 57, 89 * MIN ( DISTINCT - - 89 ) * + - 25 ), - 49 * + ( - 98 ) ) * + + 99 * + COUNT ( * ) / COUNT ( * ) col0
----
5643

query II rowsort
SELECT 36 * - 62 AS col2, + 87 * + 5 AS col1
----
-2232
435

query I rowsort
SELECT - 24 - - 89
----
65

query I rowsort
SELECT ALL 88 + + ( + 36 ) col1
----
124

query II rowsort
SELECT - 15, 24 AS col0
----
-15
24

query I rowsort
SELECT + 70 + - NULLIF ( + 77, 9 * + 77 )
----
-7

query I rowsort
SELECT ALL + ( 79 ) * - 34
----
-2686

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-248
SELECT DISTINCT COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-248
SELECT DISTINCT COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query I rowsort
SELECT + 10 + - 92 AS col0
----
-82

query I rowsort
SELECT - 16 - + 93
----
-109

query I rowsort
SELECT ALL - 11 + 94 AS col2
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - COUNT( - 40 ) + + + 79
----
78

skipif mysql # not compatible
query I rowsort label-253
SELECT - COUNT ( - 40 ) + + + 79
----
78

query I rowsort
SELECT + 4 * 93
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT - COALESCE ( 25, + 99 + - COUNT( DISTINCT + 40 ) - + + MAX( 40 ) * 92 * + 99 ) * 61
----
-1525

skipif mysql # not compatible
query I rowsort label-255
SELECT - COALESCE ( 25, + 99 + - COUNT ( DISTINCT + 40 ) - + + MAX ( 40 ) * 92 * + 99 ) * 61
----
-1525

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT ALL + 39 DIV - + 48
----
0

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL + 39 / - + 48
----
0

query II rowsort
SELECT - 48, 74 - - - 57 AS col1
----
-48
17

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT - 56 + + - MAX( - + 71 ) + - + 23 * + ( + ( 69 ) )
----
-1572

skipif mysql # not compatible
query I rowsort label-258
SELECT - 56 + + - MAX ( - + 71 ) + - + 23 * + ( + ( 69 ) )
----
-1572

onlyif mysql # aggregate syntax: 
query II rowsort label-259
SELECT ALL COUNT( * ) AS col0, 73 * 60 * 32
----
1
140160

skipif mysql # not compatible
query II rowsort label-259
SELECT ALL COUNT ( * ) AS col0, 73 * 60 * 32
----
1
140160

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL + 40 * NULLIF ( - ( 99 ), - COUNT( * ) / NULLIF ( 25, - COUNT( * ) / + + NULLIF ( - + 3, + NULLIF ( - + 81, - ( - + 69 ) ) * - + 87 ) ) * 2 ) * + + 2 * + 2 AS col0
----
-15840

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + 40 * NULLIF ( - ( 99 ), - COUNT ( * ) / NULLIF ( 25, - COUNT ( * ) / + + NULLIF ( - + 3, + NULLIF ( - + 81, - ( - + 69 ) ) * - + 87 ) ) * 2 ) * + + 2 * + 2 AS col0
----
-15840

query I rowsort
SELECT DISTINCT + + ( - 52 ) * - - 47 AS col1
----
-2444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT - 56 + - + 95 + - CAST( NULL AS SIGNED ) / 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT - 56 + - + 95 + - CAST ( NULL AS INTEGER ) / 21 AS col2
----
NULL

query I rowsort
SELECT - 30 + + + ( - 33 ) col2
----
-63

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

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

query I rowsort
SELECT - 70 * 13
----
-910

query I rowsort
SELECT - - 26 * 29 AS col1
----
754

onlyif mysql # aggregate syntax: 
query II rowsort label-267
SELECT + + COUNT( * ) AS col1, 45 + + 70 AS col2
----
1
115

skipif mysql # not compatible
query II rowsort label-267
SELECT + + COUNT ( * ) AS col1, 45 + + 70 AS col2
----
1
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-268
SELECT COUNT( * ) * + 11 + + CAST( - 17 AS SIGNED ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-268
SELECT COUNT ( * ) * + 11 + + CAST ( - 17 AS INTEGER ) AS col0
----
-6

query II rowsort
SELECT + + 58 col1, 86 AS col0
----
58
86

query I rowsort
SELECT ALL + 77 * + COALESCE ( + - 9, + 55 * + - 37 )
----
-693

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT + SUM( ALL ( NULLIF ( 78, + 5 ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT + SUM ( ALL ( NULLIF ( 78, + 5 ) ) )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL 30 * + + COUNT( * ) * - 68 AS col0
----
-2040

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL 30 * + + COUNT ( * ) * - 68 AS col0
----
-2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-274
SELECT + + COUNT( DISTINCT + 72 ) + CAST( + 81 AS SIGNED ) DIV - - CAST( 70 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-274
SELECT + + COUNT ( DISTINCT + 72 ) + CAST ( + 81 AS INTEGER ) / - - CAST ( 70 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL + + 75 * + - 84 + - 53 + + + COUNT( ALL + + 62 )
----
-6352

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL + + 75 * + - 84 + - 53 + + + COUNT ( ALL + + 62 )
----
-6352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-276
SELECT - + 64 + + 40 * NULLIF ( + + MAX( 17 ), + + 4 ) DIV + + NULLIF ( 32, AVG ( DISTINCT 90 ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-276
SELECT - + 64 + + 40 * NULLIF ( + + MAX ( 17 ), + + 4 ) / + + NULLIF ( 32, AVG ( DISTINCT 90 ) ) AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT + + CAST( + - 51 AS SIGNED ) + 46 - - 0 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-277
SELECT + + CAST ( + - 51 AS INTEGER ) + 46 - - 0 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-278
SELECT ALL + 48 * + - 37 + COUNT( * ) * 62 * 49, - 53 * 51 * 99 AS col0
----
1262
-267597

skipif mysql # not compatible
query II rowsort label-278
SELECT ALL + 48 * + - 37 + COUNT ( * ) * 62 * 49, - 53 * 51 * 99 AS col0
----
1262
-267597

query I rowsort
SELECT - NULLIF ( 61, - 84 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT MAX( - 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-280
SELECT MAX ( - 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT ALL 34 + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL 34 + COUNT ( * )
----
35

query I rowsort
SELECT + 40 + - 43
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-283
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) + - - 82 + - ( + CAST( - ( + 51 ) AS SIGNED ) ) * + 47 - + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - - 82 + - ( + CAST ( - ( + 51 ) AS INTEGER ) ) * + 47 - + - 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-284
SELECT + 92 + + COUNT( * ) - - COALESCE ( - COALESCE ( - CAST( NULL AS SIGNED ), COUNT( DISTINCT - 63 ) * - - 95 DIV - COUNT( ALL - 51 ) + - COUNT( * ) + + 70, - COUNT( * ) ), - - 4 * - 26 * - SUM( - - 8 ) * 44 - + 56 + - 31 + 22 - - 0 )
----
119

skipif mysql # not compatible
query I rowsort label-284
SELECT + 92 + + COUNT ( * ) - - COALESCE ( - COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( DISTINCT - 63 ) * - - 95 / - COUNT ( ALL - 51 ) + - COUNT ( * ) + + 70, - COUNT ( * ) ), - - 4 * - 26 * - SUM ( - - 8 ) * 44 - + 56 + - 31 + 22 - - 0 )
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - - CASE COUNT( * ) WHEN + ( CASE - 46 WHEN + - MAX( DISTINCT - 20 ) + 41 THEN - + 94 WHEN + + 63 THEN NULL WHEN + 71 THEN NULL END ) THEN NULL ELSE 90 * + COUNT( * ) END + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - - CASE COUNT ( * ) WHEN + ( CASE - 46 WHEN + - MAX ( DISTINCT - 20 ) + 41 THEN - + 94 WHEN + + 63 THEN NULL WHEN + 71 THEN NULL END ) THEN NULL ELSE 90 * + COUNT ( * ) END + 68
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-286
SELECT DISTINCT ( + 7 ) DIV + 49 * - 40 * 73 * + - 9 + - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT ( + 7 ) / + 49 * - 40 * 73 * + - 9 + - 27 AS col1
----
-27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-288
SELECT ALL CAST( NULL AS SIGNED ) * 46, + CAST( - 84 AS SIGNED ) AS col1
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-288
SELECT ALL CAST ( NULL AS INTEGER ) * 46, + CAST ( - 84 AS INTEGER ) AS col1
----
NULL
-84

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

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

query II rowsort
SELECT ALL ( - - 9 ) col0, + 4 AS col0
----
9
4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT - ( SUM( ALL 50 ) ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-293
SELECT - ( SUM ( ALL 50 ) ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT - COUNT( * ) + - - NULLIF ( 26, - 48 * - MAX( DISTINCT + - 45 ) + + 9 + - + COALESCE ( 64, - COUNT( DISTINCT 75 ) / + - ( - 23 ) + + ( - + MAX( DISTINCT 0 ) ), 23 ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-294
SELECT - COUNT ( * ) + - - NULLIF ( 26, - 48 * - MAX ( DISTINCT + - 45 ) + + 9 + - + COALESCE ( 64, - COUNT ( DISTINCT 75 ) / + - ( - 23 ) + + ( - + MAX ( DISTINCT 0 ) ), 23 ) ) AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-295
SELECT + + 61 DIV COUNT( * ), 92 AS col1
----
61
92

skipif mysql # not compatible
query II rowsort label-295
SELECT + + 61 / COUNT ( * ), 92 AS col1
----
61
92

query I rowsort
SELECT - - 55 + - + 76 AS col2
----
-21

query I rowsort
SELECT - + 80 * + 44 AS col1
----
-3520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-298
SELECT ALL - 49 DIV + + 34 + COUNT( * ) + - 22 * + 34 * + 44
----
-32912

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - 49 / + + 34 + COUNT ( * ) + - 22 * + 34 * + 44
----
-32912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-299
SELECT - 35 * + - CASE + 14 WHEN + + CAST( 49 AS SIGNED ) + + - 73 THEN 21 ELSE NULL END - COUNT( ALL - CAST( 91 AS SIGNED ) ) * - + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT - 35 * + - CASE + 14 WHEN + + CAST ( 49 AS INTEGER ) + + - 73 THEN 21 ELSE NULL END - COUNT ( ALL - CAST ( 91 AS INTEGER ) ) * - + 16 AS col1
----
NULL

query I rowsort
SELECT - 4 * + 44 col1
----
-176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-301
SELECT ALL 14 DIV - ( - 32 ) + - + MIN( + + 20 ) * - 85 AS col0
----
1700

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL 14 / - ( - 32 ) + - + MIN ( + + 20 ) * - 85 AS col0
----
1700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-302
SELECT DISTINCT + COUNT( * ) DIV - + ( - + 85 ) + - 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT + COUNT ( * ) / - + ( - + 85 ) + - 77 AS col1
----
-77

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

skipif mysql # not compatible
query I rowsort label-303
SELECT + - MAX ( 1 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT DISTINCT 2 DIV + - 93 + NULLIF ( + - COALESCE ( 77, - 22 ), + - 3 ) - + 55 + + + 63 DIV 53 + 84 + - 79 + 2 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT 2 / + - 93 + NULLIF ( + - COALESCE ( 77, - 22 ), + - 3 ) - + 55 + + + 63 / 53 + 84 + - 79 + 2 AS col2
----
-124

query I rowsort
SELECT - - 54 * + 12
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT ALL 26 DIV + 75 + + 27 + + 67 * + + 83
----
5588

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL 26 / + 75 + + 27 + + 67 * + + 83
----
5588

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT 50 * + 60 * COUNT( * ) col1
----
3000

skipif mysql # not compatible
query I rowsort label-308
SELECT 50 * + 60 * COUNT ( * ) col1
----
3000

query I rowsort
SELECT DISTINCT - - COALESCE ( + + 25, + 15 )
----
25

query I rowsort
SELECT ALL + + 35 + + 38
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL - ( NULLIF ( - 22, + 91 + - - COUNT( * ) + - 36 + 8 ) )
----
22

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL - ( NULLIF ( - 22, + 91 + - - COUNT ( * ) + - 36 + 8 ) )
----
22

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

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL - 57 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 17 + + 51 AS col2
----
68

query I rowsort
SELECT 55 * + ( - ( + 10 ) )
----
-550

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT 26 + 5 DIV 39 + + 49 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-315
SELECT 26 + 5 / 39 + + 49 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-316
SELECT COALESCE ( COALESCE ( - CAST( - 76 AS SIGNED ), + - ( 9 ) ), 70 ) * - CASE 35 WHEN - SUM( + - 71 ) + + 0 * - 15 THEN + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-316
SELECT COALESCE ( COALESCE ( - CAST ( - 76 AS INTEGER ), + - ( 9 ) ), 70 ) * - CASE 35 WHEN - SUM ( + - 71 ) + + 0 * - 15 THEN + 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT 45 + 10 - + NULLIF ( ( - COUNT( * ) ), - 25 * - 34 ) * - 5 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-317
SELECT 45 + 10 - + NULLIF ( ( - COUNT ( * ) ), - 25 * - 34 ) * - 5 AS col0
----
50

query I rowsort
SELECT 32 * + 42 * - 55 AS col1
----
-73920

query I rowsort
SELECT 35 + - 39 * - + 54
----
2141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-320
SELECT DISTINCT 26 + + - COUNT( * ) + COUNT( * ) DIV + - 54 col1
----
25

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT 26 + + - COUNT ( * ) + COUNT ( * ) / + - 54 col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT + CASE + + 8 WHEN - + 43 THEN NULL ELSE + ( - 50 ) + - 30 + - - CASE - 57 WHEN + 4 THEN + - 70 WHEN ( + 17 ) - - 0 THEN NULL ELSE NULL END END + - CAST( + 80 AS SIGNED ) - + ( 48 ) * - - 53 + 67 * - NULLIF ( + 21, - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-321
SELECT + CASE + + 8 WHEN - + 43 THEN NULL ELSE + ( - 50 ) + - 30 + - - CASE - 57 WHEN + 4 THEN + - 70 WHEN ( + 17 ) - - 0 THEN NULL ELSE NULL END END + - CAST ( + 80 AS INTEGER ) - + ( 48 ) * - - 53 + 67 * - NULLIF ( + 21, - 12 )
----
NULL

query I rowsort
SELECT - 61 * + + 71 * 31 + - 77 AS col0
----
-134338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-323
SELECT 95 + - CAST( NULL AS SIGNED ) + - CASE 0 WHEN - + 81 / + + 76 + ( + COALESCE ( - 70, + + 58 * CASE NULLIF ( - 72, + ( - + CAST( NULL AS SIGNED ) ) ) WHEN - ( - - 29 ) * - 24 + + 37 * COALESCE ( - CASE + - NULLIF ( + 71, - 71 + + - 9 ) WHEN CASE - + 31 WHEN - NULLIF ( - 26, - 69 ) THEN + ( 20 ) + - COALESCE ( 65, - COUNT( * ) + 62 * + 91 ) WHEN 5 * + COUNT( ALL - 56 ) + + ( 33 ) * - 85 THEN NULL END * + NULLIF ( CASE 76 WHEN CAST( 0 AS SIGNED ) + 5 THEN 93 ELSE - SUM( 12 ) + - CAST( NULL AS SIGNED ) END - 27, CAST( NULL AS SIGNED ) * + COALESCE ( COUNT( * ), 28 + COUNT( * ) * 65 ) ) - + ( + 18 ) / - 68 THEN 78 END, 39 * 13 ) + + 30 * + 54 + + 64 THEN 14 / - COUNT( * ) WHEN 22 / COUNT( * ) THEN COUNT( * ) * 95 END + 0, - 55 + MAX( ALL - 82 + + 47 ), + 8 ) ) THEN NULL WHEN + ( NULLIF ( 53, 71 * - 99 ) ) THEN NULL WHEN ( - 0 ) THEN 60 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT 95 + - CAST ( NULL AS INTEGER ) + - CASE 0 WHEN - + 81 / + + 76 + ( + COALESCE ( - 70, + + 58 * CASE NULLIF ( - 72, + ( - + CAST ( NULL AS INTEGER ) ) ) WHEN - ( - - 29 ) * - 24 + + 37 * COALESCE ( - CASE + - NULLIF ( + 71, - 71 + + - 9 ) WHEN CASE - + 31 WHEN - NULLIF ( - 26, - 69 ) THEN + ( 20 ) + - COALESCE ( 65, - COUNT ( * ) + 62 * + 91 ) WHEN 5 * + COUNT ( ALL - 56 ) + + ( 33 ) * - 85 THEN NULL END * + NULLIF ( CASE 76 WHEN CAST ( 0 AS INTEGER ) + 5 THEN 93 ELSE - SUM ( 12 ) + - CAST ( NULL AS INTEGER ) END - 27, CAST ( NULL AS INTEGER ) * + COALESCE ( COUNT ( * ), 28 + COUNT ( * ) * 65 ) ) - + ( + 18 ) / - 68 THEN 78 END, 39 * 13 ) + + 30 * + 54 + + 64 THEN 14 / - COUNT ( * ) WHEN 22 / COUNT ( * ) THEN COUNT ( * ) * 95 END + 0, - 55 + MAX ( ALL - 82 + + 47 ), + 8 ) ) THEN NULL WHEN + ( NULLIF ( 53, 71 * - 99 ) ) THEN NULL WHEN ( - 0 ) THEN 60 ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + COUNT ( * ) + 24 AS col2
----
25

query I rowsort
SELECT DISTINCT 23 + - 64 AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-326
SELECT ALL - + 66 + - CAST( NULL AS DECIMAL ) + + COUNT( * ) - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL - + 66 + - CAST ( NULL AS REAL ) + + COUNT ( * ) - 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-327
SELECT DISTINCT + COUNT( * ) * - NULLIF ( + 10, + + COUNT( * ) * 67 ) DIV + 3 col1
----
-3

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( + 10, + + COUNT ( * ) * 67 ) / + 3 col1
----
-3

query I rowsort
SELECT ALL - 5 + + 55
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-329
SELECT 99 DIV + 16 + - + 1 AS col0, 76 * - 22
----
5
-1672

skipif mysql # not compatible
query II rowsort label-329
SELECT 99 / + 16 + - + 1 AS col0, 76 * - 22
----
5
-1672

query I rowsort
SELECT + 28 + ( - 69 ) + 45
----
4

query I rowsort
SELECT ALL 7 + + 10
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT DISTINCT - 11 DIV - + 48
----
0

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT - 11 / - + 48
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-333
SELECT ALL - COALESCE ( - + 40, + 62 + - + CAST( NULL AS SIGNED ) ) - + ( + 73 )
----
-33

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL - COALESCE ( - + 40, + 62 + - + CAST ( NULL AS INTEGER ) ) - + ( + 73 )
----
-33

query I rowsort
SELECT - ( + 43 ) * 35 * - + 75
----
112875

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT + 26 + ( + 99 ) * + SUM( ALL 86 ) - + - 13 AS col0
----
8553

skipif mysql # not compatible
query I rowsort label-335
SELECT + 26 + ( + 99 ) * + SUM ( ALL 86 ) - + - 13 AS col0
----
8553

onlyif mysql # aggregate syntax: 
query II rowsort label-336
SELECT DISTINCT - COUNT( * ) AS col0, - 50 * 56
----
-1
-2800

skipif mysql # not compatible
query II rowsort label-336
SELECT DISTINCT - COUNT ( * ) AS col0, - 50 * 56
----
-1
-2800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-337
SELECT DISTINCT - CASE + 28 WHEN + 85 + + 13 THEN + - 30 WHEN + CAST( NULL AS SIGNED ) THEN NULL END * + + CASE + 54 WHEN NULLIF ( - 23, - 42 ) THEN COUNT( * ) WHEN - ( - - COUNT( * ) ) THEN + - 6 * + COUNT( - 45 ) + - ( - 31 ) END * + SUM( 42 ) * ( - 54 ) + 0 / + CASE - 84 WHEN + - ( 88 ) THEN 48 ELSE + 52 * + - 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT - CASE + 28 WHEN + 85 + + 13 THEN + - 30 WHEN + CAST ( NULL AS INTEGER ) THEN NULL END * + + CASE + 54 WHEN NULLIF ( - 23, - 42 ) THEN COUNT ( * ) WHEN - ( - - COUNT ( * ) ) THEN + - 6 * + COUNT ( - 45 ) + - ( - 31 ) END * + SUM ( 42 ) * ( - 54 ) + 0 / + CASE - 84 WHEN + - ( 88 ) THEN 48 ELSE + 52 * + - 65 END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-339
SELECT ALL - 0 AS col2, CAST( NULL AS SIGNED ) * ( - - 63 ) + + 15 * + 20 / 8 * AVG ( 37 ) + - 97
----
0
NULL

skipif mysql # not compatible
query II rowsort label-339
SELECT ALL - 0 AS col2, CAST ( NULL AS INTEGER ) * ( - - 63 ) + + 15 * + 20 / 8 * AVG ( 37 ) + - 97
----
0
NULL

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

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

query I rowsort
SELECT 42 * + - 61
----
-2562

query II rowsort
SELECT 33 AS col0, + 18
----
33
18

query II rowsort
SELECT ALL 89 AS col2, 43
----
89
43

query I rowsort
SELECT 61 + - 73 col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT 32 DIV 5
----
6

skipif mysql # not compatible
query I rowsort label-345
SELECT 32 / 5
----
6

query II rowsort
SELECT 14 AS col0, 2
----
14
2

query I rowsort
SELECT 77 * - 1 AS col1
----
-77

query II rowsort
SELECT - 54 AS col1, 71
----
-54
71

onlyif mysql # DIV for integer division: 
query II rowsort label-349
SELECT DISTINCT + 9 + 44 DIV - + 58 + 68 AS col2, - 34 AS col2
----
77
-34

skipif mysql # not compatible
query II rowsort label-349
SELECT DISTINCT + 9 + 44 / - + 58 + 68 AS col2, - 34 AS col2
----
77
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT + MIN( 48 ) * 43 + + 69 AS col1
----
2133

skipif mysql # not compatible
query I rowsort label-350
SELECT + MIN ( 48 ) * 43 + + 69 AS col1
----
2133

query I rowsort
SELECT DISTINCT 11 + + - 48
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-352
SELECT ALL - 9 + + CAST( NULL AS SIGNED ) * - - 87 + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL - 9 + + CAST ( NULL AS INTEGER ) * - - 87 + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT - COALESCE ( - 93, - - COUNT( * ) * + 93 * + + 35 * - COUNT( * ) * - - 34 * - 67 )
----
93

skipif mysql # not compatible
query I rowsort label-353
SELECT - COALESCE ( - 93, - - COUNT ( * ) * + 93 * + + 35 * - COUNT ( * ) * - - 34 * - 67 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT ALL - 98 * 25 DIV - COUNT( * )
----
2450

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL - 98 * 25 / - COUNT ( * )
----
2450

query I rowsort
SELECT DISTINCT + - 85 + + 64 AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-356
SELECT - CAST( - - 80 AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-356
SELECT - CAST ( - - 80 AS INTEGER ) AS col0
----
-80

query I rowsort
SELECT - 8 + 94 AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-358
SELECT DISTINCT 78 + - NULLIF ( + COUNT( * ), - 61 ) + - 85 DIV - - 90 * + 1 + + 80 - 54 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT 78 + - NULLIF ( + COUNT ( * ), - 61 ) + - 85 / - - 90 * + 1 + + 80 - 54 AS col1
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT - 59 AS col1, + 14 * - MIN( + 41 ) col2
----
-59
-574

skipif mysql # not compatible
query II rowsort label-359
SELECT - 59 AS col1, + 14 * - MIN ( + 41 ) col2
----
-59
-574

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-360
SELECT ALL ( + 62 ) + + - CAST( - COALESCE ( + + 53, - - 53 + + 73, + + 77 ) AS SIGNED ) + + COALESCE ( - 71, 89 * - ( + + 91 ) * - 77 ) * 73 * - 14 AS col1, 53
----
72677
53

skipif mysql # not compatible
query II rowsort label-360
SELECT ALL ( + 62 ) + + - CAST ( - COALESCE ( + + 53, - - 53 + + 73, + + 77 ) AS INTEGER ) + + COALESCE ( - 71, 89 * - ( + + 91 ) * - 77 ) * 73 * - 14 AS col1, 53
----
72677
53

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT + 9, - CASE - COUNT( * ) WHEN + SUM( 17 ) THEN + COUNT( * ) ELSE NULL END + 94 AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-361
SELECT + 9, - CASE - COUNT ( * ) WHEN + SUM ( 17 ) THEN + COUNT ( * ) ELSE NULL END + 94 AS col0
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT + NULLIF ( + 95, 19 + SUM( DISTINCT 49 ) + + + CASE - 88 WHEN ( - COUNT( * ) ) + - + 15 THEN + - 36 - + - 72 WHEN 73 / 81 THEN NULL WHEN + + 69 + - 85 + + AVG ( - ( + - ( ( - 65 ) ) ) ) THEN NULL END )
----
95

skipif mysql # not compatible
query I rowsort label-362
SELECT + NULLIF ( + 95, 19 + SUM ( DISTINCT 49 ) + + + CASE - 88 WHEN ( - COUNT ( * ) ) + - + 15 THEN + - 36 - + - 72 WHEN 73 / 81 THEN NULL WHEN + + 69 + - 85 + + AVG ( - ( + - ( ( - 65 ) ) ) ) THEN NULL END )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT - 32 * 4 + - COUNT( * ) - - + ( 12 ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT - 32 * 4 + - COUNT ( * ) - - + ( 12 ) AS col1
----
-117

query II rowsort
SELECT ALL + + 58 AS col0, 62
----
58
62

query II rowsort
SELECT ALL 93 * + + 43 - + 16 * - - 16 AS col1, 85 col2
----
3743
85

query I rowsort
SELECT + + 27 * + ( + 15 )
----
405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-367
SELECT ALL - 21 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL - 21 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-368
SELECT DISTINCT + 41 AS col2, + ( + CAST( NULL AS SIGNED ) ) * - NULLIF ( + 64, - 7 ) / - + 13 + 9 + + + CAST( NULL AS SIGNED ) * - 71 / ( + COUNT( * ) ) + NULLIF ( - - 14, SUM( + 42 ) ) AS col2
----
41
NULL

skipif mysql # not compatible
query II rowsort label-368
SELECT DISTINCT + 41 AS col2, + ( + CAST ( NULL AS INTEGER ) ) * - NULLIF ( + 64, - 7 ) / - + 13 + 9 + + + CAST ( NULL AS INTEGER ) * - 71 / ( + COUNT ( * ) ) + NULLIF ( - - 14, SUM ( + 42 ) ) AS col2
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT - MIN( - + 47 ) * - 89
----
-4183

skipif mysql # not compatible
query I rowsort label-369
SELECT - MIN ( - + 47 ) * - 89
----
-4183

query I rowsort
SELECT + 63 * - 31
----
-1953

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT ALL + 94 DIV - ( - 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL + 94 / - ( - 70 ) AS col1
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-373
SELECT DISTINCT ( + COALESCE ( - 91, + - 48, - COUNT( - 62 ) + - 64 + ( - - 23 ) * CAST( NULL AS SIGNED ) * - COUNT( * ) * + 60 * - 41, + 24 ) ) DIV - + 17 * - COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT ( + COALESCE ( - 91, + - 48, - COUNT ( - 62 ) + - 64 + ( - - 23 ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 60 * - 41, + 24 ) ) / - + 17 * - COUNT ( * ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-374
SELECT ALL - 21 * - NULLIF ( - - COUNT( * ), 15 + + - CAST( ( 31 ) AS SIGNED ) * + COALESCE ( 71, + 76 ) ) AS col2, + COUNT( * ) DIV - ( + ( - 58 ) ) * + 65 DIV + ( 45 ) AS col1
----
21
0

skipif mysql # not compatible
query II rowsort label-374
SELECT ALL - 21 * - NULLIF ( - - COUNT ( * ), 15 + + - CAST ( ( 31 ) AS INTEGER ) * + COALESCE ( 71, + 76 ) ) AS col2, + COUNT ( * ) / - ( + ( - 58 ) ) * + 65 / + ( 45 ) AS col1
----
21
0

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT 85 * + 78 - - 27 + + CASE + + 54 WHEN + NULLIF ( + - AVG ( 7 ), - 6 * 81 ) THEN NULL WHEN + COUNT( * ) THEN 72 ELSE - 91 END * + 81
----
-714

skipif mysql # not compatible
query I rowsort label-375
SELECT 85 * + 78 - - 27 + + CASE + + 54 WHEN + NULLIF ( + - AVG ( 7 ), - 6 * 81 ) THEN NULL WHEN + COUNT ( * ) THEN 72 ELSE - 91 END * + 81
----
-714

query I rowsort
SELECT + 21 + + ( 44 ) + 92 AS col0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT + 97 + NULLIF ( + ( + COUNT( * ) ), 88 * - 33 + - 81 * - 35 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-377
SELECT + 97 + NULLIF ( + ( + COUNT ( * ) ), 88 * - 33 + - 81 * - 35 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-378
SELECT - COUNT( * ) * - + 27 * + COUNT( * ), - 27 * + 17 + 27 + - 98 + - 30 AS col1
----
27
-560

skipif mysql # not compatible
query II rowsort label-378
SELECT - COUNT ( * ) * - + 27 * + COUNT ( * ), - 27 * + 17 + 27 + - 98 + - 30 AS col1
----
27
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT MIN( - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-379
SELECT MIN ( - 44 )
----
-44

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-381
SELECT ALL CASE + - COUNT( * ) WHEN - 43 * - 60 + - COUNT( * ) THEN 32 * + 60 + + 9 WHEN COUNT( * ) * - CAST( - + 80 AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL CASE + - COUNT ( * ) WHEN - 43 * - 60 + - COUNT ( * ) THEN 32 * + 60 + + 9 WHEN COUNT ( * ) * - CAST ( - + 80 AS REAL ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-382
SELECT DISTINCT 14 + + COALESCE ( - ( - + 37 ), - COUNT( * ) - + 52 + + 23 - 41 + - + 55 * 78 * - 95 * + 64 * - COUNT( * ) DIV + + 54 + + + 91 * - 96 ) + - - 79 + + + 7 DIV + + 21 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT 14 + + COALESCE ( - ( - + 37 ), - COUNT ( * ) - + 52 + + 23 - 41 + - + 55 * 78 * - 95 * + 64 * - COUNT ( * ) / + + 54 + + + 91 * - 96 ) + - - 79 + + + 7 / + + 21 AS col0
----
130

query I rowsort
SELECT ALL NULLIF ( - 0, 79 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-384
SELECT - 44 + + ( - MIN( ALL 38 ) ) * 85 + + CAST( NULL AS SIGNED ) + - CAST( + 88 AS DECIMAL ) + - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-384
SELECT - 44 + + ( - MIN ( ALL 38 ) ) * 85 + + CAST ( NULL AS INTEGER ) + - CAST ( + 88 AS REAL ) + - - 54
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-385
SELECT ALL 49 + + 49 * + COUNT( * ) col0, 81 AS col0
----
98
81

skipif mysql # not compatible
query II rowsort label-385
SELECT ALL 49 + + 49 * + COUNT ( * ) col0, 81 AS col0
----
98
81

query I rowsort
SELECT - + 49 + + 4 AS col1
----
-45

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

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

query I rowsort
SELECT DISTINCT + 10 + + - 53
----
-43

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

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

query I rowsort
SELECT - 36 * - 21
----
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-391
SELECT ALL + ( + NULLIF ( + + 45, + 29 * CAST( COALESCE ( - 68, + 47, - 28 ) AS SIGNED ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL + ( + NULLIF ( + + 45, + 29 * CAST ( COALESCE ( - 68, + 47, - 28 ) AS INTEGER ) ) )
----
45

query I rowsort
SELECT - - 22 + + 72 * + - 21
----
-1490

query II rowsort
SELECT ALL + 17 * - 71 + 39 * - + NULLIF ( 90, - + 48 ) * + 23 AS col0, 42 * + ( + 16 )
----
-81937
672

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

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

query I rowsort
SELECT - + ( + 36 ) + - 62 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ALL - - 53 - - MAX( ALL + 19 )
----
72

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL - - 53 - - MAX ( ALL + 19 )
----
72

query I rowsort
SELECT ALL - 25 * 41 AS col0
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT ALL - 62 - + MAX( ALL - 83 ) * - 48
----
-4046

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL - 62 - + MAX ( ALL - 83 ) * - 48
----
-4046

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-399
SELECT + 99 DIV - + 46 col2, COUNT( * ) * - 81 AS col1
----
-2
-81

skipif mysql # not compatible
query II rowsort label-399
SELECT + 99 / - + 46 col2, COUNT ( * ) * - 81 AS col1
----
-2
-81

query I rowsort
SELECT DISTINCT + COALESCE ( - 43, CASE + + 92 WHEN - 19 THEN NULL ELSE - ( - + 71 ) * 73 END * - ( + 8 ) + - 78 + - 87 + 10 )
----
-43

query I rowsort
SELECT - 52 * - 48 + - 50
----
2446

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT + NULLIF ( + 94, CASE - ( - 85 ) WHEN 20 THEN + 51 + - 52 + 71 - 94 + 27 + - 83 / - 89 / + MAX( 79 ) + + + 78 + - - 49 + - COUNT( * ) ELSE NULL END + 88 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-402
SELECT + NULLIF ( + 94, CASE - ( - 85 ) WHEN 20 THEN + 51 + - 52 + 71 - 94 + 27 + - 83 / - 89 / + MAX ( 79 ) + + + 78 + - - 49 + - COUNT ( * ) ELSE NULL END + 88 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT ALL + + MIN( 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + + MIN ( 55 ) AS col1
----
55

query I rowsort
SELECT - 5 + + 81 * + 14 - + 69 + 75
----
1135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-405
SELECT + SUM( ALL - CAST( - 16 AS SIGNED ) ) * + COUNT( * ) * - 60
----
-960

skipif mysql # not compatible
query I rowsort label-405
SELECT + SUM ( ALL - CAST ( - 16 AS INTEGER ) ) * + COUNT ( * ) * - 60
----
-960

query II rowsort
SELECT ALL + 65, 65 AS col1
----
65
65

onlyif mysql # DIV for integer division: 
query II rowsort label-407
SELECT 26 DIV - - 66 + - ( - 3 ) AS col0, 36
----
3
36

skipif mysql # not compatible
query II rowsort label-407
SELECT 26 / - - 66 + - ( - 3 ) AS col0, 36
----
3
36

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-410
SELECT ALL - 68 DIV + 20 + 23 AS col0, - 90 AS col2
----
20
-90

skipif mysql # not compatible
query II rowsort label-410
SELECT ALL - 68 / + 20 + 23 AS col0, - 90 AS col2
----
20
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-411
SELECT + MIN( 81 ) + COALESCE ( 39, CAST( NULL AS SIGNED ), - 58 ) DIV 86
----
81

skipif mysql # not compatible
query I rowsort label-411
SELECT + MIN ( 81 ) + COALESCE ( 39, CAST ( NULL AS INTEGER ), - 58 ) / 86
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT ALL - 18 * + + ( - 63 ) + - 64 - - COUNT( * )
----
1071

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL - 18 * + + ( - 63 ) + - 64 - - COUNT ( * )
----
1071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-413
SELECT ALL - AVG ( + - ( + ( 15 ) ) ) * + + COUNT( * ) + - 35 * - + 69 * 60 * ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL - AVG ( + - ( + ( 15 ) ) ) * + + COUNT ( * ) + - 35 * - + 69 * 60 * ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-414
SELECT + SUM( + 69 ) DIV 46, MIN( ALL + ( + - 38 ) ) - + ( - 28 ) + - COUNT( * ) * 56 col2
----
1
-66

skipif mysql # not compatible
query II rowsort label-414
SELECT + SUM ( + 69 ) / 46, MIN ( ALL + ( + - 38 ) ) - + ( - 28 ) + - COUNT ( * ) * 56 col2
----
1
-66

query I rowsort
SELECT + 50 * - - 91 + - 36 + - 32 AS col0
----
4482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-416
SELECT ALL 62 * + 78 * ( + COUNT( * ) ) * - 1 + - 44 + + + 83 DIV - COUNT( * ) + - 57 * - + CAST( + + 77 AS SIGNED ) AS col1
----
-574

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL 62 * + 78 * ( + COUNT ( * ) ) * - 1 + - 44 + + + 83 / - COUNT ( * ) + - 57 * - + CAST ( + + 77 AS INTEGER ) AS col1
----
-574

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-419
SELECT + 42 col2, SUM( + 76 ) col2
----
42
76

skipif mysql # not compatible
query II rowsort label-419
SELECT + 42 col2, SUM ( + 76 ) col2
----
42
76

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT COALESCE ( - 40, - COUNT( * ) ) AS col0, + 57
----
-40
57

skipif mysql # not compatible
query II rowsort label-420
SELECT COALESCE ( - 40, - COUNT ( * ) ) AS col0, + 57
----
-40
57

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

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

query I rowsort
SELECT + 37 * - 38 * - 78 col0
----
109668

query I rowsort
SELECT + 98 * + - 61
----
-5978

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT - ( - + 33 ) * + 22 * + COALESCE ( - 85, - COUNT( * ) ) * 32
----
-1974720

skipif mysql # not compatible
query I rowsort label-424
SELECT - ( - + 33 ) * + 22 * + COALESCE ( - 85, - COUNT ( * ) ) * 32
----
-1974720

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

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

query I rowsort
SELECT 50 - + 9
----
41

query I rowsort
SELECT DISTINCT 13 * - 68 * + + 86
----
-76024

query I rowsort
SELECT DISTINCT + 88 * 62
----
5456

query II rowsort
SELECT - 22, + ( 79 ) AS col0
----
-22
79

onlyif mysql # DIV for integer division: 
query I rowsort label-430
SELECT DISTINCT + 32 DIV + + 73
----
0

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT + 32 / + + 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-431
SELECT DISTINCT CAST( - MIN( DISTINCT - + 82 ) AS SIGNED ) AS col2, + 39 + - CAST( - + ( - 89 ) AS SIGNED ) + - 67 * + 6 * 11 * + - 10
----
82
44170

skipif mysql # not compatible
query II rowsort label-431
SELECT DISTINCT CAST ( - MIN ( DISTINCT - + 82 ) AS INTEGER ) AS col2, + 39 + - CAST ( - + ( - 89 ) AS INTEGER ) + - 67 * + 6 * 11 * + - 10
----
82
44170

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

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

query II rowsort
SELECT 72, - 57 col0
----
72
-57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-434
SELECT CAST( - - 78 AS SIGNED ) DIV 40 * ( ( 21 ) ), 8 AS col0
----
21
8

skipif mysql # not compatible
query II rowsort label-434
SELECT CAST ( - - 78 AS INTEGER ) / 40 * ( ( 21 ) ), 8 AS col0
----
21
8

query I rowsort
SELECT ALL - 39 * 57 AS col0
----
-2223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-436
SELECT - 73 * - CAST( + MIN( DISTINCT - 62 ) AS SIGNED )
----
-4526

skipif mysql # not compatible
query I rowsort label-436
SELECT - 73 * - CAST ( + MIN ( DISTINCT - 62 ) AS INTEGER )
----
-4526

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT ALL - MIN( DISTINCT + 17 ), - 1 AS col1
----
-17
-1

skipif mysql # not compatible
query II rowsort label-437
SELECT ALL - MIN ( DISTINCT + 17 ), - 1 AS col1
----
-17
-1

query I rowsort
SELECT DISTINCT - 12 * + NULLIF ( - - 45, + - ( - 5 ) / + + 71 )
----
-540

query II rowsort
SELECT DISTINCT + ( ( 87 ) ) * + - 77 AS col1, 59 AS col1
----
-6699
59

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL - MIN( 54 ) + + - 81
----
-135

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - MIN ( 54 ) + + - 81
----
-135

query I rowsort
SELECT 26 * + 12
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT 22 * COUNT( * ) - + - 15 - - - SUM( ALL + + 34 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-442
SELECT 22 * COUNT ( * ) - + - 15 - - - SUM ( ALL + + 34 ) AS col0
----
3

query I rowsort
SELECT DISTINCT 21 + - COALESCE ( - 94, - + 9 ) * + + 27
----
2559

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL MIN( + + ( - 53 ) ) + - COUNT( * ) + 26 * + COUNT( * ) + + 47 - - 4 * - + 63 + - 59 col1
----
-292

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL MIN ( + + ( - 53 ) ) + - COUNT ( * ) + 26 * + COUNT ( * ) + + 47 - - 4 * - + 63 + - 59 col1
----
-292

onlyif mysql # DIV for integer division: 
query I rowsort label-445
SELECT DISTINCT + 86 DIV + - 89
----
0

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT + 86 / + - 89
----
0

query I rowsort
SELECT ALL - NULLIF ( - 44, - 71 )
----
44

query I rowsort
SELECT DISTINCT - 77 - 91
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-448
SELECT 89 * - CAST( - CAST( - 72 AS SIGNED ) AS SIGNED ) AS col0
----
-6408

skipif mysql # not compatible
query I rowsort label-448
SELECT 89 * - CAST ( - CAST ( - 72 AS INTEGER ) AS INTEGER ) AS col0
----
-6408

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT 96 DIV - 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-449
SELECT 96 / - 53 AS col0
----
-1

query I rowsort
SELECT 67 * - 31 col1
----
-2077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-451
SELECT - + COALESCE ( + + COUNT( 39 ), - + 51, - - 71 DIV + + AVG ( DISTINCT 83 ) * - + 80 + + - COUNT( * ) DIV + ( - - 22 ) + 83, - 52 * + COALESCE ( - 65, + 89 + - 13 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-451
SELECT - + COALESCE ( + + COUNT ( 39 ), - + 51, - - 71 / + + AVG ( DISTINCT 83 ) * - + 80 + + - COUNT ( * ) / + ( - - 22 ) + 83, - 52 * + COALESCE ( - 65, + 89 + - 13 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-452
SELECT ALL - ( - NULLIF ( - CAST( NULL AS SIGNED ), - 70 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL - ( - NULLIF ( - CAST ( NULL AS INTEGER ), - 70 ) ) AS col0
----
NULL

query I rowsort
SELECT - 57 * - 63 + + - 54 * 79 - - 14 AS col2
----
-661

onlyif mysql # aggregate syntax: 
query II rowsort label-454
SELECT 65 + + + COUNT( * ) AS col2, 69
----
66
69

skipif mysql # not compatible
query II rowsort label-454
SELECT 65 + + + COUNT ( * ) AS col2, 69
----
66
69

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT ALL 2 - + 45 * SUM( 97 )
----
-4363

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL 2 - + 45 * SUM ( 97 )
----
-4363

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT DISTINCT + NULLIF ( + 12, - COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + NULLIF ( + 12, - COUNT ( * ) )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-457
SELECT + 54 DIV + MIN( DISTINCT 40 )
----
1

skipif mysql # not compatible
query I rowsort label-457
SELECT + 54 / + MIN ( DISTINCT 40 )
----
1

query I rowsort
SELECT + 12 * 80 + - 80
----
880

query I rowsort
SELECT 34 + + - 49 AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-460
SELECT - + CAST( - 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-460
SELECT - + CAST ( - 26 AS INTEGER ) AS col2
----
26

query I rowsort
SELECT - 4 * 47 col1
----
-188

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

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

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

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

query I rowsort
SELECT ALL - 82 + 7
----
-75

query II rowsort
SELECT DISTINCT 10, 24 AS col2
----
10
24

query I rowsort
SELECT DISTINCT 99 + + - ( + 32 ) AS col1
----
67

query I rowsort
SELECT 26 + - - 78 col0
----
104

query I rowsort
SELECT DISTINCT - 64 * + + 33 + 64
----
-2048

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

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

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( 67, - 93 * + 1 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT ALL COALESCE ( + COUNT( * ), + 39 - 87 * - 82 ) * - 44 + - 91
----
-135

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL COALESCE ( + COUNT ( * ), + 39 - 87 * - 82 ) * - 44 + - 91
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-473
SELECT ALL - MIN( ( - CAST( NULL AS SIGNED ) ) ) AS col0, - 51 * + 69
----
NULL
-3519

skipif mysql # not compatible
query II rowsort label-473
SELECT ALL - MIN ( ( - CAST ( NULL AS INTEGER ) ) ) AS col0, - 51 * + 69
----
NULL
-3519

onlyif mysql # aggregate syntax: 
query II rowsort label-474
SELECT DISTINCT - COALESCE ( + 65, + ( + 65 ), + 76, NULLIF ( - COUNT( * ), + 85 * + - 70 - + 62 ) * + 79 + - 38 - + 12 ), 83 * + ( + 68 ) * + 97 AS col0
----
-65
547468

skipif mysql # not compatible
query II rowsort label-474
SELECT DISTINCT - COALESCE ( + 65, + ( + 65 ), + 76, NULLIF ( - COUNT ( * ), + 85 * + - 70 - + 62 ) * + 79 + - 38 - + 12 ), 83 * + ( + 68 ) * + 97 AS col0
----
-65
547468

query I rowsort
SELECT ALL - 63 * + 65 AS col2
----
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT 77 * + + ( - MIN( DISTINCT 82 ) )
----
-6314

skipif mysql # not compatible
query I rowsort label-476
SELECT 77 * + + ( - MIN ( DISTINCT 82 ) )
----
-6314

query I rowsort
SELECT ALL + 0 * - + 43 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT DISTINCT COUNT( * ) * + 94 - - 24 + + 19 * + - COUNT( * ) * - 71
----
1467

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT COUNT ( * ) * + 94 - - 24 + + 19 * + - COUNT ( * ) * - 71
----
1467

query I rowsort
SELECT ALL + 91 * - 41
----
-3731

onlyif mysql # aggregate syntax: 
query II rowsort label-480
SELECT COUNT( * ), + 9 * + 98 col2
----
1
882

skipif mysql # not compatible
query II rowsort label-480
SELECT COUNT ( * ), + 9 * + 98 col2
----
1
882

query I rowsort
SELECT + 8 * - + 71 AS col0
----
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT + 63 + + 60 + + + COUNT( * ) + - 8 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-482
SELECT + 63 + + 60 + + + COUNT ( * ) + - 8 AS col2
----
116

query I rowsort
SELECT DISTINCT - 32 - + 13 * + 86 * + - 90 AS col2
----
100588

query I rowsort
SELECT ALL - 99 * + 30 AS col1
----
-2970

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

query I rowsort
SELECT + + 60 * - 8 * + + 29 * - 89 + - - 71
----
1238951

query I rowsort
SELECT ALL - + 46 * - + 87
----
4002

query I rowsort
SELECT ALL - 38 * - 49 AS col2
----
1862

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

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

query I rowsort
SELECT - - 99 * + - 81 AS col0
----
-8019

query I rowsort
SELECT + 79 * + - 81 AS col0
----
-6399

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL + 72 + + SUM( - + 40 ) + + 66
----
98

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL + 72 + + SUM ( - + 40 ) + + 66
----
98

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

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

query I rowsort
SELECT DISTINCT - 44 + - 26
----
-70

query I rowsort
SELECT + 46 * + 64
----
2944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-497
SELECT ALL + 22 DIV 72 - + 98 + - 81 - + 99 - - 77 * - - 23 + + + 35 - 81 * NULLIF ( - ( COUNT( * ) ), 39 * + 14 ) AS col2
----
1609

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL + 22 / 72 - + 98 + - 81 - + 99 - - 77 * - - 23 + + + 35 - 81 * NULLIF ( - ( COUNT ( * ) ), 39 * + 14 ) AS col2
----
1609

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT - - ( + COALESCE ( - 45, - 66, + + 72 DIV 84 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-498
SELECT - - ( + COALESCE ( - 45, - 66, + + 72 / 84 ) )
----
-45

query I rowsort
SELECT DISTINCT 58 + + 29 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT ALL COALESCE ( + - 7, - - 3 DIV + - 81 ) DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL COALESCE ( + - 7, - - 3 / + - 81 ) / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + COUNT( * ) + - 67 - + 84
----
-150

skipif mysql # not compatible
query I rowsort label-501
SELECT + COUNT ( * ) + - 67 - + 84
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-502
SELECT + 87 - + SUM( + - 88 ) * 75 AS col1, - 55 col2
----
6687
-55

skipif mysql # not compatible
query II rowsort label-502
SELECT + 87 - + SUM ( + - 88 ) * 75 AS col1, - 55 col2
----
6687
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-503
SELECT - COUNT( * ), + 2 * + 94 AS col0
----
-1
188

skipif mysql # not compatible
query II rowsort label-503
SELECT - COUNT ( * ), + 2 * + 94 AS col0
----
-1
188

query I rowsort
SELECT + 4 + - 34 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT ALL 10 + + 45 + COUNT( * ) * + + 71 col0
----
126

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL 10 + + 45 + COUNT ( * ) * + + 71 col0
----
126

query II rowsort
SELECT DISTINCT 76 AS col0, 71 * + - 98 AS col2
----
76
-6958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-507
SELECT DISTINCT CASE + 43 WHEN 77 THEN NULL WHEN + - 78 THEN NULL ELSE + - 46 END / - 10 - 43 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT CASE + 43 WHEN 77 THEN NULL WHEN + - 78 THEN NULL ELSE + - 46 END / - 10 - 43 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL + NULLIF ( + 87, - + 41 * - 90 - + + 68 + + - 13 * COUNT( * ) + + 61 + - + 95 * 35 )
----
87

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL + NULLIF ( + 87, - + 41 * - 90 - + + 68 + + - 13 * COUNT ( * ) + + 61 + - + 95 * 35 )
----
87

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

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT ALL + 6 AS col1, - MAX( - ( - + 61 ) ) * + + 43
----
6
-2623

skipif mysql # not compatible
query II rowsort label-510
SELECT ALL + 6 AS col1, - MAX ( - ( - + 61 ) ) * + + 43
----
6
-2623

onlyif mysql # DIV for integer division: 
query I rowsort label-511
SELECT DISTINCT 56 DIV - + 80 - - 40 * - + 84 * + 60
----
-201600

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT 56 / - + 80 - - 40 * - + 84 * + 60
----
-201600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-512
SELECT + CAST( NULL AS SIGNED ), 88 + - 53 * 4 col0
----
NULL
-124

skipif mysql # not compatible
query II rowsort label-512
SELECT + CAST ( NULL AS INTEGER ), 88 + - 53 * 4 col0
----
NULL
-124

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

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

query I rowsort
SELECT ( - - 98 ) col2
----
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-516
SELECT + AVG ( - + 68 ) * - NULLIF ( - CAST( NULL AS SIGNED ), - + 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT + AVG ( - + 68 ) * - NULLIF ( - CAST ( NULL AS INTEGER ), - + 43 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT 96 * - - MIN( - + 3 ) * - 37 - 46 - + COUNT( * ) AS col1
----
10609

skipif mysql # not compatible
query I rowsort label-517
SELECT 96 * - - MIN ( - + 3 ) * - 37 - 46 - + COUNT ( * ) AS col1
----
10609

onlyif mysql # DIV for integer division: 
query II rowsort label-518
SELECT ( 17 ) DIV + 70 - + 64, - 23 * - 13 AS col1
----
-64
299

skipif mysql # not compatible
query II rowsort label-518
SELECT ( 17 ) / + 70 - + 64, - 23 * - 13 AS col1
----
-64
299

onlyif mysql # aggregate syntax: 
query II rowsort label-519
SELECT ALL + 21 col0, COUNT( * )
----
21
1

skipif mysql # not compatible
query II rowsort label-519
SELECT ALL + 21 col0, COUNT ( * )
----
21
1

query I rowsort
SELECT ALL + + 73 * + 86 AS col1
----
6278

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

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

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

query I rowsort
SELECT - 90 * + 88 + ( + + 68 ) - + + 62 * 81
----
-12874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-524
SELECT ALL - 9 * + 28 * + + CASE - - 12 WHEN - 1 THEN + - CAST( NULL AS SIGNED ) - + 51 + - COUNT( * ) / - + 8 + + ( 21 ) * + - AVG ( + - ( + + NULLIF ( - 43, COALESCE ( - + 56, 5 + - 31 ) ) ) ) * 96 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - 9 * + 28 * + + CASE - - 12 WHEN - 1 THEN + - CAST ( NULL AS INTEGER ) - + 51 + - COUNT ( * ) / - + 8 + + ( 21 ) * + - AVG ( + - ( + + NULLIF ( - 43, COALESCE ( - + 56, 5 + - 31 ) ) ) ) * 96 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT - 80 + - ( MIN( 15 ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-525
SELECT - 80 + - ( MIN ( 15 ) ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-526
SELECT - 50 - + - MIN( ALL + - 23 ) + + 70 AS col0, - COUNT( * ) DIV - 99 AS col1
----
-3
0

skipif mysql # not compatible
query II rowsort label-526
SELECT - 50 - + - MIN ( ALL + - 23 ) + + 70 AS col0, - COUNT ( * ) / - 99 AS col1
----
-3
0

query II rowsort
SELECT 48, 48 col2
----
48
48

query I rowsort
SELECT - + 39 * - - 54 + - 42 * - 14
----
-1518

query I rowsort
SELECT + - NULLIF ( + + 29, 73 ) AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-530
SELECT + 77 * - MIN( - 55 ) * - COALESCE ( 72, - NULLIF ( - CAST( + 56 AS SIGNED ), COUNT( * ) * + ( CASE 79 WHEN + 54 * 57 THEN - 72 END ) ) * 61 - + - 87 - - 0 )
----
-304920

skipif mysql # not compatible
query I rowsort label-530
SELECT + 77 * - MIN ( - 55 ) * - COALESCE ( 72, - NULLIF ( - CAST ( + 56 AS INTEGER ), COUNT ( * ) * + ( CASE 79 WHEN + 54 * 57 THEN - 72 END ) ) * 61 - + - 87 - - 0 )
----
-304920

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL + 17 * + ( - COALESCE ( + NULLIF ( 3, 44 ), + 54 * - - 5 + MIN( 62 ) * + 30, - 60 * - 36 * - 80 + + 28 ) ) + 13 * - + 22 + 2
----
-335

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL + 17 * + ( - COALESCE ( + NULLIF ( 3, 44 ), + 54 * - - 5 + MIN ( 62 ) * + 30, - 60 * - 36 * - 80 + + 28 ) ) + 13 * - + 22 + 2
----
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT ALL - COUNT( 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-532
SELECT ALL - COUNT ( 86 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-533
SELECT ALL + ( COUNT( * ) ) col0, 40
----
1
40

skipif mysql # not compatible
query II rowsort label-533
SELECT ALL + ( COUNT ( * ) ) col0, 40
----
1
40

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

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT ALL + COUNT( * ) * + - 92 - 76 + - - 32, 62 AS col1
----
-136
62

skipif mysql # not compatible
query II rowsort label-535
SELECT ALL + COUNT ( * ) * + - 92 - 76 + - - 32, 62 AS col1
----
-136
62

query I rowsort
SELECT ALL - 88 * 11 * - 51 - - 6 + - 31 + - - COALESCE ( + 15, + 14 ) AS col1
----
49358

query I rowsort
SELECT ALL 96 + 11 AS col2
----
107

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

query I rowsort
SELECT - 10 * - 79 AS col0
----
790

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT ALL + CASE + COUNT( * ) WHEN + + ( + COALESCE ( 40, - 51, + - 63 ) ) + + 87 THEN + 14 END * + 84 / - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL + CASE + COUNT ( * ) WHEN + + ( + COALESCE ( 40, - 51, + - 63 ) ) + + 87 THEN + 14 END * + 84 / - 72 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-541
SELECT ALL + CAST( ( 85 ) AS SIGNED ) * MAX( DISTINCT + + 88 ) col1, - 97
----
7480
-97

skipif mysql # not compatible
query II rowsort label-541
SELECT ALL + CAST ( ( 85 ) AS INTEGER ) * MAX ( DISTINCT + + 88 ) col1, - 97
----
7480
-97

query I rowsort
SELECT ALL + 45 - - - 24 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-543
SELECT ALL COUNT( * ) * - 28 AS col0, + 52 * 11 * 49 DIV 87 * 28
----
-28
9016

skipif mysql # not compatible
query II rowsort label-543
SELECT ALL COUNT ( * ) * - 28 AS col0, + 52 * 11 * 49 / 87 * 28
----
-28
9016

query I rowsort
SELECT + ( + + 74 ) - + 67 * 60 AS col1
----
-3946

query I rowsort
SELECT DISTINCT 45 - - 70 + ( 78 ) AS col1
----
193

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

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

query I rowsort
SELECT 80 * - 17 * 13
----
-17680

query I rowsort
SELECT COALESCE ( + 21, 54 ) * + 73 AS col2
----
1533

query I rowsort
SELECT DISTINCT 91 * 80 AS col0
----
7280

query I rowsort
SELECT DISTINCT 2 * - 12
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT - 98 + 92 * ( + 64 ) * 99 * - COUNT( * ) + 36 + + 5
----
-582969

skipif mysql # not compatible
query I rowsort label-551
SELECT - 98 + 92 * ( + 64 ) * 99 * - COUNT ( * ) + 36 + + 5
----
-582969

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT ALL COUNT( DISTINCT 71 ) + + 17 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL COUNT ( DISTINCT 71 ) + + 17 AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-553
SELECT - ( - + 27 ) * COUNT( * ) DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-553
SELECT - ( - + 27 ) * COUNT ( * ) / 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT - 62 * + 33 * + + CASE - 82 WHEN + + 20 THEN MAX( ALL - 16 ) * - 41 * COUNT( * ) ELSE NULL END + + + NULLIF ( - 37, + 65 * 11 * - - 55 ) * + ( - 68 ) + - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-554
SELECT - 62 * + 33 * + + CASE - 82 WHEN + + 20 THEN MAX ( ALL - 16 ) * - 41 * COUNT ( * ) ELSE NULL END + + + NULLIF ( - 37, + 65 * 11 * - - 55 ) * + ( - 68 ) + - 26 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 13 + 99 AS col2
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-556
SELECT DISTINCT + - 4 DIV MIN( DISTINCT + + 63 )
----
0

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT + - 4 / MIN ( DISTINCT + + 63 )
----
0

query I rowsort
SELECT 19 * 44 + - 21
----
815

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT ALL - 97 + + 1 + + 67 + - ( - ( 44 ) ) * - + 38 + ( + + 75 ) * - 91 * + 16 + + COUNT( * ) * + + 71
----
-110830

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL - 97 + + 1 + + 67 + - ( - ( 44 ) ) * - + 38 + ( + + 75 ) * - 91 * + 16 + + COUNT ( * ) * + + 71
----
-110830

onlyif mysql # aggregate syntax: 
query II rowsort label-559
SELECT + ( + 72 ), MIN( DISTINCT 73 ) AS col0
----
72
73

skipif mysql # not compatible
query II rowsort label-559
SELECT + ( + 72 ), MIN ( DISTINCT 73 ) AS col0
----
72
73

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL 84 + + + MAX( + 75 ) + - - ( 55 ) + COALESCE ( - 38, + 49 ) + - ( - - 54 ) * ( + - SUM( - 13 ) )
----
-526

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL 84 + + + MAX ( + 75 ) + - - ( 55 ) + COALESCE ( - 38, + 49 ) + - ( - - 54 ) * ( + - SUM ( - 13 ) )
----
-526

query I rowsort
SELECT DISTINCT + + 4 * COALESCE ( 5, 72 ) col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-562
SELECT 11 / CAST( NULL AS SIGNED ) * - 65 * + MAX( ALL + 39 ) * + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-562
SELECT 11 / CAST ( NULL AS INTEGER ) * - 65 * + MAX ( ALL + 39 ) * + 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT - MAX( DISTINCT - 18 ) - + SUM( - - 82 ) * + MIN( + 36 )
----
-2934

skipif mysql # not compatible
query I rowsort label-563
SELECT - MAX ( DISTINCT - 18 ) - + SUM ( - - 82 ) * + MIN ( + 36 )
----
-2934

query I rowsort
SELECT - COALESCE ( + + 81, 6 )
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT DISTINCT - 3 + 28 - - 99 * - 63 - - 78 + 58 + 94 * + - 48 + ( - 38 ) DIV + 80 AS col0
----
-10588

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT - 3 + 28 - - 99 * - 63 - - 78 + 58 + 94 * + - 48 + ( - 38 ) / + 80 AS col0
----
-10588

query I rowsort
SELECT NULLIF ( - 44, + 16 ) * - 13
----
572

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ALL + - MIN( 25 ) - 99 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL + - MIN ( 25 ) - 99 AS col1
----
-124

query I rowsort
SELECT 45 * - + 58
----
-2610

query I rowsort
SELECT 55 - 44 * - + ( - - 2 ) AS col2
----
143

query II rowsort
SELECT DISTINCT 63 AS col2, + 75 AS col0
----
63
75

query I rowsort
SELECT ALL + 77 - - NULLIF ( 78, 76 ) AS col1
----
155

query I rowsort
SELECT DISTINCT + 32 * + ( 90 ) * - 59
----
-169920

query II rowsort
SELECT - 22 AS col1, 79 * - 49 col1
----
-22
-3871

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

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

query I rowsort
SELECT 61 * + 37 * - 5
----
-11285

query I rowsort
SELECT DISTINCT + 32 * + - NULLIF ( - - 69, - 95 )
----
-2208

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ( COUNT( * ) ) * 75 + + - 55 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-579
SELECT ( COUNT ( * ) ) * 75 + + - 55 AS col0
----
20

query I rowsort
SELECT 89 + - 93 AS col0
----
-4

query II rowsort
SELECT ALL 46, 13 AS col2
----
46
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-582
SELECT ALL - CAST( NULL AS SIGNED ), - 99 * CASE + SUM( + 13 ) WHEN + 93 + - - 88 THEN CASE + 45 WHEN - 2 + 64 * - 64 THEN NULL ELSE + - NULLIF ( + ( + COUNT( * ) ), - 52 ) * ( + + 53 ) + 85 + - 97 END WHEN + - 35 THEN + CAST( NULL AS DECIMAL ) * - + 77 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-582
SELECT ALL - CAST ( NULL AS INTEGER ), - 99 * CASE + SUM ( + 13 ) WHEN + 93 + - - 88 THEN CASE + 45 WHEN - 2 + 64 * - 64 THEN NULL ELSE + - NULLIF ( + ( + COUNT ( * ) ), - 52 ) * ( + + 53 ) + 85 + - 97 END WHEN + - 35 THEN + CAST ( NULL AS REAL ) * - + 77 END
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-583
SELECT NULLIF ( - 53, + + COUNT( * ) ) DIV - 5, CASE - 11 WHEN CAST( NULL AS SIGNED ) * + - 6 + + 96 + - 67 + MIN( ALL + 33 ) + + 32 * + 0 * 92 - 97 THEN NULL WHEN + + 98 * 73 * - 32 + + 70 THEN NULL WHEN + CAST( NULL AS SIGNED ) * - COALESCE ( 94, + COUNT( * ) ) * + CASE + MIN( - + 45 ) WHEN + - 82 THEN NULL WHEN 75 DIV 91 * - 12 THEN CASE - 70 WHEN - 68 THEN + CASE + - 58 WHEN + COUNT( * ) THEN + + CAST( 36 AS SIGNED ) * + 9 WHEN - 80 THEN NULLIF ( - 18, - COUNT( * ) + 13 * - 60 ) + 86 WHEN - SUM( + 4 ) DIV - 13 THEN NULL ELSE NULL END END ELSE NULL END - CAST( NULL AS SIGNED ) THEN 13 ELSE - 40 END AS col0
----
10
-40

skipif mysql # not compatible
query II rowsort label-583
SELECT NULLIF ( - 53, + + COUNT ( * ) ) / - 5, CASE - 11 WHEN CAST ( NULL AS INTEGER ) * + - 6 + + 96 + - 67 + MIN ( ALL + 33 ) + + 32 * + 0 * 92 - 97 THEN NULL WHEN + + 98 * 73 * - 32 + + 70 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * - COALESCE ( 94, + COUNT ( * ) ) * + CASE + MIN ( - + 45 ) WHEN + - 82 THEN NULL WHEN 75 / 91 * - 12 THEN CASE - 70 WHEN - 68 THEN + CASE + - 58 WHEN + COUNT ( * ) THEN + + CAST ( 36 AS INTEGER ) * + 9 WHEN - 80 THEN NULLIF ( - 18, - COUNT ( * ) + 13 * - 60 ) + 86 WHEN - SUM ( + 4 ) / - 13 THEN NULL ELSE NULL END END ELSE NULL END - CAST ( NULL AS INTEGER ) THEN 13 ELSE - 40 END AS col0
----
10
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT ALL 43 + - 1 * + - COUNT( + - 6 )
----
44

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL 43 + - 1 * + - COUNT ( + - 6 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT ALL + + 27 + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL + + 27 + + COUNT ( * )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT ALL - 67 DIV 36
----
-1

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - 67 / 36
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-587
SELECT 65 DIV + 21 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-587
SELECT 65 / + 21 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-588
SELECT CAST( + 15 AS SIGNED ) * - - 71 - + 36 AS col2
----
1029

skipif mysql # not compatible
query I rowsort label-588
SELECT CAST ( + 15 AS INTEGER ) * - - 71 - + 36 AS col2
----
1029

query I rowsort
SELECT ALL + 76 + - + 88 + + 34 - + + 57
----
-35

query I rowsort
SELECT DISTINCT 11 * - + 71
----
-781

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

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

query I rowsort
SELECT + CASE 17 WHEN + 61 THEN 1 + + 24 END
----
NULL

query II rowsort
SELECT + - 26, - 56 AS col0
----
-26
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT + - 58 * + 27 - + - 19 + + MIN( ALL - 5 ) + - + 11 * - + 49
----
-1013

skipif mysql # not compatible
query I rowsort label-594
SELECT + - 58 * + 27 - + - 19 + + MIN ( ALL - 5 ) + - + 11 * - + 49
----
-1013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-595
SELECT CAST( NULL AS SIGNED ) - 91 - - 27 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT CAST ( NULL AS INTEGER ) - 91 - - 27 col0
----
NULL

query II rowsort
SELECT 1, 96 AS col0
----
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL + MIN( ALL - - 21 ) - - 93 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL + MIN ( ALL - - 21 ) - - 93 AS col0
----
114

query II rowsort
SELECT - ( + 2 ) * 74 AS col0, 65 + 25
----
-148
90

query I rowsort
SELECT 82 + - + 46 AS col1
----
36

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

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL - 18 * + COUNT ( ALL - 83 ) AS col0
----
-18

query I rowsort
SELECT 64 + - 7
----
57

query I rowsort
SELECT 71 * 43 AS col0
----
3053

query I rowsort
SELECT 74 + - 92 AS col0
----
-18

query I rowsort
SELECT ALL 86 * + 19
----
1634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-605
SELECT 90 + + MIN( - - 57 ) + - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT 90 + + MIN ( - - 57 ) + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 10 * + - ( - 99 ) AS col0
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT - 16 * + COUNT( * ) * - + 65 col2
----
1040

skipif mysql # not compatible
query I rowsort label-607
SELECT - 16 * + COUNT ( * ) * - + 65 col2
----
1040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT - CAST( + 45 AS SIGNED ) + - 95 AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-608
SELECT - CAST ( + 45 AS INTEGER ) + - 95 AS col0
----
-140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-609
SELECT + CASE + CAST( NULL AS DECIMAL ) WHEN - 74 * - - SUM( DISTINCT - 41 ) + + 96 * - 43 + + 14 - 45 THEN 75 ELSE NULL END * - + 3 - - + 60, 28 AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-609
SELECT + CASE + CAST ( NULL AS REAL ) WHEN - 74 * - - SUM ( DISTINCT - 41 ) + + 96 * - 43 + + 14 - 45 THEN 75 ELSE NULL END * - + 3 - - + 60, 28 AS col1
----
NULL
28

query I rowsort
SELECT - 50 + - 68 + 64
----
-54

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

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

query I rowsort
SELECT DISTINCT 27 + - ( - ( - - 71 ) ) * - + NULLIF ( - 25, ( 13 ) ) - + 68
----
1734

query I rowsort
SELECT ALL CASE 25 WHEN - 66 + - 90 THEN NULL WHEN + 7 THEN - 40 * 59 * + 83 * + - 65 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-614
SELECT - CAST( + NULLIF ( + - 28, - - CAST( NULL AS SIGNED ) + - + 33 + + 34 * + 65 * - 42 ) AS SIGNED ) + + 80 - - + 50 col1
----
158

skipif mysql # not compatible
query I rowsort label-614
SELECT - CAST ( + NULLIF ( + - 28, - - CAST ( NULL AS INTEGER ) + - + 33 + + 34 * + 65 * - 42 ) AS INTEGER ) + + 80 - - + 50 col1
----
158

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-616
SELECT ALL + 83 * COUNT( * ), + 79 AS col0
----
83
79

skipif mysql # not compatible
query II rowsort label-616
SELECT ALL + 83 * COUNT ( * ), + 79 AS col0
----
83
79

query I rowsort
SELECT DISTINCT COALESCE ( 76, + + 90 * - 1 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT - 26 + + 43 * - NULLIF ( 61, CASE + 65 WHEN + 92 THEN NULL WHEN + 74 + - 63 THEN + 90 * + 66 - + 98 ELSE 16 END * 21 * - CAST( NULL AS SIGNED ) + 24 ) + - COUNT( * ) * + - ( - 50 ) AS col1
----
-2699

skipif mysql # not compatible
query I rowsort label-618
SELECT - 26 + + 43 * - NULLIF ( 61, CASE + 65 WHEN + 92 THEN NULL WHEN + 74 + - 63 THEN + 90 * + 66 - + 98 ELSE 16 END * 21 * - CAST ( NULL AS INTEGER ) + 24 ) + - COUNT ( * ) * + - ( - 50 ) AS col1
----
-2699

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL + 80 + - 83 * 62 + COUNT( * ) + - COUNT( * ) * - 73
----
-4992

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL + 80 + - 83 * 62 + COUNT ( * ) + - COUNT ( * ) * - 73
----
-4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT 10 DIV - + COUNT( * ) + + - 28 + 25 + - 6 + - COUNT( * ) * - - ( ( - 71 ) ) - + 52 * 65 * + 75 + COUNT( 77 ) col1
----
-253447

skipif mysql # not compatible
query I rowsort label-620
SELECT 10 / - + COUNT ( * ) + + - 28 + 25 + - 6 + - COUNT ( * ) * - - ( ( - 71 ) ) - + 52 * 65 * + 75 + COUNT ( 77 ) col1
----
-253447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT DISTINCT - + CAST( + 82 AS SIGNED ) * + - 68 * COUNT( * ) * COALESCE ( COUNT( * ), - - 19 - - COALESCE ( + 54, + + ( 82 ) * 81 ) ) + - + 82
----
5494

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT - + CAST ( + 82 AS INTEGER ) * + - 68 * COUNT ( * ) * COALESCE ( COUNT ( * ), - - 19 - - COALESCE ( + 54, + + ( 82 ) * 81 ) ) + - + 82
----
5494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-622
SELECT ALL + 41 * - 94 * + CASE + - 13 WHEN - - COUNT( * ) + + 47 + + - 91 * + 66 + 49 - + 8 * ( + + 1 ) THEN 72 WHEN + ( - 19 ) + - + 47 + + 58 / - + 61 THEN 30 WHEN 72 THEN NULL END + + CAST( - 94 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL + 41 * - 94 * + CASE + - 13 WHEN - - COUNT ( * ) + + 47 + + - 91 * + 66 + 49 - + 8 * ( + + 1 ) THEN 72 WHEN + ( - 19 ) + - + 47 + + 58 / - + 61 THEN 30 WHEN 72 THEN NULL END + + CAST ( - 94 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-623
SELECT - COUNT( * ) DIV - - 66 * + - 30 * + 61 + - + CAST( - + 56 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-623
SELECT - COUNT ( * ) / - - 66 * + - 30 * + 61 + - + CAST ( - + 56 AS INTEGER ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL - SUM( DISTINCT 44 ) * + ( + 56 ) + - + 67 + - 48
----
-2579

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL - SUM ( DISTINCT 44 ) * + ( + 56 ) + - + 67 + - 48
----
-2579

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT ALL 99 * + 95 - COUNT( * ) + COUNT( * ) * 15 * 27 AS col0
----
9809

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL 99 * + 95 - COUNT ( * ) + COUNT ( * ) * 15 * 27 AS col0
----
9809

onlyif mysql # DIV for integer division: 
query I rowsort label-626
SELECT DISTINCT 40 DIV + 34 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT 40 / + 34 AS col2
----
1

query I rowsort
SELECT + + 0 * + 27
----
0

query I rowsort
SELECT ALL + COALESCE ( + 85, - + 53 )
----
85

query I rowsort
SELECT ALL 7 * 23 - + 59 AS col1
----
102

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

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT + 45 / - COUNT ( * ) col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT - + ( 96 ) * + SUM( ALL 33 )
----
-3168

skipif mysql # not compatible
query I rowsort label-631
SELECT - + ( 96 ) * + SUM ( ALL 33 )
----
-3168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-632
SELECT - 85 DIV CASE - - 72 WHEN + 7 + - 8 + - - 90 * + 34 * - + ( - + COUNT( * ) ) * 7 THEN NULL ELSE + 56 END
----
-1

skipif mysql # not compatible
query I rowsort label-632
SELECT - 85 / CASE - - 72 WHEN + 7 + - 8 + - - 90 * + 34 * - + ( - + COUNT ( * ) ) * 7 THEN NULL ELSE + 56 END
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-633
SELECT + 55 DIV + 27 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-633
SELECT + 55 / + 27 AS col0
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT ALL + - 41 * - - 46 + 59 + + 94 + + 26 * COUNT( * ) - - + ( - + CASE - + 94 WHEN - + 21 * - ( 46 ) THEN CAST( - + 4 AS SIGNED ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL + - 41 * - - 46 + 59 + + 94 + + 26 * COUNT ( * ) - - + ( - + CASE - + 94 WHEN - + 21 * - ( 46 ) THEN CAST ( - + 4 AS INTEGER ) END )
----
NULL

query II rowsort
SELECT DISTINCT 47 * ( + 54 ) - - 28 AS col2, + 64 * + 51 col1
----
2566
3264

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

query I rowsort
SELECT + 22 * + 29 AS col1
----
638

query I rowsort
SELECT ALL 28 * - 96
----
-2688

query I rowsort
SELECT - 34 * + 58 * + 87 * 1 * + - 76
----
13038864

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

skipif mysql # not compatible
query I rowsort label-641
SELECT SUM ( DISTINCT - 94 )
----
-94

query I rowsort
SELECT + ( + 79 ) + - 57 AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT + 86 DIV - 71
----
-1

skipif mysql # not compatible
query I rowsort label-643
SELECT + 86 / - 71
----
-1

query I rowsort
SELECT + 92 + 89 - 38 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT SUM( DISTINCT - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-645
SELECT SUM ( DISTINCT - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL MIN( ALL - 25 ) + + 73
----
48

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL MIN ( ALL - 25 ) + + 73
----
48

query I rowsort
SELECT ALL 33 + - 67
----
-34

query I rowsort
SELECT + 39 - 74 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT + MIN( DISTINCT + 89 ) / + + COUNT( * ) - CAST( NULL AS SIGNED ) + - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT + MIN ( DISTINCT + 89 ) / + + COUNT ( * ) - CAST ( NULL AS INTEGER ) + - - 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-650
SELECT + CAST( NULL AS SIGNED ) - - + 84 / - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT + CAST ( NULL AS INTEGER ) - - + 84 / - 93 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-652
SELECT ALL - 51 + COUNT( * ) * + + CAST( NULL AS DECIMAL ) * + + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL - 51 + COUNT ( * ) * + + CAST ( NULL AS REAL ) * + + 19 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-653
SELECT + COUNT ( * ) / - 24 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-654
SELECT - 26 + + ( + + CAST( ( - 43 ) AS SIGNED ) ) + + 5 col1
----
-64

skipif mysql # not compatible
query I rowsort label-654
SELECT - 26 + + ( + + CAST ( ( - 43 ) AS INTEGER ) ) + + 5 col1
----
-64

query I rowsort
SELECT DISTINCT 32 + 55 AS col2
----
87

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

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

query I rowsort
SELECT ALL 8 + + 29
----
37

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

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

query I rowsort
SELECT - + 54 * - 76 AS col1
----
4104

query I rowsort
SELECT ALL + 48 + - - 36 + 40 * 74 * + 98 AS col1
----
290164

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT MAX( DISTINCT + 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-661
SELECT MAX ( DISTINCT + 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-662
SELECT ALL - COUNT( * ) DIV 75 + NULLIF ( 45, AVG ( DISTINCT + 94 ) ) - + - 57 + - 17 AS col2, + 63 + - + MIN( + 25 ) col1
----
85
38

skipif mysql # not compatible
query II rowsort label-662
SELECT ALL - COUNT ( * ) / 75 + NULLIF ( 45, AVG ( DISTINCT + 94 ) ) - + - 57 + - 17 AS col2, + 63 + - + MIN ( + 25 ) col1
----
85
38

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT - 90 * + 15 + - - 89 * + COUNT( * )
----
-1261

skipif mysql # not compatible
query I rowsort label-663
SELECT - 90 * + 15 + - - 89 * + COUNT ( * )
----
-1261

query I rowsort
SELECT + 33 + + 13
----
46

query I rowsort
SELECT - + 54 * + 31 * - 34
----
56916

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-666
SELECT ALL - CAST( NULL AS DECIMAL ) * - + COUNT( * ) * - 63 * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL - CAST ( NULL AS REAL ) * - + COUNT ( * ) * - 63 * 73 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 16 * 94
----
-1504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-668
SELECT - + COUNT( * ) * + 23 - + 76 + 9 + 62 + - 35 DIV + 89 * 13 + + + 71 + - 43 * - 11 * + 48 + 48
----
22795

skipif mysql # not compatible
query I rowsort label-668
SELECT - + COUNT ( * ) * + 23 - + 76 + 9 + 62 + - 35 / + 89 * 13 + + + 71 + - 43 * - 11 * + 48 + 48
----
22795

query I rowsort
SELECT - - 77 + + 29
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - + ( - - 86 ) + - + MIN( 78 ) + + + MIN( ALL - - 91 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-670
SELECT - + ( - - 86 ) + - + MIN ( 78 ) + + + MIN ( ALL - - 91 ) AS col2
----
-73

query I rowsort
SELECT 54 + NULLIF ( 58, - 72 + + 16 ) AS col2
----
112

query I rowsort
SELECT 61 * - 23
----
-1403

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT SUM( + 14 ) - - ( - + CASE 51 WHEN 43 THEN - 58 + 14 - - COUNT( * ) WHEN + 81 + + 54 + - 72 THEN NULL ELSE + 33 END )
----
-19

skipif mysql # not compatible
query I rowsort label-673
SELECT SUM ( + 14 ) - - ( - + CASE 51 WHEN 43 THEN - 58 + 14 - - COUNT ( * ) WHEN + 81 + + 54 + - 72 THEN NULL ELSE + 33 END )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-674
SELECT ALL + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) / - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) / - - 91
----
NULL

query I rowsort
SELECT DISTINCT 98 + + 21 * - 0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL 74 + + COUNT( * ) col0
----
75

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL 74 + + COUNT ( * ) col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT MAX( - 33 ) + - - 99
----
66

skipif mysql # not compatible
query I rowsort label-677
SELECT MAX ( - 33 ) + - - 99
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-678
SELECT ALL 74, ( COUNT( * ) ) + + ( + CAST( - 99 AS SIGNED ) ) + 37 + + 63 AS col2
----
74
2

skipif mysql # not compatible
query II rowsort label-678
SELECT ALL 74, ( COUNT ( * ) ) + + ( + CAST ( - 99 AS INTEGER ) ) + 37 + + 63 AS col2
----
74
2

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

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

query I rowsort
SELECT ALL 27 * + 96
----
2592

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

skipif mysql # not compatible
query I rowsort label-681
SELECT 89 * + 80 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 95 + - 69 * - - 27 * ( - 23 )
----
42944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT CAST( NULL AS SIGNED ) + + 93 + + 14 + - MIN( ALL 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT CAST ( NULL AS INTEGER ) + + 93 + + 14 + - MIN ( ALL 93 )
----
NULL

query II rowsort
SELECT DISTINCT 46 AS col0, - 35 + - 2 AS col0
----
46
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-685
SELECT DISTINCT 91 - - NULLIF ( 16, + 22 + 33 ) + 92 DIV + + NULLIF ( - 99, - 29 * + CAST( NULL AS DECIMAL ) + - + MIN( 2 ) ) + + 10 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT 91 - - NULLIF ( 16, + 22 + 33 ) + 92 / + + NULLIF ( - 99, - 29 * + CAST ( NULL AS REAL ) + - + MIN ( 2 ) ) + + 10 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT ALL + COUNT( * ) * - 96 * - + 27
----
2592

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL + COUNT ( * ) * - 96 * - + 27
----
2592

query I rowsort
SELECT - 65 * 7
----
-455

onlyif mysql # DIV for integer division: 
query II rowsort label-688
SELECT ALL 34 DIV 31 AS col0, - 99 col1
----
1
-99

skipif mysql # not compatible
query II rowsort label-688
SELECT ALL 34 / 31 AS col0, - 99 col1
----
1
-99

query I rowsort
SELECT DISTINCT + NULLIF ( - 82, + + 21 ) AS col1
----
-82

query I rowsort
SELECT ALL - 36 - + 87 AS col1
----
-123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT COUNT( * ) + + - MIN( DISTINCT - 88 ) * + ( + + 39 ) + + COUNT( * ) AS col0
----
3434

skipif mysql # not compatible
query I rowsort label-692
SELECT COUNT ( * ) + + - MIN ( DISTINCT - 88 ) * + ( + + 39 ) + + COUNT ( * ) AS col0
----
3434

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

skipif mysql # not compatible
query I rowsort label-693
SELECT - COUNT ( * ) * - 89
----
89

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

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

query III rowsort
SELECT - 84 col2, - 43, 75 AS col1
----
-84
-43
75

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT 11 + + COUNT( * ) + - - 63 - 5 * + 66 AS col1
----
-255

skipif mysql # not compatible
query I rowsort label-696
SELECT 11 + + COUNT ( * ) + - - 63 - 5 * + 66 AS col1
----
-255

query I rowsort
SELECT - 8 * + 99 * - + 2
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT + COUNT( * ) + - COUNT( * ) * - + 72 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-698
SELECT + COUNT ( * ) + - COUNT ( * ) * - + 72 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-699
SELECT CAST( + COUNT( * ) AS SIGNED ) * - 37 * - - CAST( NULL AS SIGNED ) * CASE - 73 WHEN - 10 THEN NULL WHEN + 80 * + 63 + - AVG ( + ( 18 ) ) THEN - 69 + - 98 * - + MIN( 19 ) WHEN + 93 * - MIN( + - 38 ) + - 22 + + - 33 THEN + - ( - - CASE - 1 WHEN + - ( + 81 ) + + 21 THEN + - 8 WHEN - 0 * - ( + + ( - + COUNT( - 11 ) ) ) THEN NULL ELSE NULL END ) ELSE + - 26 + + - 92 END * + + 11 + - 71 + COALESCE ( - 59, - AVG ( - 23 ) / - COUNT( * ) + 27 + - COALESCE ( - 94 + - 92, + 25 * 46 - + 41 / 44, 74, 95 ) * ( - 57 ) ) + 40 + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * - 37 * - - CAST ( NULL AS INTEGER ) * CASE - 73 WHEN - 10 THEN NULL WHEN + 80 * + 63 + - AVG ( + ( 18 ) ) THEN - 69 + - 98 * - + MIN ( 19 ) WHEN + 93 * - MIN ( + - 38 ) + - 22 + + - 33 THEN + - ( - - CASE - 1 WHEN + - ( + 81 ) + + 21 THEN + - 8 WHEN - 0 * - ( + + ( - + COUNT ( - 11 ) ) ) THEN NULL ELSE NULL END ) ELSE + - 26 + + - 92 END * + + 11 + - 71 + COALESCE ( - 59, - AVG ( - 23 ) / - COUNT ( * ) + 27 + - COALESCE ( - 94 + - 92, + 25 * 46 - + 41 / 44, 74, 95 ) * ( - 57 ) ) + 40 + 64 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 96 * + ( 24 )
----
2304

query I rowsort
SELECT 73 * - 81
----
-5913

query I rowsort
SELECT 9 + + + 20
----
29

query I rowsort
SELECT ALL + 87 + + 4 - 90 * 29 * + 67 * + 15
----
-2622959

query I rowsort
SELECT ALL - 23 + + 44
----
21

query I rowsort
SELECT DISTINCT - 42 + + 13 * + 76 AS col0
----
946

onlyif mysql # aggregate syntax: 
query II rowsort label-706
SELECT DISTINCT ( - - 13 ) + - + 42 * - 59 * + 98 AS col2, 59 * COALESCE ( + - SUM( - 31 ), + + 92 )
----
242857
1829

skipif mysql # not compatible
query II rowsort label-706
SELECT DISTINCT ( - - 13 ) + - + 42 * - 59 * + 98 AS col2, 59 * COALESCE ( + - SUM ( - 31 ), + + 92 )
----
242857
1829

query I rowsort
SELECT DISTINCT + 69 + - 50 * 82 * - - 78 + - 80 AS col2
----
-319811

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-709
SELECT NULLIF ( + CAST( - + 13 AS SIGNED ), - + 12 * CAST( + - 57 AS SIGNED ) + + 67 - - 75 + - COUNT( * ) ) + + - 47
----
-60

skipif mysql # not compatible
query I rowsort label-709
SELECT NULLIF ( + CAST ( - + 13 AS INTEGER ), - + 12 * CAST ( + - 57 AS INTEGER ) + + 67 - - 75 + - COUNT ( * ) ) + + - 47
----
-60

query I rowsort
SELECT 34 * - 86 * + + ( - 32 )
----
93568

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT DISTINCT + 34 DIV 22
----
1

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + 34 / 22
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL + COUNT( * ) - - 21
----
22

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL + COUNT ( * ) - - 21
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT ALL COUNT( * ) * + 91 * - - 4
----
364

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL COUNT ( * ) * + 91 * - - 4
----
364

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-714
SELECT 24 - + 16 AS col0, - CAST( NULL AS SIGNED )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-714
SELECT 24 - + 16 AS col0, - CAST ( NULL AS INTEGER )
----
8
NULL

query I rowsort
SELECT ALL COALESCE ( + + 63, 58 * + 38 + + + 44 ) * - + 87 - + 88 * + ( + 62 ) col1
----
-10937

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT ALL SUM( 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL SUM ( 29 ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-717
SELECT ALL NULLIF ( + 14, + COUNT( * ) DIV + 75 * - + 31 + 96 DIV CAST( + 42 AS SIGNED ) + + 14 * 51 ), - 5 DIV + 98 AS col0
----
14
0

skipif mysql # not compatible
query II rowsort label-717
SELECT ALL NULLIF ( + 14, + COUNT ( * ) / + 75 * - + 31 + 96 / CAST ( + 42 AS INTEGER ) + + 14 * 51 ), - 5 / + 98 AS col0
----
14
0

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

query I rowsort
SELECT + NULLIF ( 13, - 55 ) * + - 24
----
-312

query I rowsort
SELECT + 99 * 17 AS col2
----
1683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-721
SELECT DISTINCT 75 * - CAST( NULL AS SIGNED ) + - + ( + 76 ) + 14 - - - COUNT( * ) * + + 31 * - ( - 40 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT 75 * - CAST ( NULL AS INTEGER ) + - + ( + 76 ) + 14 - - - COUNT ( * ) * + + 31 * - ( - 40 ) AS col2
----
NULL

query II rowsort
SELECT + ( 35 ), + 26 AS col2
----
35
26

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

query II rowsort
SELECT + - 95 * 86, - 54 col1
----
-8170
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-725
SELECT - 37 * - MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - 6 DIV + ( - 29 ) * - 89, NULLIF ( 2, + - 69 ) DIV - + 32 + + COUNT( * ) + COALESCE ( 74, + COUNT( * ) * COUNT( * ) * - CAST( NULL AS SIGNED ) + + 0 * - CASE - COUNT( * ) WHEN - ( + + 51 ) THEN - 14 + 82 ELSE 23 END ) * + + 99 + + - CAST( + COALESCE ( - - 43, + 63 * - CAST( - COUNT( * ) AS SIGNED ) ) AS SIGNED ) + 72 DIV + + NULLIF ( 84, + 1 ) * + 46 * - 83 * COUNT( * ) * - - 70 AS col2
----
NULL
7284

skipif mysql # not compatible
query II rowsort label-725
SELECT - 37 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - 6 / + ( - 29 ) * - 89, NULLIF ( 2, + - 69 ) / - + 32 + + COUNT ( * ) + COALESCE ( 74, + COUNT ( * ) * COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 0 * - CASE - COUNT ( * ) WHEN - ( + + 51 ) THEN - 14 + 82 ELSE 23 END ) * + + 99 + + - CAST ( + COALESCE ( - - 43, + 63 * - CAST ( - COUNT ( * ) AS INTEGER ) ) AS INTEGER ) + 72 / + + NULLIF ( 84, + 1 ) * + 46 * - 83 * COUNT ( * ) * - - 70 AS col2
----
NULL
7284

onlyif mysql # DIV for integer division: 
query I rowsort label-726
SELECT DISTINCT 34 * 41 DIV + 83 + 90
----
106

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT 34 * 41 / + 83 + 90
----
106

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

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL COUNT ( * ) * COUNT ( * ) + - 25 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-728
SELECT NULLIF ( + COUNT( * ), + 12 ) / + CAST( NULL AS SIGNED ) - - + 22 * - 89 + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT NULLIF ( + COUNT ( * ), + 12 ) / + CAST ( NULL AS INTEGER ) - - + 22 * - 89 + + 6 AS col0
----
NULL

query I rowsort
SELECT ALL 69 * - 78 AS col2
----
-5382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-730
SELECT ALL 28 * + CAST( - 28 AS SIGNED )
----
-784

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL 28 * + CAST ( - 28 AS INTEGER )
----
-784

query I rowsort
SELECT + COALESCE ( + 15, - + 55, - - ( - + 45 ) + 89, 27 * + + 67 ) + + 94
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT ALL + MIN( ALL + - ( ( 59 ) ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL + MIN ( ALL + - ( ( 59 ) ) ) AS col2
----
-59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-734
SELECT ALL 40 * - + 4 + - 69 + - 52 * + 27 + + CAST( NULL AS SIGNED ) * - 18 * - 9 col1, 7 AS col0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-734
SELECT ALL 40 * - + 4 + - 69 + - 52 * + 27 + + CAST ( NULL AS INTEGER ) * - 18 * - 9 col1, 7 AS col0
----
NULL
7

query I rowsort
SELECT + 80 + - - 54 * - 39 AS col0
----
-2026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-736
SELECT 56 * + - 36 - - 53 * - - NULLIF ( CAST( + 41 AS SIGNED ), + 69 ) AS col1
----
157

skipif mysql # not compatible
query I rowsort label-736
SELECT 56 * + - 36 - - 53 * - - NULLIF ( CAST ( + 41 AS INTEGER ), + 69 ) AS col1
----
157

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

skipif mysql # not compatible
query I rowsort label-737
SELECT MAX ( DISTINCT - 9 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-738
SELECT + 71 * - CAST( 6 AS SIGNED ) * 43 + ( + - 43 )
----
-18361

skipif mysql # not compatible
query I rowsort label-738
SELECT + 71 * - CAST ( 6 AS INTEGER ) * 43 + ( + - 43 )
----
-18361

query I rowsort
SELECT + 73 * - 89 * + 29
----
-188413

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-741
SELECT DISTINCT COALESCE ( + - 58, - + CAST( 79 AS SIGNED ) ) * + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT COALESCE ( + - 58, - + CAST ( 79 AS INTEGER ) ) * + COUNT ( * )
----
-58

query I rowsort
SELECT - 26 + - 94
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT - COUNT( * ) * + ( 57 ), 94 + - 45 * + 86 AS col2
----
-57
-3776

skipif mysql # not compatible
query II rowsort label-743
SELECT - COUNT ( * ) * + ( 57 ), 94 + - 45 * + 86 AS col2
----
-57
-3776

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-746
SELECT - - 42 + + COUNT( * ) * - 42 * + 50 AS col1, - 69 AS col0
----
-2058
-69

skipif mysql # not compatible
query II rowsort label-746
SELECT - - 42 + + COUNT ( * ) * - 42 * + 50 AS col1, - 69 AS col0
----
-2058
-69

query II rowsort
SELECT - + 46 AS col2, - 49
----
-46
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT - 13 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-748
SELECT - 13 / + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT + 83 * + + 12 + SUM( DISTINCT + 89 ) + COALESCE ( - - 84, + 7 - - + ( + COUNT( * ) ) ) AS col2
----
1169

skipif mysql # not compatible
query I rowsort label-749
SELECT + 83 * + + 12 + SUM ( DISTINCT + 89 ) + COALESCE ( - - 84, + 7 - - + ( + COUNT ( * ) ) ) AS col2
----
1169

onlyif mysql # DIV for integer division: 
query I rowsort label-750
SELECT ALL - 45 DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - 45 / - 69 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-751
SELECT DISTINCT - + 19 + - COUNT( DISTINCT + + CAST( + 40 AS SIGNED ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT - + 19 + - COUNT ( DISTINCT + + CAST ( + 40 AS INTEGER ) ) AS col0
----
-20

query I rowsort
SELECT DISTINCT - 54 * - 36 AS col2
----
1944

query I rowsort
SELECT ALL 80 * + 79
----
6320

query I rowsort
SELECT - + 15 * - 40 AS col0
----
600

onlyif mysql # aggregate syntax: 
query II rowsort label-755
SELECT ALL - 4 + - CASE + ( + + 31 ) WHEN + - 33 THEN + CASE - - 78 WHEN - + 64 THEN 16 + - + COUNT( * ) * CASE + - 94 WHEN - 77 * - COUNT( * ) + ( - ( 79 ) ) * COUNT( * ) THEN NULL WHEN + + 52 THEN 32 * 1 + + + 14 / 62 + + - 6 ELSE NULL END - NULLIF ( 80, + - 67 ) END WHEN + 74 THEN + + 82 + - 83 + + 6 ELSE NULL END AS col2, - 56
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-755
SELECT ALL - 4 + - CASE + ( + + 31 ) WHEN + - 33 THEN + CASE - - 78 WHEN - + 64 THEN 16 + - + COUNT ( * ) * CASE + - 94 WHEN - 77 * - COUNT ( * ) + ( - ( 79 ) ) * COUNT ( * ) THEN NULL WHEN + + 52 THEN 32 * 1 + + + 14 / 62 + + - 6 ELSE NULL END - NULLIF ( 80, + - 67 ) END WHEN + 74 THEN + + 82 + - 83 + + 6 ELSE NULL END AS col2, - 56
----
NULL
-56

query I rowsort
SELECT ALL - - 94 + - 82 AS col0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-757
SELECT - - ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT - - ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT + 99 + - 50 + 57 - + + 73 * - - 82
----
-5880

query II rowsort
SELECT + 69, - 5 col2
----
69
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-760
SELECT ALL ( + ( 15 ) ) DIV - COUNT( * ) + + - NULLIF ( 40, 99 ) + 19 + 70 * - 48 AS col2
----
-3396

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL ( + ( 15 ) ) / - COUNT ( * ) + + - NULLIF ( 40, 99 ) + 19 + 70 * - 48 AS col2
----
-3396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-761
SELECT COUNT( + 94 ) * + COUNT( * ) + + CAST( + 39 AS SIGNED ) * - COUNT( * ) + + COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-761
SELECT COUNT ( + 94 ) * + COUNT ( * ) + + CAST ( + 39 AS INTEGER ) * - COUNT ( * ) + + COUNT ( * ) AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT MIN( + 22 ) DIV - 35 + - 70 + COUNT( * ) * + 89 + - + MAX( + + 8 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT MIN ( + 22 ) / - 35 + - 70 + COUNT ( * ) * + 89 + - + MAX ( + + 8 ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-763
SELECT ALL 51 DIV + - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL 51 / + - 95 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-764
SELECT ALL 67 DIV + COUNT( * ) + + 83 * + 32 * + 42 * - 64 col1
----
-7139261

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL 67 / + COUNT ( * ) + + 83 * + 32 * + 42 * - 64 col1
----
-7139261

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

query I rowsort
SELECT ( + 6 ) col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-767
SELECT ALL 16 * - + COUNT( * ) AS col1, - 37 DIV - - 7 AS col2
----
-16
-5

skipif mysql # not compatible
query II rowsort label-767
SELECT ALL 16 * - + COUNT ( * ) AS col1, - 37 / - - 7 AS col2
----
-16
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-768
SELECT - 4 * 81 + + CAST( 95 AS SIGNED ) AS col2, COUNT( * ) / + CAST( NULL AS SIGNED )
----
-229
NULL

skipif mysql # not compatible
query II rowsort label-768
SELECT - 4 * 81 + + CAST ( 95 AS INTEGER ) AS col2, COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
-229
NULL

query II rowsort
SELECT 61 * 10 + - + 33 * + + 1 AS col2, 55 * 74 AS col1
----
577
4070

query I rowsort
SELECT ALL + 99 * + + 45 * 76 * 91 - - 27 * - 1 * - + 9 + - 74 + + 33 * + + 20
----
30811609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-771
SELECT + 74 * - 92 * 62 DIV - + COUNT( * )
----
422096

skipif mysql # not compatible
query I rowsort label-771
SELECT + 74 * - 92 * 62 / - + COUNT ( * )
----
422096

query I rowsort
SELECT + 80 * - - 57 col1
----
4560

query II rowsort
SELECT ( 14 ) AS col1, 50
----
14
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ALL + SUM( DISTINCT - 51 ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL + SUM ( DISTINCT - 51 ) col1
----
-51

query I rowsort
SELECT + 44 * + 55 col0
----
2420

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-778
SELECT DISTINCT + ( + - COUNT( * ) ) AS col2, + COUNT( - + 33 ) - - ( - 86 )
----
-1
-85

skipif mysql # not compatible
query II rowsort label-778
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col2, + COUNT ( - + 33 ) - - ( - 86 )
----
-1
-85

query I rowsort
SELECT + 90 - + 15 * + 75
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT NULLIF ( COUNT( * ), - + 25 / + 59 - - 21 + - + 98 )
----
1

skipif mysql # not compatible
query I rowsort label-780
SELECT NULLIF ( COUNT ( * ), - + 25 / + 59 - - 21 + - + 98 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT CASE - 89 WHEN - 41 + COUNT( * ) + - + 85 THEN NULL ELSE - 82 END AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-781
SELECT CASE - 89 WHEN - 41 + COUNT ( * ) + - + 85 THEN NULL ELSE - 82 END AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT 98 * + - 75 * - + 99 + + COUNT( * ) - - ( + COUNT( * ) ) * - 95 + + 73 AS col1
----
727629

skipif mysql # not compatible
query I rowsort label-782
SELECT 98 * + - 75 * - + 99 + + COUNT ( * ) - - ( + COUNT ( * ) ) * - 95 + + 73 AS col1
----
727629

query I rowsort
SELECT + 84 * - 36 - 94 * - 3 AS col0
----
-2742

query I rowsort
SELECT - 54 + 39 + 29 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-785
SELECT DISTINCT - 49 * + 96 + - CAST( + - COUNT( * ) AS SIGNED ) - CASE + COUNT( * ) WHEN 41 THEN NULL WHEN + 83 - - + 68 THEN + + 8 END, + COUNT( * ) + - - 85 col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-785
SELECT DISTINCT - 49 * + 96 + - CAST ( + - COUNT ( * ) AS INTEGER ) - CASE + COUNT ( * ) WHEN 41 THEN NULL WHEN + 83 - - + 68 THEN + + 8 END, + COUNT ( * ) + - - 85 col0
----
NULL
86

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

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

query I rowsort
SELECT + 11 - + + 95
----
-84

query I rowsort
SELECT DISTINCT + + 54 * + 85 * + 80 + + ( + 17 )
----
367217

query I rowsort
SELECT DISTINCT - 66 + - 51 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL - + COUNT( * ) + + + 35
----
34

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL - + COUNT ( * ) + + + 35
----
34

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-792
SELECT DISTINCT - COUNT( * ) + 71 DIV + 35 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT - COUNT ( * ) + 71 / + 35 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-793
SELECT ALL - + COUNT( * ) + - 49 + - 55 + - + 21 + + 87 * + 6 * 5 AS col1, 46 + + + 87 - + 24 AS col1
----
2484
109

skipif mysql # not compatible
query II rowsort label-793
SELECT ALL - + COUNT ( * ) + - 49 + - 55 + - + 21 + + 87 * + 6 * 5 AS col1, 46 + + + 87 - + 24 AS col1
----
2484
109

query I rowsort
SELECT 96 - - 37
----
133

query I rowsort
SELECT - - 55 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-796
SELECT DISTINCT - - COUNT( ALL - - CAST( 98 AS SIGNED ) ) + 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT - - COUNT ( ALL - - CAST ( 98 AS INTEGER ) ) + 0 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-797
SELECT MIN( - ( + ( - 37 ) ) ) * 53 * MAX( 79 ), - 62 AS col1
----
154919
-62

skipif mysql # not compatible
query II rowsort label-797
SELECT MIN ( - ( + ( - 37 ) ) ) * 53 * MAX ( 79 ), - 62 AS col1
----
154919
-62

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

query I rowsort
SELECT ALL 28 - - - 92
----
-64

query I rowsort
SELECT 79 + - 56 col1
----
23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-802
SELECT 68 AS col0, ( - - COALESCE ( + 40, - - NULLIF ( + 19, + CASE + COUNT( * ) WHEN + 37 - + ( 75 ) THEN NULL ELSE - 83 END ) + COUNT( * ) + + 5 + - 1 - 69 DIV - 78 * - COUNT( * ) ) ) * - 14 + + 18 AS col0
----
68
-542

skipif mysql # not compatible
query II rowsort label-802
SELECT 68 AS col0, ( - - COALESCE ( + 40, - - NULLIF ( + 19, + CASE + COUNT ( * ) WHEN + 37 - + ( 75 ) THEN NULL ELSE - 83 END ) + COUNT ( * ) + + 5 + - 1 - 69 / - 78 * - COUNT ( * ) ) ) * - 14 + + 18 AS col0
----
68
-542

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT 93 DIV - 2 + 27 * 31 AS col0
----
791

skipif mysql # not compatible
query I rowsort label-803
SELECT 93 / - 2 + 27 * 31 AS col0
----
791

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT COUNT( * ) + + 48 - + COUNT( DISTINCT - - 49 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-804
SELECT COUNT ( * ) + + 48 - + COUNT ( DISTINCT - - 49 ) col2
----
48

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

onlyif mysql # aggregate syntax: 
query II rowsort label-806
SELECT 66 * - 73 + - - COUNT( * ) AS col0, ( + COUNT( * ) )
----
-4817
1

skipif mysql # not compatible
query II rowsort label-806
SELECT 66 * - 73 + - - COUNT ( * ) AS col0, ( + COUNT ( * ) )
----
-4817
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-809
SELECT COUNT( * ) + + 19 + CASE 45 WHEN 66 THEN + CAST( - 36 AS DECIMAL ) + + 11 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-809
SELECT COUNT ( * ) + + 19 + CASE 45 WHEN 66 THEN + CAST ( - 36 AS REAL ) + + 11 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-810
SELECT + 91, 80 DIV - + 28 * + COUNT( * ) col1
----
91
-2

skipif mysql # not compatible
query II rowsort label-810
SELECT + 91, 80 / - + 28 * + COUNT ( * ) col1
----
91
-2

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

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

query I rowsort
SELECT 23 + + 93 * ( + 2 )
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT SUM( + 55 ) + + - 1 + - + 50 + + + ( + COUNT( * ) ) + + + 17 * - - 34 * + MIN( - 58 ) + + - 85 AS col0
----
-33604

skipif mysql # not compatible
query I rowsort label-813
SELECT SUM ( + 55 ) + + - 1 + - + 50 + + + ( + COUNT ( * ) ) + + + 17 * - - 34 * + MIN ( - 58 ) + + - 85 AS col0
----
-33604

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT 30 DIV + + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-814
SELECT 30 / + + 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT COUNT( + 42 ) * + 58 + - - NULLIF ( + 46, + 52 + - 14 + + COUNT( * ) + - 7 * - 14 * - 59 ) + 53 * COUNT( * ) + + 19 - - - 88 * - COUNT( * ) * + 81 * - 11 + 21 * - + 26 + + 68
----
-78710

skipif mysql # not compatible
query I rowsort label-815
SELECT COUNT ( + 42 ) * + 58 + - - NULLIF ( + 46, + 52 + - 14 + + COUNT ( * ) + - 7 * - 14 * - 59 ) + 53 * COUNT ( * ) + + 19 - - - 88 * - COUNT ( * ) * + 81 * - 11 + 21 * - + 26 + + 68
----
-78710

query I rowsort
SELECT DISTINCT 17 * - + 58 AS col0
----
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT + COUNT( * ) * ( + 31 ) + - COALESCE ( + 95, + ( - + 5 ) ) + 49 * - 61 AS col1
----
-3053

skipif mysql # not compatible
query I rowsort label-817
SELECT + COUNT ( * ) * ( + 31 ) + - COALESCE ( + 95, + ( - + 5 ) ) + 49 * - 61 AS col1
----
-3053

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ( COUNT( * ) ) + 49 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-818
SELECT ( COUNT ( * ) ) + 49 AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-819
SELECT ALL 19 AS col0, - COUNT( - + 8 )
----
19
-1

skipif mysql # not compatible
query II rowsort label-819
SELECT ALL 19 AS col0, - COUNT ( - + 8 )
----
19
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT + NULLIF ( COUNT( * ), ( - + 89 ) * + MIN( - 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-821
SELECT + NULLIF ( COUNT ( * ), ( - + 89 ) * + MIN ( - 42 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-822
SELECT ALL 42 + CAST( - + 38 AS SIGNED ) + 32 DIV 24 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL 42 + CAST ( - + 38 AS INTEGER ) + 32 / 24 AS col1
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT CASE COUNT( * ) WHEN - 68 THEN + 73 * + + MIN( + + 69 ) + - - ( 31 ) * - COUNT( * ) - - 94 - + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT CASE COUNT ( * ) WHEN - 68 THEN + 73 * + + MIN ( + + 69 ) + - - ( 31 ) * - COUNT ( * ) - - 94 - + 14 END
----
NULL

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

query I rowsort
SELECT ALL 4 - - 98 AS col2
----
102

query I rowsort
SELECT ALL + 83 * 9
----
747

query I rowsort
SELECT - 48 + 70 AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-829
SELECT ALL - CAST( - 41 AS SIGNED ) - 27 * + + 76 + + CAST( NULL AS SIGNED ) + - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL - CAST ( - 41 AS INTEGER ) - 27 * + + 76 + + CAST ( NULL AS INTEGER ) + - 76 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 50 * + - 35 AS col2
----
-1750

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

query II rowsort
SELECT - 2 AS col1, 49 AS col1
----
-2
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-833
SELECT 15 + + + CAST( NULLIF ( + - 29, - 58 ) AS SIGNED ) + 17 col1, + COUNT( * ) * + 95 AS col2
----
3
95

skipif mysql # not compatible
query II rowsort label-833
SELECT 15 + + + CAST ( NULLIF ( + - 29, - 58 ) AS INTEGER ) + 17 col1, + COUNT ( * ) * + 95 AS col2
----
3
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-834
SELECT 18 * + - COALESCE ( + COUNT( - ( 85 ) ), - 55, + - ( + 82 ) * + 61, + 84 ) DIV - + 33 AS col1, + 9 + + 49 * + - 12 AS col1
----
0
-579

skipif mysql # not compatible
query II rowsort label-834
SELECT 18 * + - COALESCE ( + COUNT ( - ( 85 ) ), - 55, + - ( + 82 ) * + 61, + 84 ) / - + 33 AS col1, + 9 + + 49 * + - 12 AS col1
----
0
-579

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

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

query II rowsort
SELECT 97, + 17 col0
----
97
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-837
SELECT 34 + + - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) * + 82 + 25 * - + COUNT( * ) * ( 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT 34 + + - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * + 82 + 25 * - + COUNT ( * ) * ( 88 )
----
NULL

query I rowsort
SELECT 5 * - 90
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT 8 * MAX( + ( + 94 ) )
----
752

skipif mysql # not compatible
query I rowsort label-839
SELECT 8 * MAX ( + ( + 94 ) )
----
752

query I rowsort
SELECT 43 + + 32
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT DISTINCT + CASE - 55 WHEN + - 80 THEN NULL WHEN + COUNT( * ) - + 44 THEN NULL WHEN + - 5 * - + COUNT( * ) + - 68 + 91 + + - 34 THEN + MAX( + 41 ) + - - 73 END * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT + CASE - 55 WHEN + - 80 THEN NULL WHEN + COUNT ( * ) - + 44 THEN NULL WHEN + - 5 * - + COUNT ( * ) + - 68 + 91 + + - 34 THEN + MAX ( + 41 ) + - - 73 END * + 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT DISTINCT + ( COUNT( + 40 ) ) DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT + ( COUNT ( + 40 ) ) / - 75 AS col2
----
0

query II rowsort
SELECT + 34, + 9 AS col1
----
34
9

query I rowsort
SELECT DISTINCT - 1 * COALESCE ( - 71, - + ( - + 1 ) ) + 81 AS col1
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-845
SELECT ALL - CAST( - + SUM( - 9 ) AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL - CAST ( - + SUM ( - 9 ) AS INTEGER ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT 33 * + MIN( ALL + - 75 )
----
-2475

skipif mysql # not compatible
query I rowsort label-846
SELECT 33 * + MIN ( ALL + - 75 )
----
-2475

query I rowsort
SELECT 68 * + 9 * 73
----
44676

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT ALL - 90 + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL - 90 + COUNT ( * )
----
-89

query I rowsort
SELECT DISTINCT - ( - 44 ) + - + 7
----
37

query II rowsort
SELECT ALL - 88, 42 AS col0
----
-88
42

query I rowsort
SELECT - 89 + - - 35 AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT DISTINCT - 66 + - CAST( - 92 AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT - 66 + - CAST ( - 92 AS INTEGER ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT ALL COUNT( * ) + + COALESCE ( + 82, - ( 69 ) * 4 * MIN( + 61 ) * - 92 * + 3 + - + 81 ) AS col0, - 28 AS col1
----
83
-28

skipif mysql # not compatible
query II rowsort label-853
SELECT ALL COUNT ( * ) + + COALESCE ( + 82, - ( 69 ) * 4 * MIN ( + 61 ) * - 92 * + 3 + - + 81 ) AS col0, - 28 AS col1
----
83
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT DISTINCT ( + 20 ) * + 11 + + ( - - 41 ) DIV + 39
----
221

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT ( + 20 ) * + 11 + + ( - - 41 ) / + 39
----
221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT + - 28 * + - CASE - - ( + + 15 ) WHEN + + 36 THEN + + COUNT( * ) WHEN - 15 + + + 77 - 34 * - CASE + MAX( ALL + 74 ) WHEN - 8 THEN + 62 - 20 END * 1 * - MIN( ALL - 53 ) * + 0 + 75 + + 42 + MIN( ALL - 41 ) THEN + NULLIF ( NULLIF ( + 72, CASE - COALESCE ( - COUNT( * ), 68, + 9 ) WHEN - 62 * - 61 THEN 10 + 82 + - NULLIF ( - - COUNT( * ), + + 95 ) + + + 89 * - 52 / + + 65 * CAST( NULL AS SIGNED ) ELSE + + 8 + CASE 37 WHEN + 85 * + 8 THEN - COUNT( * ) WHEN + CASE 76 WHEN 4 + + 16 * 31 THEN - 73 * - 93 - 39 END / 65 THEN NULL END END ), SUM( 91 ) + - 0 ) + 34 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT + - 28 * + - CASE - - ( + + 15 ) WHEN + + 36 THEN + + COUNT ( * ) WHEN - 15 + + + 77 - 34 * - CASE + MAX ( ALL + 74 ) WHEN - 8 THEN + 62 - 20 END * 1 * - MIN ( ALL - 53 ) * + 0 + 75 + + 42 + MIN ( ALL - 41 ) THEN + NULLIF ( NULLIF ( + 72, CASE - COALESCE ( - COUNT ( * ), 68, + 9 ) WHEN - 62 * - 61 THEN 10 + 82 + - NULLIF ( - - COUNT ( * ), + + 95 ) + + + 89 * - 52 / + + 65 * CAST ( NULL AS INTEGER ) ELSE + + 8 + CASE 37 WHEN + 85 * + 8 THEN - COUNT ( * ) WHEN + CASE 76 WHEN 4 + + 16 * 31 THEN - 73 * - 93 - 39 END / 65 THEN NULL END END ), SUM ( 91 ) + - 0 ) + 34 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-856
SELECT + 36 AS col1, + 95 DIV - 39
----
36
-2

skipif mysql # not compatible
query II rowsort label-856
SELECT + 36 AS col1, + 95 / - 39
----
36
-2

query I rowsort
SELECT + - 11 + - 63 * + 59
----
-3728

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT 8 + 82 + MIN( ALL - 92 ) * - 95 * + 46 AS col2
----
402130

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT 8 + 82 + MIN ( ALL - 92 ) * - 95 * + 46 AS col2
----
402130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-859
SELECT ALL - CASE - 82 WHEN - + 41 + - 14 THEN NULL WHEN + CAST( - COUNT( * ) AS SIGNED ) THEN - CAST( + 52 AS DECIMAL ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL - CASE - 82 WHEN - + 41 + - 14 THEN NULL WHEN + CAST ( - COUNT ( * ) AS INTEGER ) THEN - CAST ( + 52 AS REAL ) ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-861
SELECT + + 36 + + - 35 + - - 0 * + ( + + 0 ) * - 21 DIV - 81 - - - 26
----
-25

skipif mysql # not compatible
query I rowsort label-861
SELECT + + 36 + + - 35 + - - 0 * + ( + + 0 ) * - 21 / - 81 - - - 26
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT ALL - 36, + ( - 41 ) * - 60 + + + ( - COUNT( * ) ) + - ( + ( - - 70 ) ) AS col1
----
-36
2389

skipif mysql # not compatible
query II rowsort label-862
SELECT ALL - 36, + ( - 41 ) * - 60 + + + ( - COUNT ( * ) ) + - ( + ( - - 70 ) ) AS col1
----
-36
2389

query II rowsort
SELECT - + 80, - 52 col2
----
-80
-52

query I rowsort
SELECT DISTINCT + 54 * + 97 col0
----
5238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-865
SELECT ALL + SUM( + 25 ) DIV + - 12 + + ( + 33 )
----
31

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL + SUM ( + 25 ) / + - 12 + + ( + 33 )
----
31

query II rowsort
SELECT ALL - 74 AS col0, 73
----
-74
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-867
SELECT - CAST( 68 AS SIGNED ), + 24 AS col0
----
-68
24

skipif mysql # not compatible
query II rowsort label-867
SELECT - CAST ( 68 AS INTEGER ), + 24 AS col0
----
-68
24

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + 46 - + 78 * + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-868
SELECT + 46 - + 78 * + COUNT ( * )
----
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT DISTINCT CASE 6 WHEN - 65 THEN - COUNT( * ) ELSE + + ( - 64 ) END * 78
----
-4992

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT CASE 6 WHEN - 65 THEN - COUNT ( * ) ELSE + + ( - 64 ) END * 78
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT - NULLIF ( + 60, + COUNT( 50 ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-871
SELECT - NULLIF ( + 60, + COUNT ( 50 ) ) AS col0
----
-60

query I rowsort
SELECT ALL + 2 * 21
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-873
SELECT ALL + MIN( - 95 ) * ( 42 ) + - - CAST( + 29 AS SIGNED ) + 72 DIV - 32
----
-3963

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + MIN ( - 95 ) * ( 42 ) + - - CAST ( + 29 AS INTEGER ) + 72 / - 32
----
-3963

query I rowsort
SELECT ALL NULLIF ( 72, + 12 + - 12 ) col0
----
72

query I rowsort
SELECT ALL + COALESCE ( - 26, - 69 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT + 91 + 46 * + + COUNT( ALL + 83 ) AS col0
----
137

skipif mysql # not compatible
query I rowsort label-876
SELECT + 91 + 46 * + + COUNT ( ALL + 83 ) AS col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT 3 * + + MAX( - 77 ) + - + 53 AS col0
----
-284

skipif mysql # not compatible
query I rowsort label-877
SELECT 3 * + + MAX ( - 77 ) + - + 53 AS col0
----
-284

query II rowsort
SELECT ( + 14 ) col2, + 88 AS col1
----
14
88

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL + MAX( DISTINCT - 67 ) * + 98 + ( 61 )
----
-6505

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL + MAX ( DISTINCT - 67 ) * + 98 + ( 61 )
----
-6505

query I rowsort
SELECT - ( 56 ) * 46 * 98
----
-252448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-881
SELECT - 16 * 60 + - - CASE + 44 WHEN 27 THEN NULL WHEN + 88 + - 41 * 0 + - + 23 + + MAX( ALL + 21 ) THEN - 93 + - 85 * + 61 DIV + 48 ELSE + COUNT( * ) END AS col1
----
-959

skipif mysql # not compatible
query I rowsort label-881
SELECT - 16 * 60 + - - CASE + 44 WHEN 27 THEN NULL WHEN + 88 + - 41 * 0 + - + 23 + + MAX ( ALL + 21 ) THEN - 93 + - 85 * + 61 / + 48 ELSE + COUNT ( * ) END AS col1
----
-959

onlyif mysql # DIV for integer division: 
query I rowsort label-882
SELECT DISTINCT + 58 DIV 20 * 61
----
122

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT + 58 / 20 * 61
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL 10 * - + 91 + + COUNT( * ) AS col1
----
-909

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL 10 * - + 91 + + COUNT ( * ) AS col1
----
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT 67 / - MIN( DISTINCT 72 ) * + CASE - + 32 WHEN - 24 * - - 64 / - + 47 THEN + 51 END + - 95 * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT 67 / - MIN ( DISTINCT 72 ) * + CASE - + 32 WHEN - 24 * - - 64 / - + 47 THEN + 51 END + - 95 * 40 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-886
SELECT ALL - - 27 * - + 4 - - + 32 * - - CAST( NULL AS SIGNED ) * 96 * 92 + - 33 + COUNT( * ) * + COALESCE ( + 30, + 97 ) * - - NULLIF ( + + 78, + - CAST( + 26 AS SIGNED ) / COALESCE ( 62, 93 ) + + + 66 * - 1 + - 40 + + COALESCE ( - 39, - CASE - NULLIF ( + 67, - ( - CAST( NULL AS SIGNED ) ) ) WHEN - - 51 / ( - + 4 ) THEN NULL ELSE + CASE + 40 WHEN - 76 + 88 THEN NULL ELSE - CASE - 29 WHEN - - 74 THEN + + 42 * - CAST( NULL AS SIGNED ) END * 73 + - + 82 + + + 84 END END / MAX( DISTINCT + 39 ) - - 63 * 18 ) + 73 * + 82 * + CAST( 32 AS SIGNED ) ) + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - - 27 * - + 4 - - + 32 * - - CAST ( NULL AS INTEGER ) * 96 * 92 + - 33 + COUNT ( * ) * + COALESCE ( + 30, + 97 ) * - - NULLIF ( + + 78, + - CAST ( + 26 AS INTEGER ) / COALESCE ( 62, 93 ) + + + 66 * - 1 + - 40 + + COALESCE ( - 39, - CASE - NULLIF ( + 67, - ( - CAST ( NULL AS INTEGER ) ) ) WHEN - - 51 / ( - + 4 ) THEN NULL ELSE + CASE + 40 WHEN - 76 + 88 THEN NULL ELSE - CASE - 29 WHEN - - 74 THEN + + 42 * - CAST ( NULL AS INTEGER ) END * 73 + - + 82 + + + 84 END END / MAX ( DISTINCT + 39 ) - - 63 * 18 ) + 73 * + 82 * + CAST ( 32 AS INTEGER ) ) + + 35
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-887
SELECT DISTINCT - + 10 DIV - - 33, 91 + - - 92 * 68 * + COUNT( * ) + - 46 col1
----
0
6301

skipif mysql # not compatible
query II rowsort label-887
SELECT DISTINCT - + 10 / - - 33, 91 + - - 92 * 68 * + COUNT ( * ) + - 46 col1
----
0
6301

query I rowsort
SELECT ALL 39 * - - 68 + - 13 + 90 AS col0
----
2729

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT ALL + COUNT( * ) * - 74 + + 63
----
-11

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL + COUNT ( * ) * - 74 + + 63
----
-11

query I rowsort
SELECT - - 87 * + - 58 + - 42 * - 75 AS col1
----
-1896

query I rowsort
SELECT - - 82 + + ( - + 18 ) + + + 48
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL + 76 * + ( + + MIN( DISTINCT 53 ) ) AS col1
----
4028

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL + 76 * + ( + + MIN ( DISTINCT 53 ) ) AS col1
----
4028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-893
SELECT - + 7 + - - 12 DIV - + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-893
SELECT - + 7 + - - 12 / - + COUNT ( * )
----
-19

query I rowsort
SELECT ALL + - 55 * - 65 * - + 65 col2
----
-232375

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT + CASE + + ( - - 67 ) WHEN COUNT( * ) / 17 THEN - 82 - + - 69 ELSE - - ( - + 22 ) END
----
-22

skipif mysql # not compatible
query I rowsort label-895
SELECT + CASE + + ( - - 67 ) WHEN COUNT ( * ) / 17 THEN - 82 - + - 69 ELSE - - ( - + 22 ) END
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-896
SELECT ALL + 61 * - - 32 / + 46 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL + 61 * - - 32 / + 46 + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT - + 55 * + - 56 * - COALESCE ( + COUNT( * ), - 39, - 33 * - 19 )
----
-3080

skipif mysql # not compatible
query I rowsort label-897
SELECT - + 55 * + - 56 * - COALESCE ( + COUNT ( * ), - 39, - 33 * - 19 )
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT DISTINCT - 62 * SUM( ALL + 86 ) - ( + 44 ) - - + 45 - 74 AS col2
----
-5405

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT - 62 * SUM ( ALL + 86 ) - ( + 44 ) - - + 45 - 74 AS col2
----
-5405

onlyif mysql # aggregate syntax: 
query II rowsort label-899
SELECT + + COALESCE ( - 67, 16, - + NULLIF ( 99, COUNT( * ) ) + + 94, + + 92 * MAX( 81 ) * 67 + - 26 ) + + 1 AS col1, + 49 AS col2
----
-66
49

skipif mysql # not compatible
query II rowsort label-899
SELECT + + COALESCE ( - 67, 16, - + NULLIF ( 99, COUNT ( * ) ) + + 94, + + 92 * MAX ( 81 ) * 67 + - 26 ) + + 1 AS col1, + 49 AS col2
----
-66
49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-901
SELECT - 96 * + + NULLIF ( 58, + COUNT( * ) ) + CAST( - 77 AS SIGNED )
----
-5645

skipif mysql # not compatible
query I rowsort label-901
SELECT - 96 * + + NULLIF ( 58, + COUNT ( * ) ) + CAST ( - 77 AS INTEGER )
----
-5645

query I rowsort
SELECT + 66 * + 9 col1
----
594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-903
SELECT ALL 55 AS col1, 91 * + 96 * - NULLIF ( - CAST( - 40 AS SIGNED ), + MIN( DISTINCT - ( 45 ) ) ) col0
----
55
-349440

skipif mysql # not compatible
query II rowsort label-903
SELECT ALL 55 AS col1, 91 * + 96 * - NULLIF ( - CAST ( - 40 AS INTEGER ), + MIN ( DISTINCT - ( 45 ) ) ) col0
----
55
-349440

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

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

query II rowsort
SELECT ALL 12 AS col2, - 74 + + + ( - 35 )
----
12
-109

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT ALL 74 DIV 99 * + 33
----
0

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL 74 / 99 * + 33
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT - 91 * 89 DIV 26 AS col0
----
-311

skipif mysql # not compatible
query I rowsort label-908
SELECT - 91 * 89 / 26 AS col0
----
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT + 97 + - 71 + - 25 + - COUNT( * ) + - + 39 * 34 + + - COALESCE ( CASE + 16 WHEN - + COUNT( * ) - - 36 THEN - - 18 END, - COUNT( * ) ) AS col0
----
-1325

skipif mysql # not compatible
query I rowsort label-909
SELECT + 97 + - 71 + - 25 + - COUNT ( * ) + - + 39 * 34 + + - COALESCE ( CASE + 16 WHEN - + COUNT ( * ) - - 36 THEN - - 18 END, - COUNT ( * ) ) AS col0
----
-1325

onlyif mysql # aggregate syntax: 
query II rowsort label-910
SELECT ALL 23 AS col0, CASE + 13 WHEN + 43 / - NULLIF ( - 22, + 61 ) + - 10 / - 88 * - NULLIF ( - + ( - ( + 45 ) ), 23 ) THEN - 0 ELSE + - 98 + - 55 - - ( - + COUNT( * ) ) END * + COUNT( * ) + 3 AS col0
----
23
-151

skipif mysql # not compatible
query II rowsort label-910
SELECT ALL 23 AS col0, CASE + 13 WHEN + 43 / - NULLIF ( - 22, + 61 ) + - 10 / - 88 * - NULLIF ( - + ( - ( + 45 ) ), 23 ) THEN - 0 ELSE + - 98 + - 55 - - ( - + COUNT ( * ) ) END * + COUNT ( * ) + 3 AS col0
----
23
-151

query I rowsort
SELECT + 68 * - - 75 AS col2
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT - CASE + + SUM( + 7 ) WHEN ( + - 8 ) / + 39 + - 52 * + COUNT( * ) * 83 THEN NULL ELSE + + 27 END AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-912
SELECT - CASE + + SUM ( + 7 ) WHEN ( + - 8 ) / + 39 + - 52 * + COUNT ( * ) * 83 THEN NULL ELSE + + 27 END AS col2
----
-27

query I rowsort
SELECT DISTINCT 97 + + ( + - 21 ) * - - 11 + 59
----
-75

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

query I rowsort
SELECT + NULLIF ( + 48, ( + NULLIF ( + 87, + 88 ) ) / 73 ) * + - 40 AS col2
----
-1920

query I rowsort
SELECT ALL + 45 * 63 AS col2
----
2835

query I rowsort
SELECT ALL 96 + - 44 * - 61 AS col1
----
2780

query I rowsort
SELECT DISTINCT 63 - + 3
----
60

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

skipif mysql # not compatible
query I rowsort label-919
SELECT - COUNT ( * ) / + 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT COUNT( * ) * - 15 + + + 45 - - - 84 + ( + ( + - 29 ) ) * + 97
----
-2867

skipif mysql # not compatible
query I rowsort label-920
SELECT COUNT ( * ) * - 15 + + + 45 - - - 84 + ( + ( + - 29 ) ) * + 97
----
-2867

onlyif mysql # DIV for integer division: 
query II rowsort label-921
SELECT + + 84, 18 DIV + 86 col2
----
84
0

skipif mysql # not compatible
query II rowsort label-921
SELECT + + 84, 18 / + 86 col2
----
84
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-922
SELECT - MIN( + - 41 ) DIV + - 49 AS col1, - 73 AS col2
----
0
-73

skipif mysql # not compatible
query II rowsort label-922
SELECT - MIN ( + - 41 ) / + - 49 AS col1, - 73 AS col2
----
0
-73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT - + 82 * - COUNT( * ) * - - 94
----
7708

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT - + 82 * - COUNT ( * ) * - - 94
----
7708

query I rowsort
SELECT ALL - ( - 76 ) col1
----
76

query I rowsort
SELECT 25 * + 1 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL - CASE + 21 WHEN + 71 THEN NULL WHEN + 51 + - 84 THEN - - 40 * + - 17 END / + NULLIF ( + 55, COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL - CASE + 21 WHEN + 71 THEN NULL WHEN + 51 + - 84 THEN - - 40 * + - 17 END / + NULLIF ( + 55, COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT - 53 * - 57 AS col2
----
3021

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT COALESCE ( 66, 5 * + 96 DIV - - 28 - + + 91, - 77 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-929
SELECT COALESCE ( 66, 5 * + 96 / - - 28 - + + 91, - 77 ) AS col0
----
66

query I rowsort
SELECT DISTINCT + - 77 * 8 AS col1
----
-616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT ALL + NULLIF ( CAST( + 93 AS SIGNED ), - 39 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL + NULLIF ( CAST ( + 93 AS INTEGER ), - 39 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-932
SELECT 34 * COUNT( * ) AS col1, - 63
----
34
-63

skipif mysql # not compatible
query II rowsort label-932
SELECT 34 * COUNT ( * ) AS col1, - 63
----
34
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT DISTINCT + COALESCE ( 95, + + 35 ) + + 66 DIV - + 40 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT + COALESCE ( 95, + + 35 ) + + 66 / - + 40 AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-934
SELECT 24 DIV - - ( + + 98 ) DIV - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-934
SELECT 24 / - - ( + + 98 ) / - COUNT ( * ) AS col1
----
0

query II rowsort
SELECT 59 * - 31 col0, 2 AS col0
----
-1829
2

query I rowsort
SELECT ALL + 3 + 24
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-937
SELECT 39 - - - 97 * + + 40 + + CASE + 78 WHEN CASE - ( 32 ) WHEN + 28 THEN + 44 * - 95 ELSE NULL END THEN 86 + + 5 * COUNT( * ) / 80 * - CAST( NULL AS SIGNED ) WHEN - + 40 / 58 * + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT 39 - - - 97 * + + 40 + + CASE + 78 WHEN CASE - ( 32 ) WHEN + 28 THEN + 44 * - 95 ELSE NULL END THEN 86 + + 5 * COUNT ( * ) / 80 * - CAST ( NULL AS INTEGER ) WHEN - + 40 / 58 * + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT 49 - + - 77 AS col1, 82 AS col2
----
126
82

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT + 32 DIV + - 86 - + 63
----
-63

skipif mysql # not compatible
query I rowsort label-939
SELECT + 32 / + - 86 - + 63
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-940
SELECT + - COUNT( ALL - 63 ) * 79 + 42 col0, ( CAST( + NULLIF ( + + CAST( + - CASE 42 WHEN COUNT( * ) THEN + 1 ELSE NULL END AS SIGNED ), 45 ) AS SIGNED ) )
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-940
SELECT + - COUNT ( ALL - 63 ) * 79 + 42 col0, ( CAST ( + NULLIF ( + + CAST ( + - CASE 42 WHEN COUNT ( * ) THEN + 1 ELSE NULL END AS INTEGER ), 45 ) AS INTEGER ) )
----
-37
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-941
SELECT + CASE 36 WHEN - - 90 THEN - 44 ELSE NULL END, 49 + - - 99 DIV 38 AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-941
SELECT + CASE 36 WHEN - - 90 THEN - 44 ELSE NULL END, 49 + - - 99 / 38 AS col1
----
NULL
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-942
SELECT - 97 DIV - 98 + + 95 + 38 + COUNT( * ) * 19 + CAST( + - 6 AS SIGNED ) + ( + 66 ) + - + 32
----
180

skipif mysql # not compatible
query I rowsort label-942
SELECT - 97 / - 98 + + 95 + 38 + COUNT ( * ) * 19 + CAST ( + - 6 AS INTEGER ) + ( + 66 ) + - + 32
----
180

query I rowsort
SELECT ALL - COALESCE ( - 15, - 25 ) AS col1
----
15

query II rowsort
SELECT ALL - - ( - 26 ) col1, 10
----
-26
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT - COUNT( DISTINCT + 92 ) * - 42 * 21 + 65
----
947

skipif mysql # not compatible
query I rowsort label-946
SELECT - COUNT ( DISTINCT + 92 ) * - 42 * 21 + 65
----
947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-947
SELECT - + 54 * + - CAST( 75 AS SIGNED ) * - CAST( COUNT( + 58 ) AS SIGNED ) * - - 59 * - 26 + - 67 + 81 + + COUNT( * ) AS col0
----
6212715

skipif mysql # not compatible
query I rowsort label-947
SELECT - + 54 * + - CAST ( 75 AS INTEGER ) * - CAST ( COUNT ( + 58 ) AS INTEGER ) * - - 59 * - 26 + - 67 + 81 + + COUNT ( * ) AS col0
----
6212715

query I rowsort
SELECT ALL 81 * + 52
----
4212

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT + MAX( DISTINCT 40 ) * + 78
----
3120

skipif mysql # not compatible
query I rowsort label-949
SELECT + MAX ( DISTINCT 40 ) * + 78
----
3120

query I rowsort
SELECT - 25 + - - ( - + 55 ) AS col0
----
-80

query II rowsort
SELECT ALL - 42 + - + 15 col2, 20 * - - 64 AS col2
----
-57
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT - - NULLIF ( - 4, + COALESCE ( - 65, + + 93 * 35 * + ( 67 ) ) * - + COUNT( * ) + - 64 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT - - NULLIF ( - 4, + COALESCE ( - 65, + + 93 * 35 * + ( 67 ) ) * - + COUNT ( * ) + - 64 ) AS col1
----
-4

query II rowsort
SELECT ALL - ( + 64 ) AS col2, 62 + - 80
----
-64
-18

query I rowsort
SELECT ALL ( + - 91 ) + + 11
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT ALL + 34 + + + COALESCE ( + SUM( ALL - 38 ), + 8 + 68, COALESCE ( + 35, - COUNT( - 31 ) + + - 33 * + 50 ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL + 34 + + + COALESCE ( + SUM ( ALL - 38 ), + 8 + 68, COALESCE ( + 35, - COUNT ( - 31 ) + + - 33 * + 50 ) ) AS col2
----
-4

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

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

query I rowsort
SELECT 14 + + 37 * + - 15 AS col0
----
-541

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-959
SELECT ALL + NULLIF ( + - 60, 86 + + + 71 + - - CASE + 63 WHEN CAST( NULL AS DECIMAL ) * 20 THEN + + 8 + 97 + - - 11 * - 95 * 16 WHEN - 98 THEN 68 ELSE + 54 END ) * 88 * + 20, 31 AS col1
----
-105600
31

skipif mysql # not compatible
query II rowsort label-959
SELECT ALL + NULLIF ( + - 60, 86 + + + 71 + - - CASE + 63 WHEN CAST ( NULL AS REAL ) * 20 THEN + + 8 + 97 + - - 11 * - 95 * 16 WHEN - 98 THEN 68 ELSE + 54 END ) * 88 * + 20, 31 AS col1
----
-105600
31

query I rowsort
SELECT DISTINCT - 89 + 23
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT ALL - 71 + - 76 DIV + 96 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL - 71 + - 76 / + 96 AS col0
----
-71

query I rowsort
SELECT 39 + - - 27 col1
----
66

query I rowsort
SELECT DISTINCT 68 * - 28 * + 22
----
-41888

query I rowsort
SELECT 49 + 80 + - 24 AS col1
----
105

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

query I rowsort
SELECT ALL - 72 - - - 99 AS col1
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-967
SELECT DISTINCT NULLIF ( + - 50, - + 16 ), - COUNT( * ) AS col1
----
-50
-1

skipif mysql # not compatible
query II rowsort label-967
SELECT DISTINCT NULLIF ( + - 50, - + 16 ), - COUNT ( * ) AS col1
----
-50
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-968
SELECT DISTINCT - 54 - + 87 DIV + COUNT( * ) AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT - 54 - + 87 / + COUNT ( * ) AS col2
----
-141

query I rowsort
SELECT - 61 * - 37 * - 58 AS col1
----
-130906

onlyif mysql # aggregate syntax: 
query II rowsort label-970
SELECT - COUNT( + 60 ) * 58 AS col0, ( MIN( 44 ) ) * + + COUNT( * ) AS col0
----
-58
44

skipif mysql # not compatible
query II rowsort label-970
SELECT - COUNT ( + 60 ) * 58 AS col0, ( MIN ( 44 ) ) * + + COUNT ( * ) AS col0
----
-58
44

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT - SUM( ALL + 91 ) + + 21
----
-70

skipif mysql # not compatible
query I rowsort label-971
SELECT - SUM ( ALL + 91 ) + + 21
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-972
SELECT ALL CASE + - 82 WHEN + + CAST( + 98 AS SIGNED ) THEN AVG ( DISTINCT ( - 95 ) ) WHEN - 28 THEN 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL CASE + - 82 WHEN + + CAST ( + 98 AS INTEGER ) THEN AVG ( DISTINCT ( - 95 ) ) WHEN - 28 THEN 88 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-973
SELECT DISTINCT - 27 DIV - MIN( DISTINCT + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT - 27 / - MIN ( DISTINCT + 22 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT + 37 + MIN( - 4 )
----
33

skipif mysql # not compatible
query I rowsort label-974
SELECT + 37 + MIN ( - 4 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL + 9 * + CASE SUM( 74 ) WHEN 23 THEN COUNT( * ) / - MAX( + 52 ) - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL + 9 * + CASE SUM ( 74 ) WHEN 23 THEN COUNT ( * ) / - MAX ( + 52 ) - COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT DISTINCT NULLIF ( - COUNT( * ), 52 * 56 + 34 * + ( - 7 + 88 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT NULLIF ( - COUNT ( * ), 52 * 56 + 34 * + ( - 7 + 88 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-977
SELECT ALL + 10 * NULLIF ( - CASE + 10 WHEN + 34 THEN - ( CAST( - CAST( ( + 95 ) AS SIGNED ) AS SIGNED ) ) ELSE NULL END, + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL + 10 * NULLIF ( - CASE + 10 WHEN + 34 THEN - ( CAST ( - CAST ( ( + 95 ) AS INTEGER ) AS INTEGER ) ) ELSE NULL END, + 98 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT - ( - 55 ) DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-978
SELECT - ( - 55 ) / 53
----
1

query I rowsort
SELECT CASE - 56 WHEN - 1 THEN 33 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-980
SELECT - ( 6 ) DIV CAST( 83 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-980
SELECT - ( 6 ) / CAST ( 83 AS INTEGER )
----
0

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

skipif mysql # not compatible
query I rowsort label-981
SELECT + NULLIF ( ( - COUNT ( * ) ), 40 )
----
-1

query I rowsort
SELECT + 64 * 15
----
960

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT DISTINCT 77 * COUNT( * ) + - 12 DIV SUM( - 16 * 98 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT 77 * COUNT ( * ) + - 12 / SUM ( - 16 * 98 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT 47 * CASE MIN( - 23 ) WHEN 99 + + 76 * COUNT( 45 ) THEN 63 WHEN + MIN( ALL + 98 ) * 79 + 18 THEN NULL ELSE + 90 * COUNT( * ) END - 14
----
4216

skipif mysql # not compatible
query I rowsort label-985
SELECT 47 * CASE MIN ( - 23 ) WHEN 99 + + 76 * COUNT ( 45 ) THEN 63 WHEN + MIN ( ALL + 98 ) * 79 + 18 THEN NULL ELSE + 90 * COUNT ( * ) END - 14
----
4216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-986
SELECT ALL COUNT( * ) * - NULLIF ( 85, - COALESCE ( - COUNT( DISTINCT 31 ), 35, + 39 * - CAST( NULL AS SIGNED ) ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL COUNT ( * ) * - NULLIF ( 85, - COALESCE ( - COUNT ( DISTINCT 31 ), 35, + 39 * - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-85

query I rowsort
SELECT + 28 * 95 AS col0
----
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ALL + 30 * + COUNT( * ) + + COALESCE ( COUNT( * ), 67 + + 28 * 26 )
----
31

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + 30 * + COUNT ( * ) + + COALESCE ( COUNT ( * ), 67 + + 28 * 26 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-989
SELECT + CASE 7 WHEN MAX( ALL 27 ) * 2 THEN NULL WHEN CAST( + 56 AS DECIMAL ) * 55 + 67 THEN ( 99 ) * - 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT + CASE 7 WHEN MAX ( ALL 27 ) * 2 THEN NULL WHEN CAST ( + 56 AS REAL ) * 55 + 67 THEN ( 99 ) * - 22 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT DISTINCT 70 * - 48 + - 13 DIV - 72 col2
----
-3360

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT 70 * - 48 + - 13 / - 72 col2
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT - 75 + - MIN( - ( + 59 ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-991
SELECT - 75 + - MIN ( - ( + 59 ) ) AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT + 92 DIV 74 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-992
SELECT + 92 / 74 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT 84 * COUNT( ALL + ( + 8 ) / + 29 ) + - 58
----
26

skipif mysql # not compatible
query I rowsort label-993
SELECT 84 * COUNT ( ALL + ( + 8 ) / + 29 ) + - 58
----
26

query I rowsort
SELECT + 57 - - 89 AS col2
----
146

query I rowsort
SELECT DISTINCT + 98 * 56 + + 32 * + 10 col1
----
5808

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT - CASE ( COUNT( * ) ) WHEN SUM( ALL 99 ) THEN 22 ELSE COUNT( * ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-996
SELECT - CASE ( COUNT ( * ) ) WHEN SUM ( ALL 99 ) THEN 22 ELSE COUNT ( * ) END col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-997
SELECT ALL 15 - 19 DIV CAST( 85 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL 15 - 19 / CAST ( 85 AS INTEGER )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-998
SELECT ALL + 12 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL + 12 / 45
----
0

query I rowsort
SELECT DISTINCT NULLIF ( 4, 98 / 64 + - AVG ( 60 - - 15 ) * - 98 ) AS col0
----
4

query I rowsort
SELECT ALL 79 - - ( 43 - 66 )
----
56

query I rowsort
SELECT - ( 68 ) * + 31 AS col2
----
-2108

query I rowsort
SELECT ALL 73 * NULLIF ( - ( - 29 ), 46 ) AS col1
----
2117

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

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

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

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT + 95 * COUNT ( * ) AS col2
----
95

query I rowsort
SELECT ALL - 41 * 34 AS col0
----
-1394

query I rowsort
SELECT + 72 * 46
----
3312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1007
SELECT - CAST( - 39 AS SIGNED ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-1007
SELECT - CAST ( - 39 AS INTEGER ) AS col0
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1008
SELECT + ( 67 ) - - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT + ( 67 ) - - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL 91 * 31 AS col1
----
2821

query I rowsort
SELECT - 58 * - 26
----
1508

query I rowsort
SELECT + + 77 + + 30
----
107

query I rowsort
SELECT NULLIF ( 58, - 5 )
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1013
SELECT - CAST( NULL AS DECIMAL ) / 66 - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT - CAST ( NULL AS REAL ) / 66 - + 9
----
NULL

query I rowsort
SELECT + 38 * ( ( - 91 ) ) + + NULLIF ( - 68, 48 - - 39 )
----
-3526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1015
SELECT ALL + - 70 DIV 1 + COUNT( * ) DIV 16
----
-70

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL + - 70 / 1 + COUNT ( * ) / 16
----
-70

query I rowsort
SELECT + CASE + 60 WHEN + ( + 65 ) THEN 32 * 35 - 71 ELSE 64 END AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1017
SELECT + 25 / COALESCE ( ( + 0 ) - - COUNT( * ), + 54 + ( - 9 + - 23 / - CAST( NULL AS DECIMAL ) ), - 71 - - ( 87 ) / 20 ) + + CAST( - 14 + 76 AS SIGNED ) / CASE - 89 WHEN - 73 THEN 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT + 25 / COALESCE ( ( + 0 ) - - COUNT ( * ), + 54 + ( - 9 + - 23 / - CAST ( NULL AS REAL ) ), - 71 - - ( 87 ) / 20 ) + + CAST ( - 14 + 76 AS INTEGER ) / CASE - 89 WHEN - 73 THEN 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT ALL + CASE + 56 WHEN + 66 * 67 THEN - MAX( ( 1 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL + CASE + 56 WHEN + 66 * 67 THEN - MAX ( ( 1 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1019
SELECT DISTINCT + 9 DIV COUNT( DISTINCT 92 * 72 ) + 0
----
9

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT + 9 / COUNT ( DISTINCT 92 * 72 ) + 0
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1020
SELECT ALL + CASE 4 WHEN + CAST( NULL AS SIGNED ) THEN - 54 ELSE - 35 + 92 * 22 END DIV 68 + 37 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL + CASE 4 WHEN + CAST ( NULL AS INTEGER ) THEN - 54 ELSE - 35 + 92 * 22 END / 68 + 37 AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1021
SELECT ALL + MIN( + 40 ) DIV 60 + 89 col2
----
89

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL + MIN ( + 40 ) / 60 + 89 col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1022
SELECT - 62 * NULLIF ( + 1, COUNT( * ) * - 82 ) + - COUNT( 75 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1022
SELECT - 62 * NULLIF ( + 1, COUNT ( * ) * - 82 ) + - COUNT ( 75 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 1 * 21 AS col0
----
21

query I rowsort
SELECT - + 26 * + 46 AS col1
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT COUNT( * ) * - SUM( 27 ) + - 92
----
-119

skipif mysql # not compatible
query I rowsort label-1025
SELECT COUNT ( * ) * - SUM ( 27 ) + - 92
----
-119

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

query I rowsort
SELECT ALL - 70 * + + 73 - - 14 col1
----
-5096

query I rowsort
SELECT - 45 * - 31
----
1395

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

query I rowsort
SELECT - 21 * 7 * + NULLIF ( 92 * + 63, 46 - 80 * 2 ) AS col1
----
-852012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT - 59 * - - CAST( 96 AS SIGNED ) + - 26
----
-5690

skipif mysql # not compatible
query I rowsort label-1031
SELECT - 59 * - - CAST ( 96 AS INTEGER ) + - 26
----
-5690

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT DISTINCT + SUM( DISTINCT - 34 ) - - 99
----
65

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT + SUM ( DISTINCT - 34 ) - - 99
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1033
SELECT DISTINCT 68 * COALESCE ( - COUNT( + 87 ), 78 DIV - 95 ) col0
----
-68

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT 68 * COALESCE ( - COUNT ( + 87 ), 78 / - 95 ) col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT 27 - - 39 * + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT 27 - - 39 * + COUNT ( * ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT 39 + + - MIN( 56 ) + + 30
----
13

skipif mysql # not compatible
query I rowsort label-1035
SELECT 39 + + - MIN ( 56 ) + + 30
----
13

query I rowsort
SELECT 54 * - + 43 - - 79
----
-2243

query I rowsort
SELECT 84 - + 78 + - 74 * - 1 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT ( - - ( + NULLIF ( 13, - 0 + CASE - 76 + + 34 WHEN + 3 THEN + CAST( - ( 88 ) AS SIGNED ) END * 65 ) ) ) * 43 AS col0
----
559

skipif mysql # not compatible
query I rowsort label-1038
SELECT ( - - ( + NULLIF ( 13, - 0 + CASE - 76 + + 34 WHEN + 3 THEN + CAST ( - ( 88 ) AS INTEGER ) END * 65 ) ) ) * 43 AS col0
----
559

query I rowsort
SELECT DISTINCT + 27 * + + 1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1040
SELECT ( - + 39 ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-1040
SELECT ( - + 39 ) / + 64
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT 99 DIV 72
----
1

skipif mysql # not compatible
query I rowsort label-1042
SELECT 99 / 72
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT 30 + - - COUNT( * ) col2
----
31

skipif mysql # not compatible
query I rowsort label-1043
SELECT 30 + - - COUNT ( * ) col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT ALL + 37 + 58 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL + 37 + 58 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 79 + + 5
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-1046
SELECT 78 DIV 91 + 73
----
73

skipif mysql # not compatible
query I rowsort label-1046
SELECT 78 / 91 + 73
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1047
SELECT - 78 + CASE + COALESCE ( - 82, 15, NULLIF ( CASE - 88 WHEN + NULLIF ( - CAST( NULL AS SIGNED ), ( + 4 ) ) + COUNT( * ) * + 5 THEN 50 + 14 * 13 ELSE 31 / + 61 END, 53 ) ) WHEN 96 THEN 65 / 21 + + 49 * COUNT( * ) ELSE NULL END * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT - 78 + CASE + COALESCE ( - 82, 15, NULLIF ( CASE - 88 WHEN + NULLIF ( - CAST ( NULL AS INTEGER ), ( + 4 ) ) + COUNT ( * ) * + 5 THEN 50 + 14 * 13 ELSE 31 / + 61 END, 53 ) ) WHEN 96 THEN 65 / 21 + + 49 * COUNT ( * ) ELSE NULL END * + 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1048
SELECT ALL NULLIF ( - 98, 12 ) + 53 DIV + CASE + ( 74 ) DIV 92 WHEN + 63 THEN + 91 ELSE 75 * 89 END AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL NULLIF ( - 98, 12 ) + 53 / + CASE + ( 74 ) / 92 WHEN + 63 THEN + 91 ELSE 75 * 89 END AS col1
----
-98

query I rowsort
SELECT DISTINCT ( - - 89 ) * 95
----
8455

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1051
SELECT ALL - + CAST( NULL AS SIGNED ) + + 72 / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 72 / 81
----
NULL

query I rowsort
SELECT ALL + 85 + - 73 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT 48 * - CASE CASE - 88 WHEN - 87 * + 96 THEN - 64 * + 7 END WHEN - COUNT( * ) * CAST( NULL AS SIGNED ) + + COUNT( * ) THEN NULL WHEN - AVG ( ALL - 82 ) THEN NULL WHEN + 24 THEN 81 END * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT 48 * - CASE CASE - 88 WHEN - 87 * + 96 THEN - 64 * + 7 END WHEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + COUNT ( * ) THEN NULL WHEN - AVG ( ALL - 82 ) THEN NULL WHEN + 24 THEN 81 END * + 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1054
SELECT ALL - COALESCE ( + - COUNT( * ), - 6 + - CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL - COALESCE ( + - COUNT ( * ), - 6 + - CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT COUNT( DISTINCT - - 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1055
SELECT COUNT ( DISTINCT - - 37 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1056
SELECT 30 * - NULLIF ( 17, 98 * 91 + SUM( + 53 + + 0 ) ) * CAST( NULL AS SIGNED ) - - ( + 36 + + 20 * - 72 ) * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT 30 * - NULLIF ( 17, 98 * 91 + SUM ( + 53 + + 0 ) ) * CAST ( NULL AS INTEGER ) - - ( + 36 + + 20 * - 72 ) * + 58
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT - 18 DIV 69 - 35
----
-35

skipif mysql # not compatible
query I rowsort label-1058
SELECT - 18 / 69 - 35
----
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ALL - MAX( 95 ) - + 94
----
-189

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL - MAX ( 95 ) - + 94
----
-189

query I rowsort
SELECT ALL - 12 * - 57 AS col1
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL - COALESCE ( - SUM( DISTINCT - 29 ), + NULLIF ( 53, COUNT( * ) + COUNT( * ) ) * COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL - COALESCE ( - SUM ( DISTINCT - 29 ), + NULLIF ( 53, COUNT ( * ) + COUNT ( * ) ) * COUNT ( * ) )
----
-29

query I rowsort
SELECT + 55 * 82 - + 25 + 42 AS col2
----
4527

query II rowsort
SELECT + 11 AS col1, + 79 AS col0
----
11
79

query I rowsort
SELECT DISTINCT - NULLIF ( + 25, 49 ) col1
----
-25

query I rowsort
SELECT ALL - 13 * 90 AS col0
----
-1170

query I rowsort
SELECT 42 + + 13
----
55

query I rowsort
SELECT 58 * - + ( - 90 ) * 76 + + 47 col0
----
396767

query I rowsort
SELECT 87 - 30
----
57

query I rowsort
SELECT 94 + - 16 + - 27
----
51

query I rowsort
SELECT + 17 * - 51 - - + ( - 31 ) AS col1
----
-898

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT 68 * 69 DIV + 75
----
62

skipif mysql # not compatible
query I rowsort label-1073
SELECT 68 * 69 / + 75
----
62

query I rowsort
SELECT NULLIF ( - + 94, - 71 ) * + 78
----
-7332

query I rowsort
SELECT DISTINCT - 68 + + 28 - + 59 + + 42 * 84
----
3429

query I rowsort
SELECT ALL ( - + ( + 99 ) ) + 42
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT DISTINCT MAX( - - 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT MAX ( - - 29 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL - - COUNT( * ) + + COUNT( * ) * - - ( - COALESCE ( 25, 45 * + 15 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) * - - ( - COALESCE ( 25, 45 * + 15 ) )
----
-24

query I rowsort
SELECT 55 + 57 AS col0
----
112

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

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

query I rowsort
SELECT 44 * + ( ( + 31 ) ) AS col0
----
1364

query I rowsort
SELECT DISTINCT - CASE + 22 WHEN + 10 THEN 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT DISTINCT + + COUNT( * ) + + 37 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT + + COUNT ( * ) + + 37 AS col0
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1084
SELECT ALL - + CAST( NULL AS DECIMAL ) * + 0 AS col1
----
NULL

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

query I rowsort
SELECT ALL ( - 75 ) AS col2
----
-75

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

query I rowsort
SELECT ALL - 14 + - + 87
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1088
SELECT DISTINCT + COUNT( * ), + 36 DIV 20
----
1
1

skipif mysql # not compatible
query II rowsort label-1088
SELECT DISTINCT + COUNT ( * ), + 36 / 20
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1089
SELECT - + CAST( NULL AS SIGNED ) AS col1, - 67
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-1089
SELECT - + CAST ( NULL AS INTEGER ) AS col1, - 67
----
NULL
-67

query I rowsort
SELECT ALL 82 + + 82 + - + 35 AS col2
----
129

query II rowsort
SELECT ALL + 6, - 20 AS col2
----
6
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT - MIN( DISTINCT + 48 ) + + 6 + - COUNT( * ) * + 44 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1092
SELECT - MIN ( DISTINCT + 48 ) + + 6 + - COUNT ( * ) * + 44 AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1093
SELECT - - 93 AS col1, - CASE 10 WHEN COALESCE ( NULLIF ( - 10, + 76 / - CAST( NULL AS SIGNED ) ), - ( - COUNT( * ) ) ) * + 67 THEN 39 END
----
93
NULL

skipif mysql # not compatible
query II rowsort label-1093
SELECT - - 93 AS col1, - CASE 10 WHEN COALESCE ( NULLIF ( - 10, + 76 / - CAST ( NULL AS INTEGER ) ), - ( - COUNT ( * ) ) ) * + 67 THEN 39 END
----
93
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT - 78 - - 17 + - + 20 * ( 77 DIV 32 ) AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-1094
SELECT - 78 - - 17 + - + 20 * ( 77 / 32 ) AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT + 18 * + + NULLIF ( + + 76, - COUNT( DISTINCT + 91 ) + 72 ) AS col2
----
1368

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 18 * + + NULLIF ( + + 76, - COUNT ( DISTINCT + 91 ) + 72 ) AS col2
----
1368

query I rowsort
SELECT - 91 * + 61 + + 17 * 18 AS col2
----
-5245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1097
SELECT - ( - - 86 ) - + 39 + CAST( - 12 AS SIGNED ) * - 57 AS col1
----
559

skipif mysql # not compatible
query I rowsort label-1097
SELECT - ( - - 86 ) - + 39 + CAST ( - 12 AS INTEGER ) * - 57 AS col1
----
559

query I rowsort
SELECT ( + - 67 ) * + 71 + 88 * + ( + 12 )
----
-3701

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT DISTINCT - MIN( ALL + 47 ) * + + ( 2 ) + 79 * - 95 AS col1
----
-7599

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT - MIN ( ALL + 47 ) * + + ( 2 ) + 79 * - 95 AS col1
----
-7599

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL + COALESCE ( 8, - NULLIF ( + 92, 30 * COUNT( ALL - 73 ) ), + 47 * COUNT( * ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL + COALESCE ( 8, - NULLIF ( + 92, 30 * COUNT ( ALL - 73 ) ), + 47 * COUNT ( * ) ) AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1101
SELECT + 98 + - - 81 - - + 49 DIV - COUNT( * ) - + SUM( ALL 53 - + 44 ) AS col1
----
121

skipif mysql # not compatible
query I rowsort label-1101
SELECT + 98 + - - 81 - - + 49 / - COUNT ( * ) - + SUM ( ALL 53 - + 44 ) AS col1
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1102
SELECT ALL - NULLIF ( - 49, - COUNT( * ) * 24 ) * 61 - + COUNT( * ) DIV 37
----
2989

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL - NULLIF ( - 49, - COUNT ( * ) * 24 ) * 61 - + COUNT ( * ) / 37
----
2989

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT 21 * COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT 21 * COUNT ( * ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT SUM( ALL - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1104
SELECT SUM ( ALL - 11 ) AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1105
SELECT + COUNT( * ) DIV - 2 + + - NULLIF ( CAST( 43 AS SIGNED ), + ( 92 ) ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-1105
SELECT + COUNT ( * ) / - 2 + + - NULLIF ( CAST ( 43 AS INTEGER ), + ( 92 ) ) / 90
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1108
SELECT ALL SUM( ALL 47 ) * - + CAST( NULL AS SIGNED ) + + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL SUM ( ALL 47 ) * - + CAST ( NULL AS INTEGER ) + + 92 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + ( + 72 ) AS col1, 51 AS col2
----
72
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1110
SELECT DISTINCT + 37 + - 14 + - CAST( NULL AS SIGNED ) / + 20 * 92 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT + 37 + - 14 + - CAST ( NULL AS INTEGER ) / + 20 * 92 * COUNT ( * )
----
NULL

query I rowsort
SELECT + ( + - 87 ) + - 78
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1112
SELECT - 96 - + 16 AS col2, CAST( NULL AS SIGNED ) AS col0
----
-112
NULL

skipif mysql # not compatible
query II rowsort label-1112
SELECT - 96 - + 16 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
-112
NULL

query I rowsort
SELECT - - 84 + + 18 + - ( + 96 )
----
6

query I rowsort
SELECT ALL - 79 + + 9 * 34 AS col1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT + + 10 + COUNT( * ) + + 78 * + 3 * + ( - 32 ) col1
----
-7477

skipif mysql # not compatible
query I rowsort label-1115
SELECT + + 10 + COUNT ( * ) + + 78 * + 3 * + ( - 32 ) col1
----
-7477

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT - + COUNT( ALL + 81 ) + SUM( + + 52 ) + 44
----
95

skipif mysql # not compatible
query I rowsort label-1116
SELECT - + COUNT ( ALL + 81 ) + SUM ( + + 52 ) + 44
----
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT - - NULLIF ( - 17, + COUNT( * ) - - 28 * - 57 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1118
SELECT - - NULLIF ( - 17, + COUNT ( * ) - - 28 * - 57 ) AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1119
SELECT ALL CAST( + 71 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL CAST ( + 71 AS INTEGER ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1120
SELECT ALL 52 * - 9, COUNT( ALL 98 ) * 62 AS col1
----
-468
62

skipif mysql # not compatible
query II rowsort label-1120
SELECT ALL 52 * - 9, COUNT ( ALL 98 ) * 62 AS col1
----
-468
62

query I rowsort
SELECT DISTINCT NULLIF ( - - 60, - 72 + + 75 + 34 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT ALL + - ( - 64 ) - - MAX( DISTINCT - - 92 )
----
156

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL + - ( - 64 ) - - MAX ( DISTINCT - - 92 )
----
156

query II rowsort
SELECT ( 37 ), + 37
----
37
37

query I rowsort
SELECT ALL - 94 * 55
----
-5170

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT - 79 * - ( + ( + MAX( ALL + 62 ) ) )
----
4898

skipif mysql # not compatible
query I rowsort label-1125
SELECT - 79 * - ( + ( + MAX ( ALL + 62 ) ) )
----
4898

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL + 2 - + - COALESCE ( - + MAX( DISTINCT - 83 ), 78, - 99 ) - + 26 * + 18
----
-383

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL + 2 - + - COALESCE ( - + MAX ( DISTINCT - 83 ), 78, - 99 ) - + 26 * + 18
----
-383

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - - 22 * + 95 + - COUNT( * ) col1
----
2089

skipif mysql # not compatible
query I rowsort label-1128
SELECT - - 22 * + 95 + - COUNT ( * ) col1
----
2089

query II rowsort
SELECT ALL - 84 * + 22, 52 col1
----
-1848
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1130
SELECT ALL 10 DIV - - 76 * - 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL 10 / - - 76 * - 32 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT + MAX( 42 ) * - 80 AS col2
----
-3360

skipif mysql # not compatible
query I rowsort label-1132
SELECT + MAX ( 42 ) * - 80 AS col2
----
-3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1133
SELECT ALL 57 DIV - + MIN( ALL - + 95 ), - 0 - - 7 AS col2
----
0
7

skipif mysql # not compatible
query II rowsort label-1133
SELECT ALL 57 / - + MIN ( ALL - + 95 ), - 0 - - 7 AS col2
----
0
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + MIN( ALL 6 ) * + 92 * + SUM( ALL 25 )
----
13800

skipif mysql # not compatible
query I rowsort label-1135
SELECT + MIN ( ALL 6 ) * + 92 * + SUM ( ALL 25 )
----
13800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1136
SELECT 95 DIV - 79 - + 90 + + 35 + COUNT( * ) + + 47 * - 95 * + 33 AS col0
----
-147400

skipif mysql # not compatible
query I rowsort label-1136
SELECT 95 / - 79 - + 90 + + 35 + COUNT ( * ) + + 47 * - 95 * + 33 AS col0
----
-147400

query I rowsort
SELECT + 56 * + 22 AS col2
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT + ( + 3 ) * + SUM( + + 32 )
----
96

skipif mysql # not compatible
query I rowsort label-1138
SELECT + ( + 3 ) * + SUM ( + + 32 )
----
96

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

query I rowsort
SELECT ALL 21 * 14 + ( - - 75 ) * 86
----
6744

query I rowsort
SELECT ALL 90 * - 87 * 17 + + 63
----
-133047

query I rowsort
SELECT + 9 - + 12 + - 92
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1143
SELECT + CAST( NULL AS SIGNED ) * + 72 - + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT + CAST ( NULL AS INTEGER ) * + 72 - + 57 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1144
SELECT + CAST( + 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-1144
SELECT + CAST ( + 89 AS INTEGER ) AS col1
----
89

query I rowsort
SELECT ALL ( - 18 ) * 79 + 3
----
-1419

query I rowsort
SELECT + 90 * + - ( 26 ) AS col0
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT - 72 + NULLIF ( + COUNT( DISTINCT 93 ), - 86 + 41 / - 72 ) * - 54
----
-126

skipif mysql # not compatible
query I rowsort label-1147
SELECT - 72 + NULLIF ( + COUNT ( DISTINCT 93 ), - 86 + 41 / - 72 ) * - 54
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT - 31 - 47 + 62 * + + CAST( 91 AS SIGNED ) * + 32
----
180466

skipif mysql # not compatible
query I rowsort label-1148
SELECT - 31 - 47 + 62 * + + CAST ( 91 AS INTEGER ) * + 32
----
180466

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1150
SELECT DISTINCT 58 * - - MAX( + 95 ) * MIN( - 80 ) DIV + 1 - + 27 + - 22 DIV 21
----
-440828

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT 58 * - - MAX ( + 95 ) * MIN ( - 80 ) / + 1 - + 27 + - 22 / 21
----
-440828

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT DISTINCT + - 76 * - 89 - - CASE - 90 WHEN + ( 58 ) THEN 13 * 22 ELSE NULL END * + CASE - 23 WHEN + 64 THEN 78 * - 14 WHEN + COUNT( * ) THEN NULL ELSE + COUNT( * ) * ( 96 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT + - 76 * - 89 - - CASE - 90 WHEN + ( 58 ) THEN 13 * 22 ELSE NULL END * + CASE - 23 WHEN + 64 THEN 78 * - 14 WHEN + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) * ( 96 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1153
SELECT - + 12 DIV - + 51
----
0

skipif mysql # not compatible
query I rowsort label-1153
SELECT - + 12 / - + 51
----
0

query I rowsort
SELECT DISTINCT + + 70 * - - 99 * + - 31 + - - 62
----
-214768

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT - - 43 + 8 / - CASE + + ( + 48 ) WHEN 1 THEN 56 * 8 + 79 * + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT - - 43 + 8 / - CASE + + ( + 48 ) WHEN 1 THEN 56 * 8 + 79 * + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1156
SELECT - COUNT( * ) - - 26 + - NULLIF ( 5, 2 ) + + 93 * 43 DIV + 11 AS col1
----
383

skipif mysql # not compatible
query I rowsort label-1156
SELECT - COUNT ( * ) - - 26 + - NULLIF ( 5, 2 ) + + 93 * 43 / + 11 AS col1
----
383

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

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

query I rowsort
SELECT ALL 71 * 83 AS col2
----
5893

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1160
SELECT DISTINCT 95, COUNT( * ) * - NULLIF ( - 44, - 81 + 61 - + 53 * 61 ) AS col1
----
95
44

skipif mysql # not compatible
query II rowsort label-1160
SELECT DISTINCT 95, COUNT ( * ) * - NULLIF ( - 44, - 81 + 61 - + 53 * 61 ) AS col1
----
95
44

query I rowsort
SELECT 42 + - + COALESCE ( + 15, 50 * + 94 ) - - 82
----
109

query II rowsort
SELECT ALL 1, 44 AS col0
----
1
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT MIN( 91 ) - + 81
----
10

skipif mysql # not compatible
query I rowsort label-1163
SELECT MIN ( 91 ) - + 81
----
10

query I rowsort
SELECT ALL 3 + 0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1165
SELECT + 30 DIV + 13 + + + COUNT( * ) + + ( - 32 ) DIV COUNT( * ) - 58 DIV 21 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1165
SELECT + 30 / + 13 + + + COUNT ( * ) + + ( - 32 ) / COUNT ( * ) - 58 / 21 AS col1
----
-31

query I rowsort
SELECT ALL + 91 * 76 AS col2
----
6916

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1168
SELECT DISTINCT + 82 + + 66 * - CAST( NULL AS SIGNED )
----
NULL

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

query II rowsort
SELECT ALL - 58 col2, - 80 * + 33 AS col1
----
-58
-2640

query I rowsort
SELECT + 42 * 1 + + 5 + + 94 + + 72 * + 90 AS col2
----
6621

query I rowsort
SELECT ALL + 64 + - - 14 AS col0
----
78

query I rowsort
SELECT 67 * - 36 AS col1
----
-2412

query II rowsort
SELECT 67 AS col2, 27 AS col0
----
67
27

query I rowsort
SELECT + 4 * + 21 + 77
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-1175
SELECT 40, 72 + CASE + 36 WHEN + 13 + SUM( ALL ( + 57 ) ) THEN - 59 ELSE NULL END + 49 * AVG ( DISTINCT - 4 ) col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-1175
SELECT 40, 72 + CASE + 36 WHEN + 13 + SUM ( ALL ( + 57 ) ) THEN - 59 ELSE NULL END + 49 * AVG ( DISTINCT - 4 ) col2
----
40
NULL

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

query II rowsort
SELECT 83 + 74 * + ( 31 ) AS col0, - 39 * 31
----
2377
-1209

query I rowsort
SELECT 19 * - 93
----
-1767

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

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

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

query I rowsort
SELECT ALL ( + - 51 ) + + 62
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT DISTINCT + 47 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT + 47 / - 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT COUNT( * ) + + - 10 - 16 * - NULLIF ( + 56, - COUNT( * ) / + 10 ) + 59 AS col1
----
946

skipif mysql # not compatible
query I rowsort label-1183
SELECT COUNT ( * ) + + - 10 - 16 * - NULLIF ( + 56, - COUNT ( * ) / + 10 ) + 59 AS col1
----
946

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

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

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

query II rowsort
SELECT 91 * - + 61, - 12 AS col0
----
-5551
-12

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

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

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

query I rowsort
SELECT 99 + 54 AS col1
----
153

query I rowsort
SELECT + 22 * + + 76
----
1672

onlyif mysql # aggregate syntax: 
query II rowsort label-1191
SELECT ALL MIN( DISTINCT - 49 ), - COALESCE ( + 49, - 71 * + MAX( + 3 ) ) AS col2
----
-49
-49

skipif mysql # not compatible
query II rowsort label-1191
SELECT ALL MIN ( DISTINCT - 49 ), - COALESCE ( + 49, - 71 * + MAX ( + 3 ) ) AS col2
----
-49
-49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT COUNT( ALL - NULLIF ( + + 59, + 56 * + + 41 * + 28 ) ) + - 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1193
SELECT COUNT ( ALL - NULLIF ( + + 59, + 56 * + + 41 * + 28 ) ) + - 10 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT DISTINCT + COALESCE ( 55, 60, + 14 * - 17 DIV 15 )
----
55

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT + COALESCE ( 55, 60, + 14 * - 17 / 15 )
----
55

query I rowsort
SELECT + 97 + 83
----
180

query II rowsort
SELECT ALL + 83 AS col1, 10 + + 34
----
83
44

query I rowsort
SELECT ALL - ( - - 37 ) + + + 67
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT DISTINCT NULLIF ( 37, + + 3 - - 33 - + - 48 + - MIN( 9 ) + 68 / - 3 ) * 85 col2
----
3145

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT NULLIF ( 37, + + 3 - - 33 - + - 48 + - MIN ( 9 ) + 68 / - 3 ) * 85 col2
----
3145

onlyif mysql # DIV for integer division: 
query II rowsort label-1199
SELECT ALL + 67 + - 66, 93 * - - 98 - - 73 DIV + - 18 AS col2
----
1
9110

skipif mysql # not compatible
query II rowsort label-1199
SELECT ALL + 67 + - 66, 93 * - - 98 - - 73 / + - 18 AS col2
----
1
9110

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT MIN( ALL + 89 ) + + + 98 AS col2
----
187

skipif mysql # not compatible
query I rowsort label-1200
SELECT MIN ( ALL + 89 ) + + + 98 AS col2
----
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1201
SELECT 61 * 80 * COUNT( * ) DIV 58 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1201
SELECT 61 * 80 * COUNT ( * ) / 58 AS col1
----
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL 39 * + SUM( ALL + 52 ) AS col2
----
2028

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL 39 * + SUM ( ALL + 52 ) AS col2
----
2028

query I rowsort
SELECT 77 * 7 AS col0
----
539

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT ALL - 23 DIV + + 17 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL - 23 / + + 17 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT DISTINCT 7 * - 19 + - - MAX( ALL + 11 ) AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT 7 * - 19 + - - MAX ( ALL + 11 ) AS col1
----
-122

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

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

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

skipif mysql # not compatible
query I rowsort label-1208
SELECT + 0 * + 75 - - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1209
SELECT COUNT( * ) * + 66 DIV + + 51 col0, 74 AS col1
----
1
74

skipif mysql # not compatible
query II rowsort label-1209
SELECT COUNT ( * ) * + 66 / + + 51 col0, 74 AS col1
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT 33 * - - COUNT( * ) - 22
----
11

skipif mysql # not compatible
query I rowsort label-1210
SELECT 33 * - - COUNT ( * ) - 22
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1211
SELECT DISTINCT + COUNT( * ) * + 7 AS col1, - 77 * CAST( 82 AS SIGNED )
----
7
-6314

skipif mysql # not compatible
query II rowsort label-1211
SELECT DISTINCT + COUNT ( * ) * + 7 AS col1, - 77 * CAST ( 82 AS INTEGER )
----
7
-6314

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1213
SELECT ALL - ( - 80 ) col0, + MIN( ALL + 87 ) + - 78
----
80
9

skipif mysql # not compatible
query II rowsort label-1213
SELECT ALL - ( - 80 ) col0, + MIN ( ALL + 87 ) + - 78
----
80
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1214
SELECT ALL - - ( 58 ) AS col0, ( + COUNT( * ) ) * + NULLIF ( + - 57, 3 + 67 ) DIV 27
----
58
-2

skipif mysql # not compatible
query II rowsort label-1214
SELECT ALL - - ( 58 ) AS col0, ( + COUNT ( * ) ) * + NULLIF ( + - 57, 3 + 67 ) / 27
----
58
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT ALL 76 DIV + ( - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL 76 / + ( - 76 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-1216
SELECT - SUM ( CAST ( - + 67 AS INTEGER ) )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT + 73 DIV - 84 + + 27
----
27

skipif mysql # not compatible
query I rowsort label-1217
SELECT + 73 / - 84 + + 27
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1218
SELECT ALL - 46 DIV - 91 - 75 * COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - 46 / - 91 - 75 * COUNT ( * ) AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1219
SELECT + + CAST( NULL AS SIGNED ) * NULLIF ( + 10, + COUNT( * ) * - 99 ) AS col0, + 71 AS col2
----
NULL
71

skipif mysql # not compatible
query II rowsort label-1219
SELECT + + CAST ( NULL AS INTEGER ) * NULLIF ( + 10, + COUNT ( * ) * - 99 ) AS col0, + 71 AS col2
----
NULL
71

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

query I rowsort
SELECT ALL - 65 * + 25
----
-1625

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

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

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

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

query I rowsort
SELECT + 22 * + 87 + + - 45 AS col2
----
1869

query I rowsort
SELECT ALL 6 + - - 87
----
93

query I rowsort
SELECT + ( + - 17 ) + + 92
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1228
SELECT + ( + + COUNT( * ) ), 13 * + - 75 AS col1
----
1
-975

skipif mysql # not compatible
query II rowsort label-1228
SELECT + ( + + COUNT ( * ) ), 13 * + - 75 AS col1
----
1
-975

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1229
SELECT + ( + CASE 76 WHEN + CAST( NULL AS DECIMAL ) * 65 + + COUNT( * ) + 0 * - - 10 THEN + 96 DIV ( - ( - 94 ) * COUNT( ALL ( + 69 ) ) ) ELSE + 19 END ) + + 2 * + 27
----
73

skipif mysql # not compatible
query I rowsort label-1229
SELECT + ( + CASE 76 WHEN + CAST ( NULL AS REAL ) * 65 + + COUNT ( * ) + 0 * - - 10 THEN + 96 / ( - ( - 94 ) * COUNT ( ALL ( + 69 ) ) ) ELSE + 19 END ) + + 2 * + 27
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL COUNT( * ) + + ( - 80 ) * - 87 * + 99 * + - 54 - SUM( + + 33 )
----
-37208192

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL COUNT ( * ) + + ( - 80 ) * - 87 * + 99 * + - 54 - SUM ( + + 33 )
----
-37208192

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

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

query I rowsort
SELECT DISTINCT 57 + 46 AS col1
----
103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL - COUNT( * ) * + NULLIF ( - - COUNT( * ), + - 93 - - COUNT( * ) + - 6 / + 14 * - 46 ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL - COUNT ( * ) * + NULLIF ( - - COUNT ( * ), + - 93 - - COUNT ( * ) + - 6 / + 14 * - 46 ) * - 95
----
95

query I rowsort
SELECT + 86 + - ( 72 ) AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT - ( + 5 ) + - 81 + + 44 + 18 + ( + - 48 ) DIV - 64 * + 9
----
-24

skipif mysql # not compatible
query I rowsort label-1236
SELECT - ( + 5 ) + - 81 + + 44 + 18 + ( + - 48 ) / - 64 * + 9
----
-24

query I rowsort
SELECT + CASE + 95 WHEN - 47 * 73 THEN - 70 * + 26 + 72 END + - 13 + + ( + 29 ) / AVG ( 63 * 70 ) AS col2
----
NULL

query II rowsort
SELECT ALL 44 * ( - ( - 51 ) ), 99 col1
----
2244
99

query I rowsort
SELECT + 50 + - - 68
----
118

query I rowsort
SELECT - 55 - + 38 + - 97 AS col1
----
-190

query I rowsort
SELECT - 32 - - + 3 AS col1
----
-29

query I rowsort
SELECT ( + - 33 ) col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT 37 * - - ( - - 85 ) * - - 43 + - 73 - 28 - - 1 - + COUNT( * ) * 99 * + COUNT( DISTINCT - 39 )
----
135036

skipif mysql # not compatible
query I rowsort label-1243
SELECT 37 * - - ( - - 85 ) * - - 43 + - 73 - 28 - - 1 - + COUNT ( * ) * 99 * + COUNT ( DISTINCT - 39 )
----
135036

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL - 21 * + - COUNT( * ) * - 30 - - MIN( ALL + - 91 ) + - SUM( DISTINCT + + 96 ) * + 2 + - 16
----
-929

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - 21 * + - COUNT ( * ) * - 30 - - MIN ( ALL + - 91 ) + - SUM ( DISTINCT + + 96 ) * + 2 + - 16
----
-929

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT - 20 DIV + - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1245
SELECT - 20 / + - 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT - 96 + + - NULLIF ( - 55, + 37 ) + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-1246
SELECT - 96 + + - NULLIF ( - 55, + 37 ) + COUNT ( * )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1247
SELECT ALL - ( CAST( NULL AS SIGNED ) ) / - - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) / - - 36 AS col0
----
NULL

query I rowsort
SELECT - 72 + - + 23 * + 55 + + 30 * - 17
----
-1847

query I rowsort
SELECT ALL + 44 * - + 51 - - 67 AS col0
----
-2177

query I rowsort
SELECT DISTINCT + CASE 69 WHEN - COALESCE ( + 54, 62, 40 ) THEN NULL ELSE - - 60 END
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + 7 * 49 - + - CASE + 92 WHEN - 29 * 65 / - 66 + - 37 / + ( + COUNT( * ) ) THEN 58 * 66 ELSE + 19 END
----
362

skipif mysql # not compatible
query I rowsort label-1251
SELECT + 7 * 49 - + - CASE + 92 WHEN - 29 * 65 / - 66 + - 37 / + ( + COUNT ( * ) ) THEN 58 * 66 ELSE + 19 END
----
362

query I rowsort
SELECT - 77 * 59 AS col1
----
-4543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1253
SELECT - - 22 * COUNT( * ) + 9 * + + 4 + - CAST( - 86 AS SIGNED ) * + - 14 * - COUNT( * ) + + SUM( ( 1 ) + 91 ) DIV + 38 col2
----
1264

skipif mysql # not compatible
query I rowsort label-1253
SELECT - - 22 * COUNT ( * ) + 9 * + + 4 + - CAST ( - 86 AS INTEGER ) * + - 14 * - COUNT ( * ) + + SUM ( ( 1 ) + 91 ) / + 38 col2
----
1264

query I rowsort
SELECT - 4 + + 66
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT + + 50 * + - 83 + COALESCE ( - COUNT( * ), - 64 - + 93, 5 ) col0
----
-4151

skipif mysql # not compatible
query I rowsort label-1255
SELECT + + 50 * + - 83 + COALESCE ( - COUNT ( * ), - 64 - + 93, 5 ) col0
----
-4151

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

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

query II rowsort
SELECT ALL + + 27 AS col2, 58
----
27
58

query II rowsort
SELECT DISTINCT + - 36 col1, ( + 47 ) * + 0 AS col2
----
-36
0

query II rowsort
SELECT ALL + 67 AS col0, - 71 AS col1
----
67
-71

query II rowsort
SELECT + 63 AS col0, 40 + + 12
----
63
52

query I rowsort
SELECT ALL 8 * + + 15 + 59 * + - 79 AS col2
----
-4541

query I rowsort
SELECT + - 23 + + 81 - + 16 + - 34 * 27 AS col2
----
-876

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL SUM( 30 ) * - 11 + + - 80 col2
----
-410

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL SUM ( 30 ) * - 11 + + - 80 col2
----
-410

onlyif mysql # aggregate syntax: 
query II rowsort label-1264
SELECT - 97 col0, NULLIF ( - - 30, - 43 + - 58 + + - COUNT( * ) - + 27 + + NULLIF ( 31, + 1 ) * 62 * 48 ) AS col2
----
-97
30

skipif mysql # not compatible
query II rowsort label-1264
SELECT - 97 col0, NULLIF ( - - 30, - 43 + - 58 + + - COUNT ( * ) - + 27 + + NULLIF ( 31, + 1 ) * 62 * 48 ) AS col2
----
-97
30

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

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

query I rowsort
SELECT - 82 * - - 13
----
-1066

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

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

query I rowsort
SELECT ALL + 95 + 67 + - 61 AS col2
----
101

query I rowsort
SELECT ALL + 32 + 75
----
107

query I rowsort
SELECT - 74 * 4 AS col1
----
-296

query I rowsort
SELECT + 80 * + 54 AS col1
----
4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT DISTINCT 85 * + COALESCE ( CAST( 25 AS SIGNED ), - + COUNT( + + 99 ), - 65, 49 + + 80 * 47 )
----
2125

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT 85 * + COALESCE ( CAST ( 25 AS INTEGER ), - + COUNT ( + + 99 ), - 65, 49 + + 80 * 47 )
----
2125

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + 56 + - + COUNT( ALL - 67 )
----
55

skipif mysql # not compatible
query I rowsort label-1273
SELECT + 56 + - + COUNT ( ALL - 67 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1274
SELECT + 32 + + + 81 + - COUNT( * ) * 7 + - 91 - 91 DIV + - MIN( DISTINCT 72 ) + + 55 * 72
----
3976

skipif mysql # not compatible
query I rowsort label-1274
SELECT + 32 + + + 81 + - COUNT ( * ) * 7 + - 91 - 91 / + - MIN ( DISTINCT 72 ) + + 55 * 72
----
3976

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1276
SELECT ALL SUM( - + 99 ), 14 AS col2
----
-99
14

skipif mysql # not compatible
query II rowsort label-1276
SELECT ALL SUM ( - + 99 ), 14 AS col2
----
-99
14

query I rowsort
SELECT + 14 + + 42
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1278
SELECT + CAST( - COALESCE ( - 19, + 69 + - - 83 ) AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-1278
SELECT + CAST ( - COALESCE ( - 19, + 69 + - - 83 ) AS INTEGER )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT DISTINCT 37 DIV + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1279
SELECT DISTINCT 37 / + 76 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1280
SELECT + 48 * + COUNT( * ), + 95 - + 61 AS col2
----
48
34

skipif mysql # not compatible
query II rowsort label-1280
SELECT + 48 * + COUNT ( * ), + 95 - + 61 AS col2
----
48
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL COUNT( DISTINCT 21 ) * + 4 col2
----
4

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL COUNT ( DISTINCT 21 ) * + 4 col2
----
4

query I rowsort
SELECT + 78 * + 49 AS col1
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT - - COALESCE ( - - SUM( DISTINCT - 68 ), - 71 ) * + - 60 + 21 AS col0
----
4101

skipif mysql # not compatible
query I rowsort label-1283
SELECT - - COALESCE ( - - SUM ( DISTINCT - 68 ), - 71 ) * + - 60 + 21 AS col0
----
4101

onlyif mysql # aggregate syntax: 
query II rowsort label-1284
SELECT MAX( + 98 ) AS col1, + 29
----
98
29

skipif mysql # not compatible
query II rowsort label-1284
SELECT MAX ( + 98 ) AS col1, + 29
----
98
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT - MIN( 31 ) + - 44 + - + 37 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-1285
SELECT - MIN ( 31 ) + - 44 + - + 37 AS col2
----
-112

query I rowsort
SELECT ALL - 21 + - + 16 - 55 * + 10
----
-587

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1288
SELECT ALL - + CAST( NULL AS SIGNED ) + MAX( ALL + + 0 ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL - + CAST ( NULL AS INTEGER ) + MAX ( ALL + + 0 ) + - 99
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT + 87 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT - 64 DIV + 92 + + 27 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1290
SELECT - 64 / + 92 + + 27 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1291
SELECT ( 62 ) * 8 + - 68 DIV + - 72 * + COALESCE ( + - 97, 73 + CAST( NULL AS SIGNED ) * - 50 ) - - COUNT( * )
----
497

skipif mysql # not compatible
query I rowsort label-1291
SELECT ( 62 ) * 8 + - 68 / + - 72 * + COALESCE ( + - 97, 73 + CAST ( NULL AS INTEGER ) * - 50 ) - - COUNT ( * )
----
497

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL 38 + + 70 * + COUNT( * )
----
108

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL 38 + + 70 * + COUNT ( * )
----
108

query I rowsort
SELECT ALL - + 56 + 43 col0
----
-13

query I rowsort
SELECT DISTINCT - - 6 + 85
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1295
SELECT - 13 * + 95 + AVG ( - CAST( NULL AS SIGNED ) ) + 83 * 57 + - 80 + + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1295
SELECT - 13 * + 95 + AVG ( - CAST ( NULL AS INTEGER ) ) + 83 * 57 + - 80 + + + 84 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1296
SELECT ALL - CAST( - ( + 53 ) AS SIGNED ) + + + 67 + 83 + + COUNT( * ) * - 65 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - CAST ( - ( + 53 ) AS INTEGER ) + + + 67 + 83 + + COUNT ( * ) * - 65 AS col2
----
138

query II rowsort
SELECT + ( + 92 ), 56 * - + 43 AS col2
----
92
-2408

query I rowsort
SELECT DISTINCT + 44 + 34 + 68 col1
----
146

query I rowsort
SELECT DISTINCT COALESCE ( + - 12, + 27 * + 97 )
----
-12

query I rowsort
SELECT DISTINCT + 69 + 88
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT ALL - COUNT( * ) - 84 * + 5 AS col0
----
-421

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL - COUNT ( * ) - 84 * + 5 AS col0
----
-421

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1302
SELECT ALL CASE 23 WHEN AVG ( - + 74 ) THEN NULLIF ( - COUNT( * ), + - COUNT( * ) DIV + + 1 ) DIV - 48 + 62 + NULLIF ( 82, - 8 * 88 ) * 47 - 34 WHEN + NULLIF ( + 20, ( CAST( 24 AS DECIMAL ) ) ) * + 80 + - COUNT( * ) * - 84 THEN 15 ELSE 2 END - MIN( ( 59 ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL CASE 23 WHEN AVG ( - + 74 ) THEN NULLIF ( - COUNT ( * ), + - COUNT ( * ) / + + 1 ) / - 48 + 62 + NULLIF ( 82, - 8 * 88 ) * 47 - 34 WHEN + NULLIF ( + 20, ( CAST ( 24 AS REAL ) ) ) * + 80 + - COUNT ( * ) * - 84 THEN 15 ELSE 2 END - MIN ( ( 59 ) ) AS col1
----
-57

query I rowsort
SELECT 3 * + + 32 AS col2
----
96

query I rowsort
SELECT 77 + - 7 AS col0
----
70

query I rowsort
SELECT 86 + + + 89 - - 75 * - 97
----
-7100

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

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL + 1 - - COUNT ( * ) - + 57
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT 93 DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1307
SELECT 93 / + 96 AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT DISTINCT + 19 DIV - 3
----
-6

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT + 19 / - 3
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1310
SELECT COUNT( * ) + + 2 * - 45 AS col1, - 87 AS col0
----
-89
-87

skipif mysql # not compatible
query II rowsort label-1310
SELECT COUNT ( * ) + + 2 * - 45 AS col1, - 87 AS col0
----
-89
-87

query I rowsort
SELECT DISTINCT + 83 * 55 AS col1
----
4565

query I rowsort
SELECT DISTINCT - ( + 58 ) * - 7 + - 85
----
321

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT 2 + - MIN( + 4 ) - - 83 + - 59 * 12 AS col2
----
-627

skipif mysql # not compatible
query I rowsort label-1313
SELECT 2 + - MIN ( + 4 ) - - 83 + - 59 * 12 AS col2
----
-627

query I rowsort
SELECT ALL 31 + - + 86 col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT 11 + + 47 + - COUNT( * ) + - 2 - 14 * 49 + + CASE - - 98 WHEN 55 THEN - 77 + ( ( + 73 ) ) END * 88 * - CASE COUNT( * ) WHEN - 7 * COALESCE ( - 18, - 95 * 50 + - 25 * COUNT( * ) ) THEN NULL WHEN 25 THEN - COUNT( * ) + 64 / COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT 11 + + 47 + - COUNT ( * ) + - 2 - 14 * 49 + + CASE - - 98 WHEN 55 THEN - 77 + ( ( + 73 ) ) END * 88 * - CASE COUNT ( * ) WHEN - 7 * COALESCE ( - 18, - 95 * 50 + - 25 * COUNT ( * ) ) THEN NULL WHEN 25 THEN - COUNT ( * ) + 64 / COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT COUNT( * ) - + + 35 + - COALESCE ( 7, - - 52 * + NULLIF ( + 94, - COUNT( * ) * - MIN( ALL - ( 36 ) ) ) + NULLIF ( - 31 + 63 * - 0, - ( 73 ) * - 58 ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1316
SELECT COUNT ( * ) - + + 35 + - COALESCE ( 7, - - 52 * + NULLIF ( + 94, - COUNT ( * ) * - MIN ( ALL - ( 36 ) ) ) + NULLIF ( - 31 + 63 * - 0, - ( 73 ) * - 58 ) ) AS col1
----
-41

query I rowsort
SELECT NULLIF ( + 69, - 29 ) + 94 * - 67 + - 86 AS col0
----
-6315

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT DISTINCT 51 + - + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT 51 + - + COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL - COUNT( * ) + COUNT( * ) - - 58 * CASE - COUNT( * ) WHEN - 21 * + CASE + - 84 WHEN - + 74 * + - 19 * - COUNT( ALL + 74 * NULLIF ( - 1, 77 ) ) THEN NULL WHEN + ( 97 ) / + MAX( - 9 ) - + 47 * - COUNT( * ) THEN MIN( ALL + 71 ) END * 6 THEN NULL WHEN 48 THEN NULL ELSE + MIN( - 15 ) END + - ( 77 ) * 76 AS col1
----
-6722

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL - COUNT ( * ) + COUNT ( * ) - - 58 * CASE - COUNT ( * ) WHEN - 21 * + CASE + - 84 WHEN - + 74 * + - 19 * - COUNT ( ALL + 74 * NULLIF ( - 1, 77 ) ) THEN NULL WHEN + ( 97 ) / + MAX ( - 9 ) - + 47 * - COUNT ( * ) THEN MIN ( ALL + 71 ) END * 6 THEN NULL WHEN 48 THEN NULL ELSE + MIN ( - 15 ) END + - ( 77 ) * 76 AS col1
----
-6722

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL SUM( - + 11 ) + + 37 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL SUM ( - + 11 ) + + 37 AS col2
----
26

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

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

query I rowsort
SELECT DISTINCT - - ( COALESCE ( CASE - 22 WHEN + 71 THEN + + 92 WHEN 88 + + + AVG ( DISTINCT 44 ) THEN NULL ELSE NULL END, 56, ( + 7 ) ) )
----
56

query I rowsort
SELECT ALL - 67 + 95 AS col2
----
28

query I rowsort
SELECT ALL + 9 + 22
----
31

query I rowsort
SELECT + CASE - ( + CASE ( 55 ) WHEN - 45 THEN + 16 + + 13 ELSE + 25 END ) WHEN 58 THEN - 52 END
----
NULL

query I rowsort
SELECT 40 * - 92 AS col2
----
-3680

query I rowsort
SELECT ALL 58 * - 9 col2
----
-522

query I rowsort
SELECT 70 + - 47 - - 66
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1329
SELECT - 98 DIV MAX( - + 55 ) * - 13
----
-13

skipif mysql # not compatible
query I rowsort label-1329
SELECT - 98 / MAX ( - + 55 ) * - 13
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1330
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) * 67, 64 AS col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-1330
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 67, 64 AS col1
----
NULL
64

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

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

query I rowsort
SELECT ALL 81 + + - ( 53 ) AS col2
----
28

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

skipif mysql # not compatible
query I rowsort label-1333
SELECT 47 + + CAST ( NULL AS INTEGER ) - - 31 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 15 * - 24 AS col1
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT ALL - CASE + COUNT( * ) WHEN - - 77 * - - MAX( ALL + 16 ) * + + 40 * - 25 + - 62 + - 95 + - - COUNT( * ) * 33 + 79 THEN NULL WHEN - 52 THEN - 24 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL - CASE + COUNT ( * ) WHEN - - 77 * - - MAX ( ALL + 16 ) * + + 40 * - 25 + - 62 + - 95 + - - COUNT ( * ) * 33 + 79 THEN NULL WHEN - 52 THEN - 24 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + + 91 * - NULLIF ( + + 82, - 31 ) + CASE - + NULLIF ( - + COUNT( * ), COALESCE ( COUNT( * ), + 97 ) / 76 + + 13 ) WHEN 17 + + 69 THEN NULL WHEN - ( + 65 ) - 0 THEN NULL ELSE 2 END col1
----
-7460

skipif mysql # not compatible
query I rowsort label-1336
SELECT + + 91 * - NULLIF ( + + 82, - 31 ) + CASE - + NULLIF ( - + COUNT ( * ), COALESCE ( COUNT ( * ), + 97 ) / 76 + + 13 ) WHEN 17 + + 69 THEN NULL WHEN - ( + 65 ) - 0 THEN NULL ELSE 2 END col1
----
-7460

query I rowsort
SELECT ALL - 40 - + - NULLIF ( - 91, - 63 ) AS col1
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1338
SELECT DISTINCT + 35 DIV COUNT( * ) + ( - + 38 )
----
-3

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT + 35 / COUNT ( * ) + ( - + 38 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1339
SELECT MIN( DISTINCT - 42 ) * CAST( + NULLIF ( - CASE + + 28 WHEN 86 + - 59 THEN + + 58 WHEN + 70 * 27 THEN NULL END, - 5 * COALESCE ( - CAST( + 40 AS SIGNED ) / + 29, + COUNT( DISTINCT - 98 ) + 46 ) ) AS SIGNED ) * - 12 + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT MIN ( DISTINCT - 42 ) * CAST ( + NULLIF ( - CASE + + 28 WHEN 86 + - 59 THEN + + 58 WHEN + 70 * 27 THEN NULL END, - 5 * COALESCE ( - CAST ( + 40 AS INTEGER ) / + 29, + COUNT ( DISTINCT - 98 ) + 46 ) ) AS INTEGER ) * - 12 + 85
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1340
SELECT ALL - - 28 - - - ( + 15 ) + - MIN( DISTINCT 53 ) + - COUNT( * ) DIV + + 33 * + - 17
----
-40

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL - - 28 - - - ( + 15 ) + - MIN ( DISTINCT 53 ) + - COUNT ( * ) / + + 33 * + - 17
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT 97 + + 63 - + COUNT( * )
----
159

skipif mysql # not compatible
query I rowsort label-1341
SELECT 97 + + 63 - + COUNT ( * )
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT + SUM( DISTINCT 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1342
SELECT + SUM ( DISTINCT 49 ) AS col2
----
49

query I rowsort
SELECT 3 + 11
----
14

query I rowsort
SELECT 12 + - 20 * + 53
----
-1048

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT 96 * + MIN( DISTINCT + 92 ) AS col2
----
8832

skipif mysql # not compatible
query I rowsort label-1345
SELECT 96 * + MIN ( DISTINCT + 92 ) AS col2
----
8832

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

query I rowsort
SELECT ALL 26 * 89 * + - 65 * 19 AS col1
----
-2857790

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

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

query II rowsort
SELECT DISTINCT 19 AS col0, - 7
----
19
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1350
SELECT 28 DIV - + CAST( - ( + - 40 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT 28 / - + CAST ( - ( + - 40 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1351
SELECT DISTINCT SUM( DISTINCT CAST( - - 76 AS SIGNED ) )
----
76

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT SUM ( DISTINCT CAST ( - - 76 AS INTEGER ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL - COUNT( * ) + + 37 - + 90 * + COUNT( * ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL - COUNT ( * ) + + 37 - + 90 * + COUNT ( * ) col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1353
SELECT COUNT( * ) DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-1353
SELECT COUNT ( * ) / 39
----
0

query I rowsort
SELECT 11 * - 3
----
-33

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT - 89 DIV - 14
----
6

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 89 / - 14
----
6

query I rowsort
SELECT ALL + ( - 0 ) + + 80 + 84 * ( - 72 ) * 60 AS col0
----
-362800

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL + 43 + - COUNT( * ) - 37
----
5

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL + 43 + - COUNT ( * ) - 37
----
5

query I rowsort
SELECT - + 68 - - 71
----
3

query II rowsort
SELECT - - 83, 7 AS col1
----
83
7

query II rowsort
SELECT ALL - 26 col2, 65 + - 24 AS col2
----
-26
41

query I rowsort
SELECT DISTINCT + + 64 + - NULLIF ( 89, - 6 * + ( + 16 ) * + 24 ) + 4
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT - 18 DIV + - 11 + + 75 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1363
SELECT - 18 / + - 11 + + 75 AS col0
----
76

query I rowsort
SELECT + - ( 38 ) + CASE - + 34 WHEN 47 + - 68 THEN + 50 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT ALL + ( NULLIF ( - - COUNT( * ), + 46 + + 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL + ( NULLIF ( - - COUNT ( * ), + 46 + + 90 ) )
----
1

query I rowsort
SELECT ALL + 65 * 60 - - 70 * - 49 * + 82 AS col0
----
-277360

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

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

skipif mysql # not compatible
query II rowsort label-1368
SELECT - COUNT ( * ) AS col2, - 64
----
-1
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT + + 1 * - 52 + + CASE + + 47 WHEN MAX( + 27 ) * + 16 THEN 57 / - ( - 33 ) END - - 36 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT + + 1 * - 52 + + CASE + + 47 WHEN MAX ( + 27 ) * + 16 THEN 57 / - ( - 33 ) END - - 36 + COUNT ( * )
----
NULL

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

query I rowsort
SELECT ALL + ( 7 ) * - ( - - 15 )
----
-105

query III rowsort
SELECT + - 54 AS col0, + 55 col1, 34
----
-54
55
34

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1374
SELECT + + 56 * - 80 AS col1, - 84 * - + CAST( NULL AS SIGNED ) AS col1
----
-4480
NULL

skipif mysql # not compatible
query II rowsort label-1374
SELECT + + 56 * - 80 AS col1, - 84 * - + CAST ( NULL AS INTEGER ) AS col1
----
-4480
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1375
SELECT + 89 * - - 9, + COUNT( * ) AS col1
----
801
1

skipif mysql # not compatible
query II rowsort label-1375
SELECT + 89 * - - 9, + COUNT ( * ) AS col1
----
801
1

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

skipif mysql # not compatible
query I rowsort label-1376
SELECT COUNT ( DISTINCT + 62 ) AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT MIN( - 29 ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-1378
SELECT MIN ( - 29 ) col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT + 3 * + 94 * + + COUNT( * ) col2
----
282

skipif mysql # not compatible
query I rowsort label-1379
SELECT + 3 * + 94 * + + COUNT ( * ) col2
----
282

query I rowsort
SELECT 37 * + 49 - - 42 * - - 9 AS col1
----
2191

query I rowsort
SELECT DISTINCT 27 * - 3 AS col1
----
-81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1383
SELECT ALL - ( - 28 ) / 26 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL - ( - 28 ) / 26 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 67 - 95 col2
----
-162

query I rowsort
SELECT + 37 + + - 48 + - 91 + + 69 * + 78
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT + 13 + - MIN( ALL + 64 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1386
SELECT + 13 + - MIN ( ALL + 64 ) AS col1
----
-51

query II rowsort
SELECT ALL - 11 + - 46 AS col2, 57
----
-57
57

query I rowsort
SELECT - 7 + + 43 + + 36 - + + 15 * + CASE 0 WHEN - 67 * 29 - + + ( + - AVG ( ALL - 39 ) ) + + 88 + - 72 THEN 61 + 87 WHEN 42 THEN NULL ELSE 34 END + - 75 * + 92 AS col0
----
-7338

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - COUNT( * ) + 74 + - 66 * - 36 AS col1
----
2449

skipif mysql # not compatible
query I rowsort label-1391
SELECT - COUNT ( * ) + 74 + - 66 * - 36 AS col1
----
2449

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT + 74 * + COUNT( * ) * + 55 + - + 67 AS col0
----
4003

skipif mysql # not compatible
query I rowsort label-1392
SELECT + 74 * + COUNT ( * ) * + 55 + - + 67 AS col0
----
4003

query I rowsort
SELECT - 57 + + 40 * + 87 col0
----
3423

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL - 84 * - COUNT( * ) * - 75 AS col2
----
-6300

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL - 84 * - COUNT ( * ) * - 75 AS col2
----
-6300

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1397
SELECT DISTINCT - + COALESCE ( 78, - 47 - + 57 ) DIV + 79 * + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT - + COALESCE ( 78, - 47 - + 57 ) / + 79 * + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1398
SELECT ALL 76 * COALESCE ( - + 94, - - 83 * + + COUNT( * ) DIV 96, - 93 * 53 DIV - AVG ( ALL - CASE - + 80 WHEN + + ( + 82 ) THEN + 32 END ) + COALESCE ( - 84, SUM( 1 ) ) DIV + 91 ) AS col2
----
-7144

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL 76 * COALESCE ( - + 94, - - 83 * + + COUNT ( * ) / 96, - 93 * 53 / - AVG ( ALL - CASE - + 80 WHEN + + ( + 82 ) THEN + 32 END ) + COALESCE ( - 84, SUM ( 1 ) ) / + 91 ) AS col2
----
-7144

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT - COUNT( * ) * - 42 * + 11 * - - COUNT( * ) * + COALESCE ( + + COUNT( * ), + 19, - + 58 * + 20 ) + - COUNT( * ) AS col1
----
461

skipif mysql # not compatible
query I rowsort label-1399
SELECT - COUNT ( * ) * - 42 * + 11 * - - COUNT ( * ) * + COALESCE ( + + COUNT ( * ), + 19, - + 58 * + 20 ) + - COUNT ( * ) AS col1
----
461

onlyif mysql # DIV for integer division: 
query I rowsort label-1400
SELECT ALL - - 57 * 63 DIV + + 30
----
119

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL - - 57 * 63 / + + 30
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT ALL 95 DIV - 31 - - 3 col1
----
0

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL 95 / - 31 - - 3 col1
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1403
SELECT - 21 + COUNT ( * ) + - 63 AS col1
----
-83

query I rowsort
SELECT DISTINCT 9 * - - 85 AS col0
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT DISTINCT - ( COUNT( * ) ) * + + 85 + ( 1 ) + - + 27
----
-111

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT - ( COUNT ( * ) ) * + + 85 + ( 1 ) + - + 27
----
-111

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

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

query I rowsort
SELECT + 50 * - 25 AS col2
----
-1250

query I rowsort
SELECT - 61 * + 60 AS col0
----
-3660

query I rowsort
SELECT + 67 + - + 15 + 71
----
123

query I rowsort
SELECT DISTINCT 73 * + 59 * + + 75 * + + 6
----
1938150

query I rowsort
SELECT ( - 0 ) + 80 AS col2
----
80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1413
SELECT 79 * + - 63 + 34 * - 24 DIV - - COUNT( DISTINCT + 10 ) AS col1, 7 + - 49 * 26
----
-5793
-1267

skipif mysql # not compatible
query II rowsort label-1413
SELECT 79 * + - 63 + 34 * - 24 / - - COUNT ( DISTINCT + 10 ) AS col1, 7 + - 49 * 26
----
-5793
-1267

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

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

query I rowsort
SELECT ALL 2 + - 16
----
-14

query I rowsort
SELECT DISTINCT 60 + - - NULLIF ( - 99, - 77 ) AS col2
----
-39

query I rowsort
SELECT ALL 72 * + 43
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT DISTINCT ( - 74 ) + ( 13 ) * - ( + 17 ) + 92 * + COUNT( * ) AS col2
----
-203

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT ( - 74 ) + ( 13 ) * - ( + 17 ) + 92 * + COUNT ( * ) AS col2
----
-203

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT ALL 95 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL 95 / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT - 98 + SUM( ALL 65 ) * 53 * 68
----
234162

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT - 98 + SUM ( ALL 65 ) * 53 * 68
----
234162

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT COUNT( * ) * - ( + MAX( DISTINCT + + 75 ) ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-1421
SELECT COUNT ( * ) * - ( + MAX ( DISTINCT + + 75 ) ) AS col0
----
-75

query II rowsort
SELECT DISTINCT - 63, + 64 AS col2
----
-63
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT - 8 - CASE COUNT( * ) WHEN 24 THEN + + 29 WHEN + - 51 THEN - CASE 75 WHEN 8 THEN - COUNT( * ) * - - 48 + + 92 * 37 * COUNT( - 68 ) ELSE NULL END - + 3 ELSE 15 END
----
-23

skipif mysql # not compatible
query I rowsort label-1423
SELECT - 8 - CASE COUNT ( * ) WHEN 24 THEN + + 29 WHEN + - 51 THEN - CASE 75 WHEN 8 THEN - COUNT ( * ) * - - 48 + + 92 * 37 * COUNT ( - 68 ) ELSE NULL END - + 3 ELSE 15 END
----
-23

query II rowsort
SELECT ALL 38, 20 * + NULLIF ( + 10, + ( - + 66 ) ) AS col1
----
38
200

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT ALL - 39 * 86 + - 70 + + CASE 2 WHEN + + 47 THEN + + 36 WHEN + MAX( DISTINCT - + 0 ) THEN + + AVG ( ALL - + 59 ) - 24 ELSE ( CASE - 79 WHEN ( 74 ) THEN - 62 + ( 99 ) END ) END / 41 * MIN( ALL - 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - 39 * 86 + - 70 + + CASE 2 WHEN + + 47 THEN + + 36 WHEN + MAX ( DISTINCT - + 0 ) THEN + + AVG ( ALL - + 59 ) - 24 ELSE ( CASE - 79 WHEN ( 74 ) THEN - 62 + ( 99 ) END ) END / 41 * MIN ( ALL - 20 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1426
SELECT DISTINCT + COUNT( * ) * SUM( DISTINCT - - 62 ) AS col2, - ( 66 ) + + ( + 74 ) * + - 0 + - - 93 AS col0
----
62
27

skipif mysql # not compatible
query II rowsort label-1426
SELECT DISTINCT + COUNT ( * ) * SUM ( DISTINCT - - 62 ) AS col2, - ( 66 ) + + ( + 74 ) * + - 0 + - - 93 AS col0
----
62
27

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

query I rowsort
SELECT ALL 5 * + 68 AS col1
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT 15 + COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1429
SELECT 15 + COUNT ( * ) AS col1
----
16

query II rowsort
SELECT DISTINCT - 45 AS col1, - 86 * + 12 * 76 AS col1
----
-45
-78432

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL - CASE WHEN NOT ( NULL <= COUNT( * ) ) THEN - - 27 - - 52 / + + 13 + 87 END * - NULLIF ( 63, + 51 * - + 16 / - 87 + - 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - CASE WHEN NOT ( NULL <= COUNT ( * ) ) THEN - - 27 - - 52 / + + 13 + 87 END * - NULLIF ( 63, + 51 * - + 16 / - 87 + - 37 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT DISTINCT - CAST( - - 80 AS SIGNED ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT - CAST ( - - 80 AS INTEGER ) col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT ALL - ( + + 49 ) + ( - ( - + MAX( DISTINCT 18 ) ) ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL - ( + + 49 ) + ( - ( - + MAX ( DISTINCT 18 ) ) ) col1
----
-31

query I rowsort
SELECT 12 * - + 54 * - 77 * + - 86
----
-4291056

query I rowsort
SELECT ALL - 74 + + 18
----
-56

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1437
SELECT CAST( 45 AS SIGNED ) * - 21 - + 9 / + CASE + - CASE - - NULLIF ( - + 62, + CAST( NULL AS SIGNED ) ) WHEN + ( - 96 ) THEN + NULLIF ( 96, 3 ) WHEN 4 THEN - 34 END WHEN 1 THEN NULL WHEN + 98 THEN 18 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT CAST ( 45 AS INTEGER ) * - 21 - + 9 / + CASE + - CASE - - NULLIF ( - + 62, + CAST ( NULL AS INTEGER ) ) WHEN + ( - 96 ) THEN + NULLIF ( 96, 3 ) WHEN 4 THEN - 34 END WHEN 1 THEN NULL WHEN + 98 THEN 18 END AS col0
----
NULL

query I rowsort
SELECT 2 - - + 61
----
63

query I rowsort
SELECT 37 * + - 6 col0
----
-222

query I rowsort
SELECT ALL - 83 * + ( + 89 ) AS col0
----
-7387

query I rowsort
SELECT 12 * 62 AS col0
----
744

query I rowsort
SELECT 47 * - 60
----
-2820

query I rowsort
SELECT DISTINCT - ( - 2 ) + + 86 AS col1
----
88

query I rowsort
SELECT ALL + 11 + + + ( + 75 ) AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1445
SELECT - 34 * + MIN( NULLIF ( CAST( NULL AS SIGNED ), + 80 ) ) * - 22 - - NULLIF ( + 24, + + 3 ) + 80 - - CASE 21 WHEN + - COUNT( * ) THEN - MAX( ALL + 96 ) END - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT - 34 * + MIN ( NULLIF ( CAST ( NULL AS INTEGER ), + 80 ) ) * - 22 - - NULLIF ( + 24, + + 3 ) + 80 - - CASE 21 WHEN + - COUNT ( * ) THEN - MAX ( ALL + 96 ) END - - 95
----
NULL

query I rowsort
SELECT ALL - ( + 93 ) * + 33
----
-3069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1447
SELECT 11 * NULLIF ( - 93, ( 77 ) + 58 + 81 / + - 40 + CAST( 25 AS SIGNED ) ) * - + 72 * - 78 + + CAST( + 92 AS SIGNED ) + 66 - 40
----
-5745050

skipif mysql # not compatible
query I rowsort label-1447
SELECT 11 * NULLIF ( - 93, ( 77 ) + 58 + 81 / + - 40 + CAST ( 25 AS INTEGER ) ) * - + 72 * - 78 + + CAST ( + 92 AS INTEGER ) + 66 - 40
----
-5745050

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

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL + CAST ( NULL AS REAL ) - + + 35 AS col0
----
NULL

query I rowsort
SELECT ALL 54 * 53 AS col0
----
2862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1450
SELECT ALL - ( - COUNT( * ) ) - - COALESCE ( + - 43, + - 43 DIV 81 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - ( - COUNT ( * ) ) - - COALESCE ( + - 43, + - 43 / 81 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT 62 * + - COUNT( * ) * - 81
----
5022

skipif mysql # not compatible
query I rowsort label-1451
SELECT 62 * + - COUNT ( * ) * - 81
----
5022

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT COUNT( * ) + + 7 col0
----
8

skipif mysql # not compatible
query I rowsort label-1452
SELECT COUNT ( * ) + + 7 col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ( 79 ) - - 45 * + 93 * COUNT( * ) AS col2
----
4264

skipif mysql # not compatible
query I rowsort label-1453
SELECT ( 79 ) - - 45 * + 93 * COUNT ( * ) AS col2
----
4264

query I rowsort
SELECT + 17 * - 59
----
-1003

onlyif mysql # aggregate syntax: 
query II rowsort label-1455
SELECT ALL - ( - COALESCE ( - 31, NULLIF ( 67, + 25 + - + 35 ), COUNT( * ) ) ) * - COUNT( * ) AS col2, 41 AS col1
----
31
41

skipif mysql # not compatible
query II rowsort label-1455
SELECT ALL - ( - COALESCE ( - 31, NULLIF ( 67, + 25 + - + 35 ), COUNT ( * ) ) ) * - COUNT ( * ) AS col2, 41 AS col1
----
31
41

query I rowsort
SELECT + 56 + - 84 * - 11
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT - MAX( DISTINCT + - 60 ) * 6 AS col1
----
360

skipif mysql # not compatible
query I rowsort label-1457
SELECT - MAX ( DISTINCT + - 60 ) * 6 AS col1
----
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT ALL 9 - COUNT( * ) * - + 48 DIV + + ( + COUNT( * ) ) - - 96
----
153

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL 9 - COUNT ( * ) * - + 48 / + + ( + COUNT ( * ) ) - - 96
----
153

query I rowsort
SELECT DISTINCT - 1 * 43
----
-43

query I rowsort
SELECT - 83 * - 61 AS col1
----
5063

query I rowsort
SELECT ALL NULLIF ( - 99, + - 12 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT DISTINCT - 57 * - + 16 + + COUNT( * ) AS col0
----
913

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT - 57 * - + 16 + + COUNT ( * ) AS col0
----
913

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT 60 DIV 36 * 17
----
17

skipif mysql # not compatible
query I rowsort label-1463
SELECT 60 / 36 * 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT + 33 + ( COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-1464
SELECT + 33 + ( COUNT ( * ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT 9 * + 34 * - COUNT( * )
----
-306

skipif mysql # not compatible
query I rowsort label-1465
SELECT 9 * + 34 * - COUNT ( * )
----
-306

query I rowsort
SELECT - 55 + - 37 AS col0
----
-92

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

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

query I rowsort
SELECT DISTINCT + 41 + ( - 4 ) col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT ALL COUNT( * ) * - 4 + + - 86
----
-90

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL COUNT ( * ) * - 4 + + - 86
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1470
SELECT DISTINCT - CAST( 93 AS SIGNED ), 75 col1
----
-93
75

skipif mysql # not compatible
query II rowsort label-1470
SELECT DISTINCT - CAST ( 93 AS INTEGER ), 75 col1
----
-93
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT DISTINCT 48 * COUNT( * ) + 91
----
139

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT 48 * COUNT ( * ) + 91
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-1472
SELECT DISTINCT - 50 * - + 14 AS col2, COUNT( * )
----
700
1

skipif mysql # not compatible
query II rowsort label-1472
SELECT DISTINCT - 50 * - + 14 AS col2, COUNT ( * )
----
700
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT ALL + + 23 * 22 + + + 12 DIV 84 * - 92 + + 41 - - 90 - ( + 34 )
----
603

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL + + 23 * 22 + + + 12 / 84 * - 92 + + 41 - - 90 - ( + 34 )
----
603

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1474
SELECT - - 44 / + 92 + - COALESCE ( + - 87, + 21, - 55 / - + COUNT( * ) * + - 15 - 4 ) + - 50 + CAST( NULL AS DECIMAL ) / + 15 + + + AVG ( ALL 87 ) * + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT - - 44 / + 92 + - COALESCE ( + - 87, + 21, - 55 / - + COUNT ( * ) * + - 15 - 4 ) + - 50 + CAST ( NULL AS REAL ) / + 15 + + + AVG ( ALL 87 ) * + 82 AS col2
----
NULL

query I rowsort
SELECT ALL 62 * + 43
----
2666

query I rowsort
SELECT 22 * - 13 AS col2
----
-286

query I rowsort
SELECT ALL - 52 * - 48 + - - 80 + + 43 * - + 16
----
1888

onlyif mysql # aggregate syntax: 
query II rowsort label-1478
SELECT DISTINCT SUM( 66 ) * - 34 * 37 + - + COUNT( * ) * 85 AS col2, - COUNT( * )
----
-83113
-1

skipif mysql # not compatible
query II rowsort label-1478
SELECT DISTINCT SUM ( 66 ) * - 34 * 37 + - + COUNT ( * ) * 85 AS col2, - COUNT ( * )
----
-83113
-1

query I rowsort
SELECT ALL + 86 * - - 15 + + 97 AS col2
----
1387

query I rowsort
SELECT + 21 - - 14 AS col2
----
35

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT - 17 DIV 21 + - + ( + 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-1482
SELECT - 17 / 21 + - + ( + 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT - COUNT( * ) * - + 27 - - - ( - 92 ) + + 24 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-1483
SELECT - COUNT ( * ) * - + 27 - - - ( - 92 ) + + 24 AS col1
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1484
SELECT DISTINCT + 69 * + CASE 95 WHEN - 88 THEN NULL WHEN - - ( + AVG ( 13 ) ) * - + 22 THEN NULL WHEN + + MAX( ALL - 63 ) THEN - + 22 * + 66 ELSE + 44 END DIV - COALESCE ( + - COUNT( * ), - CASE 25 WHEN - COUNT( * ) THEN + 1 ELSE NULL END + - 21 ) + COUNT( * ) + 8
----
3045

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT + 69 * + CASE 95 WHEN - 88 THEN NULL WHEN - - ( + AVG ( 13 ) ) * - + 22 THEN NULL WHEN + + MAX ( ALL - 63 ) THEN - + 22 * + 66 ELSE + 44 END / - COALESCE ( + - COUNT ( * ), - CASE 25 WHEN - COUNT ( * ) THEN + 1 ELSE NULL END + - 21 ) + COUNT ( * ) + 8
----
3045

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL - COUNT( * ) * + CASE - 23 WHEN 8 * - NULLIF ( + + 91, - + AVG ( - + 43 ) ) THEN - ( - - 55 ) ELSE 31 * - - ( - 60 ) * + 5 + + 45 END + 99
----
9354

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - COUNT ( * ) * + CASE - 23 WHEN 8 * - NULLIF ( + + 91, - + AVG ( - + 43 ) ) THEN - ( - - 55 ) ELSE 31 * - - ( - 60 ) * + 5 + + 45 END + 99
----
9354

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

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

query II rowsort
SELECT DISTINCT + 76 * 72 + + 72, 46 * + - 15 AS col2
----
5544
-690

query I rowsort
SELECT DISTINCT + 7 * - 42
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT COUNT( * ) * - 67 + - 22 * + + 72
----
-1651

skipif mysql # not compatible
query I rowsort label-1489
SELECT COUNT ( * ) * - 67 + - 22 * + + 72
----
-1651

query I rowsort
SELECT ALL + ( + + 72 ) * 10 - + - 20
----
740

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

query I rowsort
SELECT DISTINCT - 35 * - + 84
----
2940

query I rowsort
SELECT ALL + 81 - + 40
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1494
SELECT + 63 * 11 DIV 88 + 55 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-1494
SELECT + 63 * 11 / 88 + 55 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT DISTINCT - 61 * COUNT( * ) + + 2
----
-59

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT - 61 * COUNT ( * ) + + 2
----
-59

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

query I rowsort
SELECT - ( - - 45 ) AS col2
----
-45

query I rowsort
SELECT - NULLIF ( 44, - + 58 ) - + 27 col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT ALL + CAST( - 29 AS SIGNED ) + ( - 43 )
----
-72

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL + CAST ( - 29 AS INTEGER ) + ( - 43 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - 56 - NULLIF ( 24, 7 ) + - 67 * - 21 * + 74 + + 94 - + 80 - 10 + + - ( - 0 ) * - + 22 * + + COUNT( * )
----
104042

skipif mysql # not compatible
query I rowsort label-1500
SELECT - 56 - NULLIF ( 24, 7 ) + - 67 * - 21 * + 74 + + 94 - + 80 - 10 + + - ( - 0 ) * - + 22 * + + COUNT ( * )
----
104042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT - MIN( DISTINCT + + 82 ) * - CASE ( - - 99 ) WHEN - + 87 / + CAST( NULL AS SIGNED ) * 41 * + 52 * 40 + - - 93 - COALESCE ( + 24, 70, - 47, 65 ) / + 92 * - 92 THEN - 71 END / - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT - MIN ( DISTINCT + + 82 ) * - CASE ( - - 99 ) WHEN - + 87 / + CAST ( NULL AS INTEGER ) * 41 * + 52 * 40 + - - 93 - COALESCE ( + 24, 70, - 47, 65 ) / + 92 * - 92 THEN - 71 END / - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 45 + 29 AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1503
SELECT - 83 * 6 * + - CASE WHEN COUNT( * ) NOT BETWEEN + - COALESCE ( SUM( DISTINCT 74 ), + 80, CAST( - - 17 AS SIGNED ) ) AND - + 58 * - - 46 THEN 21 + + 78 END * 2
----
98604

skipif mysql # not compatible
query I rowsort label-1503
SELECT - 83 * 6 * + - CASE WHEN COUNT ( * ) NOT BETWEEN + - COALESCE ( SUM ( DISTINCT 74 ), + 80, CAST ( - - 17 AS INTEGER ) ) AND - + 58 * - - 46 THEN 21 + + 78 END * 2
----
98604

query I rowsort
SELECT ALL 23 + 92 + + 4
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT ALL + 95 + - + 17 * - 89 + + COALESCE ( + 31, 21 * + ( + COUNT( * ) ) + 49 + COUNT( * ) )
----
1639

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL + 95 + - + 17 * - 89 + + COALESCE ( + 31, 21 * + ( + COUNT ( * ) ) + 49 + COUNT ( * ) )
----
1639

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT + 15 + - + 50 + + MIN( 56 ) * + 36
----
1981

skipif mysql # not compatible
query I rowsort label-1506
SELECT + 15 + - + 50 + + MIN ( 56 ) * + 36
----
1981

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + - 57 * 90 + - 73 - + COUNT( * ) * CASE + 67 WHEN + - 58 THEN + 43 ELSE NULL END * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT + - 57 * 90 + - 73 - + COUNT ( * ) * CASE + 67 WHEN + - 58 THEN + 43 ELSE NULL END * + 69
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1509
SELECT + ( - MAX ( + - 3 ) )
----
3

query I rowsort
SELECT - 62 * + 96
----
-5952

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1512
SELECT + NULLIF ( + + CAST( - + CASE + 42 WHEN + SUM( 74 ) - - - 86 + + COUNT( * ) THEN NULL WHEN - + 69 * + NULLIF ( 89, 5 ) + 21 + + AVG ( DISTINCT 63 ) THEN + 75 WHEN + CAST( 28 AS SIGNED ) THEN NULL WHEN + 69 + + 97 THEN NULL END AS DECIMAL ), 49 ) + + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT + NULLIF ( + + CAST ( - + CASE + 42 WHEN + SUM ( 74 ) - - - 86 + + COUNT ( * ) THEN NULL WHEN - + 69 * + NULLIF ( 89, 5 ) + 21 + + AVG ( DISTINCT 63 ) THEN + 75 WHEN + CAST ( 28 AS INTEGER ) THEN NULL WHEN + 69 + + 97 THEN NULL END AS REAL ), 49 ) + + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT + CASE + 54 WHEN + 86 * + + 70 + + COUNT( * ) + - 99 THEN + 2 + - 47 / COALESCE ( + + 52, + + 23 - + COUNT( * ) + - AVG ( - + 61 ) * - 9 - - ( 46 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1513
SELECT + CASE + 54 WHEN + 86 * + + 70 + + COUNT ( * ) + - 99 THEN + 2 + - 47 / COALESCE ( + + 52, + + 23 - + COUNT ( * ) + - AVG ( - + 61 ) * - 9 - - ( 46 ) ) END AS col1
----
NULL

query I rowsort
SELECT 30 * - 53 + - - 36
----
-1554

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1516
SELECT DISTINCT ( + ( + 97 ) ) * 60 AS col0, 66 DIV + + 65
----
5820
1

skipif mysql # not compatible
query II rowsort label-1516
SELECT DISTINCT ( + ( + 97 ) ) * 60 AS col0, 66 / + + 65
----
5820
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT 48 * + 33 * - CASE - + 46 WHEN SUM( DISTINCT 59 ) THEN - CAST( + 93 AS SIGNED ) * + - ( + + 76 ) * + - MIN( 38 ) - + 80 + - COUNT( * ) WHEN - 18 THEN NULL ELSE NULL END - - + 61 + + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT 48 * + 33 * - CASE - + 46 WHEN SUM ( DISTINCT 59 ) THEN - CAST ( + 93 AS INTEGER ) * + - ( + + 76 ) * + - MIN ( 38 ) - + 80 + - COUNT ( * ) WHEN - 18 THEN NULL ELSE NULL END - - + 61 + + 43 AS col0
----
NULL

query I rowsort
SELECT + 31 * - 53 AS col0
----
-1643

query I rowsort
SELECT - COALESCE ( + 50, - + 60 * - - 18 + 88 ) * 67
----
-3350

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT + 49 + COUNT( - + 31 )
----
50

skipif mysql # not compatible
query I rowsort label-1520
SELECT + 49 + COUNT ( - + 31 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1521
SELECT + ( - COALESCE ( 15, 41 + + 11 * + - 88 * COUNT( * ) DIV + + CAST( NULL AS SIGNED ), + - 63 + 47 * - + CAST( 74 AS SIGNED ) + - NULLIF ( 44, CASE CAST( + 75 AS SIGNED ) WHEN - 65 THEN NULL WHEN - CASE CASE - 28 WHEN + COUNT( * ) THEN + 97 ELSE - 21 + COUNT( * ) DIV + 9 END WHEN 60 + - 97 THEN - 14 WHEN 39 THEN - MAX( + 80 ) WHEN + NULLIF ( - 10, + COALESCE ( 0, - 22 * 14 + 76 ) * - 43 ) THEN NULL ELSE NULL END * ( - MIN( 47 ) ) THEN 38 END * ( 67 ) + 99 ) - 50 ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1521
SELECT + ( - COALESCE ( 15, 41 + + 11 * + - 88 * COUNT ( * ) / + + CAST ( NULL AS INTEGER ), + - 63 + 47 * - + CAST ( 74 AS INTEGER ) + - NULLIF ( 44, CASE CAST ( + 75 AS INTEGER ) WHEN - 65 THEN NULL WHEN - CASE CASE - 28 WHEN + COUNT ( * ) THEN + 97 ELSE - 21 + COUNT ( * ) / + 9 END WHEN 60 + - 97 THEN - 14 WHEN 39 THEN - MAX ( + 80 ) WHEN + NULLIF ( - 10, + COALESCE ( 0, - 22 * 14 + 76 ) * - 43 ) THEN NULL ELSE NULL END * ( - MIN ( 47 ) ) THEN 38 END * ( 67 ) + 99 ) - 50 ) ) AS col2
----
-15

query I rowsort
SELECT NULLIF ( + 60, + 18 )
----
60

query II rowsort
SELECT + ( + + 82 ), 40 AS col1
----
82
40

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1524
SELECT ALL + 17, CAST( NULL AS DECIMAL ) * + - 79 + + 33 * - 44 AS col0
----
17
NULL

skipif mysql # not compatible
query II rowsort label-1524
SELECT ALL + 17, CAST ( NULL AS REAL ) * + - 79 + + 33 * - 44 AS col0
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + COALESCE ( + COUNT( ALL 45 ), + CASE 90 WHEN 96 * + + 56 * - 44 THEN - 52 ELSE NULL END * - 58 * - 90, - 27 ) * + - 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1525
SELECT + COALESCE ( + COUNT ( ALL 45 ), + CASE 90 WHEN 96 * + + 56 * - 44 THEN - 52 ELSE NULL END * - 58 * - 90, - 27 ) * + - 94 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT + CASE + 93 WHEN + - 70 THEN 37 + + + COUNT( - 54 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1526
SELECT + CASE + 93 WHEN + - 70 THEN 37 + + + COUNT ( - 54 ) END
----
NULL

query I rowsort
SELECT ALL + 68 * - 15 + - - 99
----
-921

query I rowsort
SELECT - - 62 - + 72
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL + - 15 * + ( + 12 ) / + 55 - 93 + + + CASE 88 WHEN + + COUNT( * ) + + 10 - + + 68 THEN - 48 WHEN + CASE 80 WHEN 80 THEN + 50 + + - COUNT( * ) - 21 END - 79 THEN + 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL + - 15 * + ( + 12 ) / + 55 - 93 + + + CASE 88 WHEN + + COUNT ( * ) + + 10 - + + 68 THEN - 48 WHEN + CASE 80 WHEN 80 THEN + 50 + + - COUNT ( * ) - 21 END - 79 THEN + 51 END
----
NULL

query II rowsort
SELECT DISTINCT - 41 AS col2, 64 AS col2
----
-41
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT ALL + 58 * 54 + - + CAST( + 77 AS SIGNED ) AS col1
----
3055

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL + 58 * 54 + - + CAST ( + 77 AS INTEGER ) AS col1
----
3055

query I rowsort
SELECT + 41 + + 39 AS col0
----
80

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

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

query I rowsort
SELECT - 54 + - 22
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT - - 21 - 8 + 58 + + ( - 45 ) DIV + + ( + 22 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-1535
SELECT - - 21 - 8 + 58 + + ( - 45 ) / + + ( + 22 ) AS col2
----
69

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

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

query II rowsort
SELECT DISTINCT + 95, 66 + 22 + - + ( - - 44 ) * + 36 * + 35 col2
----
95
-55352

query I rowsort
SELECT DISTINCT - 24 + + 97
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - COUNT( * ) + + 7
----
6

skipif mysql # not compatible
query I rowsort label-1540
SELECT - COUNT ( * ) + + 7
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT COALESCE ( - - CASE - 89 WHEN - + 71 THEN + COUNT( * ) * + ( + 78 ) * - - 41 * 97 * 19 ELSE + COUNT( * ) END, 66, COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1541
SELECT COALESCE ( - - CASE - 89 WHEN - + 71 THEN + COUNT ( * ) * + ( + 78 ) * - - 41 * 97 * 19 ELSE + COUNT ( * ) END, 66, COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL + COALESCE ( + 5, + 79 + + + 58 * + 56 ) AS col2
----
5

query I rowsort
SELECT ALL - 31 + - 65 AS col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1544
SELECT 15 DIV + + CAST( 54 AS SIGNED ) * 53
----
0

skipif mysql # not compatible
query I rowsort label-1544
SELECT 15 / + + CAST ( 54 AS INTEGER ) * 53
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1545
SELECT ALL CAST( NULL AS SIGNED ) * - + 67 * 44
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1546
SELECT ALL + 52 DIV - 17 AS col0, - COUNT( * ) AS col1
----
-3
-1

skipif mysql # not compatible
query II rowsort label-1546
SELECT ALL + 52 / - 17 AS col0, - COUNT ( * ) AS col1
----
-3
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT ALL - NULLIF ( - 48, + CAST( - COALESCE ( + + 91, + 15, + + 78 ) AS SIGNED ) ) * ( - - COALESCE ( - CASE + + 85 WHEN CAST( + + COUNT( * ) AS SIGNED ) THEN 27 + 12 ELSE 2 END, + COUNT( DISTINCT 72 ) + - 39, + 14 * 18 ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL - NULLIF ( - 48, + CAST ( - COALESCE ( + + 91, + 15, + + 78 ) AS INTEGER ) ) * ( - - COALESCE ( - CASE + + 85 WHEN CAST ( + + COUNT ( * ) AS INTEGER ) THEN 27 + 12 ELSE 2 END, + COUNT ( DISTINCT 72 ) + - 39, + 14 * 18 ) ) AS col1
----
-96

query II rowsort
SELECT ALL - ( - + 52 ), + ( + + 8 ) + 99 col1
----
52
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1550
SELECT 30 DIV - NULLIF ( + 25, - MAX( ( - 87 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1550
SELECT 30 / - NULLIF ( + 25, - MAX ( ( - 87 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT 66 * + 18 * - + ( - - 55 ) * - 3 * + MAX( 63 )
----
12349260

skipif mysql # not compatible
query I rowsort label-1551
SELECT 66 * + 18 * - + ( - - 55 ) * - 3 * + MAX ( 63 )
----
12349260

query I rowsort
SELECT 53 * + + 87 + 10 + 23 AS col2
----
4644

query I rowsort
SELECT 72 - + 9 AS col0
----
63

query I rowsort
SELECT + 83 * 94 + + 88 AS col2
----
7890

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

skipif mysql # not compatible
query I rowsort label-1555
SELECT 56 / + COUNT ( * ) * - COUNT ( * ) col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1556
SELECT DISTINCT - CAST( + - COALESCE ( + 36, + - 35, ( + COUNT( * ) ) + - CAST( NULL AS DECIMAL ) / + - 7 * + 62 ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT - CAST ( + - COALESCE ( + 36, + - 35, ( + COUNT ( * ) ) + - CAST ( NULL AS REAL ) / + - 7 * + 62 ) AS INTEGER )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT CASE 54 WHEN COALESCE ( + + 57, NULLIF ( - 33, + 80 ) ) * + 15 THEN + 38 END * + + 95 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT CASE 54 WHEN COALESCE ( + + 57, NULLIF ( - 33, + 80 ) ) * + 15 THEN + 38 END * + + 95 * - COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT - 69 + 79, 88 AS col1
----
10
88

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

skipif mysql # not compatible
query I rowsort label-1559
SELECT + MAX ( + - 56 )
----
-56

query I rowsort
SELECT ALL - 36 + - + ( + ( 96 ) ) col2
----
-132

query I rowsort
SELECT DISTINCT 60 + 12 * + 77
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT NULLIF ( 26, + COUNT( * ) + 76 + - 62 ) * - 23
----
-598

skipif mysql # not compatible
query I rowsort label-1562
SELECT NULLIF ( 26, + COUNT ( * ) + 76 + - 62 ) * - 23
----
-598

query I rowsort
SELECT ALL + 45 + 27 AS col2
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1564
SELECT ALL - 76 + + 3, CAST( NULL AS DECIMAL ) - ( - 88 ) AS col1
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-1564
SELECT ALL - 76 + + 3, CAST ( NULL AS REAL ) - ( - 88 ) AS col1
----
-73
NULL

query II rowsort
SELECT DISTINCT + 17 + + 39 col2, 2 AS col2
----
56
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1566
SELECT ALL - + 21 + + 7 + + 89 + - - CAST( ( - - MAX( ALL - 32 ) ) AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL - + 21 + + 7 + + 89 + - - CAST ( ( - - MAX ( ALL - 32 ) ) AS INTEGER )
----
43

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1568
SELECT DISTINCT - + 70 + - 30 - + - 74 + + 36 + + 25 DIV 78 - - ( - 91 ) * + - ( - COUNT( * ) ), + ( 60 ) col0
----
-81
60

skipif mysql # not compatible
query II rowsort label-1568
SELECT DISTINCT - + 70 + - 30 - + - 74 + + 36 + + 25 / 78 - - ( - 91 ) * + - ( - COUNT ( * ) ), + ( 60 ) col0
----
-81
60

query I rowsort
SELECT - - ( - 1 )
----
-1

query I rowsort
SELECT ALL 71 + - 7 - 41 + + - 80 + 79
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + 11 * CASE - 13 WHEN - + 46 THEN + - 30 ELSE - 49 + + 59 + + COUNT( * ) + + - 39 + + 18 END AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-1571
SELECT + 11 * CASE - 13 WHEN - + 46 THEN + - 30 ELSE - 49 + + 59 + + COUNT ( * ) + + - 39 + + 18 END AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT ALL + NULLIF ( - 58, - 99 ) * 54 + + - ( 16 ) - + COUNT( * ) - + COUNT( * )
----
-3150

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + NULLIF ( - 58, - 99 ) * 54 + + - ( 16 ) - + COUNT ( * ) - + COUNT ( * )
----
-3150

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT 50 DIV 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT 50 / 53 AS col2
----
0

query I rowsort
SELECT 21 * + 63 col0
----
1323

query II rowsort
SELECT 7 AS col0, + 19
----
7
19

query I rowsort
SELECT DISTINCT 39 - 98 AS col2
----
-59

query I rowsort
SELECT 40 - 68
----
-28

query II rowsort
SELECT DISTINCT 1 AS col2, - 27
----
1
-27

query I rowsort
SELECT 50 - - NULLIF ( + + 65, + 95 * + 61 )
----
115

query I rowsort
SELECT 56 * + 33 AS col1
----
1848

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

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

query I rowsort
SELECT 75 * + 36 AS col2
----
2700

query I rowsort
SELECT ALL - 94 * + - 42
----
3948

query I rowsort
SELECT 82 + 84 AS col2
----
166

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

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

query I rowsort
SELECT DISTINCT - 76 * - - 76 * - 97 AS col0
----
560272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1587
SELECT ALL 89 + + + MAX( - + 98 ) AS col0, CASE - - MIN( DISTINCT - + 23 ) WHEN - + 34 THEN NULL ELSE - CAST( - 34 AS SIGNED ) END DIV - + ( - + 71 ) AS col2
----
-9
0

skipif mysql # not compatible
query II rowsort label-1587
SELECT ALL 89 + + + MAX ( - + 98 ) AS col0, CASE - - MIN ( DISTINCT - + 23 ) WHEN - + 34 THEN NULL ELSE - CAST ( - 34 AS INTEGER ) END / - + ( - + 71 ) AS col2
----
-9
0

query I rowsort
SELECT 72 * - - 26
----
1872

onlyif mysql # aggregate syntax: 
query II rowsort label-1589
SELECT DISTINCT - 42, + ( + + 57 ) * + 36 + 43 * + + 6 * - MAX( - - ( 62 ) ) + - + 26 + 38 AS col2
----
-42
-13932

skipif mysql # not compatible
query II rowsort label-1589
SELECT DISTINCT - 42, + ( + + 57 ) * + 36 + 43 * + + 6 * - MAX ( - - ( 62 ) ) + - + 26 + 38 AS col2
----
-42
-13932

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1590
SELECT DISTINCT - 52 col2, + 55 * + CAST( NULL AS SIGNED )
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-1590
SELECT DISTINCT - 52 col2, + 55 * + CAST ( NULL AS INTEGER )
----
-52
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1591
SELECT + 56 DIV + ( - 2 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1591
SELECT + 56 / + ( - 2 ) AS col2
----
-28

query I rowsort
SELECT ALL - 40 + - 4 AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-1593
SELECT - 92 DIV + - 29 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1593
SELECT - 92 / + - 29 AS col2
----
3

query I rowsort
SELECT ALL - + ( + 31 ) col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT DISTINCT + 57 DIV + NULLIF ( 63, + AVG ( ALL + 94 ) + - 3 )
----
0

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT + 57 / + NULLIF ( 63, + AVG ( ALL + 94 ) + - 3 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1596
SELECT 94 * - MAX( DISTINCT - 89 ) - 96, 9 AS col0
----
8270
9

skipif mysql # not compatible
query II rowsort label-1596
SELECT 94 * - MAX ( DISTINCT - 89 ) - 96, 9 AS col0
----
8270
9

query I rowsort
SELECT NULLIF ( + + NULLIF ( 96, 88 ), - 50 ) AS col0
----
96

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

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

query I rowsort
SELECT - 59 - - 51 - - ( - - 2 ) + + 23
----
17

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

skipif mysql # not compatible
query I rowsort label-1600
SELECT - MIN ( + 18 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1601
SELECT ALL + 64 - 33 + - CASE - 47 WHEN + COALESCE ( CAST( NULL AS SIGNED ), - + 81, - NULLIF ( - COALESCE ( + 19, + + COUNT( * ) * + + 70 + - 0 - + 92 + 9 + + 46 * + - 83 * 16 / - COALESCE ( + 9, + COUNT( * ) * CAST( NULL AS SIGNED ) ), + 24 ), - MIN( ALL - 89 ) * - 76 + - 27 * 28 ) * - 5 ) THEN - 97 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL + 64 - 33 + - CASE - 47 WHEN + COALESCE ( CAST ( NULL AS INTEGER ), - + 81, - NULLIF ( - COALESCE ( + 19, + + COUNT ( * ) * + + 70 + - 0 - + 92 + 9 + + 46 * + - 83 * 16 / - COALESCE ( + 9, + COUNT ( * ) * CAST ( NULL AS INTEGER ) ), + 24 ), - MIN ( ALL - 89 ) * - 76 + - 27 * 28 ) * - 5 ) THEN - 97 END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT + - 83 + - 57 * 65 + + COUNT( * ) col2
----
-3787

skipif mysql # not compatible
query I rowsort label-1603
SELECT + - 83 + - 57 * 65 + + COUNT ( * ) col2
----
-3787

query I rowsort
SELECT 78 * - + 15 - 25
----
-1195

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

skipif mysql # not compatible
query I rowsort label-1605
SELECT + + COUNT ( * ) + 13 AS col1
----
14

query I rowsort
SELECT - 22 - - 98 AS col2
----
76

query I rowsort
SELECT + 66 + + 96
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1608
SELECT DISTINCT COALESCE ( - 31, - 86 * - - COALESCE ( - - 18, + - 64 * + + COUNT( * ) * COUNT( ALL - 36 ) / + - 18 * + NULLIF ( + 79, - SUM( ALL + - 62 ) * + 19 ) + CAST( NULL AS SIGNED ) ) + + + 45 ) - + + 14 + - ( 89 ) * - ( 20 * - CAST( + 85 * + CASE - COUNT( * ) WHEN ( + 48 ) * ( 78 ) THEN 29 ELSE NULL END AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT COALESCE ( - 31, - 86 * - - COALESCE ( - - 18, + - 64 * + + COUNT ( * ) * COUNT ( ALL - 36 ) / + - 18 * + NULLIF ( + 79, - SUM ( ALL + - 62 ) * + 19 ) + CAST ( NULL AS INTEGER ) ) + + + 45 ) - + + 14 + - ( 89 ) * - ( 20 * - CAST ( + 85 * + CASE - COUNT ( * ) WHEN ( + 48 ) * ( 78 ) THEN 29 ELSE NULL END AS INTEGER ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT + COUNT( + 33 ) + 2
----
3

skipif mysql # not compatible
query I rowsort label-1610
SELECT + COUNT ( + 33 ) + 2
----
3

query I rowsort
SELECT + 44 + - + 19 col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1612
SELECT + 56 DIV + COUNT( ( + - 73 ) ), - 24 AS col2
----
56
-24

skipif mysql # not compatible
query II rowsort label-1612
SELECT + 56 / + COUNT ( ( + - 73 ) ), - 24 AS col2
----
56
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT - NULLIF ( + + 13, + COUNT( * ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-1613
SELECT - NULLIF ( + + 13, + COUNT ( * ) ) AS col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1614
SELECT + 49 + - + CASE - 3 WHEN 4 DIV + + ( 8 ) + 78 THEN - 68 DIV + 1 - COALESCE ( - COUNT( * ), + - 12, + 64 ) - 47 ELSE - - COALESCE ( + COALESCE ( - SUM( - + 20 ), + 23 ), + 93 DIV 94 ) END + 13
----
42

skipif mysql # not compatible
query I rowsort label-1614
SELECT + 49 + - + CASE - 3 WHEN 4 / + + ( 8 ) + 78 THEN - 68 / + 1 - COALESCE ( - COUNT ( * ), + - 12, + 64 ) - 47 ELSE - - COALESCE ( + COALESCE ( - SUM ( - + 20 ), + 23 ), + 93 / 94 ) END + 13
----
42

query I rowsort
SELECT ALL + 62 * 27
----
1674

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT - 90 + - + ( + - CAST( - 11 AS SIGNED ) )
----
-101

skipif mysql # not compatible
query I rowsort label-1617
SELECT - 90 + - + ( + - CAST ( - 11 AS INTEGER ) )
----
-101

query I rowsort
SELECT ALL CASE + 97 WHEN + - 60 THEN AVG ( + + 71 ) + + 55 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1619
SELECT ALL ( MAX( ALL - 59 ) ) * + - 0 DIV - + 62 + - 87 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL ( MAX ( ALL - 59 ) ) * + - 0 / - + 62 + - 87 AS col2
----
-87

query II rowsort
SELECT ( + - 57 ) AS col2, 3 col1
----
-57
3

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

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

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

query I rowsort
SELECT + 81 * + 82
----
6642

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

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

query I rowsort
SELECT ALL - - 68 * + 83 + - ( + 4 ) AS col2
----
5640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1626
SELECT DISTINCT + + 12 DIV - + COALESCE ( - COALESCE ( 22, CAST( MIN( ALL ( + 89 ) ) AS SIGNED ) ), - - 11 * - - 39 * + ( + 56 ) * + 73, COUNT( * ) + - 79 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT + + 12 / - + COALESCE ( - COALESCE ( 22, CAST ( MIN ( ALL ( + 89 ) ) AS INTEGER ) ), - - 11 * - - 39 * + ( + 56 ) * + 73, COUNT ( * ) + - 79 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1627
SELECT ALL + COUNT( DISTINCT - + 70 ), 35 AS col2
----
1
35

skipif mysql # not compatible
query II rowsort label-1627
SELECT ALL + COUNT ( DISTINCT - + 70 ), 35 AS col2
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ALL + 81 * + 56 - ( 32 ) + - COUNT( * ) * + 72
----
4432

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL + 81 * + 56 - ( 32 ) + - COUNT ( * ) * + 72
----
4432

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT DISTINCT + COUNT( * ) * - - 22 - 34 - ( + 61 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT + COUNT ( * ) * - - 22 - 34 - ( + 61 ) AS col1
----
-73

query I rowsort
SELECT + + 24 * - - 61 * NULLIF ( + 90, + 11 ) + + + 81 AS col0
----
131841

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT + 93 + - COUNT( DISTINCT + 72 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1631
SELECT + 93 + - COUNT ( DISTINCT + 72 ) AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT DISTINCT - 85 DIV 32 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT - 85 / 32 AS col2
----
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1634
SELECT ALL - CAST( 4 AS SIGNED ) * + MIN( DISTINCT - 38 ) AS col0
----
152

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL - CAST ( 4 AS INTEGER ) * + MIN ( DISTINCT - 38 ) AS col0
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT + - 46 DIV - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1635
SELECT + - 46 / - 87 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1636
SELECT ALL + 41 / CASE 85 WHEN - - ( COUNT( * ) ) THEN NULL ELSE - CAST( - + 73 AS DECIMAL ) * + 65 * - 22 * + CAST( + 13 AS SIGNED ) / - - 8 + COUNT( * ) * - CAST( 16 AS SIGNED ) * - COUNT( 99 ) - 68 * - 99 END * COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL + 41 / CASE 85 WHEN - - ( COUNT ( * ) ) THEN NULL ELSE - CAST ( - + 73 AS REAL ) * + 65 * - 22 * + CAST ( + 13 AS INTEGER ) / - - 8 + COUNT ( * ) * - CAST ( 16 AS INTEGER ) * - COUNT ( 99 ) - 68 * - 99 END * COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1637
SELECT - 32 - + SUM( - 63 ) AS col0, - COALESCE ( + 95, ( + CAST( 76 AS SIGNED ) ) ) * - 58 col1
----
31
5510

skipif mysql # not compatible
query II rowsort label-1637
SELECT - 32 - + SUM ( - 63 ) AS col0, - COALESCE ( + 95, ( + CAST ( 76 AS INTEGER ) ) ) * - 58 col1
----
31
5510

query I rowsort
SELECT ALL 44 * - + 20 AS col2
----
-880

query I rowsort
SELECT + 9 - + + 54 AS col2
----
-45

query I rowsort
SELECT + 85 + + 99
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1641
SELECT - CAST( - 89 AS SIGNED ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1641
SELECT - CAST ( - 89 AS INTEGER ) AS col0
----
89

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

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

query I rowsort
SELECT DISTINCT 43 + - 0 * - + 94 AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT + CASE + 90 WHEN - - ( - 67 ) * - - NULLIF ( CAST( NULL AS SIGNED ), - 83 + + + 97 ) THEN NULL WHEN - 51 THEN - + 27 + COALESCE ( - - 25, + + 27 ) END - 77 + + + ( + 41 ) * + ( - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT + CASE + 90 WHEN - - ( - 67 ) * - - NULLIF ( CAST ( NULL AS INTEGER ), - 83 + + + 97 ) THEN NULL WHEN - 51 THEN - + 27 + COALESCE ( - - 25, + + 27 ) END - 77 + + + ( + 41 ) * + ( - 97 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1645
SELECT ALL + COUNT( * ) * + 82 DIV + - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL + COUNT ( * ) * + 82 / + - 88 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1646
SELECT + ( + 22 ) / + COUNT ( * ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT DISTINCT 78 + - 47 + + ( + + COUNT( * ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT 78 + - 47 + + ( + + COUNT ( * ) ) AS col0
----
32

query I rowsort
SELECT ALL 37 + + + 95
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1649
SELECT + NULLIF ( 30, COUNT( * ) ) * - + 74 * - + NULLIF ( + 26, + 91 ) * + COUNT( * ) + 62 + - COUNT( * ) * MAX( - + COALESCE ( - 19, 61 * 47 ) ) AS col0, 61 * CAST( NULL AS SIGNED ) - - 87 / + 73 + 43 AS col1
----
57763
NULL

skipif mysql # not compatible
query II rowsort label-1649
SELECT + NULLIF ( 30, COUNT ( * ) ) * - + 74 * - + NULLIF ( + 26, + 91 ) * + COUNT ( * ) + 62 + - COUNT ( * ) * MAX ( - + COALESCE ( - 19, 61 * 47 ) ) AS col0, 61 * CAST ( NULL AS INTEGER ) - - 87 / + 73 + 43 AS col1
----
57763
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1650
SELECT - 58 DIV 42 + ( + - 64 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-1650
SELECT - 58 / 42 + ( + - 64 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT DISTINCT + 91 * COUNT( * ) + + 63 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT + 91 * COUNT ( * ) + + 63 AS col2
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT ALL - 63 DIV + 35 + - 7 + 21 * + 71 AS col2
----
1483

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL - 63 / + 35 + - 7 + 21 * + 71 AS col2
----
1483

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT + - 52 DIV + 50
----
-1

skipif mysql # not compatible
query I rowsort label-1654
SELECT + - 52 / + 50
----
-1

query I rowsort
SELECT ( - 2 ) * - - 83 - 67
----
-233

query I rowsort
SELECT - 94 + + 94 - - + 60 + + 56 AS col0
----
116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT 69 + + 60 + + - COUNT( * ) col2
----
128

skipif mysql # not compatible
query I rowsort label-1658
SELECT 69 + + 60 + + - COUNT ( * ) col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT + CASE + 21 WHEN + - 63 * - - MIN( ALL - - 8 ) THEN NULL WHEN 34 * - - 34 + ( - NULLIF ( - 44, 86 ) ) * - COUNT( * ) THEN NULL WHEN - COUNT( * ) + + - 35 THEN - 0 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT + CASE + 21 WHEN + - 63 * - - MIN ( ALL - - 8 ) THEN NULL WHEN 34 * - - 34 + ( - NULLIF ( - 44, 86 ) ) * - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) + + - 35 THEN - 0 ELSE NULL END
----
NULL

query I rowsort
SELECT 28 * + 52 * - 13 col0
----
-18928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1661
SELECT ALL + 56 * + CAST( - 61 AS SIGNED ) AS col0
----
-3416

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL + 56 * + CAST ( - 61 AS INTEGER ) AS col0
----
-3416

query I rowsort
SELECT + 30 * - 39 * 77 * 53
----
-4774770

query I rowsort
SELECT 7 * 89 AS col1
----
623

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT ALL + 12 * 51 * + 36 + - - 89 + COUNT( * ) AS col0
----
22122

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + 12 * 51 * + 36 + - - 89 + COUNT ( * ) AS col0
----
22122

query I rowsort
SELECT 38 + + 59
----
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1667
SELECT - CAST( CASE - ( - 80 ) WHEN 34 THEN NULL WHEN + 14 THEN NULL ELSE - + 19 + + + 62 END AS SIGNED ) + - + 47
----
-90

skipif mysql # not compatible
query I rowsort label-1667
SELECT - CAST ( CASE - ( - 80 ) WHEN 34 THEN NULL WHEN + 14 THEN NULL ELSE - + 19 + + + 62 END AS INTEGER ) + - + 47
----
-90

query II rowsort
SELECT 42, 9 AS col1
----
42
9

query I rowsort
SELECT + 12 * 90 + 94 AS col2
----
1174

query II rowsort
SELECT 30 + 46 AS col2, 97 AS col2
----
76
97

query II rowsort
SELECT - 92 AS col1, + 93
----
-92
93

query I rowsort
SELECT ALL - 7 + 29 + - 59
----
-37

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

query I rowsort
SELECT 49 + - 20
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1675
SELECT ALL 97 + + - 76 - - 33 + - 32 DIV + + 26 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL 97 + + - 76 - - 33 + - 32 / + + 26 AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT - 3 AS col2, + 59 * + + COUNT( * )
----
-3
59

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

query I rowsort
SELECT ALL - 62 + - 36
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT - 57 AS col2, COUNT( * ) * 28
----
-57
28

skipif mysql # not compatible
query II rowsort label-1678
SELECT - 57 AS col2, COUNT ( * ) * 28
----
-57
28

query I rowsort
SELECT DISTINCT + 90 + - + 22 * + 54 * + + 64 * + + 2 * - COALESCE ( - 27, 55 )
----
-4105638

onlyif mysql # aggregate syntax: 
query II rowsort label-1680
SELECT 58, SUM( + ( 36 ) ) AS col0
----
58
36

skipif mysql # not compatible
query II rowsort label-1680
SELECT 58, SUM ( + ( 36 ) ) AS col0
----
58
36

query I rowsort
SELECT ALL + 72 + - ( + 71 )
----
1

query II rowsort
SELECT - 68 AS col0, 16 AS col2
----
-68
16

onlyif mysql # DIV for integer division: 
query II rowsort label-1683
SELECT 66 AS col2, + COALESCE ( - 10, + - 16 DIV 20 ) AS col0
----
66
-10

skipif mysql # not compatible
query II rowsort label-1683
SELECT 66 AS col2, + COALESCE ( - 10, + - 16 / 20 ) AS col0
----
66
-10

query I rowsort
SELECT 71 + - 2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT ( + 30 ) * + CAST( 7 AS SIGNED )
----
210

skipif mysql # not compatible
query I rowsort label-1685
SELECT ( + 30 ) * + CAST ( 7 AS INTEGER )
----
210

query II rowsort
SELECT ALL 33 col2, - 95 + + CASE - + ( 29 ) WHEN 68 * - + 76 + 55 + - 19 * ( - 15 ) THEN + + 48 + - ( 81 ) END
----
33
NULL

query I rowsort
SELECT ALL + 28 - 98 * - 95 AS col1
----
9338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT + CAST( NULL AS SIGNED ) * - ( 11 ) * + 50 * - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT + CAST ( NULL AS INTEGER ) * - ( 11 ) * + 50 * - - 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1689
SELECT DISTINCT - + 77 AS col1, + 38 * + CASE + CAST( NULL AS SIGNED ) WHEN - 29 THEN 86 + + MAX( - - 72 ) * + 29 WHEN + 88 THEN NULL END
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-1689
SELECT DISTINCT - + 77 AS col1, + 38 * + CASE + CAST ( NULL AS INTEGER ) WHEN - 29 THEN 86 + + MAX ( - - 72 ) * + 29 WHEN + 88 THEN NULL END
----
-77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1690
SELECT DISTINCT 81 - + - 83 - + COUNT( * ) * COUNT( * ) AS col0, NULLIF ( + - 56, - + 13 ) * - + 42
----
163
2352

skipif mysql # not compatible
query II rowsort label-1690
SELECT DISTINCT 81 - + - 83 - + COUNT ( * ) * COUNT ( * ) AS col0, NULLIF ( + - 56, - + 13 ) * - + 42
----
163
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT MAX( 54 ) + - - 20 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1691
SELECT MAX ( 54 ) + - - 20 AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1692
SELECT ALL - 17 col1, COALESCE ( - 67, COUNT( * ) ) col1, + COUNT( * ) DIV + ( 13 )
----
-17
-67
0

skipif mysql # not compatible
query III rowsort label-1692
SELECT ALL - 17 col1, COALESCE ( - 67, COUNT ( * ) ) col1, + COUNT ( * ) / + ( 13 )
----
-17
-67
0

query I rowsort
SELECT 4 + - 83 AS col0
----
-79

query II rowsort
SELECT - 72, 34 AS col2
----
-72
34

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

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

query I rowsort
SELECT ALL COALESCE ( - 39, - + 98 + 15 * - + 43 ) * - 27
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL + NULLIF ( + 23, + + COUNT( * ) * - 96 * 78 + - ( - COUNT( * ) ) ) * 1 col0
----
23

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + NULLIF ( + 23, + + COUNT ( * ) * - 96 * 78 + - ( - COUNT ( * ) ) ) * 1 col0
----
23

query I rowsort
SELECT CASE - - 93 WHEN + 97 THEN 26 ELSE NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT + 83 * 95 AS col1
----
7885

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1700
SELECT SUM( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT SUM ( CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT + 12 AS col2, + 43
----
12
43

query I rowsort
SELECT ALL + 75 + + + 87 AS col1
----
162

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

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

query I rowsort
SELECT ALL - 3 + + + 20
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT + 49 * + MIN( ALL + 38 ) AS col1
----
1862

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT + 49 * + MIN ( ALL + 38 ) AS col1
----
1862

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

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

query II rowsort
SELECT ALL + 76 + - - 40 AS col1, 53 AS col1
----
116
53

query I rowsort
SELECT 84 * 45 * + 81 * - 99 AS col0
----
-30311820

query II rowsort
SELECT 55 * 55 AS col1, 49 AS col1
----
3025
49

query I rowsort
SELECT ALL - 31 * - NULLIF ( - 94, + + 35 ) * - - COALESCE ( 27, 21 * - - 17 * - 38 ) AS col2
----
-78678

query I rowsort
SELECT 10 * 84 AS col2
----
840

query I rowsort
SELECT ALL CASE 2 WHEN 0 * ( + 92 ) THEN + 41 / + 97 END
----
NULL

query II rowsort
SELECT ALL 77 * - 33, + 82 + 81 AS col0
----
-2541
163

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

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - - 5 / - 65 * + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1715
SELECT + - 11 * + + 18 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT + - 11 * + + 18 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + ( - - 29 ) * + - 85 AS col1
----
-2465

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1717
SELECT ALL - - SUM( ALL + 43 ) * SUM( DISTINCT CASE + 95 WHEN 45 THEN NULL ELSE + - 25 + + COALESCE ( - 48, - 36 DIV 8, 73 ) END ) AS col2, + 13
----
-3139
13

skipif mysql # not compatible
query II rowsort label-1717
SELECT ALL - - SUM ( ALL + 43 ) * SUM ( DISTINCT CASE + 95 WHEN 45 THEN NULL ELSE + - 25 + + COALESCE ( - 48, - 36 / 8, 73 ) END ) AS col2, + 13
----
-3139
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1718
SELECT CASE - 20 WHEN 72 THEN 51 / 63 + COUNT( * ) WHEN - - COUNT( * ) + + COUNT( - - CAST( NULL AS SIGNED ) ) THEN - 27 + + 72 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT CASE - 20 WHEN 72 THEN 51 / 63 + COUNT ( * ) WHEN - - COUNT ( * ) + + COUNT ( - - CAST ( NULL AS INTEGER ) ) THEN - 27 + + 72 ELSE NULL END col1
----
NULL

query I rowsort
SELECT + 84 * - 82 * + 77 + - ( 41 )
----
-530417

query I rowsort
SELECT + + 84 * - 25 + - 46 col0
----
-2146

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT 73 * + 39 * + 51 * 55 / + ( - ( - + COUNT( * ) ) ) + - NULLIF ( - COUNT( * ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT 73 * + 39 * + 51 * 55 / + ( - ( - + COUNT ( * ) ) ) + - NULLIF ( - COUNT ( * ), - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1722
SELECT + ( 83 ), + 49 DIV - COUNT( * ) + - CAST( + + 2 AS SIGNED ) AS col1
----
83
-51

skipif mysql # not compatible
query II rowsort label-1722
SELECT + ( 83 ), + 49 / - COUNT ( * ) + - CAST ( + + 2 AS INTEGER ) AS col1
----
83
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT + - 24 + - COUNT( - 68 )
----
-25

skipif mysql # not compatible
query I rowsort label-1723
SELECT + - 24 + - COUNT ( - 68 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-1724
SELECT + 75 * SUM( 59 ) + + 9 * COUNT( * ) col1, - 7
----
4434
-7

skipif mysql # not compatible
query II rowsort label-1724
SELECT + 75 * SUM ( 59 ) + + 9 * COUNT ( * ) col1, - 7
----
4434
-7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL + 30 * COUNT( * ) * + 40 + - 9 AS col1
----
1191

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL + 30 * COUNT ( * ) * + 40 + - 9 AS col1
----
1191

query I rowsort
SELECT + NULLIF ( - 50, 2 + + + 22 ) + + 63 + + + 75 col0
----
88

query II rowsort
SELECT - CASE + - 8 WHEN - 73 THEN - 91 + - 23 - 4 + + 4 * - - 92 ELSE NULL END AS col2, - 27 AS col0
----
NULL
-27

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

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

query II rowsort
SELECT + 20 + - ( 93 ), 91 + 71 AS col2
----
-73
162

query I rowsort
SELECT - 25 * - - 23
----
-575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1733
SELECT + CASE - - 75 WHEN 73 * - - 33 * + 75 THEN 51 * - 78 + + + 54 ELSE 8 END + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT + CASE - - 75 WHEN 73 * - - 33 * + 75 THEN 51 * - 78 + + + 54 ELSE 8 END + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 2 - - 74 AS col2
----
72

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

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL MIN ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT + 72 + - COALESCE ( COUNT( * ), + ( - 53 ) + - MAX( ALL + 90 ) * + + COUNT( * ) * + 32 + + 37 + - 82 - MAX( - 40 ) ) col0
----
71

skipif mysql # not compatible
query I rowsort label-1736
SELECT + 72 + - COALESCE ( COUNT ( * ), + ( - 53 ) + - MAX ( ALL + 90 ) * + + COUNT ( * ) * + 32 + + 37 + - 82 - MAX ( - 40 ) ) col0
----
71

query I rowsort
SELECT DISTINCT - 0 * + + 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT DISTINCT 13 - - COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT 13 - - COUNT ( * ) AS col1
----
14

query I rowsort
SELECT ALL - 82 * COALESCE ( + 4, + 5 ) AS col0
----
-328

query I rowsort
SELECT - 42 + + + 3
----
-39

query II rowsort
SELECT - 33 AS col0, ( 46 )
----
-33
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT - MIN( ALL + 91 ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-1742
SELECT - MIN ( ALL + 91 ) col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1743
SELECT - CAST( NULL AS SIGNED ) / 54 * ( + 5 ) + - 60 - 77 * - - 97 * 65, CAST( + ( - NULLIF ( + + ( - - 7 ), - 88 ) ) AS SIGNED ) * - 73 col2
----
NULL
511

skipif mysql # not compatible
query II rowsort label-1743
SELECT - CAST ( NULL AS INTEGER ) / 54 * ( + 5 ) + - 60 - 77 * - - 97 * 65, CAST ( + ( - NULLIF ( + + ( - - 7 ), - 88 ) ) AS INTEGER ) * - 73 col2
----
NULL
511

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1745
SELECT - 74 + - SUM( - - 95 ) AS col0, 92 * - 8 AS col0
----
-169
-736

skipif mysql # not compatible
query II rowsort label-1745
SELECT - 74 + - SUM ( - - 95 ) AS col0, 92 * - 8 AS col0
----
-169
-736

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT - 87 DIV - 29 col1
----
3

skipif mysql # not compatible
query I rowsort label-1746
SELECT - 87 / - 29 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL + 68 + MIN( DISTINCT - - 24 ) + - 8 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL + 68 + MIN ( DISTINCT - - 24 ) + - 8 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1748
SELECT DISTINCT + COALESCE ( - 32, 59 * + ( - - COALESCE ( + 72, - COUNT( * ) + + 65 DIV + 6, - + 20 DIV + 90 + + CAST( NULL AS SIGNED ) + 24 + - 52 * - COUNT( * ) ) ) * COALESCE ( - NULLIF ( - + 0, - 92 + 32 ), 77 * - 63 ) + 66 ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT + COALESCE ( - 32, 59 * + ( - - COALESCE ( + 72, - COUNT ( * ) + + 65 / + 6, - + 20 / + 90 + + CAST ( NULL AS INTEGER ) + 24 + - 52 * - COUNT ( * ) ) ) * COALESCE ( - NULLIF ( - + 0, - 92 + 32 ), 77 * - 63 ) + 66 ) col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT ALL + 24 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL + 24 / - 55
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT DISTINCT + + CASE 12 WHEN 65 * + CAST( NULL AS SIGNED ) THEN - - 26 / 61 * - - 74 - + - 87 + + 25 * - + 6 END / 65 + + 45 * + 55 * + 54 + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT + + CASE 12 WHEN 65 * + CAST ( NULL AS INTEGER ) THEN - - 26 / 61 * - - 74 - + - 87 + + 25 * - + 6 END / 65 + + 45 * + 55 * + 54 + - 25
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1751
SELECT + COUNT ( ALL - 36 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT 39 * 31 + + CAST( NULL AS SIGNED ) / - 34 + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT 39 * 31 + + CAST ( NULL AS INTEGER ) / - 34 + 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT ALL - 27 DIV - 23 + + 29 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL - 27 / - 23 + + 29 AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1754
SELECT + 46 + + 45 + - 23, - 0 * + ( + COUNT( * ) ) AS col1
----
68
0

skipif mysql # not compatible
query II rowsort label-1754
SELECT + 46 + + 45 + - 23, - 0 * + ( + COUNT ( * ) ) AS col1
----
68
0

query II rowsort
SELECT + 74 AS col0, 24 AS col1
----
74
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1756
SELECT ALL - 48 DIV - MAX( 27 ) DIV 22 * - 62 + 95 + - + 78
----
17

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL - 48 / - MAX ( 27 ) / 22 * - 62 + 95 + - + 78
----
17

query I rowsort
SELECT ALL 33 * - 14 AS col0
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT + MIN( ALL - - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1758
SELECT + MIN ( ALL - - 92 ) AS col1
----
92

query I rowsort
SELECT ( - + ( CASE ( + + 91 ) WHEN - + 17 THEN NULL ELSE - 14 * + 72 * + 71 END ) )
----
71568

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT + SUM( DISTINCT + + 9 ) * + 54 AS col2
----
486

skipif mysql # not compatible
query I rowsort label-1760
SELECT + SUM ( DISTINCT + + 9 ) * + 54 AS col2
----
486

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

query II rowsort
SELECT ( 37 ) AS col2, 38 AS col1
----
37
38

query II rowsort
SELECT ( + + 22 ) AS col0, 13 AS col1
----
22
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1764
SELECT - COUNT( * ) DIV - 41 AS col1, 65 + + - ( ( - 75 ) ) AS col2
----
0
140

skipif mysql # not compatible
query II rowsort label-1764
SELECT - COUNT ( * ) / - 41 AS col1, 65 + + - ( ( - 75 ) ) AS col2
----
0
140

query I rowsort
SELECT + 2 + - 77
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1766
SELECT ALL + 14 DIV + 84, COUNT( * ) * 4 AS col2
----
0
4

skipif mysql # not compatible
query II rowsort label-1766
SELECT ALL + 14 / + 84, COUNT ( * ) * 4 AS col2
----
0
4

query I rowsort
SELECT DISTINCT 13 * - 21 AS col1
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1768
SELECT ALL + NULLIF ( - COUNT( * ), - + 54 * 52 + + + 59 ) DIV - - ( + 28 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + NULLIF ( - COUNT ( * ), - + 54 * 52 + + + 59 ) / - - ( + 28 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1769
SELECT 13 - - 8 AS col2, 39 * CASE + COUNT( * ) WHEN - 71 / - + 1 - + + 77 THEN NULL ELSE + 2 * - - COUNT( * ) END
----
21
78

skipif mysql # not compatible
query II rowsort label-1769
SELECT 13 - - 8 AS col2, 39 * CASE + COUNT ( * ) WHEN - 71 / - + 1 - + + 77 THEN NULL ELSE + 2 * - - COUNT ( * ) END
----
21
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT - NULLIF ( - COUNT( * ), + 14 ) + + 67 + - 13
----
55

skipif mysql # not compatible
query I rowsort label-1770
SELECT - NULLIF ( - COUNT ( * ), + 14 ) + + 67 + - 13
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL 32 + MIN( NULLIF ( + 95, 14 ) ) + 46 * + - 82 * ( - ( 30 ) ) * + 63
----
7129207

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL 32 + MIN ( NULLIF ( + 95, 14 ) ) + 46 * + - 82 * ( - ( 30 ) ) * + 63
----
7129207

onlyif mysql # aggregate syntax: 
query II rowsort label-1772
SELECT ALL + - 63 + - 77 AS col0, NULLIF ( + 53, COUNT( * ) )
----
-140
53

skipif mysql # not compatible
query II rowsort label-1772
SELECT ALL + - 63 + - 77 AS col0, NULLIF ( + 53, COUNT ( * ) )
----
-140
53

query II rowsort
SELECT ALL + 39 + - 59, + 93 AS col2
----
-20
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1774
SELECT 13 * - - 97, COUNT( * ) * - CAST( 10 AS SIGNED ) AS col1
----
1261
-10

skipif mysql # not compatible
query II rowsort label-1774
SELECT 13 * - - 97, COUNT ( * ) * - CAST ( 10 AS INTEGER ) AS col1
----
1261
-10

query I rowsort
SELECT + 98 - 17 AS col0
----
81

query I rowsort
SELECT - 65 + - 7
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT + + CASE 79 WHEN + 66 / CAST( NULL AS SIGNED ) - - 11 THEN + - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT + + CASE 79 WHEN + 66 / CAST ( NULL AS INTEGER ) - - 11 THEN + - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 2 + 45 * + + ( 46 ) + 79
----
2151

query I rowsort
SELECT DISTINCT 62 + + 58
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT + - COUNT( * ) - 83
----
-84

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT + - COUNT ( * ) - 83
----
-84

query I rowsort
SELECT ALL - NULLIF ( - COALESCE ( + 35, 47, + 29 ), - 52 ) AS col2
----
35

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

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT + 99 / + - COUNT ( * )
----
-99

query I rowsort
SELECT 59 * + 89
----
5251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1784
SELECT 65 + COALESCE ( + 70, + + 8 DIV - 3 * - - 2 + - + COUNT( * ) * + + 74, - 60 + - COUNT( - 5 ) + 44 DIV + - 97 * + 20 ) AS col1
----
135

skipif mysql # not compatible
query I rowsort label-1784
SELECT 65 + COALESCE ( + 70, + + 8 / - 3 * - - 2 + - + COUNT ( * ) * + + 74, - 60 + - COUNT ( - 5 ) + 44 / + - 97 * + 20 ) AS col1
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1785
SELECT 74 + - COALESCE ( - 6, + 21 + - COUNT( ALL + - 51 ) + + 26 * - - 53 DIV CAST( NULL AS SIGNED ), - 85 * + 34 + - COALESCE ( - + 5, + 70 ) ) DIV - + 67 * 62 * - + 71 * - - CAST( 96 AS SIGNED ) * - 34 DIV 30
----
74

skipif mysql # not compatible
query I rowsort label-1785
SELECT 74 + - COALESCE ( - 6, + 21 + - COUNT ( ALL + - 51 ) + + 26 * - - 53 / CAST ( NULL AS INTEGER ), - 85 * + 34 + - COALESCE ( - + 5, + 70 ) ) / - + 67 * 62 * - + 71 * - - CAST ( 96 AS INTEGER ) * - 34 / 30
----
74

query III rowsort
SELECT 59 AS col1, + ( 31 ) AS col1, 25 AS col1
----
59
31
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1787
SELECT ( COUNT( * ) ) * - - 24 * - + 54 + - - 27 - - 75 * + CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT ( COUNT ( * ) ) * - - 24 * - + 54 + - - 27 - - 75 * + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT DISTINCT + 27 * + ( + NULLIF ( + 66, + 51 ) ) * + MIN( - 3 )
----
-5346

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT + 27 * + ( + NULLIF ( + 66, + 51 ) ) * + MIN ( - 3 )
----
-5346

query I rowsort
SELECT 94 * 64 AS col2
----
6016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1790
SELECT - COUNT( * ) * - 86 + - 75 * 2 - CAST( - 71 AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1790
SELECT - COUNT ( * ) * - 86 + - 75 * 2 - CAST ( - 71 AS INTEGER ) AS col0
----
7

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1792
SELECT ALL - 80 AS col2, - 48 * - MAX( - 54 )
----
-80
-2592

skipif mysql # not compatible
query II rowsort label-1792
SELECT ALL - 80 AS col2, - 48 * - MAX ( - 54 )
----
-80
-2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1793
SELECT NULLIF ( - + 48, + CASE + COUNT( * ) WHEN MAX( ALL - + 72 ) THEN + CASE + + MIN( - 20 ) WHEN + ( - 50 ) - + - 77 + - + 16 * + COUNT( * ) + 31 THEN NULL WHEN 88 * 54 THEN + 5 END * 91 * + COUNT( * ) + + 69 + 10 ELSE - - 7 END ) DIV COALESCE ( ( + 19 ), + CAST( + CASE - 47 WHEN - 91 * + 17 THEN ( + 24 ) + - 30 ELSE NULL END AS SIGNED ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1793
SELECT NULLIF ( - + 48, + CASE + COUNT ( * ) WHEN MAX ( ALL - + 72 ) THEN + CASE + + MIN ( - 20 ) WHEN + ( - 50 ) - + - 77 + - + 16 * + COUNT ( * ) + 31 THEN NULL WHEN 88 * 54 THEN + 5 END * 91 * + COUNT ( * ) + + 69 + 10 ELSE - - 7 END ) / COALESCE ( ( + 19 ), + CAST ( + CASE - 47 WHEN - 91 * + 17 THEN ( + 24 ) + - 30 ELSE NULL END AS INTEGER ) ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT 55 * + 75 + 70 * + CAST( 36 AS SIGNED )
----
6645

skipif mysql # not compatible
query I rowsort label-1794
SELECT 55 * + 75 + 70 * + CAST ( 36 AS INTEGER )
----
6645

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

skipif mysql # not compatible
query I rowsort label-1795
SELECT COUNT ( * ) + - 20 AS col1
----
-19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1797
SELECT ( + COUNT( * ) ) DIV 73 * 78 * - COUNT( * ) + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-1797
SELECT ( + COUNT ( * ) ) / 73 * 78 * - COUNT ( * ) + - 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT - + CASE + MAX( - 44 ) WHEN - 34 THEN - 43 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT - + CASE + MAX ( - 44 ) WHEN - 34 THEN - 43 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT DISTINCT + 91 DIV - 83 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT + 91 / - 83 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT ALL CAST( - - 95 AS SIGNED ) + 7
----
102

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL CAST ( - - 95 AS INTEGER ) + 7
----
102

query I rowsort
SELECT - 36 * 9 AS col2
----
-324

query I rowsort
SELECT + 45 + - - 48 AS col0
----
93

query I rowsort
SELECT 66 + + + 10
----
76

query I rowsort
SELECT ALL 11 - 53 col2
----
-42

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

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

skipif mysql # not compatible
query II rowsort label-1806
SELECT - 37, - COUNT ( * ) AS col2
----
-37
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ( + + COUNT( * ) ) * + 61 - 79 + 25 * + ( 86 ) col2
----
2132

skipif mysql # not compatible
query I rowsort label-1807
SELECT ( + + COUNT ( * ) ) * + 61 - 79 + 25 * + ( 86 ) col2
----
2132

query I rowsort
SELECT 85 + + 18 AS col2
----
103

query I rowsort
SELECT ALL 38 * + 76 * + + 61
----
176168

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ( + ( + + 81 ) ) / COUNT( * ) * - 23 - - 30 + 69 * - CASE - SUM( 25 ) WHEN - 27 * COALESCE ( 30, 25, - 49 + - + 44 ) / + - 87 * 27 + + - 46 + - COUNT( 62 ) - + 63 + + COALESCE ( + MAX( + 33 ), + 74 + - 48 ) THEN 97 WHEN 94 * + 75 THEN + ( 8 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT ( + ( + + 81 ) ) / COUNT ( * ) * - 23 - - 30 + 69 * - CASE - SUM ( 25 ) WHEN - 27 * COALESCE ( 30, 25, - 49 + - + 44 ) / + - 87 * 27 + + - 46 + - COUNT ( 62 ) - + 63 + + COALESCE ( + MAX ( + 33 ), + 74 + - 48 ) THEN 97 WHEN 94 * + 75 THEN + ( 8 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1811
SELECT + COUNT( * ) AS col2, 62 DIV - 36
----
1
-1

skipif mysql # not compatible
query II rowsort label-1811
SELECT + COUNT ( * ) AS col2, 62 / - 36
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT 0 + - + 89 + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-1812
SELECT 0 + - + 89 + - COUNT ( * )
----
-90

query I rowsort
SELECT ALL - COALESCE ( 0, - + 84, + 96 ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1814
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - 91 * - + 16 * - 30 + 17 AS col0
----
-43663

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL - COUNT( - - 71 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL - COUNT ( - - 71 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT 94 * 9 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT 94 * 9 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1818
SELECT ALL - 29 AS col1, COUNT( * ) DIV - 25 + 92 AS col1
----
-29
92

skipif mysql # not compatible
query II rowsort label-1818
SELECT ALL - 29 AS col1, COUNT ( * ) / - 25 + 92 AS col1
----
-29
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT DISTINCT + CASE COUNT( * ) WHEN + 94 * MIN( - 67 ) - - 7 * - 50 THEN - SUM( - + 94 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT + CASE COUNT ( * ) WHEN + 94 * MIN ( - 67 ) - - 7 * - 50 THEN - SUM ( - + 94 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT SUM( DISTINCT + 37 ), + 68 * - 8 AS col0
----
37
-544

skipif mysql # not compatible
query II rowsort label-1820
SELECT SUM ( DISTINCT + 37 ), + 68 * - 8 AS col0
----
37
-544

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT + 13 DIV + 93 * 54
----
0

skipif mysql # not compatible
query I rowsort label-1821
SELECT + 13 / + 93 * 54
----
0

query I rowsort
SELECT - 19 * - 19 col1
----
361

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT COUNT( * ) AS col0, 26 AS col1
----
1
26

skipif mysql # not compatible
query II rowsort label-1825
SELECT COUNT ( * ) AS col0, 26 AS col1
----
1
26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1827
SELECT ALL - ( - + COALESCE ( 91, - 69 + - + 60 * 54 * - NULLIF ( + 39, 86 * + - COUNT( * ) + + 5 ) * - 24, - - 89, + COUNT( * ) DIV - 3 + - + COUNT( * ) * - ( + 48 ) + + 90 + 75 ) ) + 62 + + + 52
----
205

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL - ( - + COALESCE ( 91, - 69 + - + 60 * 54 * - NULLIF ( + 39, 86 * + - COUNT ( * ) + + 5 ) * - 24, - - 89, + COUNT ( * ) / - 3 + - + COUNT ( * ) * - ( + 48 ) + + 90 + 75 ) ) + 62 + + + 52
----
205

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1829
SELECT DISTINCT + NULLIF ( - + 94, + + 39 - - CASE - AVG ( + 14 ) WHEN 2 / + 67 * 20 THEN MAX( 62 ) ELSE NULL END ) AS col0, 73 col1
----
-94
73

skipif mysql # not compatible
query II rowsort label-1829
SELECT DISTINCT + NULLIF ( - + 94, + + 39 - - CASE - AVG ( + 14 ) WHEN 2 / + 67 * 20 THEN MAX ( 62 ) ELSE NULL END ) AS col0, 73 col1
----
-94
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT - COALESCE ( - + 76, + - COALESCE ( + 2, - + COUNT( * ) ), - 49 + SUM( DISTINCT + + 3 ) )
----
76

skipif mysql # not compatible
query I rowsort label-1831
SELECT - COALESCE ( - + 76, + - COALESCE ( + 2, - + COUNT ( * ) ), - 49 + SUM ( DISTINCT + + 3 ) )
----
76

query I rowsort
SELECT ALL - 37 + - - 83 col1
----
46

query I rowsort
SELECT - - 57 + - - 50 + - 91 col2
----
16

query I rowsort
SELECT + - 51 * + 48 col0
----
-2448

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

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

query I rowsort
SELECT - + CASE + - 98 WHEN 91 THEN NULL ELSE 99 END + + 53 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL 0 - - 88 + + + ( - - CASE + 9 WHEN + - 86 THEN + 67 + - + ( - 91 ) + - 36 / + - 85 + - 63 + COALESCE ( - 40, 7 * - 80 * - 15 * + MIN( DISTINCT - - 26 ), + 31 + + - 27 + + SUM( + 15 ) + - CASE 83 WHEN + 65 THEN NULL ELSE - 62 + 0 END * + 70 ) * + MIN( + 69 + + 78 * - 63 ) * + COUNT( DISTINCT + 65 * - 54 ) WHEN - COUNT( * ) THEN - 84 END ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL 0 - - 88 + + + ( - - CASE + 9 WHEN + - 86 THEN + 67 + - + ( - 91 ) + - 36 / + - 85 + - 63 + COALESCE ( - 40, 7 * - 80 * - 15 * + MIN ( DISTINCT - - 26 ), + 31 + + - 27 + + SUM ( + 15 ) + - CASE 83 WHEN + 65 THEN NULL ELSE - 62 + 0 END * + 70 ) * + MIN ( + 69 + + 78 * - 63 ) * + COUNT ( DISTINCT + 65 * - 54 ) WHEN - COUNT ( * ) THEN - 84 END ) * 30
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1838
SELECT + COUNT( 0 ) * + 5 DIV 23 * 84
----
0

skipif mysql # not compatible
query I rowsort label-1838
SELECT + COUNT ( 0 ) * + 5 / 23 * 84
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT ALL - CASE + 76 WHEN - 62 * - 32 / + COUNT( + 9 ) * 48 THEN - 9 END * 6 * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL - CASE + 76 WHEN - 62 * - 32 / + COUNT ( + 9 ) * 48 THEN - 9 END * 6 * 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT - + 30 * - COUNT( * ) * - 32 AS col1
----
-960

skipif mysql # not compatible
query I rowsort label-1841
SELECT - + 30 * - COUNT ( * ) * - 32 AS col1
----
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT - - CASE + 72 WHEN + 72 + + CAST( NULL AS SIGNED ) THEN NULL WHEN + 22 * - 96 + - - 97 THEN + CAST( - - 43 AS SIGNED ) + - 40 ELSE + 64 END * 40 AS col1
----
2560

skipif mysql # not compatible
query I rowsort label-1842
SELECT - - CASE + 72 WHEN + 72 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 22 * - 96 + - - 97 THEN + CAST ( - - 43 AS INTEGER ) + - 40 ELSE + 64 END * 40 AS col1
----
2560

query II rowsort
SELECT ( 48 ) AS col0, 71
----
48
71

query I rowsort
SELECT ALL 62 * NULLIF ( + + 26, - 41 / 42 )
----
1612

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

query II rowsort
SELECT ( - 95 ), + 88 AS col2
----
-95
88

query I rowsort
SELECT ALL - 73 * + 97 + - 78 AS col0
----
-7159

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

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

query I rowsort
SELECT ALL 49 * + 62
----
3038

query I rowsort
SELECT ( - 41 ) col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1851
SELECT + 92 DIV + - MIN( ALL - + 60 ) + + 38 + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1851
SELECT + 92 / + - MIN ( ALL - + 60 ) + + 38 + COUNT ( * ) AS col2
----
40

query II rowsort
SELECT + 7 + 16 AS col0, - 33
----
23
-33

query II rowsort
SELECT 83 * + 46 - - 27 - - 60 * + 27 AS col2, + 44
----
5465
44

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1855
SELECT ALL + CAST( NULL AS SIGNED ) * + SUM( 19 ) * + - 96 + ( + + 27 ) + + 70 + + ( - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL + CAST ( NULL AS INTEGER ) * + SUM ( 19 ) * + - 96 + ( + + 27 ) + + 70 + + ( - 41 )
----
NULL

query I rowsort
SELECT COALESCE ( 3, 31 + + 6 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT 92 * - 86 + 90 * - COUNT( * ) * + - 20
----
-6112

skipif mysql # not compatible
query I rowsort label-1857
SELECT 92 * - 86 + 90 * - COUNT ( * ) * + - 20
----
-6112

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1858
SELECT ALL + 30 * + - 72 + + 47, - CAST( NULL AS DECIMAL ) AS col2
----
-2113
NULL

skipif mysql # not compatible
query II rowsort label-1858
SELECT ALL + 30 * + - 72 + + 47, - CAST ( NULL AS REAL ) AS col2
----
-2113
NULL

query I rowsort
SELECT - 77 * - + 77 col1
----
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT COALESCE ( - 52, MIN( DISTINCT - 89 ), - 92 )
----
-52

skipif mysql # not compatible
query I rowsort label-1860
SELECT COALESCE ( - 52, MIN ( DISTINCT - 89 ), - 92 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL - 69 * 7 * + MIN( 26 ) + COUNT( * ) + + 63
----
-12494

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - 69 * 7 * + MIN ( 26 ) + COUNT ( * ) + + 63
----
-12494

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT - + COUNT( * ) + - - 41 * 62
----
2541

skipif mysql # not compatible
query I rowsort label-1862
SELECT - + COUNT ( * ) + - - 41 * 62
----
2541

query I rowsort
SELECT - - 46 + + 36 * - 25 AS col2
----
-854

query II rowsort
SELECT ALL - AVG ( ( 81 ) ) * - + 16 * - 57 + + - CASE - 90 WHEN 71 * - 60 THEN 74 WHEN + 42 THEN - - 94 END * 8 + 95 + 20 AS col2, 33 * + - 97 + - 21 + 52 * - ( + - 24 )
----
NULL
-1974

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + + ( + 81 ) * + - 17 * - 42 + - COUNT( * ) + 17 AS col2
----
57850

skipif mysql # not compatible
query I rowsort label-1866
SELECT + + ( + 81 ) * + - 17 * - 42 + - COUNT ( * ) + 17 AS col2
----
57850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1867
SELECT DISTINCT - 8 DIV - SUM( 18 )
----
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - 8 / - SUM ( 18 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT 97 * + MIN( + 63 ) + + - 1
----
6110

skipif mysql # not compatible
query I rowsort label-1868
SELECT 97 * + MIN ( + 63 ) + + - 1
----
6110

query I rowsort
SELECT DISTINCT - 16 * 83 AS col2
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT MAX( ALL - 30 ) * NULLIF ( + 85, + 15 * - + 91 * 40 + + - 33 ) * + - 38 - - + 62 + - 49
----
96913

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT MAX ( ALL - 30 ) * NULLIF ( + 85, + 15 * - + 91 * 40 + + - 33 ) * + - 38 - - + 62 + - 49
----
96913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1871
SELECT ALL + + 1 - + + COALESCE ( + NULLIF ( CAST( + COUNT( * ) AS SIGNED ), + 7 ), - 33 ) DIV + 37
----
1

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL + + 1 - + + COALESCE ( + NULLIF ( CAST ( + COUNT ( * ) AS INTEGER ), + 7 ), - 33 ) / + 37
----
1

query I rowsort
SELECT - - COALESCE ( - 51, + - 65 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT DISTINCT - 56 * + COUNT( * ) + ( - - 79 )
----
23

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT - 56 * + COUNT ( * ) + ( - - 79 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT ALL + CASE + 68 WHEN - 92 * 72 THEN NULL WHEN 44 * + MIN( 59 ) - - 72 * 62 THEN 3 + - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + CASE + 68 WHEN - 92 * 72 THEN NULL WHEN 44 * + MIN ( 59 ) - - 72 * 62 THEN 3 + - 48 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT DISTINCT - + 72 * - - CAST( NULL AS SIGNED ) * - - 56 + + 12 * + 31 - - - NULLIF ( 14, - 31 * - 24 - - 21 + 70 * - 57 + - AVG ( - 27 ) + - 53 + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - + 72 * - - CAST ( NULL AS INTEGER ) * - - 56 + + 12 * + 31 - - - NULLIF ( 14, - 31 * - 24 - - 21 + 70 * - 57 + - AVG ( - 27 ) + - 53 + 9 )
----
NULL

query I rowsort
SELECT - + 84 * 51 + 84 * - 12 * - NULLIF ( - - 4, 21 + - + 33 ) - - 81
----
-171

query I rowsort
SELECT + 3 * - 41 AS col2
----
-123

query I rowsort
SELECT - ( + 39 ) + - - 13 + + 56 col0
----
30

query I rowsort
SELECT + 3 - + 88 col1
----
-85

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

query II rowsort
SELECT ALL 90 AS col0, 58 * - 61
----
90
-3538

query I rowsort
SELECT DISTINCT 3 * + 0 AS col0
----
0

query I rowsort
SELECT DISTINCT - 68 + + 70 + - 93 AS col0
----
-91

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

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL COUNT ( * ) + - 46 AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1885
SELECT 87 DIV - ( + CAST( 69 AS SIGNED ) ) + + 61
----
60

skipif mysql # not compatible
query I rowsort label-1885
SELECT 87 / - ( + CAST ( 69 AS INTEGER ) ) + + 61
----
60

query I rowsort
SELECT ALL + 50 + + 83
----
133

query I rowsort
SELECT ALL - 96 * + 74 * 33 AS col2
----
-234432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1888
SELECT 19 + + CAST( - COUNT( * ) AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-1888
SELECT 19 + + CAST ( - COUNT ( * ) AS INTEGER )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1889
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) * + - 91, 99 + - 40 AS col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-1889
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) * + - 91, 99 + - 40 AS col1
----
NULL
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1890
SELECT - 38 * - + 54 + 80 / NULLIF ( - + 50, + 79 + 16 * - 41 + - - 21 * COUNT( * ) + + 90 ) - COALESCE ( COUNT( * ), + - 64 ) * + 97 + NULLIF ( CAST( NULL AS SIGNED ), 37 ) * + - 66 AS col1, + CASE + + 75 WHEN 93 THEN + 28 ELSE NULL END * + 10 + - COUNT( * ) + - 17
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1890
SELECT - 38 * - + 54 + 80 / NULLIF ( - + 50, + 79 + 16 * - 41 + - - 21 * COUNT ( * ) + + 90 ) - COALESCE ( COUNT ( * ), + - 64 ) * + 97 + NULLIF ( CAST ( NULL AS INTEGER ), 37 ) * + - 66 AS col1, + CASE + + 75 WHEN 93 THEN + 28 ELSE NULL END * + 10 + - COUNT ( * ) + - 17
----
NULL
NULL

query I rowsort
SELECT ALL 95 + + 7 col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT ALL + COUNT( * ) + 5 * + COALESCE ( + 56, - COUNT( * ) ) + + 53 AS col0
----
334

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL + COUNT ( * ) + 5 * + COALESCE ( + 56, - COUNT ( * ) ) + + 53 AS col0
----
334

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

skipif mysql # not compatible
query II rowsort label-1893
SELECT 69 AS col1, COUNT ( * ) AS col1
----
69
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1894
SELECT ALL - COUNT( * ), 53 * 75 * CAST( NULL AS SIGNED ) * + 89 + CAST( - 8 AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1894
SELECT ALL - COUNT ( * ), 53 * 75 * CAST ( NULL AS INTEGER ) * + 89 + CAST ( - 8 AS INTEGER ) AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT - ( + 52 ) * COUNT( * ) * - 28
----
1456

skipif mysql # not compatible
query I rowsort label-1895
SELECT - ( + 52 ) * COUNT ( * ) * - 28
----
1456

query II rowsort
SELECT COALESCE ( 31, + 10 - + ( + 24 ) * + 57 ) col0, ( - - 12 )
----
31
12

query I rowsort
SELECT ALL - 18 * 71 * 62 AS col1
----
-79236

onlyif mysql # DIV for integer division: 
query II rowsort label-1898
SELECT ALL - - 99 col0, 65 DIV 22
----
99
2

skipif mysql # not compatible
query II rowsort label-1898
SELECT ALL - - 99 col0, 65 / 22
----
99
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1899
SELECT ALL - CAST( 84 AS SIGNED ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL - CAST ( 84 AS INTEGER ) col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1900
SELECT 82 + + 48 * CAST( - 6 AS SIGNED ) AS col1
----
-206

skipif mysql # not compatible
query I rowsort label-1900
SELECT 82 + + 48 * CAST ( - 6 AS INTEGER ) AS col1
----
-206

query I rowsort
SELECT - ( + 20 ) * - - 39 AS col2
----
-780

query I rowsort
SELECT + 79 * 91 + + 80 AS col0
----
7269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1903
SELECT - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) / - MAX( 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / - MAX ( 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL + - 57 * - 23 + - 63 * + + COALESCE ( - 41, + - 29, COUNT( * ) * 11 ) col1
----
3894

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL + - 57 * - 23 + - 63 * + + COALESCE ( - 41, + - 29, COUNT ( * ) * 11 ) col1
----
3894

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT MAX( ALL - 61 ) * + 94 AS col0, 19 + + - 34 + + + 21 * + 70 * 96 + - 6 * - COUNT( * ) + 99
----
-5734
141210

skipif mysql # not compatible
query II rowsort label-1905
SELECT MAX ( ALL - 61 ) * + 94 AS col0, 19 + + - 34 + + + 21 * + 70 * 96 + - 6 * - COUNT ( * ) + 99
----
-5734
141210

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT - ( 10 ) + - SUM( - + 18 ) - COUNT( ALL 91 ) * - 30 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1906
SELECT - ( 10 ) + - SUM ( - + 18 ) - COUNT ( ALL 91 ) * - 30 AS col2
----
38

query II rowsort
SELECT 35 AS col1, + 35 + - + 65 AS col1
----
35
-30

query I rowsort
SELECT + 40 * + 24 + 2 AS col1
----
962

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

query II rowsort
SELECT ALL - 10 AS col0, + 62 * + + 45 * + - 8
----
-10
-22320

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

skipif mysql # not compatible
query I rowsort label-1911
SELECT - + MIN ( 64 )
----
-64

query I rowsort
SELECT ALL 80 + 15 * + - 95 AS col0
----
-1345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1913
SELECT ALL 38 + - - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) * 59
----
39
NULL

skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL 38 + - - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * 59
----
39
NULL

query I rowsort
SELECT 0 * - + 47 AS col2
----
0

query I rowsort
SELECT DISTINCT - 82 + - 72
----
-154

query I rowsort
SELECT 19 * 61
----
1159

query II rowsort
SELECT ALL - 55 + + 21, - ( + 92 ) AS col1
----
-34
-92

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

query II rowsort
SELECT 0 + - 97 AS col2, 84 AS col2
----
-97
84

query I rowsort
SELECT 3 + 95 AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1921
SELECT 9 DIV + COUNT( * ) AS col0, COUNT( * )
----
9
1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1922
SELECT ALL + CAST( NULL AS DECIMAL ) + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL + CAST ( NULL AS REAL ) + 28
----
NULL

query I rowsort
SELECT DISTINCT + 38 + ( + 31 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-1924
SELECT ALL ( 2 ) * + SUM( - 51 ) * + - 61 + - 45 + - - 29, - 95 * - NULLIF ( - + 64, 6 ) AS col0
----
6206
-6080

skipif mysql # not compatible
query II rowsort label-1924
SELECT ALL ( 2 ) * + SUM ( - 51 ) * + - 61 + - 45 + - - 29, - 95 * - NULLIF ( - + 64, 6 ) AS col0
----
6206
-6080

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL + COUNT( * ) - + 15 + CASE MIN( - 7 ) WHEN + 11 THEN - - MIN( + 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL + COUNT ( * ) - + 15 + CASE MIN ( - 7 ) WHEN + 11 THEN - - MIN ( + 83 ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1926
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1927
SELECT 18 * CAST( NULL AS SIGNED ) / + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT 18 * CAST ( NULL AS INTEGER ) / + 79
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1928
SELECT - 45 / 73 + + 1
----
1

query II rowsort
SELECT 48 * 95 AS col2, - 31
----
4560
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT - MIN( + - 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - MIN ( + - 74 ) AS col2
----
74

query I rowsort
SELECT - 39 * + - 47 * 31 * - 69 + + - 6
----
-3920793

query I rowsort
SELECT ALL - ( COALESCE ( - 27, - 21 ) ) AS col0
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - 36 + COALESCE ( + ( - 41 ), COUNT( 4 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-1935
SELECT - 36 + COALESCE ( + ( - 41 ), COUNT ( 4 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL - - COALESCE ( + COUNT( * ), NULLIF ( - 90, + ( - ( - - 88 ) ) * + 49 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL - - COALESCE ( + COUNT ( * ), NULLIF ( - 90, + ( - ( - - 88 ) ) * + 49 ) ) col1
----
1

query II rowsort
SELECT 66 + + 2 AS col1, 54
----
68
54

query I rowsort
SELECT - 89 * + 2 AS col1
----
-178

query I rowsort
SELECT DISTINCT + 6 * 9 + - 1 AS col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1940
SELECT - COUNT( 33 ) AS col2, 91
----
-1
91

skipif mysql # not compatible
query II rowsort label-1940
SELECT - COUNT ( 33 ) AS col2, 91
----
-1
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1941
SELECT ALL 46 + 69 - 74 + COALESCE ( + CAST( NULL AS SIGNED ), + + 4 + 10 ) - - 28 - - 4 DIV + 30 + - 61 * + 4 + 67 DIV - 77 * + - COUNT( * ) - - 53
----
-108

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL 46 + 69 - 74 + COALESCE ( + CAST ( NULL AS INTEGER ), + + 4 + 10 ) - - 28 - - 4 / + 30 + - 61 * + 4 + 67 / - 77 * + - COUNT ( * ) - - 53
----
-108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ( - 15 ) * - MIN( DISTINCT + - 77 ) AS col2
----
-1155

skipif mysql # not compatible
query I rowsort label-1943
SELECT ( - 15 ) * - MIN ( DISTINCT + - 77 ) AS col2
----
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT 94 + + MAX( ALL + - 93 ) + - 65 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT 94 + + MAX ( ALL + - 93 ) + - 65 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT + NULLIF ( COUNT( * ), + 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1945
SELECT + NULLIF ( COUNT ( * ), + 49 ) AS col1
----
1

query II rowsort
SELECT ALL - 13 + + - 2 AS col0, + 92 AS col1
----
-15
92

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

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

query I rowsort
SELECT ALL - 68 + + - 10 AS col2
----
-78

query I rowsort
SELECT - 3 * - - 41 * + 31 * COALESCE ( + 17, - 48 )
----
-64821

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT - COUNT( 43 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1950
SELECT - COUNT ( 43 ) col1
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1952
SELECT - COALESCE ( + 3, - + COUNT( * ) DIV - 65 * + 91 * - 30 + - 18 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1952
SELECT - COALESCE ( + 3, - + COUNT ( * ) / - 65 * + 91 * - 30 + - 18 ) AS col2
----
-3

query I rowsort
SELECT + 8 + - ( - - 72 ) AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT - 14 - 81 DIV 69 + - + 39
----
-54

skipif mysql # not compatible
query I rowsort label-1954
SELECT - 14 - 81 / 69 + - + 39
----
-54

query I rowsort
SELECT DISTINCT - 51 + 60
----
9

query I rowsort
SELECT + 84 + + - 80 + - + 81 * + - 93
----
7537

query I rowsort
SELECT ALL 90 + 2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1958
SELECT 2 AS col2, + CASE - + 41 WHEN + 17 THEN + 91 * + COUNT( * ) + + + COUNT( * ) + CAST( NULL AS SIGNED ) - 2 WHEN - CAST( NULL AS DECIMAL ) * + 79 + - 62 THEN NULL ELSE - - 65 DIV - COUNT( + 8 ) END
----
2
-65

skipif mysql # not compatible
query II rowsort label-1958
SELECT 2 AS col2, + CASE - + 41 WHEN + 17 THEN + 91 * + COUNT ( * ) + + + COUNT ( * ) + CAST ( NULL AS INTEGER ) - 2 WHEN - CAST ( NULL AS REAL ) * + 79 + - 62 THEN NULL ELSE - - 65 / - COUNT ( + 8 ) END
----
2
-65

query II rowsort
SELECT ALL 57 AS col0, + 8
----
57
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT DISTINCT 25 - - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT 25 - - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT MIN( ( - 55 ) ) * 5 + 44 * + + 51
----
1969

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT MIN ( ( - 55 ) ) * 5 + 44 * + + 51
----
1969

onlyif mysql # DIV for integer division: 
query I rowsort label-1962
SELECT ALL COALESCE ( 66, 65 DIV 28 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL COALESCE ( 66, 65 / 28 ) AS col2
----
66

query I rowsort
SELECT - 54 + + + 27
----
-27

query I rowsort
SELECT ALL + 33 * + 58 AS col2
----
1914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1965
SELECT DISTINCT + 88 * 74 - + 3 + + 20 - - CAST( NULL AS SIGNED ) / ( - + ( + 4 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT + 88 * 74 - + 3 + + 20 - - CAST ( NULL AS INTEGER ) / ( - + ( + 4 ) ) AS col2
----
NULL

query I rowsort
SELECT - 77 * - 75 * + - 36 * 42 AS col0
----
-8731800

query I rowsort
SELECT - CASE + 48 WHEN 37 THEN + 78 ELSE NULL END * + NULLIF ( + ( + - 99 ), 46 ) AS col0
----
NULL

query I rowsort
SELECT + 91 * + 82 * 96 + 18 - + 46 + + + 12 + - 38 AS col0
----
716298

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

skipif mysql # not compatible
query I rowsort label-1969
SELECT + + MIN ( 36 )
----
36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT ALL + + 65 DIV 96 * + + 90
----
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + + 65 / 96 * + + 90
----
0

query I rowsort
SELECT ALL + CASE 83 WHEN + 69 * - 62 THEN NULL WHEN - ( - 46 ) THEN NULL ELSE + 51 + + 10 END * - 1 * - + 55 * + - 95 + 12 AS col1
----
-318713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1973
SELECT - CASE - MAX( ALL 77 ) WHEN 90 + - 32 + 51 * - - CAST( NULL AS SIGNED ) * - 10 / + COUNT( * ) THEN 34 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT - CASE - MAX ( ALL 77 ) WHEN 90 + - 32 + 51 * - - CAST ( NULL AS INTEGER ) * - 10 / + COUNT ( * ) THEN 34 END * + COUNT ( * )
----
NULL

query I rowsort
SELECT - 34 * + + 52 * + ( 25 ) AS col2
----
-44200

query I rowsort
SELECT DISTINCT - 35 * - + 44 AS col0
----
1540

query I rowsort
SELECT ALL 3 * - 51 * + 43 + - - 76 AS col1
----
-6503

query I rowsort
SELECT + + ( + 93 ) * 26 * 93 * - 15 * + - 98 - 23 - + 12
----
330564745

query I rowsort
SELECT CASE - 55 WHEN - 44 - + 85 THEN + 7 * - 77 + - 73 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 11 * - 7 + + + 65
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1980
SELECT + ( 69 ) - CAST( 67 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1980
SELECT + ( 69 ) - CAST ( 67 AS INTEGER ) AS col2
----
2

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1983
SELECT DISTINCT MIN( ALL + + CAST( - + 60 AS SIGNED ) ) + SUM( ALL 41 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT MIN ( ALL + + CAST ( - + 60 AS INTEGER ) ) + SUM ( ALL 41 ) col0
----
-19

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

skipif mysql # not compatible
query I rowsort label-1984
SELECT + 67 + + COUNT ( * ) AS col1
----
68

query II rowsort
SELECT ALL 44 col0, + 30 * 38
----
44
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT - NULLIF ( + 94, - COUNT( * ) ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-1986
SELECT - NULLIF ( + 94, - COUNT ( * ) ) col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL NULLIF ( - 50, + 59 * + COUNT( ALL + 10 ) ) - 3
----
-53

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL NULLIF ( - 50, + 59 * + COUNT ( ALL + 10 ) ) - 3
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-1988
SELECT DISTINCT COUNT( + 30 ) AS col2, + 73 col1
----
1
73

skipif mysql # not compatible
query II rowsort label-1988
SELECT DISTINCT COUNT ( + 30 ) AS col2, + 73 col1
----
1
73

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

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

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

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT 84 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL 55 AS col1, - 22
----
55
-22

query I rowsort
SELECT DISTINCT - 74 - + ( + 82 )
----
-156

query I rowsort
SELECT + 25 * + 1 AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1994
SELECT - CAST( NULL AS SIGNED ), - NULLIF ( 99, - + 49 ) AS col0
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-1994
SELECT - CAST ( NULL AS INTEGER ), - NULLIF ( 99, - + 49 ) AS col0
----
NULL
-99

query II rowsort
SELECT ALL 12 AS col2, 72 AS col0
----
12
72

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

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

query I rowsort
SELECT + 18 - 54
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1998
SELECT + 77 DIV NULLIF ( + 57, + - 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1998
SELECT + 77 / NULLIF ( + 57, + - 74 ) AS col2
----
1

query I rowsort
SELECT - 83 * 19 col0
----
-1577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT + CAST( - 10 AS SIGNED ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2000
SELECT + CAST ( - 10 AS INTEGER ) AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT DISTINCT 35 DIV + - 50 col2
----
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT 35 / + - 50 col2
----
0

query I rowsort
SELECT - 95 * + ( - - 14 ) AS col1
----
-1330

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

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

query I rowsort
SELECT - + 12 * + + 22 col2
----
-264

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT + COUNT( * ) AS col2, + 93 + + + 35 col0
----
1
128

skipif mysql # not compatible
query II rowsort label-2005
SELECT + COUNT ( * ) AS col2, + 93 + + + 35 col0
----
1
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT - MAX( DISTINCT - NULLIF ( + 49, + + 75 * - + 60 ) ) + 1 + + NULLIF ( + 42, + 97 ) * - + 3 + - 22 * COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-2006
SELECT - MAX ( DISTINCT - NULLIF ( + 49, + + 75 * - + 60 ) ) + 1 + + NULLIF ( + 42, + 97 ) * - + 3 + - 22 * COUNT ( * ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT - CASE - 94 WHEN 12 + MIN( ALL + - 15 ) + + 95 * + + 97 THEN NULL WHEN 44 THEN 59 END * SUM( 85 ) + - SUM( ALL 81 ) * 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT - CASE - 94 WHEN 12 + MIN ( ALL + - 15 ) + + 95 * + + 97 THEN NULL WHEN 44 THEN 59 END * SUM ( 85 ) + - SUM ( ALL 81 ) * 82 col0
----
NULL

query II rowsort
SELECT DISTINCT - 87 AS col2, - 68
----
-87
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT ALL + + MIN( 11 ) + CASE - ( 73 ) WHEN ( - 14 ) - - - 75 + - SUM( ALL 81 ) + - CASE - + 50 WHEN 57 THEN + 80 END THEN NULL ELSE + 20 * 29 END + + 62 - MAX( ( + 22 ) ) AS col0
----
631

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL + + MIN ( 11 ) + CASE - ( 73 ) WHEN ( - 14 ) - - - 75 + - SUM ( ALL 81 ) + - CASE - + 50 WHEN 57 THEN + 80 END THEN NULL ELSE + 20 * 29 END + + 62 - MAX ( ( + 22 ) ) AS col0
----
631

query I rowsort
SELECT + - NULLIF ( - + 30, - - 26 )
----
30

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL + - 83 + + MIN( DISTINCT + 70 )
----
-13

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL + - 83 + + MIN ( DISTINCT + 70 )
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT 29 * - + 63 * 0 DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-2015
SELECT 29 * - + 63 * 0 / 19
----
0

query I rowsort
SELECT 60 * + 68 + + + 27
----
4107

query I rowsort
SELECT 3 * - - 30 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL + MIN( - - 69 ) * - 85
----
-5865

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL + MIN ( - - 69 ) * - 85
----
-5865

query I rowsort
SELECT DISTINCT 66 * - ( + 54 ) * - 88 + + 60 AS col0
----
313692

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2021
SELECT ALL 95 - + 28 AS col2, - SUM( ALL - 81 ) + + 16
----
67
97

skipif mysql # not compatible
query II rowsort label-2021
SELECT ALL 95 - + 28 AS col2, - SUM ( ALL - 81 ) + + 16
----
67
97

query I rowsort
SELECT 25 + + 45
----
70

query I rowsort
SELECT DISTINCT 30 * + - 47 * - 80 col0
----
112800

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT 73 DIV - - 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2024
SELECT 73 / - - 58 AS col2
----
1

query I rowsort
SELECT ALL 65 * - 34 * - 71
----
156910

query II rowsort
SELECT 44 * - - 93, + 15 + - + 69 AS col2
----
4092
-54

query I rowsort
SELECT ALL - ( + 74 ) * + 36
----
-2664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT DISTINCT - CAST( - 63 AS SIGNED ) * + 18 + 83 * + MAX( DISTINCT 92 ) AS col2
----
8770

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT - CAST ( - 63 AS INTEGER ) * + 18 + 83 * + MAX ( DISTINCT 92 ) AS col2
----
8770

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2029
SELECT DISTINCT 28 DIV + 12 AS col1, + COUNT( * ) AS col2
----
2
1

skipif mysql # not compatible
query II rowsort label-2029
SELECT DISTINCT 28 / + 12 AS col1, + COUNT ( * ) AS col2
----
2
1

query I rowsort
SELECT DISTINCT 67 + + 55 * - - 52
----
2927

query I rowsort
SELECT ALL 72 + + COALESCE ( 22, + - 76 ) - - - 50
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2032
SELECT - 16 DIV 46, - SUM( DISTINCT + - 53 ) AS col0
----
0
53

skipif mysql # not compatible
query II rowsort label-2032
SELECT - 16 / 46, - SUM ( DISTINCT + - 53 ) AS col0
----
0
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT - 55 * SUM( - ( 99 ) ) col0
----
5445

skipif mysql # not compatible
query I rowsort label-2033
SELECT - 55 * SUM ( - ( 99 ) ) col0
----
5445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT ALL 99 + + - CAST( - SUM( ALL COALESCE ( 24, + CAST( 2 AS SIGNED ) - + ( + 43 ) ) ) AS SIGNED ) + + - 14 + - 17 + - 37 - + MAX( + 27 ) * + 11 * + 80
----
-23705

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL 99 + + - CAST ( - SUM ( ALL COALESCE ( 24, + CAST ( 2 AS INTEGER ) - + ( + 43 ) ) ) AS INTEGER ) + + - 14 + - 17 + - 37 - + MAX ( + 27 ) * + 11 * + 80
----
-23705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2035
SELECT ALL 12 * - 78 * - 16 + + COUNT( * ) DIV - + 87 col0
----
14976

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL 12 * - 78 * - 16 + + COUNT ( * ) / - + 87 col0
----
14976

query I rowsort
SELECT ALL + 75 + - - 95
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT DISTINCT - - CASE - - 40 WHEN + COUNT( * ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT - - CASE - - 40 WHEN + COUNT ( * ) THEN + COUNT ( * ) END
----
NULL

query II rowsort
SELECT ALL 1 - - + 1 AS col2, - 27 + 20
----
2
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2039
SELECT + + 95 * + 64 - - COUNT( ALL 35 ) + + - COALESCE ( - 43, - ( - - COUNT( DISTINCT - - 96 ) ) * 92 ) * 40 DIV + - 40 AS col1
----
6038

skipif mysql # not compatible
query I rowsort label-2039
SELECT + + 95 * + 64 - - COUNT ( ALL 35 ) + + - COALESCE ( - 43, - ( - - COUNT ( DISTINCT - - 96 ) ) * 92 ) * 40 / + - 40 AS col1
----
6038

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT 73 * 18 DIV + 23 - 88 + + - 65
----
-96

skipif mysql # not compatible
query I rowsort label-2040
SELECT 73 * 18 / + 23 - 88 + + - 65
----
-96

query I rowsort
SELECT 38 * - 83 * - 67 * - 41
----
-8664038

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2043
SELECT 18 DIV SUM( ALL + + 99 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2043
SELECT 18 / SUM ( ALL + + 99 ) AS col2
----
0

query I rowsort
SELECT 54 * - 64
----
-3456

query I rowsort
SELECT 63 * - + 33 AS col2
----
-2079

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

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

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

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT COUNT ( DISTINCT CAST ( + ( + - 79 ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL - COALESCE ( + MAX( - 87 ), - COUNT( * ), - + 60 ) + - 71
----
16

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL - COALESCE ( + MAX ( - 87 ), - COUNT ( * ), - + 60 ) + - 71
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2049
SELECT 42 AS col2, 72 * - ( - 86 ) / COUNT( * ) * - COUNT( * ) + - CAST( NULL AS SIGNED ) * 29 AS col2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-2049
SELECT 42 AS col2, 72 * - ( - 86 ) / COUNT ( * ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 29 AS col2
----
42
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT DISTINCT - 85 + - 84 + 7 DIV + ( + - 9 ) - - 38 * - - 2
----
-93

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT - 85 + - 84 + 7 / + ( + - 9 ) - - 38 * - - 2
----
-93

query I rowsort
SELECT ALL + 30 + NULLIF ( - - COALESCE ( - - 61, - - 88 ), - 84 ) AS col0
----
91

query I rowsort
SELECT 97 * + 38 + + 58
----
3744

query I rowsort
SELECT 40 * - + 35 * - 5 * - + 70 * 11 - + - ( + 33 )
----
-5389967

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL - COALESCE ( COUNT( * ), 95 - + 95 + + - 38 + COUNT( * ) * - MIN( + 4 ), - 14 ) + + 15 * - 18 col2
----
-271

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - COALESCE ( COUNT ( * ), 95 - + 95 + + - 38 + COUNT ( * ) * - MIN ( + 4 ), - 14 ) + + 15 * - 18 col2
----
-271

query I rowsort
SELECT 27 - + + 80 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT + 39 + + 95 + + COUNT( * ) * + 43 * + COUNT( * ) col1
----
177

skipif mysql # not compatible
query I rowsort label-2056
SELECT + 39 + + 95 + + COUNT ( * ) * + 43 * + COUNT ( * ) col1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL COUNT( ALL + 57 ) * - COUNT( + - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL COUNT ( ALL + 57 ) * - COUNT ( + - 73 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-2058
SELECT COUNT ( * ) + - + COUNT ( * ) * ( - 29 ) * + - 10 AS col0
----
-289

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2059
SELECT DISTINCT 46 * - 70 + - + 6 + - - ( - 0 ) * + 37 * - 29 DIV + COUNT( * ) AS col0, - 13 col1
----
-3226
-13

skipif mysql # not compatible
query II rowsort label-2059
SELECT DISTINCT 46 * - 70 + - + 6 + - - ( - 0 ) * + 37 * - 29 / + COUNT ( * ) AS col0, - 13 col1
----
-3226
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2060
SELECT ALL - CAST( NULL AS SIGNED ) * 29 + + - 68
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2061
SELECT - CASE - 33 WHEN + ( COUNT( ALL - COALESCE ( + 13, + CAST( + 76 AS SIGNED ) ) ) ) + COALESCE ( 5, - COUNT( * ) / - 64 ) THEN NULL ELSE - - 22 END AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2061
SELECT - CASE - 33 WHEN + ( COUNT ( ALL - COALESCE ( + 13, + CAST ( + 76 AS INTEGER ) ) ) ) + COALESCE ( 5, - COUNT ( * ) / - 64 ) THEN NULL ELSE - - 22 END AS col2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT + 87 DIV + 65 - + ( - + ( + 52 ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2062
SELECT + 87 / + 65 - + ( - + ( + 52 ) ) AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2063
SELECT - 9 col0, CAST( NULL AS SIGNED ) * 68
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-2063
SELECT - 9 col0, CAST ( NULL AS INTEGER ) * 68
----
-9
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT ALL 91 * 29 * 78 - - + 75 DIV 45 col1
----
205843

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL 91 * 29 * 78 - - + 75 / 45 col1
----
205843

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

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

query I rowsort
SELECT ALL + 5 * - - 7 - - 95 AS col0
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT + MIN( 28 ) DIV 11 + 68
----
70

skipif mysql # not compatible
query I rowsort label-2067
SELECT + MIN ( 28 ) / 11 + 68
----
70

query I rowsort
SELECT + - 52 * + + 85
----
-4420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2069
SELECT + + CASE CAST( NULL AS SIGNED ) WHEN + 60 / - 23 THEN AVG ( + + 88 ) + - - 1 - + NULLIF ( + 46, COUNT( * ) * + 83 ) END + + + 20 / 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT + + CASE CAST ( NULL AS INTEGER ) WHEN + 60 / - 23 THEN AVG ( + + 88 ) + - - 1 - + NULLIF ( + 46, COUNT ( * ) * + 83 ) END + + + 20 / 98 AS col2
----
NULL

query I rowsort
SELECT ALL + ( - NULLIF ( + 81, + + 12 ) )
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT ALL 13 DIV 70 col1
----
0

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL 13 / 70 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT + - MIN( + 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT + - MIN ( + 23 ) AS col2
----
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT ALL + 88 * 75 - + MAX( + - ( - 69 ) )
----
6531

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + 88 * 75 - + MAX ( + - ( - 69 ) )
----
6531

query I rowsort
SELECT + 62 * - 94
----
-5828

query I rowsort
SELECT + 20 * - 95
----
-1900

query I rowsort
SELECT - 8 * 4 + + 1 + + - 4 * + 33 + 80 * 92 col0
----
7197

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT ALL + CASE 33 WHEN + + 6 THEN 55 WHEN + + 22 THEN NULL ELSE + + 18 + 45 END AS col1, - 77 * - 13 + COUNT( * ) + - 74 col1
----
63
928

skipif mysql # not compatible
query II rowsort label-2078
SELECT ALL + CASE 33 WHEN + + 6 THEN 55 WHEN + + 22 THEN NULL ELSE + + 18 + 45 END AS col1, - 77 * - 13 + COUNT ( * ) + - 74 col1
----
63
928

query I rowsort
SELECT + 14 + 90 AS col2
----
104

query I rowsort
SELECT - 32 * - ( + 97 ) AS col2
----
3104

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

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + COUNT ( 79 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT - 98 + NULLIF ( - + 19, + COUNT( * ) )
----
-117

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT - 98 + NULLIF ( - + 19, + COUNT ( * ) )
----
-117

query I rowsort
SELECT DISTINCT 13 + - - 29
----
42

query I rowsort
SELECT DISTINCT + 26 * - 31 AS col2
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL - 71 + COUNT( * ) + - 96 + - 28 + + ( + COALESCE ( + 63, + 21 + + - NULLIF ( - 59, - + 62 ) * - 85, - 69, 86 * + CASE 71 WHEN 39 * - COUNT( * ) THEN + - 86 END * - COUNT( - 69 ) * 83 + - 26 * - 93 ) ) * + 38
----
2200

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - 71 + COUNT ( * ) + - 96 + - 28 + + ( + COALESCE ( + 63, + 21 + + - NULLIF ( - 59, - + 62 ) * - 85, - 69, 86 * + CASE 71 WHEN 39 * - COUNT ( * ) THEN + - 86 END * - COUNT ( - 69 ) * 83 + - 26 * - 93 ) ) * + 38
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT - 42 + + 42 + + SUM( ALL - - 48 ) + - - 39
----
87

skipif mysql # not compatible
query I rowsort label-2087
SELECT - 42 + + 42 + + SUM ( ALL - - 48 ) + - - 39
----
87

query I rowsort
SELECT DISTINCT - 98 + 48 AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2089
SELECT ALL + 44 DIV + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL + 44 / + 82 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT - ( + 2 ) + - 13 + - 9 * - + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT - ( + 2 ) + - 13 + - 9 * - + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT ALL - 81 + - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - 81 + - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 26 * 33 AS col2, + 47 - - 88 - - 39
----
858
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2093
SELECT ALL - + COALESCE ( - + CASE - + AVG ( DISTINCT - + 76 ) WHEN + 64 THEN + COUNT( * ) + + - 57 WHEN + - 91 THEN NULL ELSE NULL END, - 24, + 11 - - + COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - + COALESCE ( - + CASE - + AVG ( DISTINCT - + 76 ) WHEN + 64 THEN + COUNT ( * ) + + - 57 WHEN + - 91 THEN NULL ELSE NULL END, - 24, + 11 - - + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - + 30 * + + ( - 37 )
----
1110

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

query I rowsort
SELECT - - 8 + - 73 AS col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT DISTINCT + ( 69 ) + + 78 + - 41 + + - 94 + + 36 DIV 32 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT + ( 69 ) + + 78 + - 41 + + - 94 + + 36 / 32 AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2098
SELECT ALL - - 43 + + COALESCE ( 54, MAX( COALESCE ( - - 97, + - 28 ) ) * + 56, CASE - + ( + COALESCE ( + 3, - 42 ) ) WHEN 91 THEN NULL ELSE - COUNT( * ) DIV 86 - 60 - + ( - 58 ) END ) DIV - NULLIF ( 44, + 38 ), - 92 AS col1
----
42
-92

skipif mysql # not compatible
query II rowsort label-2098
SELECT ALL - - 43 + + COALESCE ( 54, MAX ( COALESCE ( - - 97, + - 28 ) ) * + 56, CASE - + ( + COALESCE ( + 3, - 42 ) ) WHEN 91 THEN NULL ELSE - COUNT ( * ) / 86 - 60 - + ( - 58 ) END ) / - NULLIF ( 44, + 38 ), - 92 AS col1
----
42
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2099
SELECT ALL + COUNT( ALL - 7 ) DIV - 38 * + + 68
----
0

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL + COUNT ( ALL - 7 ) / - 38 * + + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT - COALESCE ( - 26, + 0 + 62 + + + 22 + MAX( + - 1 ) * - - 64 * 94 )
----
26

skipif mysql # not compatible
query I rowsort label-2100
SELECT - COALESCE ( - 26, + 0 + 62 + + + 22 + MAX ( + - 1 ) * - - 64 * 94 )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2101
SELECT DISTINCT + 36 DIV ( - 41 ) * - 84 * ( 95 ) + + 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT + 36 / ( - 41 ) * - 84 * ( 95 ) + + 62 AS col2
----
62

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

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

query I rowsort
SELECT ALL + 67 - + 63
----
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2104
SELECT - 0 + ( 66 ) DIV - 94 * + CAST( 19 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT - 0 + ( 66 ) / - 94 * + CAST ( 19 AS INTEGER )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT + - 6 + - COUNT( * ) + 0
----
-7

skipif mysql # not compatible
query I rowsort label-2106
SELECT + - 6 + - COUNT ( * ) + 0
----
-7

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

skipif mysql # not compatible
query I rowsort label-2107
SELECT + + MAX ( 99 )
----
99

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

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

query II rowsort
SELECT DISTINCT + ( - - 86 ) AS col2, + 54 AS col0
----
86
54

query I rowsort
SELECT ALL 19 * + - 44 AS col0
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT - MIN( ALL - 30 ) * + 78 * 99 * + 42 AS col1
----
9729720

skipif mysql # not compatible
query I rowsort label-2111
SELECT - MIN ( ALL - 30 ) * + 78 * 99 * + 42 AS col1
----
9729720

query I rowsort
SELECT ALL + - 59 * 2
----
-118

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT - 26 DIV + 15
----
-1

skipif mysql # not compatible
query I rowsort label-2114
SELECT - 26 / + 15
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2115
SELECT - 79 * + ( - - 9 ) + CASE 18 WHEN - 28 + + + 96 + - ( - ( - MIN( - 85 ) ) ) THEN + COUNT( * ) DIV + + 67 - - + ( 64 ) WHEN + 22 THEN NULL ELSE 69 END * - ( - + 28 ) * + 8 + - 38
----
14707

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 79 * + ( - - 9 ) + CASE 18 WHEN - 28 + + + 96 + - ( - ( - MIN ( - 85 ) ) ) THEN + COUNT ( * ) / + + 67 - - + ( 64 ) WHEN + 22 THEN NULL ELSE 69 END * - ( - + 28 ) * + 8 + - 38
----
14707

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ( SUM( ( + 69 ) ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2116
SELECT ( SUM ( ( + 69 ) ) ) AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT + CASE - CAST( COALESCE ( + + COUNT( * ), + 52 * - CAST( NULL AS SIGNED ) ) AS SIGNED ) WHEN + 87 THEN NULL WHEN + - COUNT( * ) / 55 THEN + - 62 WHEN + 21 - - 64 - - 90 THEN + 2 ELSE + - 90 END * + - ( 98 ) * + NULLIF ( - 87, + + 21 ) * - - 97 * + + COUNT( * ) + 50 + + 83 AS col0
----
-74431847

skipif mysql # not compatible
query I rowsort label-2117
SELECT + CASE - CAST ( COALESCE ( + + COUNT ( * ), + 52 * - CAST ( NULL AS INTEGER ) ) AS INTEGER ) WHEN + 87 THEN NULL WHEN + - COUNT ( * ) / 55 THEN + - 62 WHEN + 21 - - 64 - - 90 THEN + 2 ELSE + - 90 END * + - ( 98 ) * + NULLIF ( - 87, + + 21 ) * - - 97 * + + COUNT ( * ) + 50 + + 83 AS col0
----
-74431847

query I rowsort
SELECT - 78 * - 89 - + 45
----
6897

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ( + - SUM( ALL + - 73 ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2119
SELECT ( + - SUM ( ALL + - 73 ) ) AS col2
----
73

query I rowsort
SELECT 48 * - 96 - 92 * - 52 AS col1
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-2121
SELECT ALL + CASE 12 WHEN - COUNT( * ) THEN NULL WHEN 33 * - 77 - - 32 THEN + - ( - 71 ) + - NULLIF ( - - 66, 51 + 45 + + 31 * 44 ) + + 36 ELSE - + 40 END, ( - 23 ) * + 99 AS col2
----
-40
-2277

skipif mysql # not compatible
query II rowsort label-2121
SELECT ALL + CASE 12 WHEN - COUNT ( * ) THEN NULL WHEN 33 * - 77 - - 32 THEN + - ( - 71 ) + - NULLIF ( - - 66, 51 + 45 + + 31 * 44 ) + + 36 ELSE - + 40 END, ( - 23 ) * + 99 AS col2
----
-40
-2277

query I rowsort
SELECT + 72 * ( 28 ) AS col0
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL + 74 * + - 31 + 73 - - 69 * - 83 * COUNT( * ) AS col1
----
-7948

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + 74 * + - 31 + 73 - - 69 * - 83 * COUNT ( * ) AS col1
----
-7948

query I rowsort
SELECT DISTINCT + 57 * 98 + 63 * + 15
----
6531

onlyif mysql # aggregate syntax: 
query II rowsort label-2125
SELECT CASE - 35 WHEN COUNT( * ) + - + COUNT( - + 99 ) THEN + + 28 WHEN ( NULLIF ( - 50, + - 3 * 19 + + 25 ) ) * NULLIF ( + 80, - 63 - + + COUNT( - 18 ) ) THEN - 47 WHEN + - 94 THEN 56 + - 37 - - + 49 * + - 86 ELSE 31 * COUNT( * ) * 38 END AS col0, NULLIF ( COUNT( * ), + 74 )
----
1178
1

skipif mysql # not compatible
query II rowsort label-2125
SELECT CASE - 35 WHEN COUNT ( * ) + - + COUNT ( - + 99 ) THEN + + 28 WHEN ( NULLIF ( - 50, + - 3 * 19 + + 25 ) ) * NULLIF ( + 80, - 63 - + + COUNT ( - 18 ) ) THEN - 47 WHEN + - 94 THEN 56 + - 37 - - + 49 * + - 86 ELSE 31 * COUNT ( * ) * 38 END AS col0, NULLIF ( COUNT ( * ), + 74 )
----
1178
1

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

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

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

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

query I rowsort
SELECT ALL 0 * 50
----
0

query I rowsort
SELECT ALL + 79 * - 57 * - - 25 + + 20 + 60
----
-112495

query I rowsort
SELECT DISTINCT ( - 55 ) AS col2
----
-55

query II rowsort
SELECT ALL 59, 1 AS col0
----
59
1

query I rowsort
SELECT ALL + 7 * + 68
----
476

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT DISTINCT + - MAX( DISTINCT - 63 ) * - - 55 - + 28 + - + 66 AS col0
----
3371

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT + - MAX ( DISTINCT - 63 ) * - - 55 - + 28 + - + 66 AS col0
----
3371

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2135
SELECT 59 - + 61 + + COALESCE ( 1, 43 DIV - + 75 + CASE - 12 WHEN - 42 THEN + - 74 DIV + - CASE + - 98 WHEN + COALESCE ( - ( + - 38 ), - 65 ) THEN NULL WHEN + 74 THEN - - 48 ELSE + COUNT( * ) END + ( + 87 ) * + COUNT( * ) WHEN - - NULLIF ( + CAST( NULL AS DECIMAL ), + - 65 ) THEN 97 ELSE NULL END ) * - + 40 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2135
SELECT 59 - + 61 + + COALESCE ( 1, 43 / - + 75 + CASE - 12 WHEN - 42 THEN + - 74 / + - CASE + - 98 WHEN + COALESCE ( - ( + - 38 ), - 65 ) THEN NULL WHEN + 74 THEN - - 48 ELSE + COUNT ( * ) END + ( + 87 ) * + COUNT ( * ) WHEN - - NULLIF ( + CAST ( NULL AS REAL ), + - 65 ) THEN 97 ELSE NULL END ) * - + 40 AS col0
----
-42

query I rowsort
SELECT COALESCE ( + + 43, 33 + - 53 ) * + ( 71 ) + + 91
----
3144

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

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

query I rowsort
SELECT 5 + - 17 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL + - NULLIF ( + COUNT( * ), - - 38 - - - 96 + 67 ) - + COUNT( * ) - - 30 + 98 - + CASE + 32 WHEN + 15 / + 62 THEN + - 10 * - COUNT( * ) - + + 66 END - + 72 + SUM( ALL - + 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + - NULLIF ( + COUNT ( * ), - - 38 - - - 96 + 67 ) - + COUNT ( * ) - - 30 + 98 - + CASE + 32 WHEN + 15 / + 62 THEN + - 10 * - COUNT ( * ) - + + 66 END - + 72 + SUM ( ALL - + 8 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 74, + 22 * 25 + 85 )
----
-74

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

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL COUNT ( * ) * - - 37 + + 43 AS col0
----
80

query II rowsort
SELECT DISTINCT - - 8, - 7 AS col2
----
8
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT DISTINCT - 64 DIV - 65 * - - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT - 64 / - 65 * - - 94 AS col2
----
0

query I rowsort
SELECT ALL - COALESCE ( - 14, 26 )
----
14

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

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

query I rowsort
SELECT 12 * + + ( + 38 )
----
456

query II rowsort
SELECT + 84 AS col0, 96 col1
----
84
96

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

query I rowsort
SELECT ALL - ( + - 16 ) + + 73 AS col1
----
89

query I rowsort
SELECT 28 + ( + 48 ) + + 15 * + - 57 + - + 80 * ( 13 )
----
-1819

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT DISTINCT + ( - CAST( - COUNT( ALL 0 ) AS SIGNED ) ) + - - 19 - - + 31 * - SUM( - + 55 ) * + COUNT( * ) * - 4 * + 19 * + 75 AS col0
----
-9718480

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT + ( - CAST ( - COUNT ( ALL 0 ) AS INTEGER ) ) + - - 19 - - + 31 * - SUM ( - + 55 ) * + COUNT ( * ) * - 4 * + 19 * + 75 AS col0
----
-9718480

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL - COUNT( * ) + 98 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - COUNT ( * ) + 98 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT 60 + 98 + - - 45 * - COALESCE ( 97, - ( - 26 ) * + + SUM( - 25 ) ) * 56
----
-244282

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT 60 + 98 + - - 45 * - COALESCE ( 97, - ( - 26 ) * + + SUM ( - 25 ) ) * 56
----
-244282

query I rowsort
SELECT ALL 19 + - 51
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-2156
SELECT 63 + - 47 col1, 40 * ( 33 ) + COUNT( * ) AS col0
----
16
1321

skipif mysql # not compatible
query II rowsort label-2156
SELECT 63 + - 47 col1, 40 * ( 33 ) + COUNT ( * ) AS col0
----
16
1321

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL - COUNT( * ) * - - ( - 14 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - COUNT ( * ) * - - ( - 14 ) col0
----
14

query I rowsort
SELECT ALL - NULLIF ( - 45, + 68 )
----
45

query I rowsort
SELECT DISTINCT + 71 + - + 42
----
29

query II rowsort
SELECT + 16 AS col0, 77 AS col1
----
16
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2161
SELECT ALL 59 + - 88 * + 9 * COUNT( * ) DIV - + 9
----
147

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL 59 + - 88 * + 9 * COUNT ( * ) / - + 9
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2162
SELECT COUNT( - CAST( 5 AS SIGNED ) ) + 18 * - + 7 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-2162
SELECT COUNT ( - CAST ( 5 AS INTEGER ) ) + 18 * - + 7 AS col0
----
-125

onlyif mysql # DIV for integer division: 
query II rowsort label-2163
SELECT 72 DIV 65 AS col1, 62 AS col0
----
1
62

skipif mysql # not compatible
query II rowsort label-2163
SELECT 72 / 65 AS col1, 62 AS col0
----
1
62

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

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

query I rowsort
SELECT 78 * - + ( - + 66 ) AS col0
----
5148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT ALL - COALESCE ( + 69, + 55 + + CAST( + 69 AS SIGNED ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL - COALESCE ( + 69, + 55 + + CAST ( + 69 AS INTEGER ) ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT ALL + COUNT( * ) - - SUM( DISTINCT 94 )
----
95

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + COUNT ( * ) - - SUM ( DISTINCT 94 )
----
95

query I rowsort
SELECT - NULLIF ( - 79, + 97 * - 60 ) AS col1
----
79

query I rowsort
SELECT ALL - 11 * + + ( 36 ) AS col2
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + COUNT( * ) + 8 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2170
SELECT + COUNT ( * ) + 8 AS col0
----
9

query I rowsort
SELECT ALL + 42 * - + 83 col2
----
-3486

query I rowsort
SELECT + 60 * - 81 + - + CASE - 13 WHEN + 92 / + 57 THEN 97 - - - 17 END
----
NULL

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

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

query I rowsort
SELECT - 8 + 95 * - 70 + - - 69
----
-6589

query II rowsort
SELECT DISTINCT 55 AS col2, + 75 AS col0
----
55
75

query II rowsort
SELECT ALL + 7 col1, 39
----
7
39

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

skipif mysql # not compatible
query II rowsort label-2177
SELECT COUNT ( * ), - 69 AS col0
----
1
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT COALESCE ( - 82, 68 * ( + COUNT( DISTINCT - 7 ) ) ) * + - 78 * + MIN( DISTINCT 54 ) AS col1
----
345384

skipif mysql # not compatible
query I rowsort label-2178
SELECT COALESCE ( - 82, 68 * ( + COUNT ( DISTINCT - 7 ) ) ) * + - 78 * + MIN ( DISTINCT 54 ) AS col1
----
345384

query I rowsort
SELECT ALL - 35 * 7 + - - 26
----
-219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2180
SELECT 43 + + SUM( DISTINCT 40 ) - + CAST( 22 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-2180
SELECT 43 + + SUM ( DISTINCT 40 ) - + CAST ( 22 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2181
SELECT 92 DIV - MAX( DISTINCT - + 37 )
----
2

skipif mysql # not compatible
query I rowsort label-2181
SELECT 92 / - MAX ( DISTINCT - + 37 )
----
2

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

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

query I rowsort
SELECT ALL + 79 * - ( - ( + 19 ) ) + - 56 col2
----
1445

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2185
SELECT + 45 * + 96 + + - ( - + 88 ) - 38 + - 23 + + CAST( NULL AS SIGNED ) / + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT + 45 * + 96 + + - ( - + 88 ) - 38 + - 23 + + CAST ( NULL AS INTEGER ) / + 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT 47 * 87 * - COUNT( * ) * MAX( + 36 ) AS col2, 11 + - NULLIF ( 21, 34 ) + ( 2 ) AS col2
----
-147204
-8

skipif mysql # not compatible
query II rowsort label-2186
SELECT 47 * 87 * - COUNT ( * ) * MAX ( + 36 ) AS col2, 11 + - NULLIF ( 21, 34 ) + ( 2 ) AS col2
----
-147204
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL - NULLIF ( + ( + 45 ), + + 48 ) * - - 33 + - - 51 + + COUNT( * ) * + + 92 + + 56 AS col1
----
-1286

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - NULLIF ( + ( + 45 ), + + 48 ) * - - 33 + - - 51 + + COUNT ( * ) * + + 92 + + 56 AS col1
----
-1286

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT DISTINCT + 19 * + NULLIF ( COUNT( * ), + - 30 ) + + - 42 - 63 + + ( + 20 ) * + 89 + + - 41 * + - COALESCE ( + - COUNT( ALL + 31 ), COUNT( * ) ) AS col1
----
1653

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT + 19 * + NULLIF ( COUNT ( * ), + - 30 ) + + - 42 - 63 + + ( + 20 ) * + 89 + + - 41 * + - COALESCE ( + - COUNT ( ALL + 31 ), COUNT ( * ) ) AS col1
----
1653

query I rowsort
SELECT ALL 76 * + 54 + - + 9 AS col0
----
4095

query II rowsort
SELECT 37 + - 93, 60 AS col1
----
-56
60

query I rowsort
SELECT - 71 * 8
----
-568

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT - NULLIF ( - - 13, + 63 * - + SUM( + - 82 ) + - COUNT( * ) + COUNT( * ) + + 11 + + 42 * 49 * - + 82 * + MIN( ALL + + 17 ) - 16 * - CAST( NULL AS SIGNED ) ) + + 95
----
82

skipif mysql # not compatible
query I rowsort label-2193
SELECT - NULLIF ( - - 13, + 63 * - + SUM ( + - 82 ) + - COUNT ( * ) + COUNT ( * ) + + 11 + + 42 * 49 * - + 82 * + MIN ( ALL + + 17 ) - 16 * - CAST ( NULL AS INTEGER ) ) + + 95
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2194
SELECT DISTINCT + COALESCE ( ( + + 37 ), - + CASE + 5 WHEN + 2 THEN + SUM( DISTINCT - 31 ) * - 60 END + - 27 + + + ( + 86 ) * 36 * + - 63 DIV + 1 )
----
37

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT + COALESCE ( ( + + 37 ), - + CASE + 5 WHEN + 2 THEN + SUM ( DISTINCT - 31 ) * - 60 END + - 27 + + + ( + 86 ) * 36 * + - 63 / + 1 )
----
37

query I rowsort
SELECT DISTINCT - + 95 * 16
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + 78 * COUNT( * ) * 30 + - 34 * ( - 84 ) + - + NULLIF ( - COUNT( * ), - + 14 + - 77 + - 88 ) - SUM( ALL 17 ) col0
----
5180

skipif mysql # not compatible
query I rowsort label-2196
SELECT + 78 * COUNT ( * ) * 30 + - 34 * ( - 84 ) + - + NULLIF ( - COUNT ( * ), - + 14 + - 77 + - 88 ) - SUM ( ALL 17 ) col0
----
5180

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT + 53 * + + NULLIF ( - 82, - 27 + ( 85 ) ) * - COUNT( * ) AS col2
----
4346

skipif mysql # not compatible
query I rowsort label-2197
SELECT + 53 * + + NULLIF ( - 82, - 27 + ( 85 ) ) * - COUNT ( * ) AS col2
----
4346

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT + 80 DIV NULLIF ( - 24, + + 89 ) * - + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2198
SELECT + 80 / NULLIF ( - 24, + + 89 ) * - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2199
SELECT ALL - 30 DIV + - COUNT( * ) col2
----
30

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - 30 / + - COUNT ( * ) col2
----
30

query II rowsort
SELECT - - 24 * - 80, 32 + + 87 col2
----
-1920
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2201
SELECT - MAX( + - CASE + + 22 WHEN ( CAST( - - 38 AS SIGNED ) ) + - CAST( - 85 AS SIGNED ) THEN - + CAST( NULL AS SIGNED ) END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT - MAX ( + - CASE + + 22 WHEN ( CAST ( - - 38 AS INTEGER ) ) + - CAST ( - 85 AS INTEGER ) THEN - + CAST ( NULL AS INTEGER ) END ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2202
SELECT DISTINCT + 86 DIV COALESCE ( - 57, + 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT + 86 / COALESCE ( - 57, + 30 )
----
-1

query I rowsort
SELECT + 55 * + 20
----
1100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT + 61 + + 90 + 24 * + COUNT( * ) AS col2
----
175

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + 61 + + 90 + 24 * + COUNT ( * ) AS col2
----
175

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

skipif mysql # not compatible
query I rowsort label-2206
SELECT + - 23 + + + COUNT ( * ) + 86 / - 35 + COUNT ( * )
----
-23

query II rowsort
SELECT ALL 78, 37 AS col2
----
78
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2208
SELECT + MIN( DISTINCT + - 57 ) + - 4 AS col1, - 43
----
-61
-43

skipif mysql # not compatible
query II rowsort label-2208
SELECT + MIN ( DISTINCT + - 57 ) + - 4 AS col1, - 43
----
-61
-43

query I rowsort
SELECT ALL ( NULLIF ( - 35, + - 79 ) ) + + 5
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT + 49 * - + 31 * + ( COUNT( * ) ) col2
----
-1519

skipif mysql # not compatible
query I rowsort label-2210
SELECT + 49 * - + 31 * + ( COUNT ( * ) ) col2
----
-1519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2211
SELECT ALL 3 DIV + 57 + + 40 * - ( + - 18 ) * + 59 - - + 91 * + 37 * + COUNT( * )
----
45847

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL 3 / + 57 + + 40 * - ( + - 18 ) * + 59 - - + 91 * + 37 * + COUNT ( * )
----
45847

query I rowsort
SELECT + ( + 0 ) + + 44
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT 53 * ( - 21 ) + CASE COUNT( DISTINCT - + 26 ) WHEN + 34 THEN NULL WHEN 24 + + 62 / - - 66 * + + ( - SUM( - 47 ) ) THEN + COUNT( * ) + - 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT 53 * ( - 21 ) + CASE COUNT ( DISTINCT - + 26 ) WHEN + 34 THEN NULL WHEN 24 + + 62 / - - 66 * + + ( - SUM ( - 47 ) ) THEN + COUNT ( * ) + - 47 END AS col1
----
NULL

query II rowsort
SELECT + 13 * - 11 * + 95 AS col0, + 0 AS col1
----
-13585
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT DISTINCT 25 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT 25 / + 45
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2218
SELECT ALL - NULLIF ( + - 21, - - 78 ) * 37 - - 32 - + 94 * - 17 * COUNT( * ), COALESCE ( + 0, + 43 * - 75 - COALESCE ( 70, 90 ) ) - 56 + + 40 + COALESCE ( + COUNT( * ), - - 26, - COUNT( 57 ) ) + + 61 * - 20 * - - 87 + + MIN( - + 94 ) col2
----
2407
-106249

skipif mysql # not compatible
query II rowsort label-2218
SELECT ALL - NULLIF ( + - 21, - - 78 ) * 37 - - 32 - + 94 * - 17 * COUNT ( * ), COALESCE ( + 0, + 43 * - 75 - COALESCE ( 70, 90 ) ) - 56 + + 40 + COALESCE ( + COUNT ( * ), - - 26, - COUNT ( 57 ) ) + + 61 * - 20 * - - 87 + + MIN ( - + 94 ) col2
----
2407
-106249

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2219
SELECT - 12 + - MIN( DISTINCT - CAST( NULL AS DECIMAL ) ), - COUNT( * ) * 47 AS col2
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-2219
SELECT - 12 + - MIN ( DISTINCT - CAST ( NULL AS REAL ) ), - COUNT ( * ) * 47 AS col2
----
NULL
-47

query I rowsort
SELECT + 59 * 17 AS col0
----
1003

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT + 51 * - 34 + - - 99 DIV - - 60 AS col0
----
-1733

skipif mysql # not compatible
query I rowsort label-2221
SELECT + 51 * - 34 + - - 99 / - - 60 AS col0
----
-1733

query II rowsort
SELECT + + 80 AS col1, 88 AS col1
----
80
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2223
SELECT - - 39 * COALESCE ( + - 90, - + CASE + + 5 WHEN - + 73 + + COUNT( * ) THEN - - 43 * 83 - - 98 END * - ( - NULLIF ( ( + ( ( 70 ) ) ), + ( - + 39 ) - + + COUNT( * ) ) ) + 39 * CAST( NULL AS SIGNED ) + - + 41 ) DIV - 87 + - 30 * - + 19 - - 9
----
619

skipif mysql # not compatible
query I rowsort label-2223
SELECT - - 39 * COALESCE ( + - 90, - + CASE + + 5 WHEN - + 73 + + COUNT ( * ) THEN - - 43 * 83 - - 98 END * - ( - NULLIF ( ( + ( ( 70 ) ) ), + ( - + 39 ) - + + COUNT ( * ) ) ) + 39 * CAST ( NULL AS INTEGER ) + - + 41 ) / - 87 + - 30 * - + 19 - - 9
----
619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT 28 * CASE + CAST( - 80 AS SIGNED ) WHEN - 30 THEN + 90 * + + 30 WHEN + - 30 * + CAST( ( + ( + 10 ) ) AS SIGNED ) * - 49 + - 53 * - - 58 THEN 98 ELSE NULL END + + + COUNT( * ) + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT 28 * CASE + CAST ( - 80 AS INTEGER ) WHEN - 30 THEN + 90 * + + 30 WHEN + - 30 * + CAST ( ( + ( + 10 ) ) AS INTEGER ) * - 49 + - 53 * - - 58 THEN 98 ELSE NULL END + + + COUNT ( * ) + 41 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2225
SELECT + + CASE + 56 WHEN - + CAST( SUM( DISTINCT + + 91 ) AS SIGNED ) + + - 93 + 32 - + 48 * + - 87 * - + 54 * + COALESCE ( - + 49, 29 ) THEN + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT + + CASE + 56 WHEN - + CAST ( SUM ( DISTINCT + + 91 ) AS INTEGER ) + + - 93 + 32 - + 48 * + - 87 * - + 54 * + COALESCE ( - + 49, 29 ) THEN + 82 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2227
SELECT - + 53 + + 27 + + - 11 - COUNT( * ) * - COALESCE ( CAST( - - 9 AS SIGNED ), + - 45 * - - 27 ) + + + COUNT( ALL 96 ) * - 53 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-2227
SELECT - + 53 + + 27 + + - 11 - COUNT ( * ) * - COALESCE ( CAST ( - - 9 AS INTEGER ), + - 45 * - - 27 ) + + + COUNT ( ALL 96 ) * - 53 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL COUNT( * ) * 0 + COALESCE ( - 75, + COUNT( * ) * 19 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL COUNT ( * ) * 0 + COALESCE ( - 75, + COUNT ( * ) * 19 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT - 17 * - - 91 * COUNT( * ) + - 44 AS col0
----
-1591

skipif mysql # not compatible
query I rowsort label-2229
SELECT - 17 * - - 91 * COUNT ( * ) + - 44 AS col0
----
-1591

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2230
SELECT ALL + + 40 * + 63 + + 82 + - - MIN( DISTINCT + - 26 ) + - 80 DIV 3 AS col1
----
2550

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + + 40 * + 63 + + 82 + - - MIN ( DISTINCT + - 26 ) + - 80 / 3 AS col1
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL - MIN( DISTINCT - - 81 ) * + + 93 + + + 44 * 13 * - + 85 * + 39 col2
----
-1903713

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL - MIN ( DISTINCT - - 81 ) * + + 93 + + + 44 * 13 * - + 85 * + 39 col2
----
-1903713

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT - ( COUNT( * ) ) * - - 18 * + 5 + + + ( - 2 ) * - 22 + 82 * + ( + 68 ) + + - 73 + + COUNT( * )
----
5458

skipif mysql # not compatible
query I rowsort label-2232
SELECT - ( COUNT ( * ) ) * - - 18 * + 5 + + + ( - 2 ) * - 22 + 82 * + ( + 68 ) + + - 73 + + COUNT ( * )
----
5458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT - + 13 + COUNT( * ) + + 44 DIV - + 78 * - + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2233
SELECT - + 13 + COUNT ( * ) + + 44 / - + 78 * - + COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL + + 25 + + 1 + COUNT( * ) + + 10
----
37

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL + + 25 + + 1 + COUNT ( * ) + + 10
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT + - NULLIF ( + + 72, - ( 62 ) / - 74 ) + + COUNT( * ) col0
----
-71

skipif mysql # not compatible
query I rowsort label-2235
SELECT + - NULLIF ( + + 72, - ( 62 ) / - 74 ) + + COUNT ( * ) col0
----
-71

query I rowsort
SELECT ALL - 32 + 1 + 93
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - SUM( - + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-2237
SELECT - SUM ( - + 70 ) AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2238
SELECT - + COALESCE ( - ( + 28 ), - 37 DIV + 49 + - - ( - 90 ), - - 36 )
----
28

skipif mysql # not compatible
query I rowsort label-2238
SELECT - + COALESCE ( - ( + 28 ), - 37 / + 49 + - - ( - 90 ), - - 36 )
----
28

query I rowsort
SELECT - - 52 * 34
----
1768

query I rowsort
SELECT + 89 + - 65 AS col1
----
24

query I rowsort
SELECT DISTINCT + 24 + + 78
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-2242
SELECT ALL 44 + - 73 - + ( 9 ) AS col1, + COUNT( * ) - - 75 + - COUNT( * )
----
-38
75

skipif mysql # not compatible
query II rowsort label-2242
SELECT ALL 44 + - 73 - + ( 9 ) AS col1, + COUNT ( * ) - - 75 + - COUNT ( * )
----
-38
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2243
SELECT + CASE + + 77 WHEN + - 60 + - NULLIF ( + 77, 14 ) / + 8 THEN 9 WHEN - 39 * + 14 THEN ( + 76 ) ELSE NULL END * + 93 / COUNT( * ) AS col2, - 93
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-2243
SELECT + CASE + + 77 WHEN + - 60 + - NULLIF ( + 77, 14 ) / + 8 THEN 9 WHEN - 39 * + 14 THEN ( + 76 ) ELSE NULL END * + 93 / COUNT ( * ) AS col2, - 93
----
NULL
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-2244
SELECT + 26 * - - COUNT( * ) AS col1, - 39 AS col1
----
26
-39

skipif mysql # not compatible
query II rowsort label-2244
SELECT + 26 * - - COUNT ( * ) AS col1, - 39 AS col1
----
26
-39

query I rowsort
SELECT ALL + 94 * + 43
----
4042

query I rowsort
SELECT - ( NULLIF ( + 9, + CASE - 64 WHEN + 13 THEN NULL WHEN - 73 * - - 25 * AVG ( ALL + - 34 ) + + 83 * 45 * 22 THEN - 31 * + 9 END ) )
----
-9

query I rowsort
SELECT ALL 8 - - 57 + - 57 * 70
----
-3925

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT - COUNT( * ) * 62 AS col1, + 82
----
-62
82

skipif mysql # not compatible
query II rowsort label-2248
SELECT - COUNT ( * ) * 62 AS col1, + 82
----
-62
82

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

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

query I rowsort
SELECT DISTINCT 1 * 41
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT MAX( DISTINCT COALESCE ( + + 5, - ( - 35 ) * - + 57 ) ) * - + 9
----
-45

skipif mysql # not compatible
query I rowsort label-2252
SELECT MAX ( DISTINCT COALESCE ( + + 5, - ( - 35 ) * - + 57 ) ) * - + 9
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT 71 + - 35 DIV + + 36 col1
----
71

skipif mysql # not compatible
query I rowsort label-2253
SELECT 71 + - 35 / + + 36 col1
----
71

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

skipif mysql # not compatible
query I rowsort label-2254
SELECT CAST ( NULL AS REAL ) * - 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT + CASE 17 WHEN - 48 THEN NULL ELSE - + 75 END * + COUNT( DISTINCT + 6 ) - 2 * COALESCE ( 93, - AVG ( ALL - - 76 ) ) / + 22 + CASE SUM( ALL - + 48 ) WHEN - 22 * - - 81 + + + SUM( ALL 42 ) THEN NULL WHEN 57 THEN 0 * 7 * - 29 - + 6 + + + COUNT( * ) - - + 87 WHEN + 0 THEN + - 72 / - + MAX( 57 ) * - 2 + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT + CASE 17 WHEN - 48 THEN NULL ELSE - + 75 END * + COUNT ( DISTINCT + 6 ) - 2 * COALESCE ( 93, - AVG ( ALL - - 76 ) ) / + 22 + CASE SUM ( ALL - + 48 ) WHEN - 22 * - - 81 + + + SUM ( ALL 42 ) THEN NULL WHEN 57 THEN 0 * 7 * - 29 - + 6 + + + COUNT ( * ) - - + 87 WHEN + 0 THEN + - 72 / - + MAX ( 57 ) * - 2 + 36 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2256
SELECT + CAST( NULL AS DECIMAL ) / 90 * 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT + CAST ( NULL AS REAL ) / 90 * 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2257
SELECT ALL COUNT( * ) * + + 47 - - 31 + + + 88 + - - 2 DIV 17 + - SUM( - ( 19 ) ), - 46 * + - 43 col2
----
185
1978

skipif mysql # not compatible
query II rowsort label-2257
SELECT ALL COUNT ( * ) * + + 47 - - 31 + + + 88 + - - 2 / 17 + - SUM ( - ( 19 ) ), - 46 * + - 43 col2
----
185
1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2258
SELECT CAST( 88 AS SIGNED ) * 58 + 34 AS col2, + COUNT( * ) * - - 1 AS col0
----
5138
1

skipif mysql # not compatible
query II rowsort label-2258
SELECT CAST ( 88 AS INTEGER ) * 58 + 34 AS col2, + COUNT ( * ) * - - 1 AS col0
----
5138
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2259
SELECT DISTINCT + + 28 + + - NULLIF ( 30, 34 * COALESCE ( - - SUM( ALL - 16 ), AVG ( 60 ) * - 26 ) ) - - ( - 84 ) + + - ( - + 86 ) DIV 13
----
-80

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT + + 28 + + - NULLIF ( 30, 34 * COALESCE ( - - SUM ( ALL - 16 ), AVG ( 60 ) * - 26 ) ) - - ( - 84 ) + + - ( - + 86 ) / 13
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2260
SELECT + 92 + - - 51 + + 40 / + + CASE - 25 WHEN - NULLIF ( + 68, + 4 ) * - COALESCE ( - 44, COUNT( * ) * + + COUNT( * ) ) + + 56 THEN + CASE 36 WHEN - 19 THEN NULL WHEN + 71 THEN 20 + - 9 END + + 89 + + 70 WHEN - COUNT( * ) THEN - COUNT( * ) * SUM( ALL + CAST( - 9 AS SIGNED ) ) WHEN - SUM( - 64 ) THEN NULL END + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT + 92 + - - 51 + + 40 / + + CASE - 25 WHEN - NULLIF ( + 68, + 4 ) * - COALESCE ( - 44, COUNT ( * ) * + + COUNT ( * ) ) + + 56 THEN + CASE 36 WHEN - 19 THEN NULL WHEN + 71 THEN 20 + - 9 END + + 89 + + 70 WHEN - COUNT ( * ) THEN - COUNT ( * ) * SUM ( ALL + CAST ( - 9 AS INTEGER ) ) WHEN - SUM ( - 64 ) THEN NULL END + 80 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT ALL ( CAST( NULL AS SIGNED ) ) * + - COALESCE ( - 45, + 34 ) / + MAX( ALL 1 ) * - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * + - COALESCE ( - 45, + 34 ) / + MAX ( ALL 1 ) * - 43 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT ALL + 97 + 49 + 17 DIV + 83 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + 97 + 49 + 17 / + 83 AS col1
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2263
SELECT ALL - COUNT( * ) + + CASE - COUNT( * ) WHEN - 40 THEN - 12 WHEN - + CAST( NULL AS SIGNED ) THEN 57 WHEN + + 98 THEN 13 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - COUNT ( * ) + + CASE - COUNT ( * ) WHEN - 40 THEN - 12 WHEN - + CAST ( NULL AS INTEGER ) THEN 57 WHEN + + 98 THEN 13 END col0
----
NULL

query I rowsort
SELECT - 29 - + 25
----
-54

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

query I rowsort
SELECT ALL - 36 + + + 87 * 47
----
4053

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT MAX( 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2267
SELECT MAX ( 57 ) AS col0
----
57

query I rowsort
SELECT + ( - 85 ) + - - 3
----
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2269
SELECT DISTINCT COALESCE ( - - 1, + - 43 DIV - 20 * - + ( - 97 ) + + 67 + + + 45 * CAST( - 83 AS SIGNED ) * - 3 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT COALESCE ( - - 1, + - 43 / - 20 * - + ( - 97 ) + + 67 + + + 45 * CAST ( - 83 AS INTEGER ) * - 3 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL + 95 + COUNT( * ) * + 89
----
184

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL + 95 + COUNT ( * ) * + 89
----
184

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

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

query II rowsort
SELECT ALL - + 10 - + 13 AS col0, 43 AS col0
----
-23
43

query I rowsort
SELECT ( + 11 ) - + 10
----
1

query I rowsort
SELECT ALL + 25 * 93
----
2325

query I rowsort
SELECT 63 * - 5
----
-315

query I rowsort
SELECT ALL - 53 - - 69 AS col2
----
16

query I rowsort
SELECT ALL + 98 * - - 67 col1
----
6566

query I rowsort
SELECT 47 * + - 68
----
-3196

query I rowsort
SELECT 53 + + 4 * + + 13 * - 14
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT CASE + 87 WHEN 48 * - COUNT( * ) THEN - 0 * + 37 ELSE - - 59 * SUM( 91 ) + - COUNT( ALL + 18 ) END * - + 59 + - - 31 + - 39
----
-316720

skipif mysql # not compatible
query I rowsort label-2280
SELECT CASE + 87 WHEN 48 * - COUNT ( * ) THEN - 0 * + 37 ELSE - - 59 * SUM ( 91 ) + - COUNT ( ALL + 18 ) END * - + 59 + - - 31 + - 39
----
-316720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT 63 + - - 44 * - - CAST( NULL AS SIGNED ) / + + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT 63 + - - 44 * - - CAST ( NULL AS INTEGER ) / + + 43 AS col0
----
NULL

query I rowsort
SELECT 98 - - 39 * + - 96 AS col2
----
-3646

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT MIN( + 19 ) + - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-2283
SELECT MIN ( + 19 ) + - - COUNT ( * )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2284
SELECT ALL 54 DIV - 13 col1
----
-4

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL 54 / - 13 col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT 78 DIV - 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2285
SELECT 78 / - 55 AS col1
----
-1

query II rowsort
SELECT DISTINCT 2, 30 AS col0
----
2
30

query I rowsort
SELECT DISTINCT 89 * + 18 AS col2
----
1602

query II rowsort
SELECT DISTINCT - COALESCE ( 34, - 62 ), - 26 AS col0
----
-34
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-2289
SELECT 68 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-2289
SELECT 68 / 48
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2290
SELECT - 75 * + + 59 + + CAST( - + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT - 75 * + + 59 + + CAST ( - + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT NULLIF ( - 91, + - 23 / 89 ) * - - 57 AS col2
----
-5187

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2293
SELECT 64 DIV - ( 46 ) + - COUNT( * ) + - - 18 AS col1, COUNT( * ) + - + 91 + 63 * - 79 AS col0
----
16
-5067

skipif mysql # not compatible
query II rowsort label-2293
SELECT 64 / - ( 46 ) + - COUNT ( * ) + - - 18 AS col1, COUNT ( * ) + - + 91 + 63 * - 79 AS col0
----
16
-5067

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL COALESCE ( + - 72, - 1 ) + + NULLIF ( - + 89, COALESCE ( + - 6, - 92, - - COUNT( * ) * + 96 ) * + CASE 11 WHEN 98 * - + 12 * - + COUNT( * ) * + + 0 THEN - 8 ELSE + SUM( ALL - 48 ) END * + - 68 / - - 86 ) + + 93 * - 53 AS col1
----
-5090

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL COALESCE ( + - 72, - 1 ) + + NULLIF ( - + 89, COALESCE ( + - 6, - 92, - - COUNT ( * ) * + 96 ) * + CASE 11 WHEN 98 * - + 12 * - + COUNT ( * ) * + + 0 THEN - 8 ELSE + SUM ( ALL - 48 ) END * + - 68 / - - 86 ) + + 93 * - 53 AS col1
----
-5090

query I rowsort
SELECT 64 + - 67 AS col0
----
-3

query I rowsort
SELECT ALL + - 59 * - - 16 * - 60 AS col2
----
56640

query I rowsort
SELECT 95 * - - 93 AS col2
----
8835

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT + MIN( ALL + + 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2300
SELECT + MIN ( ALL + + 27 ) AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2301
SELECT ALL - MIN( + ( - + ( - 84 ) ) ) + + + 65 - - 80 / - 0 * + 30 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - MIN ( + ( - + ( - 84 ) ) ) + + + 65 - - 80 / - 0 * + 30 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT DISTINCT MIN( + 37 ) + MIN( DISTINCT + COALESCE ( + - 56, 84 * - 77 + + - 32 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT MIN ( + 37 ) + MIN ( DISTINCT + COALESCE ( + - 56, 84 * - 77 + + - 32 ) )
----
-19

query I rowsort
SELECT + 26 + 76
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2304
SELECT ALL - 7 + 91 + - 45 * + - 2 * 33 * - - 92 + + COUNT( ALL - 53 ) + 6 * + + 39 + - - ( CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - 7 + 91 + - 45 * + - 2 * 33 * - - 92 + + COUNT ( ALL - 53 ) + 6 * + + 39 + - - ( CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2305
SELECT + + SUM ( - - 22 )
----
22

query I rowsort
SELECT DISTINCT + 74 * - 79
----
-5846

query II rowsort
SELECT ALL - - 19, + 41 col0
----
19
41

query I rowsort
SELECT - 93 * - + 65 * + 7 * - 15 - - 41 AS col2
----
-634684

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2309
SELECT ALL 62 DIV 54 * ( + - 31 ) + 77, + COUNT( * ) AS col2
----
46
1

skipif mysql # not compatible
query II rowsort label-2309
SELECT ALL 62 / 54 * ( + - 31 ) + 77, + COUNT ( * ) AS col2
----
46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - ( - - 41 ) + - MIN( DISTINCT + - 44 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2310
SELECT - ( - - 41 ) + - MIN ( DISTINCT + - 44 ) AS col0
----
3

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

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + COUNT ( * ) - 3 AS col2
----
-2

query II rowsort
SELECT ALL 4 AS col2, 15
----
4
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2313
SELECT ALL - - COALESCE ( - + CAST( - - 97 AS SIGNED ), + + 74 ) - + 82 DIV + - 94 * COUNT( * ) + - 83
----
-180

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL - - COALESCE ( - + CAST ( - - 97 AS INTEGER ), + + 74 ) - + 82 / + - 94 * COUNT ( * ) + - 83
----
-180

query I rowsort
SELECT DISTINCT 8 - - 18 + 51 + - 40 * + 21
----
-763

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2315
SELECT 70 AS col2, 63 * + CAST( + 52 AS SIGNED ) AS col2
----
70
3276

skipif mysql # not compatible
query II rowsort label-2315
SELECT 70 AS col2, 63 * + CAST ( + 52 AS INTEGER ) AS col2
----
70
3276

query I rowsort
SELECT 73 + - 84
----
-11

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

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

query I rowsort
SELECT 47 * - - 70 * + 94
----
309260

query I rowsort
SELECT + COALESCE ( 27, - 83 * + - 43 + 24 ) * 7
----
189

query II rowsort
SELECT - 85 AS col0, - 46 AS col2
----
-85
-46

query II rowsort
SELECT ALL 88 AS col1, 59 + 12 AS col2
----
88
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2322
SELECT - CAST( NULL AS SIGNED ) * - COALESCE ( - + COUNT( * ), - + 36 * + 10 * - - COUNT( * ) * - - CAST( NULL AS DECIMAL ) + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT - CAST ( NULL AS INTEGER ) * - COALESCE ( - + COUNT ( * ), - + 36 * + 10 * - - COUNT ( * ) * - - CAST ( NULL AS REAL ) + - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2323
SELECT DISTINCT COALESCE ( - 57, + 89, 60 DIV + CASE + - 75 WHEN 83 + + CASE + + 41 WHEN + + 30 THEN NULL WHEN - - CASE CASE + COALESCE ( - 9, - 38, + 73 + - + 92 - - - 99, 97 ) WHEN + - 86 * - + ( + + ( + + 53 ) ) THEN NULL WHEN 89 + - 84 THEN NULL ELSE + COALESCE ( + + AVG ( - 14 ), - 0 + MIN( + 63 ) ) DIV - 15 END WHEN - - 23 THEN + + COUNT( ALL 7 ) + + ( + COUNT( * ) ) + NULLIF ( - - 74, + CAST( NULL AS DECIMAL ) + - - 26 * + 28 ) + COUNT( * ) * - 92 WHEN - NULLIF ( - 1, + 24 - + 21 ) THEN 95 DIV 12 ELSE SUM( DISTINCT 70 ) END THEN NULL WHEN COUNT( * ) THEN - 85 + 19 ELSE NULL END + + MAX( ALL 22 ) * + 93 THEN NULL WHEN COALESCE ( COUNT( ALL + 11 ), COUNT( * ) ) - COUNT( * ) THEN NULL WHEN + 9 DIV - 53 + - 12 THEN NULL ELSE 48 END DIV 33 ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT COALESCE ( - 57, + 89, 60 / + CASE + - 75 WHEN 83 + + CASE + + 41 WHEN + + 30 THEN NULL WHEN - - CASE CASE + COALESCE ( - 9, - 38, + 73 + - + 92 - - - 99, 97 ) WHEN + - 86 * - + ( + + ( + + 53 ) ) THEN NULL WHEN 89 + - 84 THEN NULL ELSE + COALESCE ( + + AVG ( - 14 ), - 0 + MIN ( + 63 ) ) / - 15 END WHEN - - 23 THEN + + COUNT ( ALL 7 ) + + ( + COUNT ( * ) ) + NULLIF ( - - 74, + CAST ( NULL AS REAL ) + - - 26 * + 28 ) + COUNT ( * ) * - 92 WHEN - NULLIF ( - 1, + 24 - + 21 ) THEN 95 / 12 ELSE SUM ( DISTINCT 70 ) END THEN NULL WHEN COUNT ( * ) THEN - 85 + 19 ELSE NULL END + + MAX ( ALL 22 ) * + 93 THEN NULL WHEN COALESCE ( COUNT ( ALL + 11 ), COUNT ( * ) ) - COUNT ( * ) THEN NULL WHEN + 9 / - 53 + - 12 THEN NULL ELSE 48 END / 33 ) col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT DISTINCT - COUNT( * ) * + 96 * + 41 * + + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT - COUNT ( * ) * + 96 * + 41 * + + 0 AS col1
----
0

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

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

query II rowsort
SELECT - CASE + + 16 WHEN - + 97 THEN + 96 WHEN 47 * 85 THEN NULL END AS col2, 88 - + + 29 + - 60 + - + 78 + + 5
----
NULL
-74

query I rowsort
SELECT + 83 * 92
----
7636

query I rowsort
SELECT - 89 * - 70
----
6230

onlyif mysql # aggregate syntax: 
query II rowsort label-2329
SELECT - 61 AS col2, MAX( DISTINCT 3 ) AS col1
----
-61
3

skipif mysql # not compatible
query II rowsort label-2329
SELECT - 61 AS col2, MAX ( DISTINCT 3 ) AS col1
----
-61
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT ALL - 18 * + 33 + - CASE - ( + MAX( ALL ( + 68 ) ) ) WHEN 65 + + + 56 + 8 THEN - 33 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL - 18 * + 33 + - CASE - ( + MAX ( ALL ( + 68 ) ) ) WHEN 65 + + + 56 + 8 THEN - 33 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + ( + 84 ), + + 55 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT - - 8 DIV + 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2332
SELECT - - 8 / + 19 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL COUNT( * ) * - 82 * + CASE - ( + - 1 ) WHEN + ( 61 ) * - + ( - - COUNT( * ) ) THEN + + COUNT( * ) * 75 ELSE NULL END * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL COUNT ( * ) * - 82 * + CASE - ( + - 1 ) WHEN + ( 61 ) * - + ( - - COUNT ( * ) ) THEN + + COUNT ( * ) * 75 ELSE NULL END * + 92
----
NULL

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

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

query I rowsort
SELECT ALL - 20 * - 33 + 84 * 62
----
5868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2336
SELECT - + 49 * 51 + + - 53 + - - CASE CAST( NULL AS SIGNED ) WHEN - 48 + 90 + - COALESCE ( + + 98, + 86 - - 96, 47 ) / - COUNT( * ) - - 90 THEN NULL WHEN + 28 THEN 57 - - COUNT( * ) END, 8 AS col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-2336
SELECT - + 49 * 51 + + - 53 + - - CASE CAST ( NULL AS INTEGER ) WHEN - 48 + 90 + - COALESCE ( + + 98, + 86 - - 96, 47 ) / - COUNT ( * ) - - 90 THEN NULL WHEN + 28 THEN 57 - - COUNT ( * ) END, 8 AS col0
----
NULL
8

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( + 73, 32 ) * 67 * + 39 * + ( 5 )
----
-953745

query I rowsort
SELECT - 91 + 67 AS col1
----
-24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2341
SELECT ALL + + ( NULLIF ( + COALESCE ( 41, 82 * - 0 ), 24 ) ) AS col1, - 33 + - CAST( NULL AS SIGNED )
----
41
NULL

skipif mysql # not compatible
query II rowsort label-2341
SELECT ALL + + ( NULLIF ( + COALESCE ( 41, 82 * - 0 ), 24 ) ) AS col1, - 33 + - CAST ( NULL AS INTEGER )
----
41
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2342
SELECT - 54 AS col1, + CAST( NULL AS SIGNED ) + + - 56
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-2342
SELECT - 54 AS col1, + CAST ( NULL AS INTEGER ) + + - 56
----
-54
NULL

query I rowsort
SELECT + 72 * - 24 - 53 - + 83 - + 62
----
-1926

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT + 49 DIV 15 DIV - 48 col1
----
0

skipif mysql # not compatible
query I rowsort label-2347
SELECT + 49 / 15 / - 48 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT + 55 * - + 84 * NULLIF ( + 87, COUNT( * ) ) AS col1
----
-401940

skipif mysql # not compatible
query I rowsort label-2348
SELECT + 55 * - + 84 * NULLIF ( + 87, COUNT ( * ) ) AS col1
----
-401940

query I rowsort
SELECT ALL 61 * + - 75
----
-4575

query II rowsort
SELECT DISTINCT 79 * + 67 AS col0, 18
----
5293
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2351
SELECT ALL MIN( DISTINCT - 59 ) AS col0, COALESCE ( + - 20, + 59 DIV - 36 * + 51 * - - 16 ) AS col0
----
-59
-20

skipif mysql # not compatible
query II rowsort label-2351
SELECT ALL MIN ( DISTINCT - 59 ) AS col0, COALESCE ( + - 20, + 59 / - 36 * + 51 * - - 16 ) AS col0
----
-59
-20

query I rowsort
SELECT ALL 25 * + + 6
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT + COUNT( * ) - - - 33 + 52
----
20

skipif mysql # not compatible
query I rowsort label-2353
SELECT + COUNT ( * ) - - - 33 + 52
----
20

query I rowsort
SELECT ALL + 63 + 86 col0
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-2355
SELECT ALL COUNT( * ) * - + 81 AS col1, 73 * + COUNT( * ) * CASE + ( + 58 ) WHEN - COUNT( DISTINCT + 22 ) THEN NULL ELSE - 58 END AS col1
----
-81
-4234

skipif mysql # not compatible
query II rowsort label-2355
SELECT ALL COUNT ( * ) * - + 81 AS col1, 73 * + COUNT ( * ) * CASE + ( + 58 ) WHEN - COUNT ( DISTINCT + 22 ) THEN NULL ELSE - 58 END AS col1
----
-81
-4234

query II rowsort
SELECT ALL 71 + + 92, 99 col0
----
163
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2357
SELECT + 77 + CAST( 94 AS SIGNED )
----
171

skipif mysql # not compatible
query I rowsort label-2357
SELECT + 77 + CAST ( 94 AS INTEGER )
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2358
SELECT ALL + COUNT( * ) + + 42 - - 9 DIV 68 * - 69 AS col0, 29 * COALESCE ( 59, - 11 )
----
43
1711

skipif mysql # not compatible
query II rowsort label-2358
SELECT ALL + COUNT ( * ) + + 42 - - 9 / 68 * - 69 AS col0, 29 * COALESCE ( 59, - 11 )
----
43
1711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2359
SELECT ALL CASE + CAST( NULL AS SIGNED ) WHEN - + 28 THEN + + MAX( ALL + CAST( NULL AS SIGNED ) ) * + 49 + 18 + + 50 * - 97 WHEN 39 THEN + + 46 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL CASE + CAST ( NULL AS INTEGER ) WHEN - + 28 THEN + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) * + 49 + 18 + + 50 * - 97 WHEN 39 THEN + + 46 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 77 + - NULLIF ( 62, - - 9 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL - COUNT( * ) + - 80 - 79 * + 45
----
-3636

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - COUNT ( * ) + - 80 - 79 * + 45
----
-3636

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT + 12 * - + 76 + + 70 * CASE + 96 WHEN + - NULLIF ( + COUNT( * ), 0 + + + 30 - 91 - + 17 ) + 73 THEN - - 67 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT + 12 * - + 76 + + 70 * CASE + 96 WHEN + - NULLIF ( + COUNT ( * ), 0 + + + 30 - 91 - + 17 ) + 73 THEN - - 67 * COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2364
SELECT - CASE + + ( - 18 ) WHEN + CASE - 73 WHEN - + 79 / COUNT( DISTINCT - 18 ) - MIN( + NULLIF ( + 21, 30 ) ) + 51 / - - 4 - + - COUNT( * ) + + CASE + 22 WHEN - 92 * + 5 + 63 * + + 65 / + 22 * + + 63 + - 43 + 82 THEN - 91 WHEN - + 50 THEN ( COUNT( * ) ) * - + 68 + - 17 * 68 WHEN - - 72 * COALESCE ( + COUNT( * ), - CASE - 6 WHEN + 99 + + - 15 + + + COUNT( DISTINCT 66 ) * - 59 + 49 * + 17 * 2 THEN NULL WHEN 97 THEN 81 * 21 END * - COUNT( * ) ) THEN 78 + 61 ELSE NULL END + COUNT( * ) THEN NULL WHEN + COUNT( * ) + CAST( NULL AS SIGNED ) THEN 17 WHEN 53 THEN 25 ELSE 50 END THEN NULL WHEN + 60 THEN CAST( - 77 AS SIGNED ) * 18 END + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT - CASE + + ( - 18 ) WHEN + CASE - 73 WHEN - + 79 / COUNT ( DISTINCT - 18 ) - MIN ( + NULLIF ( + 21, 30 ) ) + 51 / - - 4 - + - COUNT ( * ) + + CASE + 22 WHEN - 92 * + 5 + 63 * + + 65 / + 22 * + + 63 + - 43 + 82 THEN - 91 WHEN - + 50 THEN ( COUNT ( * ) ) * - + 68 + - 17 * 68 WHEN - - 72 * COALESCE ( + COUNT ( * ), - CASE - 6 WHEN + 99 + + - 15 + + + COUNT ( DISTINCT 66 ) * - 59 + 49 * + 17 * 2 THEN NULL WHEN 97 THEN 81 * 21 END * - COUNT ( * ) ) THEN 78 + 61 ELSE NULL END + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN 17 WHEN 53 THEN 25 ELSE 50 END THEN NULL WHEN + 60 THEN CAST ( - 77 AS INTEGER ) * 18 END + + 14
----
NULL

query I rowsort
SELECT ALL 51 * 7 + + - 53 AS col2
----
304

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT - ( - 50 ) * 67 DIV 24 + + - 94 + + + 33 * 72 + - 56 + + 83 AS col0
----
2448

skipif mysql # not compatible
query I rowsort label-2366
SELECT - ( - 50 ) * 67 / 24 + + - 94 + + + 33 * 72 + - 56 + + 83 AS col0
----
2448

onlyif mysql # DIV for integer division: 
query I rowsort label-2367
SELECT ALL + + 46 DIV - + 82 - + 99
----
-99

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL + + 46 / - + 82 - + 99
----
-99

query I rowsort
SELECT - + 85 * - ( - 56 ) + 28 - - 44 AS col2
----
-4688

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2369
SELECT - - 79 * CAST( NULL AS SIGNED ), 13 + + 77 AS col1
----
NULL
90

skipif mysql # not compatible
query II rowsort label-2369
SELECT - - 79 * CAST ( NULL AS INTEGER ), 13 + + 77 AS col1
----
NULL
90

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

query I rowsort
SELECT COALESCE ( - 37, + 20 * - 86 )
----
-37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT ALL + 24 DIV 1 DIV + - 51 * + 59
----
0

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL + 24 / 1 / + - 51 * + 59
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2374
SELECT - 84 * 55, + 42 DIV - 92 + 84 col1
----
-4620
84

skipif mysql # not compatible
query II rowsort label-2374
SELECT - 84 * 55, + 42 / - 92 + 84 col1
----
-4620
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2375
SELECT DISTINCT + 8 DIV + - SUM( - NULLIF ( - + CAST( 19 AS SIGNED ), 63 ) ) - - 5, - 60 AS col2
----
5
-60

skipif mysql # not compatible
query II rowsort label-2375
SELECT DISTINCT + 8 / + - SUM ( - NULLIF ( - + CAST ( 19 AS INTEGER ), 63 ) ) - - 5, - 60 AS col2
----
5
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT ALL + 64 DIV - 13 + 12 * ( - 63 )
----
-760

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL + 64 / - 13 + 12 * ( - 63 )
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT - 50 * - 21 - 85 * 80 + - - COUNT( * ) * - COUNT( * ) AS col1
----
-5751

skipif mysql # not compatible
query I rowsort label-2377
SELECT - 50 * - 21 - 85 * 80 + - - COUNT ( * ) * - COUNT ( * ) AS col1
----
-5751

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT - + 53 * COUNT( * ) * 41 col2
----
-2173

skipif mysql # not compatible
query I rowsort label-2378
SELECT - + 53 * COUNT ( * ) * 41 col2
----
-2173

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT + 64 * - - 77 + + COUNT( * )
----
4929

skipif mysql # not compatible
query I rowsort label-2379
SELECT + 64 * - - 77 + + COUNT ( * )
----
4929

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT + ( 44 ) * SUM( - 7 ) * 67 + + 94 AS col1
----
-20542

skipif mysql # not compatible
query I rowsort label-2381
SELECT + ( 44 ) * SUM ( - 7 ) * 67 + + 94 AS col1
----
-20542

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL 38 * + COUNT( * ) col1
----
38

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL 38 * + COUNT ( * ) col1
----
38

query I rowsort
SELECT 72 + COALESCE ( - 43, + 99 )
----
29

query I rowsort
SELECT ALL - 94 + + - 1
----
-95

query II rowsort
SELECT - 83 AS col0, - 9 AS col1
----
-83
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT ALL COALESCE ( COUNT( * ), + 86, - COUNT( * ) ) + + + 53 - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL COALESCE ( COUNT ( * ), + 86, - COUNT ( * ) ) + + + 53 - COUNT ( * )
----
53

query I rowsort
SELECT ALL 7 + - 45 + + 80 AS col0
----
42

query I rowsort
SELECT 98 + + 42 col1
----
140

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

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

query I rowsort
SELECT 88 * + - 66 AS col1
----
-5808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2391
SELECT COALESCE ( - - SUM( 87 ), + 69 * + 33 ) + 60 DIV 94
----
87

skipif mysql # not compatible
query I rowsort label-2391
SELECT COALESCE ( - - SUM ( 87 ), + 69 * + 33 ) + 60 / 94
----
87

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

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

query II rowsort
SELECT ALL 8 AS col0, 47 AS col2
----
8
47

query I rowsort
SELECT ALL + 32 + + 57 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT NULLIF ( 31, + - 81 ) * - - COUNT( DISTINCT 78 ) * - ( 50 ) col2
----
-1550

skipif mysql # not compatible
query I rowsort label-2395
SELECT NULLIF ( 31, + - 81 ) * - - COUNT ( DISTINCT 78 ) * - ( 50 ) col2
----
-1550

onlyif mysql # aggregate syntax: 
query II rowsort label-2396
SELECT - + 16 AS col2, SUM( - 26 ) - 69 + - + CASE - 49 WHEN + + 26 + + 8 + 0 + + 39 THEN 0 ELSE NULL END * + NULLIF ( + + 56, NULLIF ( 69, + ( - COUNT( * ) ) ) * - 2 + + + ( - 94 ) + - - 60 - + 58 ) AS col0
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-2396
SELECT - + 16 AS col2, SUM ( - 26 ) - 69 + - + CASE - 49 WHEN + + 26 + + 8 + 0 + + 39 THEN 0 ELSE NULL END * + NULLIF ( + + 56, NULLIF ( 69, + ( - COUNT ( * ) ) ) * - 2 + + + ( - 94 ) + - - 60 - + 58 ) AS col0
----
-16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT CASE + 12 WHEN - - 80 THEN 42 * - + COALESCE ( + - 61, + COALESCE ( + COUNT( * ), - ( + 29 ) + - 38 ) + - 35 ) * - 95 + - 75 * + - 57 * - 94 + + COUNT( * ) END - + ( + - 30 ) + + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT CASE + 12 WHEN - - 80 THEN 42 * - + COALESCE ( + - 61, + COALESCE ( + COUNT ( * ), - ( + 29 ) + - 38 ) + - 35 ) * - 95 + - 75 * + - 57 * - 94 + + COUNT ( * ) END - + ( + - 30 ) + + + COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - COUNT ( ALL - - 99 ) AS col1
----
-1

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

skipif mysql # not compatible
query II rowsort label-2399
SELECT COUNT ( * ) AS col1, - 2
----
1
-2

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2402
SELECT 38 * 22 / - COUNT( * ) + - 79 + - 15 * + 41 + 37 * - 30 + + 9 * 29 * - 57 * 0 * 89 - + COUNT( * ) + - 98 - - 95 * 47 * MIN( - CAST( NULL AS DECIMAL ) ) * 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT 38 * 22 / - COUNT ( * ) + - 79 + - 15 * + 41 + 37 * - 30 + + 9 * 29 * - 57 * 0 * 89 - + COUNT ( * ) + - 98 - - 95 * 47 * MIN ( - CAST ( NULL AS REAL ) ) * 39 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 74 * - 39
----
2886

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2405
SELECT - CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) * 22 AS col1, 94 AS col0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-2405
SELECT - CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) * 22 AS col1, 94 AS col0
----
NULL
94

query I rowsort
SELECT ALL 50 + + 86 AS col0
----
136

query I rowsort
SELECT ALL 8 + 97
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2408
SELECT DISTINCT + COUNT( * ) DIV - 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + COUNT ( * ) / - 22 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2409
SELECT ALL + NULLIF ( + 39, - 75 ) + NULLIF ( - 7, - COUNT( DISTINCT 6 ) + - 67 ) + - + 12 + - - CASE + 68 WHEN COUNT( * ) THEN + 29 / 21 * + 91 WHEN + 20 * - ( + 74 ) - - + 86 * 72 + + CAST( NULL AS SIGNED ) THEN NULL WHEN 58 * - COALESCE ( + CASE - 40 WHEN + 73 THEN NULL WHEN - + ( + - COUNT( * ) ) THEN 32 WHEN + 80 THEN NULL ELSE NULL END, 75 * + - 1 / - CASE 29 WHEN - 7 THEN + - 28 END * - + 39 * + 65 * - 40 ) + - 83 THEN + 53 / + + 3 * + + 11 + + - 91 + COUNT( * ) END / - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL + NULLIF ( + 39, - 75 ) + NULLIF ( - 7, - COUNT ( DISTINCT 6 ) + - 67 ) + - + 12 + - - CASE + 68 WHEN COUNT ( * ) THEN + 29 / 21 * + 91 WHEN + 20 * - ( + 74 ) - - + 86 * 72 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 58 * - COALESCE ( + CASE - 40 WHEN + 73 THEN NULL WHEN - + ( + - COUNT ( * ) ) THEN 32 WHEN + 80 THEN NULL ELSE NULL END, 75 * + - 1 / - CASE 29 WHEN - 7 THEN + - 28 END * - + 39 * + 65 * - 40 ) + - 83 THEN + 53 / + + 3 * + + 11 + + - 91 + COUNT ( * ) END / - 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2410
SELECT ALL - NULLIF ( - - AVG ( DISTINCT CAST( NULL AS SIGNED ) ), - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL - NULLIF ( - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ), - COUNT ( * ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT 9 * 3 + COUNT( DISTINCT + 26 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2411
SELECT 9 * 3 + COUNT ( DISTINCT + 26 ) AS col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL - COUNT( ALL - 72 ) + 18 + + + 67 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL - COUNT ( ALL - 72 ) + 18 + + + 67 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT 88 - + ( SUM( + 70 ) ) * - + 63 + + + 94
----
4592

skipif mysql # not compatible
query I rowsort label-2414
SELECT 88 - + ( SUM ( + 70 ) ) * - + 63 + + + 94
----
4592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2415
SELECT DISTINCT + CASE 85 WHEN 6 / + - 60 * - CAST( + + 98 AS SIGNED ) * - + 85 * + 79 THEN 59 END * - - CASE + - 62 WHEN - 92 * - 79 / - 97 THEN - CAST( NULL AS SIGNED ) - - + COUNT( + + ( - - 10 ) ) END + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + CASE 85 WHEN 6 / + - 60 * - CAST ( + + 98 AS INTEGER ) * - + 85 * + 79 THEN 59 END * - - CASE + - 62 WHEN - 92 * - 79 / - 97 THEN - CAST ( NULL AS INTEGER ) - - + COUNT ( + + ( - - 10 ) ) END + + 50
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT DISTINCT + 18 DIV + 55 * + + 3
----
0

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + 18 / + 55 * + + 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL NULLIF ( + 51, 19 / + COALESCE ( COUNT( * ), 64 * + 91 / + 51 * - COUNT( * ) * + + 6 * - 38 / - 83 * + MIN( ALL - - 56 ) + COUNT( * ) + - 13, - 77 * 53 ) ) - - 37 - + 4 * SUM( ALL 70 ) * + 70 + 11 AS col1
----
-19501

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL NULLIF ( + 51, 19 / + COALESCE ( COUNT ( * ), 64 * + 91 / + 51 * - COUNT ( * ) * + + 6 * - 38 / - 83 * + MIN ( ALL - - 56 ) + COUNT ( * ) + - 13, - 77 * 53 ) ) - - 37 - + 4 * SUM ( ALL 70 ) * + 70 + 11 AS col1
----
-19501

query I rowsort
SELECT DISTINCT + 28 * - + 58 col0
----
-1624

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT 97 + + + 85 * COUNT( + 85 ) AS col0
----
182

skipif mysql # not compatible
query I rowsort label-2419
SELECT 97 + + + 85 * COUNT ( + 85 ) AS col0
----
182

query I rowsort
SELECT 32 - + 94
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT - 3 + + CAST( + 5 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2421
SELECT - 3 + + CAST ( + 5 AS INTEGER ) AS col2
----
2

query I rowsort
SELECT 84 * - 28 * + 67 * 17 * 80
----
-214314240

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT 87 + + COUNT( * ) - + 55 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2423
SELECT 87 + + COUNT ( * ) - + 55 AS col2
----
33

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2425
SELECT COUNT( * ) * + 21 * - 12 * 57 + + 57 / - - 64 + - - 40 + CAST( NULL AS SIGNED ) + + + NULLIF ( 14, - COUNT( * ) + - - 64 ) AS col2, + 75 AS col2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-2425
SELECT COUNT ( * ) * + 21 * - 12 * 57 + + 57 / - - 64 + - - 40 + CAST ( NULL AS INTEGER ) + + + NULLIF ( 14, - COUNT ( * ) + - - 64 ) AS col2, + 75 AS col2
----
NULL
75

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

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

query I rowsort
SELECT - 43 + 41 * 53
----
2130

onlyif mysql # DIV for integer division: 
query I rowsort label-2428
SELECT DISTINCT + 30 DIV + - NULLIF ( - 53, - 48 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT + 30 / + - NULLIF ( - 53, - 48 ) AS col1
----
0

query II rowsort
SELECT 25 + + + 84, - 5 - 57 + - - 34 * 40 AS col2
----
109
1298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2430
SELECT ( - - 16 ) + COALESCE ( + ( + 4 ), + ( - 12 ) + CAST( - COUNT( ALL 47 ) AS SIGNED ) + + + ( - NULLIF ( - COUNT( * ), - + 46 ) ) + CAST( 29 AS SIGNED ) ) + - 29 * + 45 * 75 AS col1
----
-97855

skipif mysql # not compatible
query I rowsort label-2430
SELECT ( - - 16 ) + COALESCE ( + ( + 4 ), + ( - 12 ) + CAST ( - COUNT ( ALL 47 ) AS INTEGER ) + + + ( - NULLIF ( - COUNT ( * ), - + 46 ) ) + CAST ( 29 AS INTEGER ) ) + - 29 * + 45 * 75 AS col1
----
-97855

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL - MAX( + 6 ) * + 10
----
-60

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL - MAX ( + 6 ) * + 10
----
-60

query I rowsort
SELECT 43 * - ( + 38 ) AS col0
----
-1634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2433
SELECT - NULLIF ( - 92, - 23 * - CASE 77 WHEN - + CAST( NULL AS DECIMAL ) THEN - + 14 WHEN - 63 + + 68 + - AVG ( 44 ) * - 26 THEN - NULLIF ( + 76, + - ( - + CASE + 85 WHEN 56 + + 61 + + + 33 * - COUNT( * ) THEN - + 6 + + + NULLIF ( 49, - 29 ) WHEN + 88 THEN - COUNT( * ) END ) * + COUNT( * ) + + 57 * ( 25 ) + 10 ) END ) * 27 * NULLIF ( + 51, - + 44 * + + 48 + AVG ( + + 82 ) * + 65 ) / + ( - CAST( NULL AS SIGNED ) ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT - NULLIF ( - 92, - 23 * - CASE 77 WHEN - + CAST ( NULL AS REAL ) THEN - + 14 WHEN - 63 + + 68 + - AVG ( 44 ) * - 26 THEN - NULLIF ( + 76, + - ( - + CASE + 85 WHEN 56 + + 61 + + + 33 * - COUNT ( * ) THEN - + 6 + + + NULLIF ( 49, - 29 ) WHEN + 88 THEN - COUNT ( * ) END ) * + COUNT ( * ) + + 57 * ( 25 ) + 10 ) END ) * 27 * NULLIF ( + 51, - + 44 * + + 48 + AVG ( + + 82 ) * + 65 ) / + ( - CAST ( NULL AS INTEGER ) ) + + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT - CASE 29 WHEN SUM( + 7 ) + + - 68 * COALESCE ( - 44, + + 19 + - COALESCE ( 36, - 36 + + + AVG ( + 46 ) + + 48 * - 15, - 93 ) ) * - - 87 THEN NULL ELSE 58 END * - 32 + + COUNT( * ) AS col2
----
1857

skipif mysql # not compatible
query I rowsort label-2434
SELECT - CASE 29 WHEN SUM ( + 7 ) + + - 68 * COALESCE ( - 44, + + 19 + - COALESCE ( 36, - 36 + + + AVG ( + 46 ) + + 48 * - 15, - 93 ) ) * - - 87 THEN NULL ELSE 58 END * - 32 + + COUNT ( * ) AS col2
----
1857

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT + 2 DIV 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT + 2 / 24 AS col0
----
0

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

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

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

query I rowsort
SELECT + + 50 + - 63 + - 90 + - 54 * + 37 * 66
----
-131971

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT DISTINCT + 28 * - + 55 * - + 21 + 71 + 68 DIV - 35 col2
----
32410

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT + 28 * - + 55 * - + 21 + 71 + 68 / - 35 col2
----
32410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2440
SELECT + - MIN( ALL + + 76 ) DIV - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-2440
SELECT + - MIN ( ALL + + 76 ) / - COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT + CASE + - 62 WHEN - 6 * - MIN( DISTINCT + 9 ) * ( + - 97 ) / + 30 THEN + 6 WHEN - 11 + - - 27 + + 13 * - 73 THEN + - ( + COUNT( DISTINCT - 44 ) ) * NULLIF ( + - 82, COUNT( * ) * + - 87 ) ELSE - + 49 END * + + 65 AS col2
----
-3185

skipif mysql # not compatible
query I rowsort label-2441
SELECT + CASE + - 62 WHEN - 6 * - MIN ( DISTINCT + 9 ) * ( + - 97 ) / + 30 THEN + 6 WHEN - 11 + - - 27 + + 13 * - 73 THEN + - ( + COUNT ( DISTINCT - 44 ) ) * NULLIF ( + - 82, COUNT ( * ) * + - 87 ) ELSE - + 49 END * + + 65 AS col2
----
-3185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2442
SELECT ALL 77 * - - 6 + + + COUNT( * ) + - 23 DIV + - 3 AS col2
----
470

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL 77 * - - 6 + + + COUNT ( * ) + - 23 / + - 3 AS col2
----
470

query I rowsort
SELECT ALL - 18 * - 7 * - 43 + 72
----
-5346

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2445
SELECT 31 * ( COUNT( 56 ) ) + - 44 * ( - + CAST( NULL AS SIGNED ) )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2446
SELECT COUNT( * ) AS col2, ( ( - MIN( DISTINCT + 72 ) ) ) + - 30 AS col2
----
1
-102

skipif mysql # not compatible
query II rowsort label-2446
SELECT COUNT ( * ) AS col2, ( ( - MIN ( DISTINCT + 72 ) ) ) + - 30 AS col2
----
1
-102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL COUNT( * ) * COUNT( * ) + - - 86 col1
----
87

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL COUNT ( * ) * COUNT ( * ) + - - 86 col1
----
87

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2450
SELECT ALL 61 * + + 10 * - - 99 * - - 31 * - CAST( NULL AS SIGNED ) + 7 AS col1, 59 - - CAST( - AVG ( + + 47 ) AS SIGNED ) col0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-2450
SELECT ALL 61 * + + 10 * - - 99 * - - 31 * - CAST ( NULL AS INTEGER ) + 7 AS col1, 59 - - CAST ( - AVG ( + + 47 ) AS INTEGER ) col0
----
NULL
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL + COUNT( * ) - - 11 + - 12 - - - 27 + - 0 + + - 4 * + - 35 * + - ( + - 48 ) * + 19 + - - 93 + - COALESCE ( + 27, 59 ) AS col2
----
127719

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL + COUNT ( * ) - - 11 + - 12 - - - 27 + - 0 + + - 4 * + - 35 * + - ( + - 48 ) * + 19 + - - 93 + - COALESCE ( + 27, 59 ) AS col2
----
127719

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT ALL - 69 DIV + 69 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL - 69 / + 69 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - 24 + - COUNT( + 28 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-2453
SELECT - 24 + - COUNT ( + 28 ) AS col2
----
-25

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2456
SELECT - 88 DIV COUNT( * ) AS col1
----
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT - MAX( DISTINCT + 20 ) + - 54 + - COUNT( * ) - 69 * - 73 * 44
----
221553

skipif mysql # not compatible
query I rowsort label-2457
SELECT - MAX ( DISTINCT + 20 ) + - 54 + - COUNT ( * ) - 69 * - 73 * 44
----
221553

query I rowsort
SELECT DISTINCT + - 72 * 29
----
-2088

query I rowsort
SELECT ALL - + 10 * - + 12
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT ALL - COUNT( DISTINCT + - 69 ) * + 23 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL - COUNT ( DISTINCT + - 69 ) * + 23 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL CASE - MAX( DISTINCT - 17 ) WHEN + 2 THEN 38 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL CASE - MAX ( DISTINCT - 17 ) WHEN + 2 THEN 38 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2462
SELECT ALL 33 AS col0, + NULLIF ( + - 7, + COALESCE ( - COUNT( * ), 7, - 96 * - COUNT( * ) + 96 + + 38 / 81 ) ) * + - 8 * ( + + MAX( ALL + ( 34 ) ) ) + + + 75 AS col1
----
33
1979

skipif mysql # not compatible
query II rowsort label-2462
SELECT ALL 33 AS col0, + NULLIF ( + - 7, + COALESCE ( - COUNT ( * ), 7, - 96 * - COUNT ( * ) + 96 + + 38 / 81 ) ) * + - 8 * ( + + MAX ( ALL + ( 34 ) ) ) + + + 75 AS col1
----
33
1979

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

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

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

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

query I rowsort
SELECT COALESCE ( - - 33, - - 78, 24 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2466
SELECT + ( 72 ) * - CASE - ( + 39 ) WHEN - - 94 THEN + 53 DIV - - 49 * 56 WHEN - 29 - + AVG ( - 32 ) THEN NULL END * - 2 + ( + 80 ), + COALESCE ( 21, 37 * + 36 * - CASE 49 WHEN + + 52 THEN - + 10 END, + 26 - - + 45 ) + + 74 + - - 18 DIV COUNT( * ) + + - COUNT( * ) + + 21 * + - ( + + COUNT( * ) ) DIV + 48 - - - COALESCE ( - 55, + 89 ) AS col1
----
NULL
167

skipif mysql # not compatible
query II rowsort label-2466
SELECT + ( 72 ) * - CASE - ( + 39 ) WHEN - - 94 THEN + 53 / - - 49 * 56 WHEN - 29 - + AVG ( - 32 ) THEN NULL END * - 2 + ( + 80 ), + COALESCE ( 21, 37 * + 36 * - CASE 49 WHEN + + 52 THEN - + 10 END, + 26 - - + 45 ) + + 74 + - - 18 / COUNT ( * ) + + - COUNT ( * ) + + 21 * + - ( + + COUNT ( * ) ) / + 48 - - - COALESCE ( - 55, + 89 ) AS col1
----
NULL
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2467
SELECT - 30 - - CAST( - + ( + + SUM( - 43 ) ) AS SIGNED ) AS col2, 49 * - 38 + + 92 AS col0
----
13
-1770

skipif mysql # not compatible
query II rowsort label-2467
SELECT - 30 - - CAST ( - + ( + + SUM ( - 43 ) ) AS INTEGER ) AS col2, 49 * - 38 + + 92 AS col0
----
13
-1770

query I rowsort
SELECT ALL - 85 * 18 AS col1
----
-1530

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT - 68 AS col1, - 63 * 32 + + MIN( - 7 )
----
-68
-2023

skipif mysql # not compatible
query II rowsort label-2469
SELECT - 68 AS col1, - 63 * 32 + + MIN ( - 7 )
----
-68
-2023

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT - - 46 * COUNT( DISTINCT - 5 ) + 36
----
82

skipif mysql # not compatible
query I rowsort label-2470
SELECT - - 46 * COUNT ( DISTINCT - 5 ) + 36
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2471
SELECT ALL COUNT( * ) DIV - + 13 + ( + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL COUNT ( * ) / - + 13 + ( + 38 ) AS col1
----
38

query I rowsort
SELECT ALL - - 13 * - 97
----
-1261

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT ALL + 66 DIV - 98 - + 60 + - 96 + 55 - - 87
----
-14

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + 66 / - 98 - + 60 + - 96 + 55 - - 87
----
-14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT - 67 + 48 + - MAX( - 91 ) / COUNT( * ) * - COUNT( * ) * COALESCE ( 92, + - 44 ) + - CAST( NULL AS SIGNED ) * + 52 + + 41 * + 58 / 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT - 67 + 48 + - MAX ( - 91 ) / COUNT ( * ) * - COUNT ( * ) * COALESCE ( 92, + - 44 ) + - CAST ( NULL AS INTEGER ) * + 52 + + 41 * + 58 / 85
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT 45 DIV 49 DIV - + COUNT( * ) * 18 - + - 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2476
SELECT 45 / 49 / - + COUNT ( * ) * 18 - + - 72 AS col2
----
72

query I rowsort
SELECT ALL 20 * 23 + - 92 AS col2
----
368

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT + COALESCE ( - 72, 62, - CASE + 57 WHEN - + CAST( NULL AS SIGNED ) THEN NULL WHEN - 53 THEN NULL ELSE ( - ( - 72 ) ) END ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2480
SELECT + COALESCE ( - 72, 62, - CASE + 57 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 53 THEN NULL ELSE ( - ( - 72 ) ) END ) AS col0
----
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT CASE + + ( - 52 ) WHEN 27 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT CASE + + ( - 52 ) WHEN 27 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + 83 * + ( + + 90 ) AS col2
----
7470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2484
SELECT + COALESCE ( - 0, CAST( - 38 AS SIGNED ), COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2484
SELECT + COALESCE ( - 0, CAST ( - 38 AS INTEGER ), COUNT ( * ) ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2485
SELECT - NULLIF ( - - 55, - 26 ) * ( 36 ) + + COALESCE ( - + 2, 8 - + 79 * - + COUNT( * ) * 47 DIV - - 99 * + 82 * - 40, - CAST( + - CASE 47 WHEN - 79 THEN - 41 WHEN - - 80 THEN NULL ELSE NULL END AS SIGNED ) ) col1
----
-1982

skipif mysql # not compatible
query I rowsort label-2485
SELECT - NULLIF ( - - 55, - 26 ) * ( 36 ) + + COALESCE ( - + 2, 8 - + 79 * - + COUNT ( * ) * 47 / - - 99 * + 82 * - 40, - CAST ( + - CASE 47 WHEN - 79 THEN - 41 WHEN - - 80 THEN NULL ELSE NULL END AS INTEGER ) ) col1
----
-1982

query I rowsort
SELECT - 63 * + 70 - - NULLIF ( - - 67, - 59 ) AS col2
----
-4343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2487
SELECT + 47 * + 21 DIV COUNT( * ) * - - ( - 35 )
----
-34545

skipif mysql # not compatible
query I rowsort label-2487
SELECT + 47 * + 21 / COUNT ( * ) * - - ( - 35 )
----
-34545

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

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

query I rowsort
SELECT + 65 - - 22 AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT - CAST( + 82 AS SIGNED ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-2490
SELECT - CAST ( + 82 AS INTEGER ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL CASE + 91 WHEN + 98 * 70 / + ( COUNT( * ) ) + + COUNT( * ) * - 93 THEN + 88 / + 41 + - 18 ELSE ( + 58 ) END col1
----
58

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL CASE + 91 WHEN + 98 * 70 / + ( COUNT ( * ) ) + + COUNT ( * ) * - 93 THEN + 88 / + 41 + - 18 ELSE ( + 58 ) END col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2492
SELECT + - 52 * + 23 AS col1, CAST( - 47 AS SIGNED ) + - 71
----
-1196
-118

skipif mysql # not compatible
query II rowsort label-2492
SELECT + - 52 * + 23 AS col1, CAST ( - 47 AS INTEGER ) + - 71
----
-1196
-118

query II rowsort
SELECT DISTINCT 61 AS col1, 90
----
61
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2494
SELECT 96 + + 36 DIV - COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2494
SELECT 96 + + 36 / - COUNT ( * ) AS col0
----
60

query II rowsort
SELECT ALL - 83, 77 AS col1
----
-83
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2496
SELECT 24 AS col0, - 82 - - 61 + - + 59 DIV COALESCE ( - NULLIF ( 14, + CASE + 76 WHEN + - 40 * COUNT( * ) THEN NULL WHEN - COALESCE ( - 98, + 43 * - 39 ) THEN - 97 ELSE NULL END ), + - ( + 17 ) ) AS col1
----
24
-17

skipif mysql # not compatible
query II rowsort label-2496
SELECT 24 AS col0, - 82 - - 61 + - + 59 / COALESCE ( - NULLIF ( 14, + CASE + 76 WHEN + - 40 * COUNT ( * ) THEN NULL WHEN - COALESCE ( - 98, + 43 * - 39 ) THEN - 97 ELSE NULL END ), + - ( + 17 ) ) AS col1
----
24
-17

query II rowsort
SELECT - - 85 AS col2, 73 * 34
----
85
2482

onlyif mysql # DIV for integer division: 
query I rowsort label-2498
SELECT DISTINCT + 89 + + 80 + 73 + - 18 DIV + - 74 * + + 97 AS col0
----
242

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT + 89 + + 80 + 73 + - 18 / + - 74 * + + 97 AS col0
----
242

query I rowsort
SELECT + 14 + 90
----
104

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

query I rowsort
SELECT ALL + 56 + + - 25
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT ALL - 45 + + 75 + 83 DIV 11
----
37

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL - 45 + + 75 + 83 / 11
----
37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2504
SELECT ( - + COUNT( * ) ) + - 24 DIV - + COUNT( * ) AS col1, 33
----
23
33

skipif mysql # not compatible
query II rowsort label-2504
SELECT ( - + COUNT ( * ) ) + - 24 / - + COUNT ( * ) AS col1, 33
----
23
33

query I rowsort
SELECT ALL - 95 + - + 58 + 28
----
-125

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2506
SELECT DISTINCT - 62 + MAX( DISTINCT + + ( + ( - - CAST( NULL AS DECIMAL ) ) ) ) AS col0
----
NULL

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

query I rowsort
SELECT 50 * 43 + - - 28 + + - 85 AS col0
----
2093

query I rowsort
SELECT 81 * + 30 AS col0
----
2430

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT CASE + ( - 11 ) WHEN - + 64 * 95 + - 4 THEN + COUNT( * ) END - 8 - COUNT( * ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT CASE + ( - 11 ) WHEN - + 64 * 95 + - 4 THEN + COUNT ( * ) END - 8 - COUNT ( * ) + 76
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT SUM( DISTINCT 11 ) * 33
----
363

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT SUM ( DISTINCT 11 ) * 33
----
363

query I rowsort
SELECT 97 * - - 30
----
2910

query II rowsort
SELECT 5 * - + ( 96 ) + - 87 + - 10, 63 AS col0
----
-577
63

query I rowsort
SELECT 42 + + 50 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT - 96 * + COUNT( * ) + + - 41 AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-2516
SELECT - 96 * + COUNT ( * ) + + - 41 AS col1
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT DISTINCT ( - 73 ) DIV + 10 + 92
----
85

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT ( - 73 ) / + 10 + 92
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2518
SELECT NULLIF ( - 22, + - 11 DIV + COALESCE ( + 9, + MAX( DISTINCT - NULLIF ( + - COALESCE ( 36, + + 12 - - - 8 ), 15 ) ) ) * 64 * 12 * + NULLIF ( 30, 72 + 63 ) + - 44 * - - 24 ) DIV COUNT( - - 95 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2518
SELECT NULLIF ( - 22, + - 11 / + COALESCE ( + 9, + MAX ( DISTINCT - NULLIF ( + - COALESCE ( 36, + + 12 - - - 8 ), 15 ) ) ) * 64 * 12 * + NULLIF ( 30, 72 + 63 ) + - 44 * - - 24 ) / COUNT ( - - 95 ) AS col2
----
-22

query I rowsort
SELECT 31 * + ( - + 1 ) AS col2
----
-31

query I rowsort
SELECT ALL 79 + 24 AS col1
----
103

query I rowsort
SELECT + 34 * 63 + + 66 AS col2
----
2208

query I rowsort
SELECT ALL 6 * + + ( + + 88 )
----
528

query I rowsort
SELECT ALL - 60 + 77 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2524
SELECT ALL 68 + - 81 + + COUNT( * ) * - SUM( ALL + 32 ) + + + 65 - - CAST( NULL AS DECIMAL ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL 68 + - 81 + + COUNT ( * ) * - SUM ( ALL + 32 ) + + + 65 - - CAST ( NULL AS REAL ) * 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL + SUM( ( + 50 ) ) * + + 41
----
2050

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL + SUM ( ( + 50 ) ) * + + 41
----
2050

query II rowsort
SELECT DISTINCT - 66 + 23 AS col1, 32 AS col1
----
-43
32

query I rowsort
SELECT - NULLIF ( + 74, - 79 + + 32 + - 37 * - 13 ) AS col0
----
-74

query I rowsort
SELECT ALL + 33 - + 8 AS col1
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT 79 * - - MIN( ALL - 10 ) AS col2
----
-790

skipif mysql # not compatible
query I rowsort label-2530
SELECT 79 * - - MIN ( ALL - 10 ) AS col2
----
-790

query I rowsort
SELECT 91 - + + 61 AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2532
SELECT DISTINCT 2 DIV + NULLIF ( + - 5, - 74 + - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT 2 / + NULLIF ( + - 5, - 74 + - 58 )
----
0

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

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

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

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

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

query II rowsort
SELECT 16 * - ( 81 ) AS col1, 63 AS col2
----
-1296
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2537
SELECT + COUNT( ALL + - ( 91 ) ), + CAST( + - 41 AS SIGNED ) AS col2
----
1
-41

skipif mysql # not compatible
query II rowsort label-2537
SELECT + COUNT ( ALL + - ( 91 ) ), + CAST ( + - 41 AS INTEGER ) AS col2
----
1
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT 19 DIV - + 27 * - 49 - - NULLIF ( + COALESCE ( - 30, + 99 ), + 47 + MAX( ALL - + 22 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-2538
SELECT 19 / - + 27 * - 49 - - NULLIF ( + COALESCE ( - 30, + 99 ), + 47 + MAX ( ALL - + 22 ) )
----
-30

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

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

query I rowsort
SELECT 6 * - + 12
----
-72

query I rowsort
SELECT 42 * - ( 83 ) AS col2
----
-3486

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

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

query II rowsort
SELECT - 92 * 81 + - + 55 AS col1, ( - 65 ) - + 92
----
-7507
-157

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

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

query I rowsort
SELECT 32 * + CASE + 25 WHEN + - 0 + - + 29 THEN 8 * + 40 ELSE NULL END
----
NULL

query I rowsort
SELECT 35 + + 66
----
101

query I rowsort
SELECT ALL - 11 + + + 53 AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2548
SELECT COUNT( * ) AS col2, - MAX( DISTINCT + - 3 ) * - - 91
----
1
273

skipif mysql # not compatible
query II rowsort label-2548
SELECT COUNT ( * ) AS col2, - MAX ( DISTINCT + - 3 ) * - - 91
----
1
273

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

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

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

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

query I rowsort
SELECT DISTINCT + 38 + + CASE + + 70 WHEN 0 THEN - 73 ELSE NULL END
----
NULL

query II rowsort
SELECT - 2 * - 97 * - - 19 + ( + 96 ) + 91 AS col0, 83
----
3873
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2553
SELECT ALL + - CAST( NULL AS DECIMAL ) * + 41 + + 96 * + - 8 + - - COUNT( * ) + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL + - CAST ( NULL AS REAL ) * + 41 + + 96 * + - 8 + - - COUNT ( * ) + 94
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT + - 69 DIV + NULLIF ( + - 18, + 26 * - + 15 )
----
3

skipif mysql # not compatible
query I rowsort label-2554
SELECT + - 69 / + NULLIF ( + - 18, + 26 * - + 15 )
----
3

query I rowsort
SELECT ALL 13 + - + 32 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL - + COUNT( - + 95 ) + 14 * - SUM( + 76 ) AS col1
----
-1065

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL - + COUNT ( - + 95 ) + 14 * - SUM ( + 76 ) AS col1
----
-1065

query I rowsort
SELECT ALL + 20 * 10 * + + 70 col1
----
14000

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT DISTINCT - 61 * - COUNT( * ) + - - 43 + SUM( DISTINCT - + 67 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT - 61 * - COUNT ( * ) + - - 43 + SUM ( DISTINCT - + 67 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT - MIN( 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-2559
SELECT - MIN ( 73 ) AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT ALL - + 19 + - + COUNT( * ) + - 55 * + + 39 * 46 + COUNT( * ) + - + 4 * + + 35 * CAST( NULL AS SIGNED ) + + NULLIF ( + 79, 36 ) * - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - + 19 + - + COUNT ( * ) + - 55 * + + 39 * 46 + COUNT ( * ) + - + 4 * + + 35 * CAST ( NULL AS INTEGER ) + + NULLIF ( + 79, 36 ) * - - 80
----
NULL

query II rowsort
SELECT - COALESCE ( - 97, + - 1 ) AS col2, 38 * - + 71
----
97
-2698

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL + NULLIF ( 42, + 96 ) + + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + NULLIF ( 42, + 96 ) + + COUNT ( * ) AS col2
----
43

query I rowsort
SELECT + + 42 - + - 84 AS col1
----
126

query I rowsort
SELECT ALL ( + + 36 ) col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2565
SELECT + - MAX( + 62 ) + - - 64 DIV + 42 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2565
SELECT + - MAX ( + 62 ) + - - 64 / + 42 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * + 74 * + - 87 col2
----
6438

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * + 74 * + - 87 col2
----
6438

query I rowsort
SELECT + 99 + 21
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL 43 * - COUNT( * ) * + - 4 * + - 23 AS col1
----
-3956

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL 43 * - COUNT ( * ) * + - 4 * + - 23 AS col1
----
-3956

query I rowsort
SELECT + 12 + NULLIF ( + - 76, + 26 * + 67 ) AS col0
----
-64

query I rowsort
SELECT DISTINCT + 85 * + 17 AS col1
----
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + 90 + + SUM( ALL - 32 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2571
SELECT + 90 + + SUM ( ALL - 32 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2572
SELECT ALL COUNT( 91 ) * + - 29 + 12 AS col1, - 90
----
-17
-90

skipif mysql # not compatible
query II rowsort label-2572
SELECT ALL COUNT ( 91 ) * + - 29 + 12 AS col1, - 90
----
-17
-90

query I rowsort
SELECT + 8 * 70 * + + 72
----
40320

query I rowsort
SELECT + 84 + + - 63 * - 55 AS col2
----
3549

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT + 72 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT + 72 / - 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2576
SELECT DISTINCT ( + + COUNT( * ) ) DIV + 18 * 50 AS col0, + 55 - 15 col0
----
0
40

skipif mysql # not compatible
query II rowsort label-2576
SELECT DISTINCT ( + + COUNT ( * ) ) / + 18 * 50 AS col0, + 55 - 15 col0
----
0
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2577
SELECT ALL ( - 77 ) DIV + - 71 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL ( - 77 ) / + - 71 AS col2
----
1

query II rowsort
SELECT + 42 + - + 2 * 91 * 53, + 66 AS col1
----
-9604
66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2580
SELECT ALL + 52 * + - 35 AS col2, COUNT( * )
----
-1820
1

skipif mysql # not compatible
query II rowsort label-2580
SELECT ALL + 52 * + - 35 AS col2, COUNT ( * )
----
-1820
1

query I rowsort
SELECT - 18 * 97
----
-1746

query II rowsort
SELECT ALL - ( - 62 ) * - 12 + - 10 + 89 AS col0, - 40 AS col2
----
-665
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2583
SELECT ALL + 12 * - + CAST( 2 AS SIGNED ) + + - COUNT( * ) AS col1, CAST( + 37 AS SIGNED ) AS col0
----
-25
37

skipif mysql # not compatible
query II rowsort label-2583
SELECT ALL + 12 * - + CAST ( 2 AS INTEGER ) + + - COUNT ( * ) AS col1, CAST ( + 37 AS INTEGER ) AS col0
----
-25
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2584
SELECT ALL 94 * + + 3 * 33 + + 24, - COUNT( * ) AS col2
----
9330
-1

skipif mysql # not compatible
query II rowsort label-2584
SELECT ALL 94 * + + 3 * 33 + + 24, - COUNT ( * ) AS col2
----
9330
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2585
SELECT DISTINCT - 79 * + NULLIF ( + COUNT( * ), + + 67 + - 6 ) + - 92 DIV COUNT( * ) DIV - SUM( + - 79 ) + + 11 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT - 79 * + NULLIF ( + COUNT ( * ), + + 67 + - 6 ) + - 92 / COUNT ( * ) / - SUM ( + - 79 ) + + 11 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT CASE COUNT( * ) WHEN + AVG ( - + NULLIF ( + 52, + + 48 - - - ( - 33 ) ) ) THEN NULL WHEN - - 13 + + 20 / CASE ( - 6 ) WHEN 12 THEN NULL WHEN - + 72 THEN + - 55 WHEN 62 - + 19 THEN NULL END / 72 + - NULLIF ( + + COALESCE ( 84, - 82 * - COALESCE ( 65, - + 79 ) + - 49, + 26 ), - + AVG ( + 38 ) + + COUNT( * ) - - 1 * - NULLIF ( + 15, - 61 ) * + 85 ) THEN 41 / + 49 * - 48 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT CASE COUNT ( * ) WHEN + AVG ( - + NULLIF ( + 52, + + 48 - - - ( - 33 ) ) ) THEN NULL WHEN - - 13 + + 20 / CASE ( - 6 ) WHEN 12 THEN NULL WHEN - + 72 THEN + - 55 WHEN 62 - + 19 THEN NULL END / 72 + - NULLIF ( + + COALESCE ( 84, - 82 * - COALESCE ( 65, - + 79 ) + - 49, + 26 ), - + AVG ( + 38 ) + + COUNT ( * ) - - 1 * - NULLIF ( + 15, - 61 ) * + 85 ) THEN 41 / + 49 * - 48 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2587
SELECT + ( - + 97 ) / - - 2 + + + CAST( NULL AS DECIMAL ) + 16 + COALESCE ( - 42, + + 51 * + + 6 * COALESCE ( + 37, 19 + + 34 + - - 92 + - 64 - - MAX( DISTINCT 93 ) + - 83 + - 3 * - - 23 * + 80 * + 46 + - - 96 * - 38 / - 66 * - - 47 * - - 77 ) * - 5 / + 44 - + NULLIF ( + 43, + 29 ) ) + - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT + ( - + 97 ) / - - 2 + + + CAST ( NULL AS REAL ) + 16 + COALESCE ( - 42, + + 51 * + + 6 * COALESCE ( + 37, 19 + + 34 + - - 92 + - 64 - - MAX ( DISTINCT 93 ) + - 83 + - 3 * - - 23 * + 80 * + 46 + - - 96 * - 38 / - 66 * - - 47 * - - 77 ) * - 5 / + 44 - + NULLIF ( + 43, + 29 ) ) + - 72 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - 54, - + 75 ) AS col1
----
-54

query I rowsort
SELECT - ( - 22 ) + 65
----
87

query I rowsort
SELECT + 62 * - 33 + - 67
----
-2113

query I rowsort
SELECT - 72 - + 60 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT ALL + - ( + 96 ), + COUNT( * ) * - COUNT( * ) col1
----
-96
-1

skipif mysql # not compatible
query II rowsort label-2592
SELECT ALL + - ( + 96 ), + COUNT ( * ) * - COUNT ( * ) col1
----
-96
-1

query I rowsort
SELECT ALL 67 * - 0 + - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL + SUM( DISTINCT - COALESCE ( + 76, + + 92, - 23 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + SUM ( DISTINCT - COALESCE ( + 76, + + 92, - 23 ) )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2595
SELECT DISTINCT + 79 * - 28 - 14 + - COUNT( * ) + ( + 2 ) * COUNT( * ), CAST( NULL AS SIGNED ) AS col2
----
-2225
NULL

skipif mysql # not compatible
query II rowsort label-2595
SELECT DISTINCT + 79 * - 28 - 14 + - COUNT ( * ) + ( + 2 ) * COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2
----
-2225
NULL

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

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

query I rowsort
SELECT - 17 + + - 34 * 14 + + 19 AS col2
----
-474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2598
SELECT ALL ( 26 ) * + + 32 - 67 + COUNT( DISTINCT + 78 ) + - 93 + + 18 * 48 + - ( - - 80 ) DIV - 78 AS col2
----
1538

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL ( 26 ) * + + 32 - 67 + COUNT ( DISTINCT + 78 ) + - 93 + + 18 * 48 + - ( - - 80 ) / - 78 AS col2
----
1538

query I rowsort
SELECT ALL + + 4 * - 48
----
-192

query I rowsort
SELECT - 70 * + 88 - - 13 AS col1
----
-6147

query I rowsort
SELECT DISTINCT - 75 * + - 47 * - - 38 + + + 56
----
134006

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT SUM( - NULLIF ( + 78, - 80 ) ) AS col2, - 48 + + 9
----
-78
-39

skipif mysql # not compatible
query II rowsort label-2602
SELECT SUM ( - NULLIF ( + 78, - 80 ) ) AS col2, - 48 + + 9
----
-78
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT + 57 * MIN( + 55 )
----
3135

skipif mysql # not compatible
query I rowsort label-2603
SELECT + 57 * MIN ( + 55 )
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT ALL + CASE + CASE + 55 WHEN - - 16 + + AVG ( ALL - 1 ) * - 29 THEN + 83 ELSE NULL END WHEN - 59 + + 98 + - - 15 * 83 THEN COUNT( * ) * + 65 ELSE - - 62 END * - + 10 * 19
----
-11780

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL + CASE + CASE + 55 WHEN - - 16 + + AVG ( ALL - 1 ) * - 29 THEN + 83 ELSE NULL END WHEN - 59 + + 98 + - - 15 * 83 THEN COUNT ( * ) * + 65 ELSE - - 62 END * - + 10 * 19
----
-11780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2605
SELECT DISTINCT + CASE - - ( - CASE + + MIN( ALL ( - + 46 ) ) WHEN + - 54 / - + 24 THEN - AVG ( ALL - 84 ) WHEN + 54 THEN NULL END ) WHEN - 60 * + 80 + + + ( + + 1 ) * - CAST( NULL AS SIGNED ) THEN + 86 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + CASE - - ( - CASE + + MIN ( ALL ( - + 46 ) ) WHEN + - 54 / - + 24 THEN - AVG ( ALL - 84 ) WHEN + 54 THEN NULL END ) WHEN - 60 * + 80 + + + ( + + 1 ) * - CAST ( NULL AS INTEGER ) THEN + 86 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + 45 * + 60 AS col1
----
-2700

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

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

query I rowsort
SELECT + 67 * 2
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2609
SELECT - ( - 58 ) + + - 31 DIV - ( - - ( + 54 ) ) col1
----
58

skipif mysql # not compatible
query I rowsort label-2609
SELECT - ( - 58 ) + + - 31 / - ( - - ( + 54 ) ) col1
----
58

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

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

skipif mysql # not compatible
query I rowsort label-2611
SELECT - CAST ( + 30 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + - 43
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT - 55 + - 18 DIV + - 12 + - - 84 col2
----
30

skipif mysql # not compatible
query I rowsort label-2612
SELECT - 55 + - 18 / + - 12 + - - 84 col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2613
SELECT DISTINCT 84 + - + 49 + + - 90, COUNT( * ) + + + 31 col1
----
-55
32

skipif mysql # not compatible
query II rowsort label-2613
SELECT DISTINCT 84 + - + 49 + + - 90, COUNT ( * ) + + + 31 col1
----
-55
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT + 48 - MAX( DISTINCT + + 52 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2615
SELECT + 48 - MAX ( DISTINCT + + 52 ) AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2616
SELECT + 25 - - + NULLIF ( - 29, 97 * - + COUNT( * ) + - COALESCE ( - COALESCE ( 57, + 44, + COUNT( * ) + - 1 * - SUM( ALL COALESCE ( - 39, + 11 ) ) ), CAST( 32 AS SIGNED ) - COUNT( * ) + + MIN( ALL - 3 ) + + + 91 + + 60 / - 83 ) + + 99 * - + 10 * + + 45 * 65 - 16 + - CAST( NULL AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2616
SELECT + 25 - - + NULLIF ( - 29, 97 * - + COUNT ( * ) + - COALESCE ( - COALESCE ( 57, + 44, + COUNT ( * ) + - 1 * - SUM ( ALL COALESCE ( - 39, + 11 ) ) ), CAST ( 32 AS INTEGER ) - COUNT ( * ) + + MIN ( ALL - 3 ) + + + 91 + + 60 / - 83 ) + + 99 * - + 10 * + + 45 * 65 - 16 + - CAST ( NULL AS INTEGER ) )
----
-4

query I rowsort
SELECT DISTINCT + ( + 23 ) * - 86 + - 60 AS col0
----
-2038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2618
SELECT DISTINCT - 1 DIV - CAST( - + 89 AS SIGNED ) + 69 * - COUNT( * ) + + - 12 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT - 1 / - CAST ( - + 89 AS INTEGER ) + 69 * - COUNT ( * ) + + - 12 AS col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2619
SELECT ALL - COUNT( * ) DIV COUNT( * ) + + NULLIF ( + 53, - + 16 ) DIV + + 89 + + COUNT( * ) * 89 DIV ( - 47 ) * + 70 + ( + COALESCE ( + 64, 82 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL - COUNT ( * ) / COUNT ( * ) + + NULLIF ( + 53, - + 16 ) / + + 89 + + COUNT ( * ) * 89 / ( - 47 ) * + 70 + ( + COALESCE ( + 64, 82 ) )
----
-7

query II rowsort
SELECT DISTINCT + 9 AS col1, 55 + - + 37
----
9
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2621
SELECT DISTINCT 15 DIV + - COUNT( * ) + + 21 + 43 * - 40 AS col0, - CAST( NULL AS SIGNED ) * COUNT( * ) * 24 AS col2
----
-1714
NULL

skipif mysql # not compatible
query II rowsort label-2621
SELECT DISTINCT 15 / + - COUNT ( * ) + + 21 + 43 * - 40 AS col0, - CAST ( NULL AS INTEGER ) * COUNT ( * ) * 24 AS col2
----
-1714
NULL

query I rowsort
SELECT DISTINCT 42 * 76 AS col1
----
3192

query I rowsort
SELECT 25 + 43 * - 28
----
-1179

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT 67 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2624
SELECT 67 / - 89 AS col0
----
0

query I rowsort
SELECT ALL 70 + + 99 AS col1
----
169

query I rowsort
SELECT ALL 29 + - 8 + 64 AS col2
----
85

query II rowsort
SELECT 50 * 33 * - 28 AS col2, + 96 + + - 86 AS col1
----
-46200
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2628
SELECT 57 DIV - CAST( 97 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2628
SELECT 57 / - CAST ( 97 AS INTEGER ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT DISTINCT 75 DIV 67
----
1

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT 75 / 67
----
1

query I rowsort
SELECT ALL 93 - 32 * - 24 AS col1
----
861

query I rowsort
SELECT 76 * 98 col1
----
7448

query I rowsort
SELECT DISTINCT 69 - 28 AS col0
----
41

query I rowsort
SELECT DISTINCT 28 * - 57 AS col0
----
-1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT + CAST( NULL AS SIGNED ) * 96 + 55 * + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT + CAST ( NULL AS INTEGER ) * 96 + 55 * + 13 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT 95 DIV + 78
----
1

skipif mysql # not compatible
query I rowsort label-2635
SELECT 95 / + 78
----
1

query I rowsort
SELECT NULLIF ( + 63, - AVG ( ALL + 83 ) ) * 85 + + 76
----
5431

query I rowsort
SELECT DISTINCT 86 * 16
----
1376

query I rowsort
SELECT 7 * 39 AS col1
----
273

query I rowsort
SELECT 10 + - 88 * 75 AS col1
----
-6590

query I rowsort
SELECT 16 - 17 AS col2
----
-1

query I rowsort
SELECT 20 * + 26
----
520

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT 26 - - 9 DIV - 55
----
26

skipif mysql # not compatible
query I rowsort label-2642
SELECT 26 - - 9 / - 55
----
26

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

skipif mysql # not compatible
query I rowsort label-2643
SELECT 97 / - COUNT ( * ) AS col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT DISTINCT - 42 + 49 DIV + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT - 42 + 49 / + COUNT ( * ) AS col2
----
7

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

skipif mysql # not compatible
query I rowsort label-2645
SELECT 10 / COUNT ( * )
----
10

query I rowsort
SELECT 45 + 58 col2
----
103

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2648
SELECT 16 + ( 27 + 42 DIV 80 ) * + 11
----
313

skipif mysql # not compatible
query I rowsort label-2648
SELECT 16 + ( 27 + 42 / 80 ) * + 11
----
313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL + 97 + 96 * CAST( + ( 11 ) + + COALESCE ( - MAX( DISTINCT - CAST( NULL AS SIGNED ) ), + 97 ) * - 38 AS SIGNED ) AS col0
----
-352703

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL + 97 + 96 * CAST ( + ( 11 ) + + COALESCE ( - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ), + 97 ) * - 38 AS INTEGER ) AS col0
----
-352703

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

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

query I rowsort
SELECT ALL 95 + - 86 * - 4 AS col1
----
439

query I rowsort
SELECT 35 + + 14
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT ALL - 24 + 64 DIV 36 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL - 24 + 64 / 36 AS col2
----
-23

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

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

query I rowsort
SELECT 22 + ( ( ( + 72 ) ) )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT 25 DIV + 8 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2656
SELECT 25 / + 8 AS col1
----
3

query I rowsort
SELECT 34 * 36 AS col0
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT MAX( ( - 86 ) ) * - 84 + 72
----
7296

skipif mysql # not compatible
query I rowsort label-2658
SELECT MAX ( ( - 86 ) ) * - 84 + 72
----
7296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT ALL 29 - + 36 * COALESCE ( + COUNT( * ), - CAST( - ( + AVG ( 77 ) ) AS SIGNED ) )
----
-7

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL 29 - + 36 * COALESCE ( + COUNT ( * ), - CAST ( - ( + AVG ( 77 ) ) AS INTEGER ) )
----
-7

query I rowsort
SELECT DISTINCT 88 * 3 AS col2
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT + 4 DIV + 83 + + NULLIF ( + NULLIF ( 78, 28 ), 9 ) DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-2661
SELECT + 4 / + 83 + + NULLIF ( + NULLIF ( 78, 28 ), 9 ) / - 58
----
-1

query I rowsort
SELECT ALL 23 * + ( + 99 )
----
2277

onlyif mysql # DIV for integer division: 
query I rowsort label-2663
SELECT - 49 + 35 DIV 86 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-2663
SELECT - 49 + 35 / 86 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL - 90 * - ( + SUM( 97 ) )
----
8730

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL - 90 * - ( + SUM ( 97 ) )
----
8730

query I rowsort
SELECT ALL + 32 - 58 AS col1
----
-26

query I rowsort
SELECT 0 * - 95
----
0

query I rowsort
SELECT ALL 46 * 85 AS col1
----
3910

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT 30 * + 65 + COALESCE ( + 71, 4 + 84 DIV 70, + CASE + 29 WHEN - 36 * - 73 + 2 THEN - 78 * + 52 ELSE NULL END * - 66 ) AS col2
----
2021

skipif mysql # not compatible
query I rowsort label-2668
SELECT 30 * + 65 + COALESCE ( + 71, 4 + 84 / 70, + CASE + 29 WHEN - 36 * - 73 + 2 THEN - 78 * + 52 ELSE NULL END * - 66 ) AS col2
----
2021

query I rowsort
SELECT 79 * 27 AS col0
----
2133

query I rowsort
SELECT + 12 + + 19
----
31

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

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

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

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

query I rowsort
SELECT ALL + 25 * NULLIF ( 53, 89 )
----
1325

query I rowsort
SELECT - 79 * 45 AS col2
----
-3555

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT DISTINCT - CAST( ( 94 ) AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - CAST ( ( 94 ) AS INTEGER )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT DISTINCT - CASE 47 WHEN + ( COALESCE ( 11, + 44 * 3, 6, + COUNT( * ) ) ) THEN NULL WHEN COALESCE ( + 68, 72 * - 89 + 33 ) THEN 57 ELSE - ( 37 ) * + CASE + COUNT( * ) WHEN COUNT( * ) * 10 + 2 THEN SUM( - 8 ) WHEN - 31 THEN NULL WHEN 96 + 99 THEN 72 * 16 ELSE NULL END END / 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT - CASE 47 WHEN + ( COALESCE ( 11, + 44 * 3, 6, + COUNT ( * ) ) ) THEN NULL WHEN COALESCE ( + 68, 72 * - 89 + 33 ) THEN 57 ELSE - ( 37 ) * + CASE + COUNT ( * ) WHEN COUNT ( * ) * 10 + 2 THEN SUM ( - 8 ) WHEN - 31 THEN NULL WHEN 96 + 99 THEN 72 * 16 ELSE NULL END END / 41
----
NULL

query I rowsort
SELECT ALL - 34 * 16
----
-544

query I rowsort
SELECT 79 + 84
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT DISTINCT CASE + 91 WHEN 37 + - 77 / - 29 THEN 24 + CAST( NULL AS SIGNED ) * - 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT CASE + 91 WHEN 37 + - 77 / - 29 THEN 24 + CAST ( NULL AS INTEGER ) * - 72 END
----
NULL

query I rowsort
SELECT ALL 76 * - 53 AS col1
----
-4028

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT - ( SUM( 72 ) ) * 26 AS col0
----
-1872

skipif mysql # not compatible
query I rowsort label-2683
SELECT - ( SUM ( 72 ) ) * 26 AS col0
----
-1872

query I rowsort
SELECT - 28 * - 32 + - 26
----
870

query I rowsort
SELECT 28 * + 27
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT + COUNT( * ) + 12 col1
----
13

skipif mysql # not compatible
query I rowsort label-2686
SELECT + COUNT ( * ) + 12 col1
----
13

query I rowsort
SELECT ALL + 73 + 85 AS col0
----
158

query I rowsort
SELECT ALL 13 * + - 83 AS col0
----
-1079

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2689
SELECT DISTINCT CASE + - 60 WHEN 34 + + 70 THEN NULL WHEN 51 THEN - 18 * + 75 - + 96 END + - COALESCE ( - 54, + CAST( NULLIF ( - 70, - CASE 92 WHEN 29 / - COUNT( * ) THEN - COUNT( * ) WHEN 78 + COALESCE ( + 18, + 60 * 36 ) THEN NULL WHEN + 51 + 8 THEN NULL END ) AS DECIMAL ), 35 / 63 + + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT CASE + - 60 WHEN 34 + + 70 THEN NULL WHEN 51 THEN - 18 * + 75 - + 96 END + - COALESCE ( - 54, + CAST ( NULLIF ( - 70, - CASE 92 WHEN 29 / - COUNT ( * ) THEN - COUNT ( * ) WHEN 78 + COALESCE ( + 18, + 60 * 36 ) THEN NULL WHEN + 51 + 8 THEN NULL END ) AS REAL ), 35 / 63 + + 27 )
----
NULL

query I rowsort
SELECT ALL 31 + + - ( - 99 )
----
130

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

query I rowsort
SELECT - 95 * + 44
----
-4180

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

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL COUNT ( DISTINCT - 74 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT + 65 + + 55 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2694
SELECT + 65 + + 55 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT + 42 + - - 45 + - COUNT( * ) * + 0 * 17
----
87

skipif mysql # not compatible
query I rowsort label-2695
SELECT + 42 + - - 45 + - COUNT ( * ) * + 0 * 17
----
87

query I rowsort
SELECT ALL - 93 - - 6 AS col0
----
-87

query I rowsort
SELECT ALL NULLIF ( - + ( + 7 ), + 13 ) AS col2
----
-7

query I rowsort
SELECT ALL + 94 * 9 * - 51
----
-43146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT ALL COUNT( * ) * - 61 - 19 * - 52 AS col2
----
927

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL COUNT ( * ) * - 61 - 19 * - 52 AS col2
----
927

query I rowsort
SELECT DISTINCT + COALESCE ( 79, + 11 ) AS col0
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT - + 64 * + + MIN( ALL + 86 ) * - 86 + 68 AS col2
----
473412

skipif mysql # not compatible
query I rowsort label-2703
SELECT - + 64 * + + MIN ( ALL + 86 ) * - 86 + 68 AS col2
----
473412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT + CAST( - 16 AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2704
SELECT + CAST ( - 16 AS INTEGER ) AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2705
SELECT DISTINCT + 53 DIV - 73 + 41 * 85
----
3485

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT + 53 / - 73 + 41 * 85
----
3485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2706
SELECT - CAST( - 72 AS SIGNED ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2706
SELECT - CAST ( - 72 AS INTEGER ) AS col0
----
72

query I rowsort
SELECT ALL + - NULLIF ( - 5, + 1 + - 21 / - 95 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT ALL - 85 * - COUNT( * ) - - 90 AS col1
----
175

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - 85 * - COUNT ( * ) - - 90 AS col1
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2709
SELECT DISTINCT + NULLIF ( - + CASE 34 WHEN + ( + 43 ) / 15 + 41 THEN CASE 17 WHEN + 79 * + 17 THEN + 13 + + 68 WHEN + 33 THEN - 35 * ( + 47 ) ELSE NULL END WHEN + 53 - - 30 * 10 THEN - COUNT( * ) ELSE 30 * + CASE ( MAX( ALL CAST( NULL AS SIGNED ) ) ) WHEN - 41 THEN NULL ELSE 78 END END, 25 * COUNT( * ) ) AS col1
----
-2340

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT + NULLIF ( - + CASE 34 WHEN + ( + 43 ) / 15 + 41 THEN CASE 17 WHEN + 79 * + 17 THEN + 13 + + 68 WHEN + 33 THEN - 35 * ( + 47 ) ELSE NULL END WHEN + 53 - - 30 * 10 THEN - COUNT ( * ) ELSE 30 * + CASE ( MAX ( ALL CAST ( NULL AS INTEGER ) ) ) WHEN - 41 THEN NULL ELSE 78 END END, 25 * COUNT ( * ) ) AS col1
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT 88 * + + ( - COUNT( * ) ) + 94 + 48 * + 76 AS col1
----
3654

skipif mysql # not compatible
query I rowsort label-2710
SELECT 88 * + + ( - COUNT ( * ) ) + 94 + 48 * + 76 AS col1
----
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL + + COUNT( * ) * ( 58 ) * + SUM( DISTINCT - 77 * - 5 ) + + 38 col0
----
22368

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL + + COUNT ( * ) * ( 58 ) * + SUM ( DISTINCT - 77 * - 5 ) + + 38 col0
----
22368

query I rowsort
SELECT - - 50 * - + 43 + 75 + 98
----
-1977

query I rowsort
SELECT + - 8 * - 48 * + 19 + 36
----
7332

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL + - COUNT( * ) * - 48 + - 13
----
35

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + - COUNT ( * ) * - 48 + - 13
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT + CASE - COUNT( * ) WHEN 44 THEN NULL WHEN 37 THEN - 19 ELSE NULL END + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2715
SELECT + CASE - COUNT ( * ) WHEN 44 THEN NULL WHEN 37 THEN - 19 ELSE NULL END + 11 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2717
SELECT DISTINCT 19 AS col1, + 67 + + MAX( ALL - 58 ) + - 6 * - COUNT( * ) col1
----
19
15

skipif mysql # not compatible
query II rowsort label-2717
SELECT DISTINCT 19 AS col1, + 67 + + MAX ( ALL - 58 ) + - 6 * - COUNT ( * ) col1
----
19
15

query I rowsort
SELECT ALL - 13 * - 67 + + 68
----
939

query I rowsort
SELECT + 25 + - 93
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL NULLIF ( + 24, + MAX( + 79 ) ) + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL NULLIF ( + 24, + MAX ( + 79 ) ) + COUNT ( * ) AS col2
----
25

query II rowsort
SELECT ALL 24 col0, + 92 * - 50
----
24
-4600

query I rowsort
SELECT + 2 + + 44 * + 1 * - 80 + + 77 * 84 col0
----
2950

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

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL 13 + + + COUNT ( * ) AS col0
----
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + MAX( - 45 ) + - ( 59 ) + 29 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2725
SELECT + MAX ( - 45 ) + - ( 59 ) + 29 AS col2
----
-75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT + 79 * - - 60 + - 29 DIV - 64
----
4740

skipif mysql # not compatible
query I rowsort label-2727
SELECT + 79 * - - 60 + - 29 / - 64
----
4740

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - NULLIF ( - COUNT( * ), - 10 - 86 * - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-2728
SELECT - NULLIF ( - COUNT ( * ), - 10 - 86 * - 83 )
----
1

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

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL MAX ( ALL + + 24 ) * + COUNT ( * ) AS col0
----
24

query I rowsort
SELECT ALL 54 - + + 70
----
-16

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

query I rowsort
SELECT + 36 + - 6 + 24 AS col2
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL NULLIF ( 19, + - 87 + CASE WHEN + 49 NOT BETWEEN ( - 63 + + 82 ) AND - 28 THEN - 72 + - COALESCE ( 17 + MAX( 81 ), + ( + COUNT( * ) ) - COUNT( * ) * + 49, 16 + 97 / 43 ) * 29 END ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL NULLIF ( 19, + - 87 + CASE WHEN + 49 NOT BETWEEN ( - 63 + + 82 ) AND - 28 THEN - 72 + - COALESCE ( 17 + MAX ( 81 ), + ( + COUNT ( * ) ) - COUNT ( * ) * + 49, 16 + 97 / 43 ) * 29 END ) AS col1
----
19

query I rowsort
SELECT + 12 + - + 80 AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2736
SELECT ALL 18 - + 90 + COALESCE ( NULLIF ( COALESCE ( 8, NULLIF ( 61, CASE + CAST( NULL AS SIGNED ) WHEN + NULLIF ( + NULLIF ( + NULLIF ( - COUNT( * ), - AVG ( ALL + 99 ) + - COALESCE ( COUNT( * ), - 57, 34 ) ), CAST( NULL AS SIGNED ) * - 35 ), - ( + 27 ) ) THEN 50 WHEN COUNT( + 30 ) * + 25 THEN SUM( ALL 95 ) WHEN 24 THEN 38 + - 6 END + - 27 DIV + 69 ) ), 40 ), + 47 DIV 78 + - 1 ) * + 75
----
528

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL 18 - + 90 + COALESCE ( NULLIF ( COALESCE ( 8, NULLIF ( 61, CASE + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( + NULLIF ( + NULLIF ( - COUNT ( * ), - AVG ( ALL + 99 ) + - COALESCE ( COUNT ( * ), - 57, 34 ) ), CAST ( NULL AS INTEGER ) * - 35 ), - ( + 27 ) ) THEN 50 WHEN COUNT ( + 30 ) * + 25 THEN SUM ( ALL 95 ) WHEN 24 THEN 38 + - 6 END + - 27 / + 69 ) ), 40 ), + 47 / 78 + - 1 ) * + 75
----
528

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

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

query I rowsort
SELECT + 93 + 16
----
109

query I rowsort
SELECT - + COALESCE ( - + 84, - 25 ) + + 78 * 75
----
5934

query I rowsort
SELECT ALL + - 45 * - NULLIF ( + ( - 35 ), 36 / + 28 ) * 32 + - 88
----
-50488

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + ( - 95 ) * - + CASE + 97 WHEN 38 * - 3 THEN 41 * - 39 ELSE CASE - 12 WHEN 10 - 24 * 49 THEN NULL ELSE + 77 * - COUNT( * ) - - 53 END * 42 END AS col0
----
-95760

skipif mysql # not compatible
query I rowsort label-2741
SELECT + ( - 95 ) * - + CASE + 97 WHEN 38 * - 3 THEN 41 * - 39 ELSE CASE - 12 WHEN 10 - 24 * 49 THEN NULL ELSE + 77 * - COUNT ( * ) - - 53 END * 42 END AS col0
----
-95760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2742
SELECT - 67 * CASE + MAX( 13 ) WHEN - 39 * + 27 THEN 21 + AVG ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT - 67 * CASE + MAX ( 13 ) WHEN - 39 * + 27 THEN 21 + AVG ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2743
SELECT ALL + - 42, + MAX( ALL - 15 ) AS col2
----
-42
-15

skipif mysql # not compatible
query II rowsort label-2743
SELECT ALL + - 42, + MAX ( ALL - 15 ) AS col2
----
-42
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT - - MAX( - + 31 ) + - + 73 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-2744
SELECT - - MAX ( - + 31 ) + - + 73 AS col0
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT DISTINCT 28 DIV + + 45 - + 15 + + 81 + + COALESCE ( - 68, + ( 85 ), 29 )
----
-2

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT 28 / + + 45 - + 15 + + 81 + + COALESCE ( - 68, + ( 85 ), 29 )
----
-2

query II rowsort
SELECT ALL + 53, + 76 AS col1
----
53
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2747
SELECT DISTINCT - + 69 DIV - - 1 + + 72 * ( 54 + + COUNT( ALL + ( 6 ) ) * - 22 )
----
2235

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT - + 69 / - - 1 + + 72 * ( 54 + + COUNT ( ALL + ( 6 ) ) * - 22 )
----
2235

query II rowsort
SELECT + + 86 AS col0, + 1 * 17 - + 21 * + 65
----
86
-1348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2749
SELECT + - COALESCE ( - 44, + + NULLIF ( NULLIF ( COUNT( * ), + 64 ), 24 DIV + ( 53 ) + 22 ) + 55 * COUNT( * ), ( 34 ) + COUNT( * ) DIV - COUNT( * ), 76 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2749
SELECT + - COALESCE ( - 44, + + NULLIF ( NULLIF ( COUNT ( * ), + 64 ), 24 / + ( 53 ) + 22 ) + 55 * COUNT ( * ), ( 34 ) + COUNT ( * ) / - COUNT ( * ), 76 ) AS col2
----
44

query I rowsort
SELECT - 14 * + ( + 27 ) * 95 AS col0
----
-35910

query I rowsort
SELECT NULLIF ( + 4, - - 15 ) * 43 + 99 AS col0
----
271

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT ALL - 48 DIV + - 10 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - 48 / + - 10 AS col0
----
4

query I rowsort
SELECT - 97 + 67 col2
----
-30

query I rowsort
SELECT - - 51 * - 1 + 87
----
36

query I rowsort
SELECT DISTINCT + 60 * 78 + 25 + 25 * - 20 AS col2
----
4205

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2757
SELECT COALESCE ( 49, + - 38 + + MIN( ALL + 22 ), 38 + - CASE 6 WHEN - COALESCE ( 65, 84 + 86, 14 + - 7 ) / - 50 THEN + CASE CAST( NULL AS SIGNED ) WHEN 57 THEN CAST( NULL AS SIGNED ) * - 66 + - CAST( + MIN( DISTINCT - 25 ) + - 35 AS SIGNED ) * 27 END ELSE NULL END * + COUNT( * ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2757
SELECT COALESCE ( 49, + - 38 + + MIN ( ALL + 22 ), 38 + - CASE 6 WHEN - COALESCE ( 65, 84 + 86, 14 + - 7 ) / - 50 THEN + CASE CAST ( NULL AS INTEGER ) WHEN 57 THEN CAST ( NULL AS INTEGER ) * - 66 + - CAST ( + MIN ( DISTINCT - 25 ) + - 35 AS INTEGER ) * 27 END ELSE NULL END * + COUNT ( * ) ) AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT ALL 14 + + 25 + - + 52 DIV - 16
----
42

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL 14 + + 25 + - + 52 / - 16
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT COUNT( * ) * - 99 * - + 24 AS col2
----
2376

skipif mysql # not compatible
query I rowsort label-2759
SELECT COUNT ( * ) * - 99 * - + 24 AS col2
----
2376

query I rowsort
SELECT DISTINCT + 20 * 51 * 86
----
87720

query I rowsort
SELECT ALL - 80 col2
----
-80

query I rowsort
SELECT CASE - + 18 WHEN 4 + + 88 THEN NULL WHEN - 84 THEN 99 ELSE NULL END * 41 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2763
SELECT ALL CAST( COUNT( * ) AS SIGNED ) - + 84 + - 60 col0
----
-143

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) - + 84 + - 60 col0
----
-143

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2765
SELECT CASE + + 53 WHEN 7 THEN + ( + 44 ) * CASE 75 WHEN 66 + 37 * - 32 THEN - 96 * - 9 ELSE + 20 * + 37 END END / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT CASE + + 53 WHEN 7 THEN + ( + 44 ) * CASE 75 WHEN 66 + 37 * - 32 THEN - 96 * - 9 ELSE + 20 * + 37 END END / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 65 * 39 AS col2, ( + NULLIF ( - 56, 99 ) )
----
2535
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL 0 * ( NULLIF ( - SUM( + 51 ), NULLIF ( + 27, 55 + - 70 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL 0 * ( NULLIF ( - SUM ( + 51 ), NULLIF ( + 27, 55 + - 70 ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT 76 DIV 1 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-2768
SELECT 76 / 1 AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2769
SELECT ALL 12 DIV - - 91 col1
----
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL 12 / - - 91 col1
----
0

query II rowsort
SELECT DISTINCT 29 * + 27 AS col1, + 13
----
783
13

query I rowsort
SELECT ALL 64 * - 32 AS col0
----
-2048

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT 66 DIV + ( 15 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2772
SELECT 66 / + ( 15 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL - 62 + COUNT( * ) * + 41 + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - 62 + COUNT ( * ) * + 41 + + COUNT ( * )
----
-20

query I rowsort
SELECT - 9 - - ( - - 83 )
----
74

query I rowsort
SELECT - CASE + 90 WHEN 80 * + NULLIF ( - 21, + 30 ) * 9 THEN NULL WHEN 17 THEN 52 * + 65 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT CASE + ( - 99 ) WHEN - 98 + - 33 THEN NULL WHEN 45 THEN + CAST( + 54 AS SIGNED ) WHEN 0 - - 53 * 25 THEN NULL END + + ( - COALESCE ( 19, - 22 + - 25 * COUNT( * ), + CASE - ( - COUNT( * ) ) WHEN AVG ( ALL 80 ) / + ( 55 ) + - 26 THEN 87 WHEN - COALESCE ( - CASE 52 WHEN NULLIF ( - COUNT( * ), - 99 * 73 ) + + NULLIF ( AVG ( ALL 98 ) + COUNT( * ), MAX( ( 13 ) ) + 3 ) THEN CAST( ( - NULLIF ( + 56, - 22 ) ) AS SIGNED ) ELSE 47 / + 86 END, + COUNT( * ), + 28 * + SUM( DISTINCT - 40 ) + + 33 ) * - 90 THEN NULL END * SUM( + 70 + 41 ) ) ) * 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT CASE + ( - 99 ) WHEN - 98 + - 33 THEN NULL WHEN 45 THEN + CAST ( + 54 AS INTEGER ) WHEN 0 - - 53 * 25 THEN NULL END + + ( - COALESCE ( 19, - 22 + - 25 * COUNT ( * ), + CASE - ( - COUNT ( * ) ) WHEN AVG ( ALL 80 ) / + ( 55 ) + - 26 THEN 87 WHEN - COALESCE ( - CASE 52 WHEN NULLIF ( - COUNT ( * ), - 99 * 73 ) + + NULLIF ( AVG ( ALL 98 ) + COUNT ( * ), MAX ( ( 13 ) ) + 3 ) THEN CAST ( ( - NULLIF ( + 56, - 22 ) ) AS INTEGER ) ELSE 47 / + 86 END, + COUNT ( * ), + 28 * + SUM ( DISTINCT - 40 ) + + 33 ) * - 90 THEN NULL END * SUM ( + 70 + 41 ) ) ) * 69 AS col0
----
NULL

query I rowsort
SELECT + 32 * 78
----
2496

query I rowsort
SELECT ALL 1 + 59 AS col1
----
60

query I rowsort
SELECT ALL - 68 + 65 * - + 94
----
-6178

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - CASE + COUNT( * ) WHEN - 83 + + - 17 THEN - 13 + - ( + ( 72 ) + + 76 ) WHEN 46 + - 3 / + 13 THEN NULL END * ( + MIN( + 69 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT - CASE + COUNT ( * ) WHEN - 83 + + - 17 THEN - 13 + - ( + ( 72 ) + + 76 ) WHEN 46 + - 3 / + 13 THEN NULL END * ( + MIN ( + 69 ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2782
SELECT - 68 * - 48 AS col0, - 51 * - COALESCE ( - 18, - CAST( NULL AS SIGNED ) ) + - 53 AS col2
----
3264
-971

skipif mysql # not compatible
query II rowsort label-2782
SELECT - 68 * - 48 AS col0, - 51 * - COALESCE ( - 18, - CAST ( NULL AS INTEGER ) ) + - 53 AS col2
----
3264
-971

onlyif mysql # aggregate syntax: 
query II rowsort label-2783
SELECT DISTINCT + 35 + + - 14, + 49 + COUNT( * ) + ( 36 + COUNT( * ) * 26 ) AS col0
----
21
112

skipif mysql # not compatible
query II rowsort label-2783
SELECT DISTINCT + 35 + + - 14, + 49 + COUNT ( * ) + ( 36 + COUNT ( * ) * 26 ) AS col0
----
21
112

onlyif mysql # aggregate syntax: 
query II rowsort label-2784
SELECT 93 + - - COUNT( * ) AS col1, ( - 62 ) - 48
----
94
-110

skipif mysql # not compatible
query II rowsort label-2784
SELECT 93 + - - COUNT ( * ) AS col1, ( - 62 ) - 48
----
94
-110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL - + NULLIF ( + COUNT( 25 ), + + 74 ) * - 22
----
22

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL - + NULLIF ( + COUNT ( 25 ), + + 74 ) * - 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT DISTINCT + 75 + - - COALESCE ( 21, - 88 * 39, + COUNT( 8 ) )
----
96

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT + 75 + - - COALESCE ( 21, - 88 * 39, + COUNT ( 8 ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT - 53 + - 31 + - 72 * + + 18 - - ( - 51 ) * COUNT( * ) AS col0
----
-1431

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - 53 + - 31 + - 72 * + + 18 - - ( - 51 ) * COUNT ( * ) AS col0
----
-1431

query I rowsort
SELECT ALL - ( - 43 ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2790
SELECT DISTINCT - 51 DIV - - 54
----
0

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - 51 / - - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT DISTINCT - CASE 70 WHEN - - 2 THEN - COUNT( * ) WHEN + - 28 * - 6 THEN NULL WHEN 6 * + MIN( DISTINCT - 95 * + 6 ) THEN - 46 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT - CASE 70 WHEN - - 2 THEN - COUNT ( * ) WHEN + - 28 * - 6 THEN NULL WHEN 6 * + MIN ( DISTINCT - 95 * + 6 ) THEN - 46 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2792
SELECT 34 * - 30 + - COALESCE ( + 67, 8 * COUNT( * ) + - 67, + 3 DIV 34 + 37 )
----
-1087

skipif mysql # not compatible
query I rowsort label-2792
SELECT 34 * - 30 + - COALESCE ( + 67, 8 * COUNT ( * ) + - 67, + 3 / 34 + 37 )
----
-1087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2793
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) - + - 70 DIV COUNT( * ) + - SUM( 59 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) - + - 70 / COUNT ( * ) + - SUM ( 59 ) AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2794
SELECT ALL - CASE + COALESCE ( + MIN( CAST( + 12 AS DECIMAL ) ), CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ), COALESCE ( 3, 74 ), 7 * - 42 ) WHEN CASE CAST( NULL AS SIGNED ) WHEN + ( 0 ) THEN - NULLIF ( ( - 88 ), - 91 ) * - 68 ELSE + 23 END + AVG ( 5 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL - CASE + COALESCE ( + MIN ( CAST ( + 12 AS REAL ) ), CAST ( + CAST ( NULL AS INTEGER ) AS REAL ), COALESCE ( 3, 74 ), 7 * - 42 ) WHEN CASE CAST ( NULL AS INTEGER ) WHEN + ( 0 ) THEN - NULLIF ( ( - 88 ), - 91 ) * - 68 ELSE + 23 END + AVG ( 5 ) THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT 35 + - 15
----
20

query II rowsort
SELECT + 79 AS col1, 12
----
79
12

query I rowsort
SELECT 44 * - 48
----
-2112

query I rowsort
SELECT 80 * 48
----
3840

query I rowsort
SELECT 51 + 64 * + 85 AS col0
----
5491

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT 60 + + 7 + COUNT( 67 ) + - - COALESCE ( 20, 61, 82 * 70 + + COUNT( * ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2800
SELECT 60 + + 7 + COUNT ( 67 ) + - - COALESCE ( 20, 61, 82 * 70 + + COUNT ( * ) ) AS col2
----
88

query I rowsort
SELECT ALL + 62 * 64
----
3968

query I rowsort
SELECT ( + + 86 ) * + 52 + + - 17 * + 52
----
3588

query I rowsort
SELECT ALL - 71 * 23 * 92 AS col2
----
-150236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2804
SELECT 85 + - COUNT( * ) + - 35 * 11 DIV ( 88 ) + 28 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-2804
SELECT 85 + - COUNT ( * ) + - 35 * 11 / ( 88 ) + 28 AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT ALL - 62 * - 0 * + - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - 62 * - 0 * + - SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2806
SELECT - 55 AS col0, 98 DIV ( 13 ) - - 31
----
-55
38

skipif mysql # not compatible
query II rowsort label-2806
SELECT - 55 AS col0, 98 / ( 13 ) - - 31
----
-55
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT MIN( - 34 ) + - + CASE - 93 WHEN 7 + - 45 THEN 32 * - 67 + + 96 / COUNT( * ) END + 69 * CASE 3 WHEN 96 + NULLIF ( - ( + 8 ), 17 + 6 ) * - 36 THEN + 88 * - 12 ELSE + MAX( ALL 40 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT MIN ( - 34 ) + - + CASE - 93 WHEN 7 + - 45 THEN 32 * - 67 + + 96 / COUNT ( * ) END + 69 * CASE 3 WHEN 96 + NULLIF ( - ( + 8 ), 17 + 6 ) * - 36 THEN + 88 * - 12 ELSE + MAX ( ALL 40 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT ALL MAX( DISTINCT + + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL MAX ( DISTINCT + + 59 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT 69 * - CAST( + 66 AS SIGNED ) AS col1
----
-4554

skipif mysql # not compatible
query I rowsort label-2809
SELECT 69 * - CAST ( + 66 AS INTEGER ) AS col1
----
-4554

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

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

query I rowsort
SELECT DISTINCT 58 + - 31
----
27

query I rowsort
SELECT DISTINCT - - 61 + + - 81
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL + COUNT( 92 ) + + 38 - - 75 - - 25 * - 14 AS col0
----
-236

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL + COUNT ( 92 ) + + 38 - - 75 - - 25 * - 14 AS col0
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - 73 * - 27 + COUNT( * )
----
1972

skipif mysql # not compatible
query I rowsort label-2814
SELECT - 73 * - 27 + COUNT ( * )
----
1972

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT 0 DIV + - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2816
SELECT 0 / + - 79 AS col0
----
0

query I rowsort
SELECT - 56 + - 95 col2
----
-151

query I rowsort
SELECT ALL 26 * 92 + 48 + 42 * + 46 * + 78
----
153136

query I rowsort
SELECT 49 * 62
----
3038

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT DISTINCT - - ( COUNT( * ) ) * 37 - + + 19 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT - - ( COUNT ( * ) ) * 37 - + + 19 AS col0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2821
SELECT ALL + 28 AS col1, - SUM( 3 ) col1
----
28
-3

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL + 28 AS col1, - SUM ( 3 ) col1
----
28
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL + COUNT( * ) * ( - 27 ) - - + 54 + + - 57 + - 85 * + 84
----
-7170

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + COUNT ( * ) * ( - 27 ) - - + 54 + + - 57 + - 85 * + 84
----
-7170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2823
SELECT + - 18 AS col2, - 82 * - 54 + 78 + - 80 + + 66 * SUM( 49 DIV 37 ) * + ( - MIN( - 94 ) )
----
-18
10630

skipif mysql # not compatible
query II rowsort label-2823
SELECT + - 18 AS col2, - 82 * - 54 + 78 + - 80 + + 66 * SUM ( 49 / 37 ) * + ( - MIN ( - 94 ) )
----
-18
10630

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT ALL - 74 * + + 0 + - 73 + 34 DIV + - 95 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL - 74 * + + 0 + - 73 + 34 / + - 95 AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2825
SELECT + CASE WHEN ( NULL ) >= + 83 THEN + - 19 + 8 + COUNT( * ) * CAST( 8 AS SIGNED ) WHEN + ( - 20 ) = ( 88 ) THEN NULL ELSE + 66 * 16 END DIV - 73 + - 67 col2
----
-81

skipif mysql # not compatible
query I rowsort label-2825
SELECT + CASE WHEN ( NULL ) >= + 83 THEN + - 19 + 8 + COUNT ( * ) * CAST ( 8 AS INTEGER ) WHEN + ( - 20 ) = ( 88 ) THEN NULL ELSE + 66 * 16 END / - 73 + - 67 col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT - 31 * SUM( + 7 )
----
-217

skipif mysql # not compatible
query I rowsort label-2826
SELECT - 31 * SUM ( + 7 )
----
-217

query I rowsort
SELECT ALL 37 * - 30 AS col0
----
-1110

query I rowsort
SELECT + 43 * 70 AS col1
----
3010

query I rowsort
SELECT ALL 54 * + 33 AS col2
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT MAX( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-2830
SELECT MAX ( 22 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2831
SELECT + 79 * + + 75 + + CAST( NULL AS SIGNED ) + COUNT( * ) AS col2, + 94 * 49 + - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2831
SELECT + 79 * + + 75 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2, + 94 * 49 + - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL + NULLIF ( + 48, + - 30 * + - 84 + + 65 + + COUNT( * ) * + 24 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + NULLIF ( + 48, + - 30 * + - 84 + + 65 + + COUNT ( * ) * + 24 ) col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT + 95 DIV 76 * - 14
----
-14

skipif mysql # not compatible
query I rowsort label-2833
SELECT + 95 / 76 * - 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL COUNT( * ) * + CASE + + 76 WHEN - 18 THEN NULL ELSE ( - - 25 ) * + COUNT( + 96 ) END
----
25

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL COUNT ( * ) * + CASE + + 76 WHEN - 18 THEN NULL ELSE ( - - 25 ) * + COUNT ( + 96 ) END
----
25

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

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

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

query I rowsort
SELECT + 77 * - 50 AS col0
----
-3850

query II rowsort
SELECT + 46 col1, 32 AS col2
----
46
32

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

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

query II rowsort
SELECT - 0 AS col1, ( + + ( - 85 ) ) AS col2
----
0
-85

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

skipif mysql # not compatible
query I rowsort label-2841
SELECT - COUNT ( * ) / + - 67
----
0

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

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

query I rowsort
SELECT - COALESCE ( 70, - + 26, - 71 ) - - 66
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2844
SELECT - 11 * + + 83 AS col0, + COUNT( * ) * - 85 AS col1, + COALESCE ( - + 26, 17 ) * - ( 97 DIV + NULLIF ( - 72 * + 76, + 68 ) ) AS col2
----
-913
-85
0

skipif mysql # not compatible
query III rowsort label-2844
SELECT - 11 * + + 83 AS col0, + COUNT ( * ) * - 85 AS col1, + COALESCE ( - + 26, 17 ) * - ( 97 / + NULLIF ( - 72 * + 76, + 68 ) ) AS col2
----
-913
-85
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2845
SELECT ALL COALESCE ( - ( + 69 ), - 21 DIV + 49 )
----
-69

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL COALESCE ( - ( + 69 ), - 21 / + 49 )
----
-69

query I rowsort
SELECT DISTINCT - 59 + 87 AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT DISTINCT - 12 * + + 14 DIV - 7 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT - 12 * + + 14 / - 7 AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2848
SELECT - COUNT( * ) * + 10 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-2848
SELECT - COUNT ( * ) * + 10 / + 62
----
0

query I rowsort
SELECT - - 16 - + 53 + + - 76 AS col0
----
-113

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

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

query I rowsort
SELECT - - COALESCE ( 50, 0 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT - + COUNT( * ) + - 24 + + + 18 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2852
SELECT - + COUNT ( * ) + - 24 + + + 18 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + + COUNT( * ) * - 12 + - - 41 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2853
SELECT + + COUNT ( * ) * - 12 + - - 41 AS col2
----
29

query I rowsort
SELECT ALL + + 71 - + - 61 * - 5
----
-234

query II rowsort
SELECT 7 AS col1, - ( + + 44 ) AS col2
----
7
-44

query I rowsort
SELECT ALL - 86 - - + 86 * 88 * + 33 - - 88
----
249746

query II rowsort
SELECT ALL 26, + 50 AS col0
----
26
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2858
SELECT DISTINCT + COUNT( * ) AS col0, - 79 DIV + + MIN( DISTINCT - 54 )
----
1
1

skipif mysql # not compatible
query II rowsort label-2858
SELECT DISTINCT + COUNT ( * ) AS col0, - 79 / + + MIN ( DISTINCT - 54 )
----
1
1

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2862
SELECT + COUNT( 42 ) DIV - 88 + + 6 * + 61
----
366

skipif mysql # not compatible
query I rowsort label-2862
SELECT + COUNT ( 42 ) / - 88 + + 6 * + 61
----
366

query II rowsort
SELECT + + 20 AS col0, 65 * + 77 AS col2
----
20
5005

onlyif mysql # aggregate syntax: 
query II rowsort label-2864
SELECT + COUNT( * ) AS col1, 43 + COUNT( * ) AS col2
----
1
44

skipif mysql # not compatible
query II rowsort label-2864
SELECT + COUNT ( * ) AS col1, 43 + COUNT ( * ) AS col2
----
1
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT + + ( + + CASE + CASE 10 WHEN + ( - 0 ) THEN NULL WHEN 47 * 92 THEN 83 WHEN 89 THEN NULL END WHEN + 5 * 32 + + 81 * - 44 THEN + 46 WHEN - 30 * ( + NULLIF ( + 43, 13 - 74 ) * 91 ) THEN - CAST( 21 AS SIGNED ) ELSE NULL END ) / + 7 + + 93 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2865
SELECT + + ( + + CASE + CASE 10 WHEN + ( - 0 ) THEN NULL WHEN 47 * 92 THEN 83 WHEN 89 THEN NULL END WHEN + 5 * 32 + + 81 * - 44 THEN + 46 WHEN - 30 * ( + NULLIF ( + 43, 13 - 74 ) * 91 ) THEN - CAST ( 21 AS INTEGER ) ELSE NULL END ) / + 7 + + 93 * + 78
----
NULL

query I rowsort
SELECT - 43 * + 76 AS col0
----
-3268

query I rowsort
SELECT ALL 55 * ( + 7 )
----
385

query I rowsort
SELECT ALL 14 * + 68 * + 33
----
31416

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT ALL + CAST( + 48 AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + CAST ( + 48 AS INTEGER ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT + SUM( DISTINCT 44 ) * 25 col0
----
1100

skipif mysql # not compatible
query I rowsort label-2871
SELECT + SUM ( DISTINCT 44 ) * 25 col0
----
1100

query I rowsort
SELECT + ( 63 ) col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT CASE WHEN + 46 NOT IN ( - - 57 DIV + ( - AVG ( + - 78 ) ) * + 57 ) THEN 99 DIV - 75 + - 75 END AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-2873
SELECT CASE WHEN + 46 NOT IN ( - - 57 / + ( - AVG ( + - 78 ) ) * + 57 ) THEN 99 / - 75 + - 75 END AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL COUNT( * ) * - 34 * - ( + 57 ) * + MIN( ALL - 96 ) + - SUM( - 1 ) - 62 * 14 + 17 * 20
----
-186575

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL COUNT ( * ) * - 34 * - ( + 57 ) * + MIN ( ALL - 96 ) + - SUM ( - 1 ) - 62 * 14 + 17 * 20
----
-186575

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT COUNT( * ) * - 48 + - - COUNT( ALL + 76 ) + 15 - 43 * - + 12 * - COUNT( 14 )
----
-548

skipif mysql # not compatible
query I rowsort label-2875
SELECT COUNT ( * ) * - 48 + - - COUNT ( ALL + 76 ) + 15 - 43 * - + 12 * - COUNT ( 14 )
----
-548

onlyif mysql # DIV for integer division: 
query II rowsort label-2876
SELECT - 11 DIV - 8 col2, + 26 * - 96 * 20
----
1
-49920

skipif mysql # not compatible
query II rowsort label-2876
SELECT - 11 / - 8 col2, + 26 * - 96 * 20
----
1
-49920

query I rowsort
SELECT + COALESCE ( - 36, - + 36 ) + + 18
----
-18

query I rowsort
SELECT ALL + 52 * ( + + 46 ) + + + 12 * 99 - - 89 AS col1
----
3669

query I rowsort
SELECT ALL 48 * - 41 + - + 21
----
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT DISTINCT + MAX( 26 ) * + - ( 8 ) - - NULLIF ( - 23, + 79 + 82 ) + + 99
----
-132

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT + MAX ( 26 ) * + - ( 8 ) - - NULLIF ( - 23, + 79 + 82 ) + + 99
----
-132

query I rowsort
SELECT ALL + 14 * + 13 col0
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), COALESCE ( 85, + CASE 5 WHEN - + 24 THEN - 44 * 26 + + 54 WHEN 55 * 69 THEN + 21 * CAST( + 86 * + MIN( ALL + 64 * - 64 ) AS SIGNED ) END ), 36 * 76 )
----
85

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), COALESCE ( 85, + CASE 5 WHEN - + 24 THEN - 44 * 26 + + 54 WHEN 55 * 69 THEN + 21 * CAST ( + 86 * + MIN ( ALL + 64 * - 64 ) AS INTEGER ) END ), 36 * 76 )
----
85

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2884
SELECT + 64 * - - 61 + + 8 + COUNT( * ) + MIN( + + 8 ) DIV - 2
----
3909

skipif mysql # not compatible
query I rowsort label-2884
SELECT + 64 * - - 61 + + 8 + COUNT ( * ) + MIN ( + + 8 ) / - 2
----
3909

onlyif mysql # DIV for integer division: 
query I rowsort label-2885
SELECT DISTINCT + - 94 DIV - 5 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT + - 94 / - 5 AS col2
----
18

query I rowsort
SELECT ALL - 90 - - 8 + + 8 AS col0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2887
SELECT - 91 DIV - ( + + 46 )
----
1

skipif mysql # not compatible
query I rowsort label-2887
SELECT - 91 / - ( + + 46 )
----
1

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

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

query I rowsort
SELECT ALL - 40 * - - 98
----
-3920

query I rowsort
SELECT DISTINCT - + 6 * - - 65 AS col0
----
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-2891
SELECT 42 + 26 col1, - ( + COUNT( * ) )
----
68
-1

skipif mysql # not compatible
query II rowsort label-2891
SELECT 42 + 26 col1, - ( + COUNT ( * ) )
----
68
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2892
SELECT NULLIF ( - 30, + - 94 ) * - COUNT( * ) DIV 62 + - 73
----
-73

skipif mysql # not compatible
query I rowsort label-2892
SELECT NULLIF ( - 30, + - 94 ) * - COUNT ( * ) / 62 + - 73
----
-73

query I rowsort
SELECT ALL + - 39 * - 31 * + 49
----
59241

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2895
SELECT 80 DIV + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-2895
SELECT 80 / + COUNT ( * ) AS col2
----
80

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

skipif mysql # not compatible
query I rowsort label-2896
SELECT 60 + + + COUNT ( * ) AS col2
----
61

query I rowsort
SELECT ALL - CASE + + 89 WHEN - + 13 THEN 91 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2898
SELECT DISTINCT + 30 DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT + 30 / 39 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT CAST( NULL AS SIGNED ) * + 31 * - COUNT( * ) + - + 81 + + - NULLIF ( + AVG ( DISTINCT + 96 ), + 0 ) - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT CAST ( NULL AS INTEGER ) * + 31 * - COUNT ( * ) + - + 81 + + - NULLIF ( + AVG ( DISTINCT + 96 ), + 0 ) - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 12 * - 83 * + 36 * - - 39 AS col2
----
-1398384

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT 60 DIV + + 11 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2901
SELECT 60 / + + 11 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL 65 + + NULLIF ( + 45, - 3 * - ( COUNT( * ) ) * - MIN( ALL 6 ) + + 27 ) + + 44
----
154

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL 65 + + NULLIF ( + 45, - 3 * - ( COUNT ( * ) ) * - MIN ( ALL 6 ) + + 27 ) + + 44
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT COUNT( * ) + + SUM( DISTINCT - + 24 ) - 39 + 82 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2903
SELECT COUNT ( * ) + + SUM ( DISTINCT - + 24 ) - 39 + 82 AS col2
----
20

query I rowsort
SELECT ALL 41 + 8
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT DISTINCT COUNT( * ) + + 89
----
90

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT COUNT ( * ) + + 89
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2906
SELECT DISTINCT 59 * 98 * MAX( - 72 ) AS col0, + 88 AS col1
----
-416304
88

skipif mysql # not compatible
query II rowsort label-2906
SELECT DISTINCT 59 * 98 * MAX ( - 72 ) AS col0, + 88 AS col1
----
-416304
88

query I rowsort
SELECT DISTINCT - 58 + + 45
----
-13

query I rowsort
SELECT DISTINCT - 95 * 91
----
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL 88 + - 46 + + COALESCE ( + 65, 50 + - 50, + + COUNT( * ) + - 7 ) * 50 AS col1
----
3292

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL 88 + - 46 + + COALESCE ( + 65, 50 + - 50, + + COUNT ( * ) + - 7 ) * 50 AS col1
----
3292

onlyif mysql # DIV for integer division: 
query II rowsort label-2910
SELECT DISTINCT - 46 AS col0, 8 DIV - - 10 - - - 72 + + 30
----
-46
-42

skipif mysql # not compatible
query II rowsort label-2910
SELECT DISTINCT - 46 AS col0, 8 / - - 10 - - - 72 + + 30
----
-46
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2911
SELECT SUM( ALL 27 ) * 92, COUNT( * ) DIV + 55 AS col1
----
2484
0

skipif mysql # not compatible
query II rowsort label-2911
SELECT SUM ( ALL 27 ) * 92, COUNT ( * ) / + 55 AS col1
----
2484
0

query I rowsort
SELECT DISTINCT + ( - + 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT SUM( + 14 ) - - 14
----
28

skipif mysql # not compatible
query I rowsort label-2913
SELECT SUM ( + 14 ) - - 14
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT CASE - + 10 WHEN + 13 THEN NULL WHEN + 12 * NULLIF ( + 84, ( - 49 ) ) + 26 / COUNT( * ) + COUNT( * ) * ( - 49 ) THEN 34 WHEN + ( - 22 ) THEN - 55 END * + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT CASE - + 10 WHEN + 13 THEN NULL WHEN + 12 * NULLIF ( + 84, ( - 49 ) ) + 26 / COUNT ( * ) + COUNT ( * ) * ( - 49 ) THEN 34 WHEN + ( - 22 ) THEN - 55 END * + 4 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 2 * - - 93 * 16
----
2976

query II rowsort
SELECT DISTINCT + 29, + 4 * + + 8 AS col2
----
29
32

query II rowsort
SELECT ALL 49 AS col2, 80 col1
----
49
80

query I rowsort
SELECT ALL 19 * - - ( - 24 ) AS col1
----
-456

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2921
SELECT - 34 + - + NULLIF ( 79, + - 86 - + 81 * ( + 92 ) ) DIV 64 col1
----
-35

skipif mysql # not compatible
query I rowsort label-2921
SELECT - 34 + - + NULLIF ( 79, + - 86 - + 81 * ( + 92 ) ) / 64 col1
----
-35

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

skipif mysql # not compatible
query I rowsort label-2922
SELECT COUNT ( * ) * - - 22
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT ALL - - 99 DIV - 44
----
-2

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL - - 99 / - 44
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2924
SELECT DISTINCT - 89 + - + COUNT( * ) + 52 + + - COUNT( * ) + 12 + 79 + + - 29 + - + 57 DIV + 74 + 35 * - COALESCE ( - 54, 77 * 95, 3 + 62 ) * 49 * - 48 * - 32 AS col1
----
142248983

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT - 89 + - + COUNT ( * ) + 52 + + - COUNT ( * ) + 12 + 79 + + - 29 + - + 57 / + 74 + 35 * - COALESCE ( - 54, 77 * 95, 3 + 62 ) * 49 * - 48 * - 32 AS col1
----
142248983

query I rowsort
SELECT 63 + 79 * + 73 + + + 5 AS col1
----
5835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT ALL 91 * - ( + - CAST( + 11 AS SIGNED ) ) + + COUNT( * ) * + + 99 AS col0
----
1100

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL 91 * - ( + - CAST ( + 11 AS INTEGER ) ) + + COUNT ( * ) * + + 99 AS col0
----
1100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT ( + 33 ) * - CAST( + 71 AS SIGNED ) + + - 76 + - 38
----
-2457

skipif mysql # not compatible
query I rowsort label-2927
SELECT ( + 33 ) * - CAST ( + 71 AS INTEGER ) + + - 76 + - 38
----
-2457

query I rowsort
SELECT 86 * + - 53 AS col0
----
-4558

query I rowsort
SELECT DISTINCT 91 * - 3 * - 72 + - 96 + 75 AS col0
----
19635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2930
SELECT ALL CASE - 45 WHEN + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + 95 WHEN + - 65 * + - 36 + + + 16 * + - NULLIF ( - 39, + CAST( NULL AS SIGNED ) ) THEN + ( - 88 ) ELSE NULL END * - COUNT( * ) + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL CASE - 45 WHEN + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 95 WHEN + - 65 * + - 36 + + + 16 * + - NULLIF ( - 39, + CAST ( NULL AS INTEGER ) ) THEN + ( - 88 ) ELSE NULL END * - COUNT ( * ) + + 64
----
NULL

query I rowsort
SELECT ALL + 17 * 26
----
442

query I rowsort
SELECT 76 - + 65 * + COALESCE ( - 80, - 25 + + NULLIF ( + 45, + 26 ) + - - 35 ) col1
----
5276

query I rowsort
SELECT 85 - - + 94
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL - 72 + 58 * - - COUNT( ALL 32 )
----
-14

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL - 72 + 58 * - - COUNT ( ALL 32 )
----
-14

onlyif mysql # aggregate syntax: 
query III rowsort label-2935
SELECT DISTINCT - COUNT( * ) + + 37 * + ( 35 ), - SUM( - + 85 ) - 90 AS col1, - 80 AS col2
----
1294
-5
-80

skipif mysql # not compatible
query III rowsort label-2935
SELECT DISTINCT - COUNT ( * ) + + 37 * + ( 35 ), - SUM ( - + 85 ) - 90 AS col1, - 80 AS col2
----
1294
-5
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL ( + - 65 ) + SUM( + 78 )
----
13

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL ( + - 65 ) + SUM ( + 78 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2937
SELECT - ( 65 ) * + NULLIF ( + - 5, 21 - COALESCE ( + 72, CASE + 75 WHEN CASE + AVG ( - 3 ) WHEN + CASE COUNT( 45 ) WHEN 80 * - ( - 60 DIV MAX( 58 ) ) + CAST( ( 35 ) AS SIGNED ) THEN NULL WHEN + 86 DIV + NULLIF ( + 74 * - ( MAX( ALL - 28 ) ), 70 + COALESCE ( + 45, COUNT( * ) + AVG ( + 90 ) ) * 4 ) THEN + 25 DIV - MAX( DISTINCT 55 * 23 ) END + + 73 * 60 THEN 85 WHEN 74 + COUNT( * ) THEN NULL ELSE NULL END THEN NULL WHEN 85 + 65 * + 86 THEN + 98 ELSE NULL END, 58 + + 74, 61 ) + COUNT( ALL + 44 ) * ( 62 ) ) - COUNT( * ) DIV - COUNT( * )
----
326

skipif mysql # not compatible
query I rowsort label-2937
SELECT - ( 65 ) * + NULLIF ( + - 5, 21 - COALESCE ( + 72, CASE + 75 WHEN CASE + AVG ( - 3 ) WHEN + CASE COUNT ( 45 ) WHEN 80 * - ( - 60 / MAX ( 58 ) ) + CAST ( ( 35 ) AS INTEGER ) THEN NULL WHEN + 86 / + NULLIF ( + 74 * - ( MAX ( ALL - 28 ) ), 70 + COALESCE ( + 45, COUNT ( * ) + AVG ( + 90 ) ) * 4 ) THEN + 25 / - MAX ( DISTINCT 55 * 23 ) END + + 73 * 60 THEN 85 WHEN 74 + COUNT ( * ) THEN NULL ELSE NULL END THEN NULL WHEN 85 + 65 * + 86 THEN + 98 ELSE NULL END, 58 + + 74, 61 ) + COUNT ( ALL + 44 ) * ( 62 ) ) - COUNT ( * ) / - COUNT ( * )
----
326

query I rowsort
SELECT DISTINCT - COALESCE ( - 84, 67 ) AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT NULLIF ( - - 52, - - 18 + + + 65 + 88 * 83 + - 46 ) * - - 57 * - CAST( NULL AS SIGNED ) / 8 + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT NULLIF ( - - 52, - - 18 + + + 65 + 88 * 83 + - 46 ) * - - 57 * - CAST ( NULL AS INTEGER ) / 8 + 67
----
NULL

query I rowsort
SELECT 20 - 13 AS col2
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT COUNT( * ) - 6 + 25 col1
----
20

skipif mysql # not compatible
query I rowsort label-2942
SELECT COUNT ( * ) - 6 + 25 col1
----
20

query I rowsort
SELECT ALL + - 39 - + - 17
----
-22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT MAX( DISTINCT + ( 61 ) ) * - COUNT( * ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-2945
SELECT MAX ( DISTINCT + ( 61 ) ) * - COUNT ( * ) col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2946
SELECT + NULLIF ( 22, + CAST( COUNT( 96 ) AS SIGNED ) + + COUNT( * ) - + 96 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2946
SELECT + NULLIF ( 22, + CAST ( COUNT ( 96 ) AS INTEGER ) + + COUNT ( * ) - + 96 ) AS col0
----
22

query I rowsort
SELECT 23 + - 66 AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2948
SELECT NULLIF ( COALESCE ( MAX( DISTINCT + 61 ), + MAX( - 71 ) DIV + 22 * + 8 ), - 8 + - 12 * COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-2948
SELECT NULLIF ( COALESCE ( MAX ( DISTINCT + 61 ), + MAX ( - 71 ) / + 22 * + 8 ), - 8 + - 12 * COUNT ( * ) )
----
61

query I rowsort
SELECT DISTINCT - + 10 * + 28 AS col1
----
-280

query I rowsort
SELECT ALL + - 47 - + CASE + 30 WHEN + 25 THEN NULL WHEN + - 1 THEN 4 ELSE NULL END
----
NULL

query II rowsort
SELECT + - 93 + + + 58 + - + 93 * - 36 + - 89 col1, 60
----
3224
60

query I rowsort
SELECT - + 42 * 36 + 44 + - + 46 * + - 55 * + + ( - - 84 ) AS col0
----
211052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2953
SELECT DISTINCT CASE WHEN NOT COUNT( * ) BETWEEN - CAST( 40 AS SIGNED ) AND NULL THEN SUM( + 68 ) - + AVG ( - CASE - 29 WHEN 27 THEN 26 * 80 END ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT CASE WHEN NOT COUNT ( * ) BETWEEN - CAST ( 40 AS INTEGER ) AND NULL THEN SUM ( + 68 ) - + AVG ( - CASE - 29 WHEN 27 THEN 26 * 80 END ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + + 35 * + - 87 + - 36
----
-3081

query I rowsort
SELECT + + 77 + + - 45 + + 70 * + 59
----
4162

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL 15 + + SUM( DISTINCT - 8 )
----
7

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL 15 + + SUM ( DISTINCT - 8 )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2958
SELECT ALL + 86 DIV + 22 + + + 70 * - 11 - - + 94 AS col0
----
-673

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + 86 / + 22 + + + 70 * - 11 - - + 94 AS col0
----
-673

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-2959
SELECT + ( + 78 ) * + 33 * - CAST( NULL AS DECIMAL ) col1, + COUNT( * ) * 62 + - 5 col1, 29 AS col2
----
NULL
57
29

skipif mysql # not compatible
query III rowsort label-2959
SELECT + ( + 78 ) * + 33 * - CAST ( NULL AS REAL ) col1, + COUNT ( * ) * 62 + - 5 col1, 29 AS col2
----
NULL
57
29

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT - COALESCE ( COUNT( + 6 ), - + 86 + 37, - - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2962
SELECT - COALESCE ( COUNT ( + 6 ), - + 86 + 37, - - COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT ALL 72 * ( + 90 )
----
6480

onlyif mysql # aggregate syntax: 
query II rowsort label-2964
SELECT + 78 + - - COUNT( DISTINCT - 11 ) * + MIN( - 39 ) AS col2, COALESCE ( SUM( ALL + 92 ), - 26 ) * + 75 + - COUNT( * ) * + 86 AS col2
----
39
6814

skipif mysql # not compatible
query II rowsort label-2964
SELECT + 78 + - - COUNT ( DISTINCT - 11 ) * + MIN ( - 39 ) AS col2, COALESCE ( SUM ( ALL + 92 ), - 26 ) * + 75 + - COUNT ( * ) * + 86 AS col2
----
39
6814

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2966
SELECT - CAST( + 75 AS SIGNED ) + - SUM( 4 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-2966
SELECT - CAST ( + 75 AS INTEGER ) + - SUM ( 4 ) AS col2
----
-79

query I rowsort
SELECT DISTINCT 66 + 93 * - 99 AS col1
----
-9141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2968
SELECT - COALESCE ( + 58, + ( + SUM( - - CAST( NULL AS SIGNED ) ) ) * - + 26 + - 60, + + 17 + + 29 + - - 71 + - 76 )
----
-58

skipif mysql # not compatible
query I rowsort label-2968
SELECT - COALESCE ( + 58, + ( + SUM ( - - CAST ( NULL AS INTEGER ) ) ) * - + 26 + - 60, + + 17 + + 29 + - - 71 + - 76 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT DISTINCT - 67 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT - 67 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL + CASE + AVG ( ALL 67 ) WHEN + - 71 * 92 * + 3 + - - MAX( DISTINCT ( + 74 ) ) THEN NULL ELSE + 86 END
----
86

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL + CASE + AVG ( ALL 67 ) WHEN + - 71 * 92 * + 3 + - - MAX ( DISTINCT ( + 74 ) ) THEN NULL ELSE + 86 END
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT + 12 DIV - + 3 + + 44 DIV + 97 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2971
SELECT + 12 / - + 3 + + 44 / + 97 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT ALL 89 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL 89 / + 47
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT + COUNT( * ) + ( + - NULLIF ( - 67, 24 + - - 93 * COUNT( * ) * - 86 + + - 30 ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2973
SELECT + COUNT ( * ) + ( + - NULLIF ( - 67, 24 + - - 93 * COUNT ( * ) * - 86 + + - 30 ) ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2974
SELECT ALL + CASE - 9 WHEN CAST( 97 AS SIGNED ) * COUNT( * ) THEN + + 93 END * ( - CAST( + 36 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL + CASE - 9 WHEN CAST ( 97 AS INTEGER ) * COUNT ( * ) THEN + + 93 END * ( - CAST ( + 36 AS INTEGER ) )
----
NULL

query I rowsort
SELECT ( ( NULLIF ( - 19, 23 / + 96 * - 74 + - 77 ) ) ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2976
SELECT - CASE + COUNT( * ) WHEN + + 49 THEN 95 WHEN - - ( + 20 ) - - 60 THEN NULL ELSE NULL END * CAST( NULL AS DECIMAL ) * + ( - 41 ) + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT - CASE + COUNT ( * ) WHEN + + 49 THEN 95 WHEN - - ( + 20 ) - - 60 THEN NULL ELSE NULL END * CAST ( NULL AS REAL ) * + ( - 41 ) + - 24
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2977
SELECT - 46 + - 4 + + + 41, - 41 + 77 + - MIN( - + 55 ) - + 72 col0
----
-9
19

skipif mysql # not compatible
query II rowsort label-2977
SELECT - 46 + - 4 + + + 41, - 41 + 77 + - MIN ( - + 55 ) - + 72 col0
----
-9
19

query I rowsort
SELECT + 58 * 32
----
1856

query I rowsort
SELECT ALL - 91 * 81 AS col0
----
-7371

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT COALESCE ( 89, + 77 + + + ( - 94 ), - + COALESCE ( - 72, - CASE 82 WHEN 46 THEN NULL WHEN - 95 THEN - 55 * 59 WHEN - ( - 96 ) * COUNT( * ) - 23 THEN NULL END + 13, 1 - - MIN( DISTINCT - 84 ) * - 84 ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-2980
SELECT COALESCE ( 89, + 77 + + + ( - 94 ), - + COALESCE ( - 72, - CASE 82 WHEN 46 THEN NULL WHEN - 95 THEN - 55 * 59 WHEN - ( - 96 ) * COUNT ( * ) - 23 THEN NULL END + 13, 1 - - MIN ( DISTINCT - 84 ) * - 84 ) ) AS col0
----
89

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2982
SELECT - 71 * 99 + - COUNT( * ) * - + ( + + 70 ) AS col0, 12
----
-6959
12

skipif mysql # not compatible
query II rowsort label-2982
SELECT - 71 * 99 + - COUNT ( * ) * - + ( + + 70 ) AS col0, 12
----
-6959
12

query I rowsort
SELECT - - 61 - 94 - - 74
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT - - MAX( + - 30 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-2984
SELECT - - MAX ( + - 30 ) col2
----
-30

query I rowsort
SELECT - + 86 * - 16 * - - 44 AS col1
----
60544

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT COUNT( + COALESCE ( 66, + 56 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2986
SELECT COUNT ( + COALESCE ( 66, + 56 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT + 16 DIV - - 44 * 4 * - + 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT + 16 / - - 44 * 4 * - + 5 AS col1
----
0

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

query I rowsort
SELECT - 48 * + - 0 - - ( + + 97 ) + + 89
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - MIN( DISTINCT + 93 ) * + - 26
----
2418

skipif mysql # not compatible
query I rowsort label-2990
SELECT - MIN ( DISTINCT + 93 ) * + - 26
----
2418

query I rowsort
SELECT ALL - + 27 * 63 AS col1
----
-1701

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL + CASE - ( + - 47 ) WHEN NULLIF ( + 70, - - NULLIF ( + COUNT( * ), - - ( + COUNT( * ) ) ) ) + ( 92 ) THEN NULL WHEN + 88 + - 91 * 6 THEN 38 + + COUNT( * ) ELSE NULL END + - 76 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL + CASE - ( + - 47 ) WHEN NULLIF ( + 70, - - NULLIF ( + COUNT ( * ), - - ( + COUNT ( * ) ) ) ) + ( 92 ) THEN NULL WHEN + 88 + - 91 * 6 THEN 38 + + COUNT ( * ) ELSE NULL END + - 76 * 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT + 43 - - 95 + + NULLIF ( - CASE + 44 WHEN + + CAST( + COUNT( * ) AS SIGNED ) THEN NULL WHEN - - MIN( DISTINCT CAST( NULL AS SIGNED ) ) THEN 18 * 63 ELSE NULL END, 95 / - 36 ) * + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT + 43 - - 95 + + NULLIF ( - CASE + 44 WHEN + + CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL WHEN - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN 18 * 63 ELSE NULL END, 95 / - 36 ) * + 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT - ( 64 ) col0, - CASE - + 75 WHEN + 47 THEN 49 / + + 88 WHEN 38 + + + COUNT( * ) THEN NULL ELSE NULL END + + NULLIF ( 5, AVG ( ALL + 25 ) ) * ( - NULLIF ( 86, + 21 ) ) AS col1
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-2994
SELECT - ( 64 ) col0, - CASE - + 75 WHEN + 47 THEN 49 / + + 88 WHEN 38 + + + COUNT ( * ) THEN NULL ELSE NULL END + + NULLIF ( 5, AVG ( ALL + 25 ) ) * ( - NULLIF ( 86, + 21 ) ) AS col1
----
-64
NULL

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

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

query II rowsort
SELECT 47 AS col0, 70 + 53 AS col1
----
47
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2997
SELECT - CAST( - 71 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2997
SELECT - CAST ( - 71 AS INTEGER ) AS col2
----
71

query I rowsort
SELECT + 95 * + 97 * - 86 AS col0
----
-792490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2999
SELECT DISTINCT + 72 - - 43 * - MIN( + 13 ) DIV + COALESCE ( CASE NULLIF ( COUNT( 53 ), - COUNT( * ) ) WHEN - 7 THEN 56 * - 25 WHEN - 62 * - 36 THEN NULL END, - COUNT( * ), + AVG ( 58 ) + 17 * 9 )
----
631

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + 72 - - 43 * - MIN ( + 13 ) / + COALESCE ( CASE NULLIF ( COUNT ( 53 ), - COUNT ( * ) ) WHEN - 7 THEN 56 * - 25 WHEN - 62 * - 36 THEN NULL END, - COUNT ( * ), + AVG ( 58 ) + 17 * 9 )
----
631

query I rowsort
SELECT ALL 19 * - - 65 AS col2
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL MAX( ALL 63 ) - - - CASE AVG ( - 95 ) WHEN + SUM( - 93 ) + + 36 THEN - 6 * - 67 + + + 80 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL MAX ( ALL 63 ) - - - CASE AVG ( - 95 ) WHEN + SUM ( - 93 ) + + 36 THEN - 6 * - 67 + + + 80 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT + CAST( + 35 AS SIGNED ) + - + 80
----
-45

skipif mysql # not compatible
query I rowsort label-3002
SELECT + CAST ( + 35 AS INTEGER ) + - + 80
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT + MAX( 75 ) + - 68
----
7

skipif mysql # not compatible
query I rowsort label-3003
SELECT + MAX ( 75 ) + - 68
----
7

query I rowsort
SELECT ALL 71 * - - 35
----
2485

query I rowsort
SELECT + 77 * + 64 AS col2
----
4928

query I rowsort
SELECT + CASE + - 14 WHEN 30 + + 86 THEN - + 67 WHEN 81 / 18 THEN NULL WHEN 28 THEN NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3008
SELECT ALL + 59, - 55 DIV - + 92 AS col2
----
59
0

skipif mysql # not compatible
query II rowsort label-3008
SELECT ALL + 59, - 55 / - + 92 AS col2
----
59
0

query II rowsort
SELECT + NULLIF ( - - ( + 72 ), - ( 97 ) ) * + - 47 AS col2, NULLIF ( + 64, NULLIF ( 76, 47 - - 31 * 98 ) ) AS col2
----
-3384
64

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT ALL NULLIF ( - - 56, - - COALESCE ( 64, - 69 DIV 13 + + 88 * - 37 * + + 42 * + + 34 ) ) DIV - + ( 93 )
----
0

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL NULLIF ( - - 56, - - COALESCE ( 64, - 69 / 13 + + 88 * - 37 * + + 42 * + + 34 ) ) / - + ( 93 )
----
0

query I rowsort
SELECT - 38 * - - 93 * 82 + 51
----
-289737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT DISTINCT + ( - 92 ) * - 92 / + - ( + CASE - 34 WHEN - ( + ( + ( + + 1 ) ) ) THEN NULL WHEN + - 33 + + 67 THEN + 69 * + 96 END ) + SUM( 62 ) / - COALESCE ( + CAST( - 89 AS SIGNED ) / 3, 22 * 11, 52 * - 0 - + 67 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + ( - 92 ) * - 92 / + - ( + CASE - 34 WHEN - ( + ( + ( + + 1 ) ) ) THEN NULL WHEN + - 33 + + 67 THEN + 69 * + 96 END ) + SUM ( 62 ) / - COALESCE ( + CAST ( - 89 AS INTEGER ) / 3, 22 * 11, 52 * - 0 - + 67 ) col0
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 55, - 43 ) col2
----
-55

query I rowsort
SELECT ALL + + ( 43 ) * + 39
----
1677

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT ALL - 71 + - + 53 DIV 45 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL - 71 + - + 53 / 45 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - SUM( ( + + 26 ) ) * - 82 + - ( - 8 ) - + 81 * - 7
----
2707

skipif mysql # not compatible
query I rowsort label-3017
SELECT - SUM ( ( + + 26 ) ) * - 82 + - ( - 8 ) - + 81 * - 7
----
2707

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT - 97 * - 20 * - 63 * - MAX( DISTINCT 54 ) + - 32
----
6599848

skipif mysql # not compatible
query I rowsort label-3018
SELECT - 97 * - 20 * - 63 * - MAX ( DISTINCT 54 ) + - 32
----
6599848

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT + ( + 29 ) - + ( + NULLIF ( - - COUNT( * ), + ( COALESCE ( + - 5, 20 * 52 ) ) ) ) - - ( - 24 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3019
SELECT + ( + 29 ) - + ( + NULLIF ( - - COUNT ( * ), + ( COALESCE ( + - 5, 20 * 52 ) ) ) ) - - ( - 24 ) AS col2
----
4

query I rowsort
SELECT ALL 48 * + + 87
----
4176

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3021
SELECT - - 5 * 7 + + - ( + - 50 ) * CAST( + 46 AS SIGNED ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT - - 5 * 7 + + - ( + - 50 ) * CAST ( + 46 AS INTEGER ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT + 1 * COUNT( * ) + 28 + - COUNT( * ) + - 58 + + 13 * - - 37 * - 72 AS col2
----
-34662

skipif mysql # not compatible
query I rowsort label-3022
SELECT + 1 * COUNT ( * ) + 28 + - COUNT ( * ) + - 58 + + 13 * - - 37 * - 72 AS col2
----
-34662

query II rowsort
SELECT + 51, 97 AS col0
----
51
97

query I rowsort
SELECT + 35 * 79
----
2765

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL - - 5 + - ( - SUM( - 3 ) )
----
2

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL - - 5 + - ( - SUM ( - 3 ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT - 44 + + CAST( + - 25 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-3026
SELECT - 44 + + CAST ( + - 25 AS INTEGER )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT ALL + CASE + - CASE + COUNT( * ) WHEN + 10 THEN + + COALESCE ( + - 88, 88 * - COALESCE ( - + 88, + - CAST( + 32 AS SIGNED ) + 97 ), 4 * - COUNT( * ) ) WHEN 69 THEN NULL END WHEN 31 THEN MAX( DISTINCT + 19 ) END + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL + CASE + - CASE + COUNT ( * ) WHEN + 10 THEN + + COALESCE ( + - 88, 88 * - COALESCE ( - + 88, + - CAST ( + 32 AS INTEGER ) + 97 ), 4 * - COUNT ( * ) ) WHEN 69 THEN NULL END WHEN 31 THEN MAX ( DISTINCT + 19 ) END + 41
----
NULL

query I rowsort
SELECT 1 + 80 AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT DISTINCT + 27 + - 17 DIV + - SUM( ALL 61 ) * 66 col1
----
27

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT + 27 + - 17 / + - SUM ( ALL 61 ) * 66 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL - 64 + - 97 + - NULLIF ( - + COUNT( * ), + + 26 + 4 + - + 5 * 79 )
----
-160

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - 64 + - 97 + - NULLIF ( - + COUNT ( * ), + + 26 + 4 + - + 5 * 79 )
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT - - COUNT( DISTINCT 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3031
SELECT - - COUNT ( DISTINCT 23 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + + 79 + - 48 + + - 33 col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT + 38 DIV 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT + 38 / 40 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL + 3 / COUNT ( * ) * COUNT ( * ) + + - ( + 6 ) AS col0
----
-3

query II rowsort
SELECT DISTINCT 64, 16 * + 61 * + - 7 AS col0
----
64
-6832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT 98 + + CAST( 5 AS SIGNED ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-3036
SELECT 98 + + CAST ( 5 AS INTEGER ) AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT + SUM( 60 ) * - ( 35 )
----
-2100

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT + SUM ( 60 ) * - ( 35 )
----
-2100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3038
SELECT COUNT( * ) + - - 85 DIV COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-3038
SELECT COUNT ( * ) + - - 85 / COUNT ( * ) col0
----
86

query I rowsort
SELECT 79 * - 60
----
-4740

query I rowsort
SELECT ALL + 85 * 0
----
0

query I rowsort
SELECT 85 + + 31 - + + 94
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3042
SELECT 88 * + + MAX( DISTINCT 74 ) DIV - COUNT( 87 )
----
-6512

skipif mysql # not compatible
query I rowsort label-3042
SELECT 88 * + + MAX ( DISTINCT 74 ) / - COUNT ( 87 )
----
-6512

query I rowsort
SELECT DISTINCT + 67 * + 5
----
335

query I rowsort
SELECT ALL - 13 * + - 56 AS col0
----
728

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

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

query II rowsort
SELECT 14 * - 30, + 38 col2
----
-420
38

query I rowsort
SELECT 20 + - 37 + 35 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3048
SELECT ( - - 19 ) + SUM( - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT ( - - 19 ) + SUM ( - - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 4 * 89 * + - 46 * - - 1 AS col1
----
-16376

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3051
SELECT 51 DIV + + COALESCE ( - - 82, - MAX( - 28 ) DIV - 10, + 97 + - + 33 ) + - 74
----
-74

skipif mysql # not compatible
query I rowsort label-3051
SELECT 51 / + + COALESCE ( - - 82, - MAX ( - 28 ) / - 10, + 97 + - + 33 ) + - 74
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3052
SELECT - ( + + 4 ) * - + 88 DIV + COUNT( * ) - 17
----
335

skipif mysql # not compatible
query I rowsort label-3052
SELECT - ( + + 4 ) * - + 88 / + COUNT ( * ) - 17
----
335

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL CASE - ( + + COUNT( * ) ) WHEN 11 THEN 91 / COUNT( * ) + + 89 + COUNT( * ) + - - ( - 68 ) ELSE NULL END * - 41 / - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL CASE - ( + + COUNT ( * ) ) WHEN 11 THEN 91 / COUNT ( * ) + + 89 + COUNT ( * ) + - - ( - 68 ) ELSE NULL END * - 41 / - 45 AS col1
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-3055
SELECT + - MIN ( 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + NULLIF ( + 30, - + AVG ( + 66 ) - - - 85 * + + COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-3056
SELECT + NULLIF ( + 30, - + AVG ( + 66 ) - - - 85 * + + COUNT ( * ) )
----
30

query I rowsort
SELECT - 93 * 78 * 64 * - 70 + 98 - 27 AS col2
----
32497991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3058
SELECT + 49 * COUNT( * ) DIV - 76 + + 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3058
SELECT + 49 * COUNT ( * ) / - 76 + + 45 AS col2
----
45

query I rowsort
SELECT DISTINCT + 92 + 20 col2
----
112

query II rowsort
SELECT + 29 * + + 68, 45 AS col1
----
1972
45

query II rowsort
SELECT ALL - - ( + 16 ), 54 AS col2
----
16
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT 18 * - 68 - COUNT( * ) + - 14 + - + 26 * 37
----
-2201

skipif mysql # not compatible
query I rowsort label-3063
SELECT 18 * - 68 - COUNT ( * ) + - 14 + - + 26 * 37
----
-2201

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT 95 + - + NULLIF ( 55, - 42 + COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-3064
SELECT 95 + - + NULLIF ( 55, - 42 + COUNT ( * ) )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT DISTINCT 66 * - AVG ( + ( - CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT 66 * - AVG ( + ( - CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3066
SELECT DISTINCT + + MAX( ALL - 6 ) * - - ( - 8 ) DIV - 89 DIV - 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT + + MAX ( ALL - 6 ) * - - ( - 8 ) / - 89 / - 6 AS col2
----
0

query I rowsort
SELECT 79 - - 85
----
164

query I rowsort
SELECT DISTINCT 72 * - 80
----
-5760

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT DISTINCT + 36 DIV + + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT + 36 / + + 61 AS col0
----
0

query I rowsort
SELECT ( + 57 ) + + 15 AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT 14 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-3072
SELECT 14 / + 53
----
0

query I rowsort
SELECT 23 - 29
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT COUNT( * ) - 32
----
-31

skipif mysql # not compatible
query I rowsort label-3075
SELECT COUNT ( * ) - 32
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT 4 DIV + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT 4 / + 34 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL + 18 * - 11 * + COUNT( * ) AS col0
----
-198

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + 18 * - 11 * + COUNT ( * ) AS col0
----
-198

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

skipif mysql # not compatible
query II rowsort label-3078
SELECT ALL COUNT ( * ) col1, 48 col1
----
1
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT + COUNT( * ) + + COALESCE ( + 93, - 61 * - 42 + 64 * 8 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT + COUNT ( * ) + + COALESCE ( + 93, - 61 * - 42 + 64 * 8 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT - 70 + - COUNT( * ) * - 23 * CASE - 5 WHEN + 9 THEN NULL WHEN + 29 THEN NULL ELSE + 84 END
----
1862

skipif mysql # not compatible
query I rowsort label-3081
SELECT - 70 + - COUNT ( * ) * - 23 * CASE - 5 WHEN + 9 THEN NULL WHEN + 29 THEN NULL ELSE + 84 END
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL COALESCE ( ( + SUM( ALL + ( - ( + 30 ) ) ) ), - 77, - + 25 )
----
-30

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL COALESCE ( ( + SUM ( ALL + ( - ( + 30 ) ) ) ), - 77, - + 25 )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3083
SELECT - 88 DIV + 77
----
-1

skipif mysql # not compatible
query I rowsort label-3083
SELECT - 88 / + 77
----
-1

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

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

query I rowsort
SELECT - 64 * - 81
----
5184

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3087
SELECT + COUNT( * ) DIV 12 * + 79 + MAX( + - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-3087
SELECT + COUNT ( * ) / 12 * + 79 + MAX ( + - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT + 18 * + 14 / + 60 + + CASE - 62 WHEN + - 4 THEN NULL WHEN 40 THEN + 90 / + 68 WHEN - - COUNT( DISTINCT + - 11 ) THEN NULL ELSE NULL END + + 65 + - + 25 + + 74 / - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + 18 * + 14 / + 60 + + CASE - 62 WHEN + - 4 THEN NULL WHEN 40 THEN + 90 / + 68 WHEN - - COUNT ( DISTINCT + - 11 ) THEN NULL ELSE NULL END + + 65 + - + 25 + + 74 / - 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3089
SELECT ALL 13 * + 75 * - + 0 + - + 45 - + CASE CAST( NULL AS DECIMAL ) WHEN 86 THEN - CASE + MIN( ( - 30 ) ) WHEN - 97 THEN + + 85 * - 25 ELSE NULL END * + ( - 49 * - MIN( ALL 51 ) ) END * 39 / - 94 + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL 13 * + 75 * - + 0 + - + 45 - + CASE CAST ( NULL AS REAL ) WHEN 86 THEN - CASE + MIN ( ( - 30 ) ) WHEN - 97 THEN + + 85 * - 25 ELSE NULL END * + ( - 49 * - MIN ( ALL 51 ) ) END * 39 / - 94 + 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT 48 AS col2, - COUNT( * ) * + NULLIF ( 99, + + COUNT( * ) * - + 3 ) AS col0
----
48
-99

skipif mysql # not compatible
query II rowsort label-3090
SELECT 48 AS col2, - COUNT ( * ) * + NULLIF ( 99, + + COUNT ( * ) * - + 3 ) AS col0
----
48
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT ALL COUNT( * ) * + 64 + - - 3 + - CAST( + 11 AS SIGNED ) + - 59
----
-3

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL COUNT ( * ) * + 64 + - - 3 + - CAST ( + 11 AS INTEGER ) + - 59
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3092
SELECT - - 82 + - + CASE COUNT( * ) WHEN + 59 * CAST( NULL AS SIGNED ) THEN 57 + - + 60 WHEN COUNT( DISTINCT + 73 ) THEN - - 6 * - + 74 DIV - - COALESCE ( - + COUNT( - COALESCE ( + 33, - 31, + 89 - 49 ) ), 48 ) + + 96 END AS col0
----
-458

skipif mysql # not compatible
query I rowsort label-3092
SELECT - - 82 + - + CASE COUNT ( * ) WHEN + 59 * CAST ( NULL AS INTEGER ) THEN 57 + - + 60 WHEN COUNT ( DISTINCT + 73 ) THEN - - 6 * - + 74 / - - COALESCE ( - + COUNT ( - COALESCE ( + 33, - 31, + 89 - 49 ) ), 48 ) + + 96 END AS col0
----
-458

onlyif mysql # aggregate syntax: 
query II rowsort label-3093
SELECT ALL + 51 AS col0, + 65 * + + 58 + COUNT( * ) * 65
----
51
3835

skipif mysql # not compatible
query II rowsort label-3093
SELECT ALL + 51 AS col0, + 65 * + + 58 + COUNT ( * ) * 65
----
51
3835

query II rowsort
SELECT ALL + 41 AS col1, 93
----
41
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT COUNT( * ) * + 21 + 49 + - 67
----
3

skipif mysql # not compatible
query I rowsort label-3095
SELECT COUNT ( * ) * + 21 + 49 + - 67
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3096
SELECT ALL + 46 * 0 + - + 86 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL + 46 * 0 + - + 86 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 71 * ( - + 63 ) + 82 + + 37
----
-4354

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3099
SELECT ALL + 20, NULLIF ( + COUNT( * ), 50 ) DIV + 60 AS col2
----
20
0

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL + 20, NULLIF ( + COUNT ( * ), 50 ) / + 60 AS col2
----
20
0

query I rowsort
SELECT 72 * + 40 + - 36 - + 81
----
2763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3101
SELECT + + CASE 72 WHEN 57 + - + 19 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 71 / - - 55 + + 98 + - 70 + CAST( - MIN( - 85 ) AS DECIMAL ) + - + 82 * 24 * 30 THEN NULL ELSE + CAST( NULL AS SIGNED ) * + ( + 29 * + 33 ) + ( 59 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT + + CASE 72 WHEN 57 + - + 19 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 71 / - - 55 + + 98 + - 70 + CAST ( - MIN ( - 85 ) AS REAL ) + - + 82 * 24 * 30 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * + ( + 29 * + 33 ) + ( 59 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT + + COUNT( * ) + - COALESCE ( + 15, + 19 + 17 * 26 + - - NULLIF ( - ( - 66 ), + COALESCE ( - 80, 84, 72 - + 81 ) - 94 * - 54 ) ) + COUNT( * ) * 66
----
52

skipif mysql # not compatible
query I rowsort label-3102
SELECT + + COUNT ( * ) + - COALESCE ( + 15, + 19 + 17 * 26 + - - NULLIF ( - ( - 66 ), + COALESCE ( - 80, 84, 72 - + 81 ) - 94 * - 54 ) ) + COUNT ( * ) * 66
----
52

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3104
SELECT + 84 + - - 53 + - - 33 DIV - SUM( CAST( - 83 AS SIGNED ) )
----
137

skipif mysql # not compatible
query I rowsort label-3104
SELECT + 84 + - - 53 + - - 33 / - SUM ( CAST ( - 83 AS INTEGER ) )
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3105
SELECT ALL 96 DIV MAX( - 89 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL 96 / MAX ( - 89 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3106
SELECT + 1 * - 96 AS col2, + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED )
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-3106
SELECT + 1 * - 96 AS col2, + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER )
----
-96
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3107
SELECT DISTINCT 25 DIV - 66 AS col2, - COALESCE ( 71, + - MAX( + 3 ) ) DIV CASE 70 WHEN + - 13 THEN + 68 * + 28 - + - 91 * + CAST( 15 AS SIGNED ) WHEN + MIN( 21 ) * - 68 + 83 THEN 60 * CASE AVG ( ( - 93 ) ) WHEN 59 THEN NULL WHEN - 80 + 53 THEN 57 END + COUNT( * ) END col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3107
SELECT DISTINCT 25 / - 66 AS col2, - COALESCE ( 71, + - MAX ( + 3 ) ) / CASE 70 WHEN + - 13 THEN + 68 * + 28 - + - 91 * + CAST ( 15 AS INTEGER ) WHEN + MIN ( 21 ) * - 68 + 83 THEN 60 * CASE AVG ( ( - 93 ) ) WHEN 59 THEN NULL WHEN - 80 + 53 THEN 57 END + COUNT ( * ) END col2
----
0
NULL

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

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

query I rowsort
SELECT ALL 60 * + 71 AS col0
----
4260

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - 30 + COUNT( * ) - COUNT( * ) * 63 * - + 86
----
5389

skipif mysql # not compatible
query I rowsort label-3110
SELECT - 30 + COUNT ( * ) - COUNT ( * ) * 63 * - + 86
----
5389

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

skipif mysql # not compatible
query I rowsort label-3111
SELECT + CAST ( NULL AS INTEGER ) * 78 * 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT ALL + ( 6 ) + + 77 - + CAST( 66 AS SIGNED ) * + 32 AS col2
----
-2029

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + ( 6 ) + + 77 - + CAST ( 66 AS INTEGER ) * + 32 AS col2
----
-2029

query I rowsort
SELECT + 12 + - 26
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT COALESCE ( 4, + COALESCE ( ( - + ( COUNT( * ) ) ), + - COUNT( * ) + 53 * 37, - + 59, + ( - NULLIF ( + 71, 81 ) ) - 64 ) ) + 8 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT COALESCE ( 4, + COALESCE ( ( - + ( COUNT ( * ) ) ), + - COUNT ( * ) + 53 * 37, - + 59, + ( - NULLIF ( + 71, 81 ) ) - 64 ) ) + 8 AS col0
----
12

query II rowsort
SELECT ALL COALESCE ( + 39, - 18, - 65 ) AS col1, - 29 AS col0
----
39
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT - 88 + - ( - 23 ) + COUNT( * ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-3116
SELECT - 88 + - ( - 23 ) + COUNT ( * ) col1
----
-64

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

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL ( + 75 ) + COUNT ( * ) AS col0
----
76

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

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT SUM ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT + 34 - COUNT( DISTINCT - 58 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3119
SELECT + 34 - COUNT ( DISTINCT - 58 ) AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3120
SELECT ALL COUNT( + + 74 ) col2, CASE - 58 WHEN - COALESCE ( + 11, + 22 - + - 38 * - COUNT( * ) ) THEN - 30 WHEN + 42 THEN - 22 + - 44 / - + CASE + 73 WHEN AVG ( 17 ) THEN NULL WHEN NULLIF ( - 49, + MIN( ALL - 3 ) ) THEN - MIN( ( NULLIF ( 40, 91 ) ) ) + 73 / + ( 59 ) END / 1 WHEN + CAST( - 67 AS SIGNED ) * ( 60 * 57 + + 38 / 68 ) THEN NULL ELSE NULL END * 33
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3120
SELECT ALL COUNT ( + + 74 ) col2, CASE - 58 WHEN - COALESCE ( + 11, + 22 - + - 38 * - COUNT ( * ) ) THEN - 30 WHEN + 42 THEN - 22 + - 44 / - + CASE + 73 WHEN AVG ( 17 ) THEN NULL WHEN NULLIF ( - 49, + MIN ( ALL - 3 ) ) THEN - MIN ( ( NULLIF ( 40, 91 ) ) ) + 73 / + ( 59 ) END / 1 WHEN + CAST ( - 67 AS INTEGER ) * ( 60 * 57 + + 38 / 68 ) THEN NULL ELSE NULL END * 33
----
1
NULL

query I rowsort
SELECT DISTINCT - 6 + - 86 col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - 16 * - NULLIF ( + COUNT( * ), - + MIN( + 46 ) ) * + 87 + 90 AS col0
----
1482

skipif mysql # not compatible
query I rowsort label-3122
SELECT - 16 * - NULLIF ( + COUNT ( * ), - + MIN ( + 46 ) ) * + 87 + 90 AS col0
----
1482

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

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

query I rowsort
SELECT ALL - 92 + - 38 + 5 * + 52
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL COALESCE ( - - 10, - + 8 * MAX( + + 75 ) )
----
10

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL COALESCE ( - - 10, - + 8 * MAX ( + + 75 ) )
----
10

query I rowsort
SELECT - + 53 * 17
----
-901

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

query I rowsort
SELECT + - 86 col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT + + 63 / CASE - 51 WHEN - + ( COUNT( * ) ) THEN - 22 WHEN - - 40 THEN - + 45 + + 79 * - + COUNT( * ) END + + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT + + 63 / CASE - 51 WHEN - + ( COUNT ( * ) ) THEN - 22 WHEN - - 40 THEN - + 45 + + 79 * - + COUNT ( * ) END + + 85 AS col1
----
NULL

query II rowsort
SELECT + ( + 68 ) AS col1, 91
----
68
91

query I rowsort
SELECT + + 21 + + 33 AS col2
----
54

query II rowsort
SELECT DISTINCT + + ( - + 68 ) col1, 69
----
-68
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT - + 52 * 51 * - SUM( 57 )
----
151164

skipif mysql # not compatible
query I rowsort label-3133
SELECT - + 52 * 51 * - SUM ( 57 )
----
151164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3134
SELECT DISTINCT CASE - 8 WHEN - + CASE - 65 WHEN - - COUNT( * ) THEN + - 84 * - 70 + + 80 + - SUM( - 28 ) * + 0 * 8 WHEN NULLIF ( + + 8, 60 ) - + 5 THEN 4 END THEN NULL WHEN 77 * + CASE + COALESCE ( - 46, ( COUNT( * ) ) * + 63 ) WHEN + CAST( + 27 AS SIGNED ) * 89 THEN 11 + + NULLIF ( 25, + 50 ) WHEN - NULLIF ( - 33, COUNT( * ) ) + + COALESCE ( 12, ( AVG ( - 90 ) ), - MAX( - 81 ) * + 20 ) THEN NULL END THEN NULL ELSE + 72 END * COALESCE ( COUNT( * ), COUNT( * ) + + CASE + 8 + + 24 WHEN 89 THEN 86 WHEN + AVG ( + 54 ) THEN NULL END ) - 50 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT CASE - 8 WHEN - + CASE - 65 WHEN - - COUNT ( * ) THEN + - 84 * - 70 + + 80 + - SUM ( - 28 ) * + 0 * 8 WHEN NULLIF ( + + 8, 60 ) - + 5 THEN 4 END THEN NULL WHEN 77 * + CASE + COALESCE ( - 46, ( COUNT ( * ) ) * + 63 ) WHEN + CAST ( + 27 AS INTEGER ) * 89 THEN 11 + + NULLIF ( 25, + 50 ) WHEN - NULLIF ( - 33, COUNT ( * ) ) + + COALESCE ( 12, ( AVG ( - 90 ) ), - MAX ( - 81 ) * + 20 ) THEN NULL END THEN NULL ELSE + 72 END * COALESCE ( COUNT ( * ), COUNT ( * ) + + CASE + 8 + + 24 WHEN 89 THEN 86 WHEN + AVG ( + 54 ) THEN NULL END ) - 50 AS col1
----
22

query I rowsort
SELECT DISTINCT 66 * 55
----
3630

onlyif mysql # aggregate syntax: 
query II rowsort label-3136
SELECT ALL + - SUM( - 10 ) AS col1, + 57 * + COUNT( * ) + - + ( - 48 ) AS col0
----
10
105

skipif mysql # not compatible
query II rowsort label-3136
SELECT ALL + - SUM ( - 10 ) AS col1, + 57 * + COUNT ( * ) + - + ( - 48 ) AS col0
----
10
105

query I rowsort
SELECT ALL 84 * - 22
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT DISTINCT - SUM( ALL 94 ) * - + 52 * + 96 AS col2
----
469248

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT - SUM ( ALL 94 ) * - + 52 * + 96 AS col2
----
469248

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

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

query I rowsort
SELECT ALL - 36 * - 37
----
1332

query I rowsort
SELECT - 25 + - 21 AS col1
----
-46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT - 42 DIV + 21 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3143
SELECT - 42 / + 21 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT - CASE + - 40 WHEN - 43 * + COUNT( * ) THEN CAST( NULL AS SIGNED ) * - - COALESCE ( + 30, + - 23 ) WHEN - 63 * 85 - + - 53 * + 58 + + 39 THEN - ( COUNT( - 58 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT - CASE + - 40 WHEN - 43 * + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * - - COALESCE ( + 30, + - 23 ) WHEN - 63 * 85 - + - 53 * + 58 + + 39 THEN - ( COUNT ( - 58 ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT ALL - COUNT( * ) + + 25 * + 85 col0, 72 * - 63 + - 34 - - 0 AS col0
----
2124
-4570

skipif mysql # not compatible
query II rowsort label-3145
SELECT ALL - COUNT ( * ) + + 25 * + 85 col0, 72 * - 63 + - 34 - - 0 AS col0
----
2124
-4570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3146
SELECT ALL COUNT( * ) DIV - + 13 * + 65 DIV + - MAX( - ( 56 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL COUNT ( * ) / - + 13 * + 65 / + - MAX ( - ( 56 ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3147
SELECT 20 DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-3147
SELECT 20 / - 47
----
0

query I rowsort
SELECT DISTINCT - 19 + NULLIF ( - - 4, 55 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ALL + CASE + - COUNT( * ) WHEN + 23 THEN + CASE + 81 WHEN - + 71 THEN NULL WHEN + + 13 THEN - 52 + - 38 * - 14 + 71 + + 51 * + SUM( - - 92 ) * + 83 * + 48 END WHEN 15 THEN COUNT( * ) END + - 45 * 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + CASE + - COUNT ( * ) WHEN + 23 THEN + CASE + 81 WHEN - + 71 THEN NULL WHEN + + 13 THEN - 52 + - 38 * - 14 + 71 + + 51 * + SUM ( - - 92 ) * + 83 * + 48 END WHEN 15 THEN COUNT ( * ) END + - 45 * 84 col2
----
NULL

query II rowsort
SELECT - 90, 3 AS col2
----
-90
3

query I rowsort
SELECT ALL 58 * - + CASE - 68 WHEN - + 12 * - 98 THEN NULL ELSE 79 - - 74 END AS col0
----
-8874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3152
SELECT ALL COUNT( ALL 32 ) DIV 20 DIV + 6 col1
----
0

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL COUNT ( ALL 32 ) / 20 / + 6 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3153
SELECT 10 DIV + - 73
----
0

skipif mysql # not compatible
query I rowsort label-3153
SELECT 10 / + - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT DISTINCT COALESCE ( - + 42, - COUNT( * ) * - ( + + 66 ) + 47, - 67 * - + 56 ) + - 17 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT COALESCE ( - + 42, - COUNT ( * ) * - ( + + 66 ) + 47, - 67 * - + 56 ) + - 17 AS col1
----
-59

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

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

query II rowsort
SELECT - 56 AS col0, 74
----
-56
74

query I rowsort
SELECT ALL 40 + - 41
----
-1

query I rowsort
SELECT ALL 99 + + 92
----
191

query I rowsort
SELECT DISTINCT - ( - - 54 ) AS col2
----
-54

query II rowsort
SELECT DISTINCT + 58, 78 AS col0
----
58
78

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

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

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

skipif mysql # not compatible
query I rowsort label-3162
SELECT - + COUNT ( DISTINCT - ( + + 42 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL + 60 - + NULLIF ( - 34, - 88 * 93 + + 8 + - COUNT( * ) / - 47 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL + 60 - + NULLIF ( - 34, - 88 * 93 + + 8 + - COUNT ( * ) / - 47 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT ALL 69 * CAST( - - COALESCE ( + 15, 54, + + 96 * - - 19 / + AVG ( - 81 ), + + 22 ) AS SIGNED )
----
1035

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL 69 * CAST ( - - COALESCE ( + 15, 54, + + 96 * - - 19 / + AVG ( - 81 ), + + 22 ) AS INTEGER )
----
1035

query I rowsort
SELECT ALL - 80 - + 41 * + 50 * - 0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT + SUM( + + 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3166
SELECT + SUM ( + + 85 ) AS col1
----
85

query I rowsort
SELECT + CASE - 31 WHEN + 11 THEN NULL WHEN + 19 THEN + 43 WHEN 13 THEN NULL END + - + 14
----
NULL

query I rowsort
SELECT + COALESCE ( 55, 49 )
----
55

query I rowsort
SELECT 14 * 50 + + 22 + + - 23 * + ( - 93 ) + + 61 AS col2
----
2922

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT 31 DIV + + 21 + + ( + 7 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3170
SELECT 31 / + + 21 + + ( + 7 ) AS col2
----
8

query I rowsort
SELECT ALL - + 54 - + + 52 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT + CASE 23 WHEN - COUNT( * ) - + + 73 THEN + 76 ELSE NULL END + + COUNT( * ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT + CASE 23 WHEN - COUNT ( * ) - + + 73 THEN + 76 ELSE NULL END + + COUNT ( * ) * 92
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 53 * + 29
----
-1537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT + - CAST( - ( 63 ) AS SIGNED ) * + 65 + - 25 + - + 97 AS col2
----
3973

skipif mysql # not compatible
query I rowsort label-3175
SELECT + - CAST ( - ( 63 ) AS INTEGER ) * + 65 + - 25 + - + 97 AS col2
----
3973

query I rowsort
SELECT ALL 99 * - 35 AS col1
----
-3465

query I rowsort
SELECT + 95 / + + 1 + + - CASE ( + 31 ) WHEN 29 THEN 63 WHEN - 51 THEN NULL END * + - 77 * + 30 * ( - 45 ) AS col1
----
NULL

query II rowsort
SELECT + + 47, - 72 col0
----
47
-72

query I rowsort
SELECT DISTINCT + 93 * - + 47
----
-4371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3180
SELECT CASE - COUNT( * ) WHEN - - CASE + + 54 WHEN 18 * + + CAST( + CASE + ( - - 87 ) WHEN + 22 THEN - - 69 WHEN - 74 THEN CAST( NULL AS SIGNED ) END AS DECIMAL ) + + 58 THEN + 45 END + + 47 THEN - 3 WHEN + 86 THEN NULL ELSE NULL END + - CAST( - 6 AS SIGNED ) / - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT CASE - COUNT ( * ) WHEN - - CASE + + 54 WHEN 18 * + + CAST ( + CASE + ( - - 87 ) WHEN + 22 THEN - - 69 WHEN - 74 THEN CAST ( NULL AS INTEGER ) END AS REAL ) + + 58 THEN + 45 END + + 47 THEN - 3 WHEN + 86 THEN NULL ELSE NULL END + - CAST ( - 6 AS INTEGER ) / - 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT 14 - + - 17 * - CAST( - - COUNT( ALL + + 56 ) AS SIGNED ) + 97
----
94

skipif mysql # not compatible
query I rowsort label-3181
SELECT 14 - + - 17 * - CAST ( - - COUNT ( ALL + + 56 ) AS INTEGER ) + 97
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT 17 DIV + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3182
SELECT 17 / + 55 AS col0
----
0

query I rowsort
SELECT 98 * 29
----
2842

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3184
SELECT ALL - 32 + 62 + + 93 DIV - - COUNT( * ) + - + 50 col1
----
73

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - 32 + 62 + + 93 / - - COUNT ( * ) + - + 50 col1
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT 23 + + 29 * + ( + 4 ) + - COUNT( * ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-3186
SELECT 23 + + 29 * + ( + 4 ) + - COUNT ( * ) AS col2
----
138

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

query I rowsort
SELECT - 49 * 89 + + 87
----
-4274

query I rowsort
SELECT ALL 59 + + - 26
----
33

query II rowsort
SELECT ALL 89 AS col2, 76 * + 99 * - 10 AS col1
----
89
-75240

query I rowsort
SELECT ALL - 6 + + 39 AS col2
----
33

query I rowsort
SELECT 13 * 13 AS col2
----
169

query II rowsort
SELECT 48 * - 73, 59 AS col1
----
-3504
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT 19 + + 83 + - COUNT( * ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-3194
SELECT 19 + + 83 + - COUNT ( * ) AS col1
----
101

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3195
SELECT DISTINCT - ( + 68 ) + CAST( + + 51 AS SIGNED ) AS col2, 17 DIV + 80
----
-17
0

skipif mysql # not compatible
query II rowsort label-3195
SELECT DISTINCT - ( + 68 ) + CAST ( + + 51 AS INTEGER ) AS col2, 17 / + 80
----
-17
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT COUNT( - 89 ) + + 48
----
49

skipif mysql # not compatible
query I rowsort label-3196
SELECT COUNT ( - 89 ) + + 48
----
49

query I rowsort
SELECT + 79 + - 38
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT 59 DIV - + 66 * + 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3198
SELECT 59 / - + 66 * + 10 AS col1
----
0

query I rowsort
SELECT DISTINCT 32 * 9 AS col0
----
288

query I rowsort
SELECT ALL COALESCE ( - 4, 1 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT ALL + CASE + - COUNT( * ) WHEN MAX( 96 ) THEN + 56 * + 94 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL + CASE + - COUNT ( * ) WHEN MAX ( 96 ) THEN + 56 * + 94 END AS col1
----
NULL

query I rowsort
SELECT - 59 * - 18
----
1062

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT 99 * + COUNT( * ) * - 13
----
-1287

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT 99 * + COUNT ( * ) * - 13
----
-1287

query I rowsort
SELECT 16 * + + 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3205
SELECT - COUNT( * ) + 2 - CASE 51 WHEN 6 THEN NULL WHEN + 89 * - + 76 + - 8 THEN + 49 * + 23 / + - 4 * + - 61 + + 65 + - + 5 + - 6 + + ( + 54 ) - 65 * + CASE WHEN NULL IN ( - CAST( NULL AS SIGNED ) ) THEN CAST( NULL AS DECIMAL ) ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT - COUNT ( * ) + 2 - CASE 51 WHEN 6 THEN NULL WHEN + 89 * - + 76 + - 8 THEN + 49 * + 23 / + - 4 * + - 61 + + 65 + - + 5 + - 6 + + ( + 54 ) - 65 * + CASE WHEN NULL IN ( - CAST ( NULL AS INTEGER ) ) THEN CAST ( NULL AS REAL ) ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3206
SELECT DISTINCT - 57 * - 39 AS col0, - MAX( - 71 ) + 62
----
2223
133

skipif mysql # not compatible
query II rowsort label-3206
SELECT DISTINCT - 57 * - 39 AS col0, - MAX ( - 71 ) + 62
----
2223
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3207
SELECT ALL NULLIF ( - ( - CAST( - AVG ( 5 ) AS SIGNED ) ), + - ( - 85 ) * COUNT( * ) - 60 - + - 52 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL NULLIF ( - ( - CAST ( - AVG ( 5 ) AS INTEGER ) ), + - ( - 85 ) * COUNT ( * ) - 60 - + - 52 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT DISTINCT - COUNT( * ) AS col2, 83 * 16
----
-1
1328

skipif mysql # not compatible
query II rowsort label-3208
SELECT DISTINCT - COUNT ( * ) AS col2, 83 * 16
----
-1
1328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3209
SELECT ALL - 98 AS col0, + CAST( + 49 AS SIGNED ) - + + SUM( ALL - CAST( 27 AS SIGNED ) )
----
-98
76

skipif mysql # not compatible
query II rowsort label-3209
SELECT ALL - 98 AS col0, + CAST ( + 49 AS INTEGER ) - + + SUM ( ALL - CAST ( 27 AS INTEGER ) )
----
-98
76

query II rowsort
SELECT - 78 col2, + 44 * 22 AS col0
----
-78
968

query I rowsort
SELECT + 36 * + + 3
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT - 75 * + - ( 76 ) + + MAX( + + 52 )
----
5752

skipif mysql # not compatible
query I rowsort label-3212
SELECT - 75 * + - ( 76 ) + + MAX ( + + 52 )
----
5752

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT - - 32 * + 74 + 94 + 0 + + 5 DIV - 3 AS col2
----
2461

skipif mysql # not compatible
query I rowsort label-3213
SELECT - - 32 * + 74 + 94 + 0 + + 5 / - 3 AS col2
----
2461

query II rowsort
SELECT - 7 * 63 * - 22, 22 - - ( + 52 ) col2
----
9702
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT + NULLIF ( - 30, + 17 * + NULLIF ( + CASE WHEN NOT + ( - CAST( NULL AS SIGNED ) ) IN ( - NULLIF ( + 42, 26 ), COALESCE ( + 71, - COALESCE ( - ( - 32 ), 97 ) + 0 ) ) THEN - 64 ELSE NULL END, - ( - CAST( NULL AS SIGNED ) ) ) + + COUNT( * ) / - 91 )
----
-30

skipif mysql # not compatible
query I rowsort label-3215
SELECT + NULLIF ( - 30, + 17 * + NULLIF ( + CASE WHEN NOT + ( - CAST ( NULL AS INTEGER ) ) IN ( - NULLIF ( + 42, 26 ), COALESCE ( + 71, - COALESCE ( - ( - 32 ), 97 ) + 0 ) ) THEN - 64 ELSE NULL END, - ( - CAST ( NULL AS INTEGER ) ) ) + + COUNT ( * ) / - 91 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3216
SELECT ALL + 85 * - COALESCE ( - 53, 46 * - - 88 ) * CASE - 54 WHEN - 46 + - COUNT( DISTINCT - 43 ) + - - CAST( NULL AS SIGNED ) / + - COUNT( * ) / + 49 THEN + COUNT( ALL + + 59 ) * - 63 * - 74 END - 22 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + 85 * - COALESCE ( - 53, 46 * - - 88 ) * CASE - 54 WHEN - 46 + - COUNT ( DISTINCT - 43 ) + - - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) / + 49 THEN + COUNT ( ALL + + 59 ) * - 63 * - 74 END - 22 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( - 4, + + 84 - - 70 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT + CASE + - 77 WHEN 59 + + MIN( ALL 14 ) THEN 18 WHEN 19 * + ( - - 38 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT + CASE + - 77 WHEN 59 + + MIN ( ALL 14 ) THEN 18 WHEN 19 * + ( - - 38 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( + + COALESCE ( - + 91, + 21 ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - MIN( DISTINCT + 90 ) * 63 - - 14
----
-5656

skipif mysql # not compatible
query I rowsort label-3220
SELECT - MIN ( DISTINCT + 90 ) * 63 - - 14
----
-5656

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3222
SELECT ALL ( NULLIF ( - - 15, - 46 + + + 18 ) ) AS col2, ( 62 ) * NULLIF ( + SUM( ALL - 31 ), + 44 ) + CAST( NULLIF ( 23, - 6 * + 47 + + + 51 + - 55 ) AS SIGNED ) + 27 AS col0
----
15
-1872

skipif mysql # not compatible
query II rowsort label-3222
SELECT ALL ( NULLIF ( - - 15, - 46 + + + 18 ) ) AS col2, ( 62 ) * NULLIF ( + SUM ( ALL - 31 ), + 44 ) + CAST ( NULLIF ( 23, - 6 * + 47 + + + 51 + - 55 ) AS INTEGER ) + 27 AS col0
----
15
-1872

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT - + ( + 17 ) + COUNT( * ), 44 col0
----
-16
44

skipif mysql # not compatible
query II rowsort label-3223
SELECT - + ( + 17 ) + COUNT ( * ), 44 col0
----
-16
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT - COALESCE ( - - 63, COALESCE ( - 96, - CASE 83 WHEN - 40 - + 25 THEN COUNT( * ) END ) ) + + - 1
----
-64

skipif mysql # not compatible
query I rowsort label-3224
SELECT - COALESCE ( - - 63, COALESCE ( - 96, - CASE 83 WHEN - 40 - + 25 THEN COUNT ( * ) END ) ) + + - 1
----
-64

query I rowsort
SELECT - 91 * + - 53 + ( - 7 ) - 83 * - - 92
----
-2820

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3226
SELECT - MAX( - + 38 ) AS col1, 73 DIV - 30 AS col1
----
38
-2

skipif mysql # not compatible
query II rowsort label-3226
SELECT - MAX ( - + 38 ) AS col1, 73 / - 30 AS col1
----
38
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3227
SELECT - COUNT( * ) + + 4 + - COUNT( * ) col0, COUNT( * ) + + + CAST( NULL AS SIGNED ) * - - AVG ( ALL - + 43 ) - + - 77
----
2
NULL

skipif mysql # not compatible
query II rowsort label-3227
SELECT - COUNT ( * ) + + 4 + - COUNT ( * ) col0, COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * - - AVG ( ALL - + 43 ) - + - 77
----
2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3228
SELECT ALL + COUNT( * ) * - 57 AS col0, + 39 AS col0
----
-57
39

skipif mysql # not compatible
query II rowsort label-3228
SELECT ALL + COUNT ( * ) * - 57 AS col0, + 39 AS col0
----
-57
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3229
SELECT - - NULLIF ( - 65, + - 97 + + CAST( NULL AS SIGNED ) ) * - 41 AS col2
----
2665

skipif mysql # not compatible
query I rowsort label-3229
SELECT - - NULLIF ( - 65, + - 97 + + CAST ( NULL AS INTEGER ) ) * - 41 AS col2
----
2665

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + - 8 * + - 37 * - COUNT( * ) col2
----
-296

skipif mysql # not compatible
query I rowsort label-3230
SELECT + - 8 * + - 37 * - COUNT ( * ) col2
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT - SUM( ALL 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3231
SELECT - SUM ( ALL 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT ALL + 59 * - 49 * COUNT( * ), - ( + 21 ) AS col1
----
-2891
-21

skipif mysql # not compatible
query II rowsort label-3232
SELECT ALL + 59 * - 49 * COUNT ( * ), - ( + 21 ) AS col1
----
-2891
-21

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

skipif mysql # not compatible
query I rowsort label-3233
SELECT + 29 * - ( + + COUNT ( * ) ) + COUNT ( * ) / + - 65
----
-29

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

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

query I rowsort
SELECT ( - NULLIF ( CASE + 80 WHEN - + 33 THEN + 38 END, + 64 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT ALL + 41 DIV + 21 + - + 87 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL + 41 / + 21 + - + 87 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL + MIN( DISTINCT + - 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + MIN ( DISTINCT + - 36 ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3238
SELECT - 4 DIV - + COUNT( * ) + + 66 - + 26 + - SUM( ALL - 57 ) * + 57 + - 10 * + CAST( + - 82 AS SIGNED ) * - + CAST( - - 59 AS SIGNED )
----
-45087

skipif mysql # not compatible
query I rowsort label-3238
SELECT - 4 / - + COUNT ( * ) + + 66 - + 26 + - SUM ( ALL - 57 ) * + 57 + - 10 * + CAST ( + - 82 AS INTEGER ) * - + CAST ( - - 59 AS INTEGER )
----
-45087

query II rowsort
SELECT ALL + 64 * - 92 + + 85 + - 38 AS col2, - 0 - 67 + 10
----
-5841
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT + 59 + - 30 + - - 16 - ( COALESCE ( - - ( + 40 ), + COUNT( * ) - - 13 * 35 ) ) * ( - - 43 ) * - COUNT( * )
----
1765

skipif mysql # not compatible
query I rowsort label-3240
SELECT + 59 + - 30 + - - 16 - ( COALESCE ( - - ( + 40 ), + COUNT ( * ) - - 13 * 35 ) ) * ( - - 43 ) * - COUNT ( * )
----
1765

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT + MAX( - + 64 ) * 31 + + + ( - MIN( - 91 ) ) * COUNT( * )
----
-1893

skipif mysql # not compatible
query I rowsort label-3241
SELECT + MAX ( - + 64 ) * 31 + + + ( - MIN ( - 91 ) ) * COUNT ( * )
----
-1893

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3242
SELECT + 24 + + 41 + + + NULLIF ( - 90, CAST( NULL AS DECIMAL ) ) + 50 * - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-3242
SELECT + 24 + + 41 + + + NULLIF ( - 90, CAST ( NULL AS REAL ) ) + 50 * - - COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT 5 * 10 + + COUNT( * ) + + ( CASE + 84 WHEN - NULLIF ( - 34, - SUM( + 77 ) ) + + - 55 THEN NULL ELSE 24 END ) * + 8
----
243

skipif mysql # not compatible
query I rowsort label-3243
SELECT 5 * 10 + + COUNT ( * ) + + ( CASE + 84 WHEN - NULLIF ( - 34, - SUM ( + 77 ) ) + + - 55 THEN NULL ELSE 24 END ) * + 8
----
243

query I rowsort
SELECT + 41 + 45 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT - NULLIF ( COALESCE ( + ( - 41 ), 83 * + 99 * + - 10 + - + ( + 46 ) ), + 23 ) + + 24 * + SUM( 11 ) + 84
----
389

skipif mysql # not compatible
query I rowsort label-3245
SELECT - NULLIF ( COALESCE ( + ( - 41 ), 83 * + 99 * + - 10 + - + ( + 46 ) ), + 23 ) + + 24 * + SUM ( 11 ) + 84
----
389

query I rowsort
SELECT + 29 * 98
----
2842

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT DISTINCT + 54 * 21 DIV - 51 - 21
----
-43

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT + 54 * 21 / - 51 - 21
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL + 43 * + - COUNT( * ) * SUM( DISTINCT + 57 ) AS col1
----
-2451

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + 43 * + - COUNT ( * ) * SUM ( DISTINCT + 57 ) AS col1
----
-2451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT COUNT( * ) * + 8 * + 38 + - CAST( NULL AS SIGNED ) + + + COALESCE ( 17, 91, + - 61 + 14 ) * + - 23 * + + 15 + - 45 * COUNT( - CAST( NULL AS SIGNED ) ) * - - 25 + + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT COUNT ( * ) * + 8 * + 38 + - CAST ( NULL AS INTEGER ) + + + COALESCE ( 17, 91, + - 61 + 14 ) * + - 23 * + + 15 + - 45 * COUNT ( - CAST ( NULL AS INTEGER ) ) * - - 25 + + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3250
SELECT ALL + COUNT( * ) AS col2, + 24 - + + NULLIF ( + 73, + 58 ) * + 90 * 82
----
1
-538716

skipif mysql # not compatible
query II rowsort label-3250
SELECT ALL + COUNT ( * ) AS col2, + 24 - + + NULLIF ( + 73, + 58 ) * + 90 * 82
----
1
-538716

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT - 52 DIV - - 22 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3252
SELECT - 52 / - - 22 AS col1
----
-2

query II rowsort
SELECT + + 93 + 81 + + 83, 30 - - - 40 AS col2
----
257
-10

query II rowsort
SELECT - 83 AS col2, 43
----
-83
43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT - - 54 + - 56 + + 68 - + 81 * - CAST( + 83 AS SIGNED ) AS col1
----
6789

skipif mysql # not compatible
query I rowsort label-3256
SELECT - - 54 + - 56 + + 68 - + 81 * - CAST ( + 83 AS INTEGER ) AS col1
----
6789

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3257
SELECT + + 43 DIV + + 55 + + - COUNT( * ) + 56 * - 26 AS col2
----
-1457

skipif mysql # not compatible
query I rowsort label-3257
SELECT + + 43 / + + 55 + + - COUNT ( * ) + 56 * - 26 AS col2
----
-1457

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT - + 38 DIV - - ( + NULLIF ( 95, - 6 ) ) * ( 17 )
----
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT - + 38 / - - ( + NULLIF ( 95, - 6 ) ) * ( 17 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3259
SELECT ALL - - 47 DIV - 72 * + 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - - 47 / - 72 * + 7 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT - 64 + - COALESCE ( CASE + 43 WHEN - 41 THEN NULL WHEN - + MAX( ALL 0 ) + - 32 * + ( + - 83 ) THEN + - 80 * MIN( ALL - 48 ) END, - - 68 ) AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-3261
SELECT - 64 + - COALESCE ( CASE + 43 WHEN - 41 THEN NULL WHEN - + MAX ( ALL 0 ) + - 32 * + ( + - 83 ) THEN + - 80 * MIN ( ALL - 48 ) END, - - 68 ) AS col2
----
-132

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT DISTINCT + - 17 + - 24 DIV - 49 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT + - 17 + - 24 / - 49 AS col1
----
-17

query I rowsort
SELECT - 91 * - 64
----
5824

query I rowsort
SELECT + + 91 * + - 82
----
-7462

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT - - 11 + + + 81 + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-3266
SELECT - - 11 + + + 81 + COUNT ( * )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3267
SELECT DISTINCT - COUNT( * ) + 93 + - + 49 * COUNT( * ) DIV 92
----
92

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT - COUNT ( * ) + 93 + - + 49 * COUNT ( * ) / 92
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT ALL + + MAX( 96 ) * - 33 col2, 91 + + 9 AS col1
----
-3168
100

skipif mysql # not compatible
query II rowsort label-3268
SELECT ALL + + MAX ( 96 ) * - 33 col2, 91 + + 9 AS col1
----
-3168
100

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT + 57 DIV 25 + 56
----
58

skipif mysql # not compatible
query I rowsort label-3269
SELECT + 57 / 25 + 56
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ( - + COUNT( * ) ) + - MAX( - 77 ) + - 47 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3270
SELECT ( - + COUNT ( * ) ) + - MAX ( - 77 ) + - 47 AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3271
SELECT CAST( - 60 AS SIGNED ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3271
SELECT CAST ( - 60 AS INTEGER ) AS col2
----
-60

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

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

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

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL ( - COUNT ( * ) ) + - 29
----
-30

query I rowsort
SELECT 39 * - 41 AS col2
----
-1599

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT ALL 6 DIV - 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL 6 / - 25 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT 29 DIV - ( - NULLIF ( ( + 14 ), - - 73 ) ) col1
----
2

skipif mysql # not compatible
query I rowsort label-3276
SELECT 29 / - ( - NULLIF ( ( + 14 ), - - 73 ) ) col1
----
2

query I rowsort
SELECT DISTINCT 41 * CASE - - 56 WHEN - 24 THEN + + 60 * 84 - - 42 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 0 * + 31
----
0

query I rowsort
SELECT - 12 * - ( - 99 ) - + 26 AS col0
----
-1214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3280
SELECT ALL - CAST( + - NULLIF ( 79, 29 ) AS SIGNED ) col0
----
79

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL - CAST ( + - NULLIF ( 79, 29 ) AS INTEGER ) col0
----
79

query I rowsort
SELECT DISTINCT 35 * + + 16
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT + COUNT( DISTINCT + 63 ) * - 88 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT + COUNT ( DISTINCT + 63 ) * - 88 AS col0
----
-88

query I rowsort
SELECT ( - 55 ) * 52 AS col1
----
-2860

query I rowsort
SELECT 48 + - 67
----
-19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3285
SELECT DISTINCT 65 + 62 + - - ( NULLIF ( + + CAST( NULL AS DECIMAL ), + 7 ) ) + 99 * 73 / - 95 * + 16 + - + COALESCE ( - 68, - AVG ( ALL CAST( + 26 AS SIGNED ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT 65 + 62 + - - ( NULLIF ( + + CAST ( NULL AS REAL ), + 7 ) ) + 99 * 73 / - 95 * + 16 + - + COALESCE ( - 68, - AVG ( ALL CAST ( + 26 AS INTEGER ) ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT + 49 * COUNT( * ) * + - 94 + - + 24 + + + 6 col0
----
-4624

skipif mysql # not compatible
query I rowsort label-3286
SELECT + 49 * COUNT ( * ) * + - 94 + - + 24 + + + 6 col0
----
-4624

query I rowsort
SELECT DISTINCT + 59 + - 53
----
6

query I rowsort
SELECT DISTINCT + 1 + - 89 AS col0
----
-88

query I rowsort
SELECT ALL - - 44 * ( - 98 )
----
-4312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT DISTINCT + 79 + + - 79 * + - 65 + - CAST( AVG ( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) - + 49 * - COUNT( * ) / + 20 * + 18 * + 68 * 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT + 79 + + - 79 * + - 65 + - CAST ( AVG ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) - + 49 * - COUNT ( * ) / + 20 * + 18 * + 68 * 8 AS col2
----
NULL

query I rowsort
SELECT ALL 49 + 31 * 84 AS col2
----
2653

onlyif mysql # aggregate syntax: 
query II rowsort label-3292
SELECT 93 + + COUNT( * ), 47 col1
----
94
47

skipif mysql # not compatible
query II rowsort label-3292
SELECT 93 + + COUNT ( * ), 47 col1
----
94
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT MIN( + - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-3293
SELECT MIN ( + - 7 )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT ( - 94 ) + + - 6 + + 4 + - 81 * 97 + 92 DIV + 31 col0
----
-7951

skipif mysql # not compatible
query I rowsort label-3294
SELECT ( - 94 ) + + - 6 + + 4 + - 81 * 97 + 92 / + 31 col0
----
-7951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3295
SELECT 83 * COUNT( * ) * - COUNT( * ) + - + CAST( NULL AS SIGNED ) * + 55 * 39 - - 49 + 77 - - - 61 + 39 - + 96 * 97 * 69 + - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT 83 * COUNT ( * ) * - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * + 55 * 39 - - 49 + 77 - - - 61 + 39 - + 96 * 97 * 69 + - 86 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3296
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) AS col1, + 54 AS col1
----
NULL
54

skipif mysql # not compatible
query II rowsort label-3296
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) AS col1, + 54 AS col1
----
NULL
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT 14 DIV - 8
----
-1

skipif mysql # not compatible
query I rowsort label-3297
SELECT 14 / - 8
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3298
SELECT ALL + 85 + + - CAST( NULL AS SIGNED ) - + 1 + + 75 * 36 / - 20 * + - 18 * - 87 * + + CAST( - 53 AS SIGNED ), 10 + - + 8 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-3298
SELECT ALL + 85 + + - CAST ( NULL AS INTEGER ) - + 1 + + 75 * 36 / - 20 * + - 18 * - 87 * + + CAST ( - 53 AS INTEGER ), 10 + - + 8 AS col1
----
NULL
2

query I rowsort
SELECT ALL - 27 + - 11 + - - 74 * 77 + 69 * - 77 + - + ( + 46 ) * - - 38 * 67 * + 92
----
-10774325

query I rowsort
SELECT - 82 + 45 - + + ( - 53 ) * - + 55 * 29 AS col1
----
-84572

query I rowsort
SELECT DISTINCT - 60 * 62
----
-3720

query I rowsort
SELECT 42 * ( - 72 ) AS col0
----
-3024

query I rowsort
SELECT 13 + - + ( 5 )
----
8

query II rowsort
SELECT + 68 AS col2, 86 * 92 AS col1
----
68
7912

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3305
SELECT 32 * - CAST( - + 59 AS SIGNED ) AS col2, - 18
----
1888
-18

skipif mysql # not compatible
query II rowsort label-3305
SELECT 32 * - CAST ( - + 59 AS INTEGER ) AS col2, - 18
----
1888
-18

query I rowsort
SELECT ALL - 42 * + 26
----
-1092

query I rowsort
SELECT ALL - 70 * + 48 * 25 AS col2
----
-84000

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL - CASE - 34 WHEN COUNT( * ) THEN - - 36 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - CASE - 34 WHEN COUNT ( * ) THEN - - 36 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3309
SELECT - COUNT( * ) * COUNT( * ) + - COUNT( * ) * 63 + + COUNT( * ) col2, - 76 DIV + - ( 5 ) + + 86 AS col0
----
-63
101

skipif mysql # not compatible
query II rowsort label-3309
SELECT - COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) * 63 + + COUNT ( * ) col2, - 76 / + - ( 5 ) + + 86 AS col0
----
-63
101

query I rowsort
SELECT DISTINCT - ( + + 56 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT ALL - 93 AS col2, COUNT( * )
----
-93
1

skipif mysql # not compatible
query II rowsort label-3311
SELECT ALL - 93 AS col2, COUNT ( * )
----
-93
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT 64 DIV + 14 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3312
SELECT 64 / + 14 AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT 77 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-3313
SELECT 77 / 81
----
0

query I rowsort
SELECT 48 * + ( + + 94 )
----
4512

query I rowsort
SELECT 83 + - 88
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3316
SELECT 54 DIV + ( - ( + MAX( - 24 ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-3316
SELECT 54 / + ( - ( + MAX ( - 24 ) ) )
----
2

query I rowsort
SELECT DISTINCT + 98 + + 12
----
110

query II rowsort
SELECT + 5 AS col0, - 79 - 6
----
5
-85

query I rowsort
SELECT 99 * + 85
----
8415

query I rowsort
SELECT ALL 54 + + 77
----
131

query I rowsort
SELECT DISTINCT - 74 * 4 * - 90 * + 92
----
2450880

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3322
SELECT ALL - COALESCE ( 89, + + COALESCE ( + 0, + 50, - 85 - 88 DIV 40 ) ) * - ( + 78 ) * - + CAST( + - 95 AS SIGNED ) - 0 DIV - + 70
----
659490

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL - COALESCE ( 89, + + COALESCE ( + 0, + 50, - 85 - 88 / 40 ) ) * - ( + 78 ) * - + CAST ( + - 95 AS INTEGER ) - 0 / - + 70
----
659490

query I rowsort
SELECT + 46 * + 44
----
2024

query I rowsort
SELECT ALL + 71 + - - 77 AS col1
----
148

query I rowsort
SELECT + ( + 56 ) * + + ( ( - 85 ) ) col1
----
-4760

query I rowsort
SELECT + - 42 * - 1
----
42

query I rowsort
SELECT + 0 + + + 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL ( - CASE - 35 WHEN 35 * + + SUM( ALL 6 ) + + - 91 * - 28 * + 37 THEN - 75 END ) - + - 14 + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL ( - CASE - 35 WHEN 35 * + + SUM ( ALL 6 ) + + - 91 * - 28 * + 37 THEN - 75 END ) - + - 14 + 61
----
NULL

query I rowsort
SELECT ALL + 64 * + 7
----
448

query I rowsort
SELECT + + 59 + - 89 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL + MIN( ALL + 69 ) - - 17 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL + MIN ( ALL + 69 ) - - 17 AS col1
----
86

query I rowsort
SELECT + 25 * + 10
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL NULLIF ( 13, 89 + + + SUM( ALL + + 92 ) ) * + + 85 * 19 * + + 25 AS col1
----
524875

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL NULLIF ( 13, 89 + + + SUM ( ALL + + 92 ) ) * + + 85 * 19 * + + 25 AS col1
----
524875

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT - COUNT( * ) + + 4 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3334
SELECT - COUNT ( * ) + + 4 AS col2
----
3

query I rowsort
SELECT - 1 * 21
----
-21

query I rowsort
SELECT - 19 + + - 54
----
-73

query I rowsort
SELECT + 65 * + 57
----
3705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3338
SELECT ALL 71 * - - COALESCE ( - - 69, 57 * 15 DIV 18 * + - COUNT( * ), 83 ) * 13 + 99
----
63786

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL 71 * - - COALESCE ( - - 69, 57 * 15 / 18 * + - COUNT ( * ), 83 ) * 13 + 99
----
63786

query II rowsort
SELECT DISTINCT 75 AS col0, - NULLIF ( - 93, ( - 98 ) )
----
75
93

query I rowsort
SELECT ALL + COALESCE ( + 98, 64 ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT ( - NULLIF ( + 50, - - 58 / + + COUNT( * ) + - - ( - COUNT( * ) ) / 3 * + COALESCE ( + - CAST( NULL AS SIGNED ), + NULLIF ( - ( + MAX( ALL - ( - 7 ) ) ), - COALESCE ( 80, + 24 ) + + MIN( 68 ) + - 93 ) - COUNT( * ) ) ) )
----
-50

skipif mysql # not compatible
query I rowsort label-3341
SELECT ( - NULLIF ( + 50, - - 58 / + + COUNT ( * ) + - - ( - COUNT ( * ) ) / 3 * + COALESCE ( + - CAST ( NULL AS INTEGER ), + NULLIF ( - ( + MAX ( ALL - ( - 7 ) ) ), - COALESCE ( 80, + 24 ) + + MIN ( 68 ) + - 93 ) - COUNT ( * ) ) ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL + SUM( 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL + SUM ( 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT DISTINCT + 96, SUM( DISTINCT - 27 ) * - 20 * 0 * + 23 AS col1
----
96
0

skipif mysql # not compatible
query II rowsort label-3343
SELECT DISTINCT + 96, SUM ( DISTINCT - 27 ) * - 20 * 0 * + 23 AS col1
----
96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT + NULLIF ( + + CAST( NULL AS SIGNED ), - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT + NULLIF ( + + CAST ( NULL AS INTEGER ), - 55 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3345
SELECT + 89 AS col2, CAST( NULL AS SIGNED ) * + 64 AS col2
----
89
NULL

skipif mysql # not compatible
query II rowsort label-3345
SELECT + 89 AS col2, CAST ( NULL AS INTEGER ) * + 64 AS col2
----
89
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT + 99 * - - 45 * CAST( - 98 AS SIGNED ) AS col1
----
-436590

skipif mysql # not compatible
query I rowsort label-3346
SELECT + 99 * - - 45 * CAST ( - 98 AS INTEGER ) AS col1
----
-436590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3347
SELECT ALL 47 * - SUM( ALL + 36 ) + - COUNT( * ) DIV COALESCE ( 39, + ( COUNT( * ) ), - 0 - - MIN( - 8 ) + - 9 * + 63 ) - - + 27
----
-1665

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL 47 * - SUM ( ALL + 36 ) + - COUNT ( * ) / COALESCE ( 39, + ( COUNT ( * ) ), - 0 - - MIN ( - 8 ) + - 9 * + 63 ) - - + 27
----
-1665

query I rowsort
SELECT NULLIF ( + 28, 0 ) AS col0
----
28

query I rowsort
SELECT ALL ( - + 27 ) * 32 + + + 35 * + 63
----
1341

query II rowsort
SELECT DISTINCT + 44, + 24 col2
----
44
24

query I rowsort
SELECT DISTINCT + 98 * + 51 + 36 - 55 * - 30 AS col2
----
6684

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL + CASE + SUM( + 34 ) WHEN + - 58 THEN CASE - 40 WHEN 99 - + COALESCE ( + 47, - + 32 * + 74 ) THEN NULL WHEN - - 48 THEN + 57 + ( + NULLIF ( - COUNT( * ), + 79 * - 95 * 97 + 42 * - MIN( ALL + 98 ) ) ) * - SUM( ALL 85 * 13 ) END WHEN - ( + 30 ) * + ( - 54 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL + CASE + SUM ( + 34 ) WHEN + - 58 THEN CASE - 40 WHEN 99 - + COALESCE ( + 47, - + 32 * + 74 ) THEN NULL WHEN - - 48 THEN + 57 + ( + NULLIF ( - COUNT ( * ), + 79 * - 95 * 97 + 42 * - MIN ( ALL + 98 ) ) ) * - SUM ( ALL 85 * 13 ) END WHEN - ( + 30 ) * + ( - 54 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT + - COUNT( - 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-3353
SELECT + - COUNT ( - 26 )
----
-1

query I rowsort
SELECT 40 * - + 83 - - 69 + + - 37
----
-3288

query I rowsort
SELECT + 56 * + 38 + - 62 AS col1
----
2066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3356
SELECT DISTINCT - - NULLIF ( - - COUNT( * ), 7 ) * 42 DIV - 93 - - + COALESCE ( + ( 58 ), - 34, - COUNT( * ) * - CASE COUNT( * ) WHEN 48 * + CASE - + 14 WHEN + COALESCE ( 91, CAST( NULL AS SIGNED ) ) * + 10 + + 55 THEN NULL WHEN - - 51 * 65 THEN - 57 ELSE NULL END * 68 THEN 41 WHEN 38 THEN - 91 END )
----
58

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT - - NULLIF ( - - COUNT ( * ), 7 ) * 42 / - 93 - - + COALESCE ( + ( 58 ), - 34, - COUNT ( * ) * - CASE COUNT ( * ) WHEN 48 * + CASE - + 14 WHEN + COALESCE ( 91, CAST ( NULL AS INTEGER ) ) * + 10 + + 55 THEN NULL WHEN - - 51 * 65 THEN - 57 ELSE NULL END * 68 THEN 41 WHEN 38 THEN - 91 END )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT - + 54 * - MAX( ( + 93 ) ) * 85 + - - 54 + - 64
----
426860

skipif mysql # not compatible
query I rowsort label-3357
SELECT - + 54 * - MAX ( ( + 93 ) ) * 85 + - - 54 + - 64
----
426860

query II rowsort
SELECT ALL - 12 AS col0, 70 AS col0
----
-12
70

query II rowsort
SELECT - - 79 * + 46 + - + 69 * + + 96 AS col1, 88
----
-2990
88

onlyif mysql # DIV for integer division: 
query II rowsort label-3360
SELECT - - 30, 33 DIV 1 + NULLIF ( - 20, 24 ) AS col2
----
30
13

skipif mysql # not compatible
query II rowsort label-3360
SELECT - - 30, 33 / 1 + NULLIF ( - 20, 24 ) AS col2
----
30
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3361
SELECT - 2 * + 71 + - 46 + - 0 + - 85 + + COUNT( * ) * 73 AS col0, 31 DIV - CAST( + 74 AS SIGNED ) + + COUNT( * ) * - 51 AS col0
----
-200
-51

skipif mysql # not compatible
query II rowsort label-3361
SELECT - 2 * + 71 + - 46 + - 0 + - 85 + + COUNT ( * ) * 73 AS col0, 31 / - CAST ( + 74 AS INTEGER ) + + COUNT ( * ) * - 51 AS col0
----
-200
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT DISTINCT - MAX( ALL + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT - MAX ( ALL + 37 )
----
-37

query II rowsort
SELECT - 13 + - + 44 AS col1, 16
----
-57
16

query II rowsort
SELECT DISTINCT + 28 AS col0, 0
----
28
0

query I rowsort
SELECT - 13 * + 28 AS col2
----
-364

onlyif mysql # aggregate syntax: 
query II rowsort label-3366
SELECT - ( 92 ) AS col1, COUNT( * ) + - 34 + COUNT( * ) + - ( 22 ) * 48
----
-92
-1088

skipif mysql # not compatible
query II rowsort label-3366
SELECT - ( 92 ) AS col1, COUNT ( * ) + - 34 + COUNT ( * ) + - ( 22 ) * 48
----
-92
-1088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3367
SELECT + 78 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT + 78 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT DISTINCT CAST( 63 AS SIGNED ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT CAST ( 63 AS INTEGER ) AS col1
----
63

query I rowsort
SELECT ALL 77 * - 70 AS col1
----
-5390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3370
SELECT + SUM( + + ( + CAST( NULL AS SIGNED ) ) ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT + SUM ( + + ( + CAST ( NULL AS INTEGER ) ) ) * 98
----
NULL

query I rowsort
SELECT + 42 + - 16 col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3372
SELECT ALL CAST( NULL AS SIGNED ) / - 69, + 87 AS col0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-3372
SELECT ALL CAST ( NULL AS INTEGER ) / - 69, + 87 AS col0
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT + COUNT( * ) + - + MIN( DISTINCT + 88 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3373
SELECT + COUNT ( * ) + - + MIN ( DISTINCT + 88 ) AS col0
----
-87

query I rowsort
SELECT + ( ( 4 ) ) - - 77 AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT ALL 17 + - 78 + CASE - 37 WHEN - + 1 + + 18 THEN + 21 + + - CAST( NULL AS SIGNED ) ELSE 54 END
----
-7

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL 17 + - 78 + CASE - 37 WHEN - + 1 + + 18 THEN + 21 + + - CAST ( NULL AS INTEGER ) ELSE 54 END
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3376
SELECT - CAST( NULL AS SIGNED ) * - + COUNT( + - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT - CAST ( NULL AS INTEGER ) * - + COUNT ( + - 67 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT ALL 74 DIV + - ( + + 88 ) + + 79
----
79

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL 74 / + - ( + + 88 ) + + 79
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3378
SELECT + ( - 78 ) AS col1, MIN( ALL - 8 )
----
-78
-8

skipif mysql # not compatible
query II rowsort label-3378
SELECT + ( - 78 ) AS col1, MIN ( ALL - 8 )
----
-78
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3379
SELECT ALL CASE - + 64 WHEN + 39 * - 6 THEN NULL ELSE - - 98 DIV ( 1 ) * + 83 + - - COUNT( * ) END DIV 21 + 37 + 85
----
509

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL CASE - + 64 WHEN + 39 * - 6 THEN NULL ELSE - - 98 / ( 1 ) * + 83 + - - COUNT ( * ) END / 21 + 37 + 85
----
509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3380
SELECT DISTINCT COUNT( * ) DIV + 81 + + 54 - + COUNT( * ) * 10
----
44

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT COUNT ( * ) / + 81 + + 54 - + COUNT ( * ) * 10
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3381
SELECT ALL COUNT( ALL + 20 ) DIV + COUNT( * ) + + 66 DIV - 76 + 52 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL COUNT ( ALL + 20 ) / + COUNT ( * ) + + 66 / - 76 + 52 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ( + 51 ) * NULLIF ( + 53, + - COUNT( * ) ) + - + 52
----
2651

skipif mysql # not compatible
query I rowsort label-3382
SELECT ( + 51 ) * NULLIF ( + 53, + - COUNT ( * ) ) + - + 52
----
2651

query I rowsort
SELECT + 5 * - 36 + ( - 47 ) - - + 34 AS col0
----
-193

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT ALL + - 23 DIV - ( + + 13 ) + + 58 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL + - 23 / - ( + + 13 ) + + 58 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + - MAX( - 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3385
SELECT + - MAX ( - 30 ) AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3386
SELECT - SUM( ALL - - 70 ) * COUNT( * ) + 8 + + CAST( 38 AS SIGNED ) - - COUNT( * ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-3386
SELECT - SUM ( ALL - - 70 ) * COUNT ( * ) + 8 + + CAST ( 38 AS INTEGER ) - - COUNT ( * ) col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT + SUM( DISTINCT + 68 ), - COUNT( * ) AS col2
----
68
-1

skipif mysql # not compatible
query II rowsort label-3387
SELECT + SUM ( DISTINCT + 68 ), - COUNT ( * ) AS col2
----
68
-1

query I rowsort
SELECT 94 * + 12 + 4 + + - 40
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL - MIN( + 86 ) - - 13 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL - MIN ( + 86 ) - - 13 AS col2
----
-73

query II rowsort
SELECT ALL - ( - + 32 ), - 31 + 72 AS col1
----
32
41

query I rowsort
SELECT ALL + ( + ( - 30 ) ) * - 71 * 14 AS col2
----
29820

query I rowsort
SELECT DISTINCT 0 * - + 67 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3393
SELECT 25 + MAX( + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT 25 + MAX ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ( + NULLIF ( + 12, + COUNT( * ) / 60 ) ) * + - 49 AS col1
----
-588

skipif mysql # not compatible
query I rowsort label-3394
SELECT ( + NULLIF ( + 12, + COUNT ( * ) / 60 ) ) * + - 49 AS col1
----
-588

onlyif mysql # aggregate syntax: 
query II rowsort label-3395
SELECT - + COALESCE ( - ( 11 ), 47, - MIN( DISTINCT - 10 ) * 24 ) AS col1, COUNT( * )
----
11
1

skipif mysql # not compatible
query II rowsort label-3395
SELECT - + COALESCE ( - ( 11 ), 47, - MIN ( DISTINCT - 10 ) * 24 ) AS col1, COUNT ( * )
----
11
1

query I rowsort
SELECT 32 * - 46
----
-1472

onlyif mysql # aggregate syntax: 
query II rowsort label-3397
SELECT DISTINCT 60 AS col1, COUNT( * ) + - COALESCE ( + MAX( 33 ), - - 46 * + 41 )
----
60
-32

skipif mysql # not compatible
query II rowsort label-3397
SELECT DISTINCT 60 AS col1, COUNT ( * ) + - COALESCE ( + MAX ( 33 ), - - 46 * + 41 )
----
60
-32

query I rowsort
SELECT ALL - 83 * + 83 AS col2
----
-6889

query I rowsort
SELECT 48 + + 53 * 60 + 23 - - 98 + - 6 + - 16 + - + 71 AS col0
----
3256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3400
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 56 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 56 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3401
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) + ( + - MAX( - 25 ) ) * - 2 + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) + ( + - MAX ( - 25 ) ) * - 2 + 23 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 71 + - + 49
----
22

query I rowsort
SELECT DISTINCT + 38 * + ( + 43 )
----
1634

query I rowsort
SELECT 41 + 60
----
101

query I rowsort
SELECT 48 * ( + + 51 )
----
2448

onlyif mysql # DIV for integer division: 
query I rowsort label-3406
SELECT ALL + 11 + + 17 - - 90 DIV - 42
----
26

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL + 11 + + 17 - - 90 / - 42
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT 93 + - COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3407
SELECT 93 + - COUNT ( * ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT DISTINCT - 66 + - - CAST( NULL AS SIGNED ) * 83 + - 84 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT - 66 + - - CAST ( NULL AS INTEGER ) * 83 + - 84 * - 66
----
NULL

query II rowsort
SELECT 58, + ( + 46 ) + 51 + + 45 AS col1
----
58
142

query I rowsort
SELECT ALL - 49 + - 65
----
-114

query I rowsort
SELECT ALL 57 + - 40
----
17

query I rowsort
SELECT 98 * - 35 AS col1
----
-3430

query I rowsort
SELECT ALL - 93 * + + 38
----
-3534

query I rowsort
SELECT 45 * + - 20 AS col1
----
-900

query I rowsort
SELECT + 97 * - + 55
----
-5335

query II rowsort
SELECT DISTINCT - CASE + 67 WHEN + 14 + + 95 + 22 THEN NULL WHEN 51 / 26 + 39 + + 2 + - 89 + 5 THEN + 28 END * 68 AS col2, + 66
----
NULL
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL - - CASE - 42 WHEN - - 37 - - COUNT( * ) THEN - COUNT( DISTINCT - + 14 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL - - CASE - 42 WHEN - - 37 - - COUNT ( * ) THEN - COUNT ( DISTINCT - + 14 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL - - SUM( + 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - - SUM ( + 51 ) AS col1
----
51

query I rowsort
SELECT 83 - CASE - 92 WHEN - 63 THEN NULL ELSE + + 31 END
----
52

query I rowsort
SELECT ALL 89 - 52 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT DISTINCT - + MIN( DISTINCT - + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT - + MIN ( DISTINCT - + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT + CASE + 37 WHEN + MIN( - 74 ) THEN + 40 * + 99 + + 79 + + 94 + + 56 / 8 WHEN - 82 THEN - + 62 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT + CASE + 37 WHEN + MIN ( - 74 ) THEN + 40 * + 99 + + 79 + + 94 + + 56 / 8 WHEN - 82 THEN - + 62 END AS col0
----
NULL

query II rowsort
SELECT - + 52 * + - 14 + - - 21 AS col0, + 95 + 25 * - 63 * - 47
----
749
74120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3424
SELECT + ( + + ( - 78 ) ), 59 * + + COALESCE ( - 30, - + CAST( + - COUNT( * ) AS SIGNED ) * + ( + - 69 ), 50 ) * + + 8 AS col1
----
-78
-14160

skipif mysql # not compatible
query II rowsort label-3424
SELECT + ( + + ( - 78 ) ), 59 * + + COALESCE ( - 30, - + CAST ( + - COUNT ( * ) AS INTEGER ) * + ( + - 69 ), 50 ) * + + 8 AS col1
----
-78
-14160

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ( + 19 ) * 76 * + COUNT( * ) - + - 77 AS col1
----
1521

skipif mysql # not compatible
query I rowsort label-3425
SELECT ( + 19 ) * 76 * + COUNT ( * ) - + - 77 AS col1
----
1521

query I rowsort
SELECT + 99 + 22 AS col1
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT + 35 * + 30 * 36 * - - COUNT( * ) + - 87 - - 13 DIV 4 AS col0
----
37716

skipif mysql # not compatible
query I rowsort label-3427
SELECT + 35 * + 30 * 36 * - - COUNT ( * ) + - 87 - - 13 / 4 AS col0
----
37716

query I rowsort
SELECT + COALESCE ( + 96, + 58 + - - 62 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT - + COUNT( DISTINCT + 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - + COUNT ( DISTINCT + 63 ) AS col2
----
-1

query I rowsort
SELECT ALL - + 13 + NULLIF ( + 87, 64 * + ( + + 72 ) + + 47 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT DISTINCT - 14 * - COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT - 14 * - COUNT ( * ) AS col2
----
14

query I rowsort
SELECT DISTINCT - 97 + - 35 - + - 13
----
-119

query I rowsort
SELECT 51 + + 8 + 51 * + 87 AS col0
----
4496

query II rowsort
SELECT ALL 66 + 19, - 80 AS col2
----
85
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3435
SELECT - MAX( 85 ) AS col1, + COUNT( * ) AS col1
----
-85
1

skipif mysql # not compatible
query II rowsort label-3435
SELECT - MAX ( 85 ) AS col1, + COUNT ( * ) AS col1
----
-85
1

query I rowsort
SELECT ALL + 52 + - - 48 * 57
----
2788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3437
SELECT ( 77 ) + CASE - 42 WHEN - - 20 * - ( - MIN( DISTINCT + - 28 ) ) THEN + 74 ELSE NULL END * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT ( 77 ) + CASE - 42 WHEN - - 20 * - ( - MIN ( DISTINCT + - 28 ) ) THEN + 74 ELSE NULL END * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT 48 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-3438
SELECT 48 / 51
----
0

query I rowsort
SELECT 83 * - 7
----
-581

query I rowsort
SELECT DISTINCT - 80 + + + 67
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3441
SELECT ALL MAX( ALL - + 80 ) col1, 55 + - 1 + 1 * 92 col0
----
-80
146

skipif mysql # not compatible
query II rowsort label-3441
SELECT ALL MAX ( ALL - + 80 ) col1, 55 + - 1 + 1 * 92 col0
----
-80
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT MAX( + 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT MAX ( + 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL - MAX( + 69 ) + 94 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL - MAX ( + 69 ) + 94 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT 73 - ( COUNT( * ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3444
SELECT 73 - ( COUNT ( * ) ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT DISTINCT - 80 + 35 * MAX( ALL - 31 )
----
-1165

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT - 80 + 35 * MAX ( ALL - 31 )
----
-1165

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT MAX( ALL - ( + 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT MAX ( ALL - ( + 29 ) )
----
-29

query I rowsort
SELECT ALL + 90 * - + 95 AS col2
----
-8550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3448
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT - 40 - + 96
----
-136

query I rowsort
SELECT ALL + + 98 col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3451
SELECT - 67 + + ( 9 ) * - CASE + CAST( - - CAST( - ( COUNT( * ) ) AS DECIMAL ) AS SIGNED ) WHEN - - 12 THEN - 5 - - + COUNT( * ) END * + 38 / 40 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT - 67 + + ( 9 ) * - CASE + CAST ( - - CAST ( - ( COUNT ( * ) ) AS REAL ) AS INTEGER ) WHEN - - 12 THEN - 5 - - + COUNT ( * ) END * + 38 / 40 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3452
SELECT DISTINCT - 20 * + + 89 + - 12 - 68 + - - 55 * - 36 * - 8 - - 68 + + ( 68 ) * 79 * - + CASE + - 23 WHEN - COUNT( * ) THEN - - NULLIF ( + CAST( - 15 AS SIGNED ), - 56 * - - 42 ) * 89 WHEN - ( + NULLIF ( - + 4, + + COUNT( * ) ) ) THEN COUNT( * ) - 84 ELSE - 37 END + + 57
----
212869

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - 20 * + + 89 + - 12 - 68 + - - 55 * - 36 * - 8 - - 68 + + ( 68 ) * 79 * - + CASE + - 23 WHEN - COUNT ( * ) THEN - - NULLIF ( + CAST ( - 15 AS INTEGER ), - 56 * - - 42 ) * 89 WHEN - ( + NULLIF ( - + 4, + + COUNT ( * ) ) ) THEN COUNT ( * ) - 84 ELSE - 37 END + + 57
----
212869

query I rowsort
SELECT DISTINCT + NULLIF ( 93, + 97 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT ALL + - ( - SUM( - 75 ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL + - ( - SUM ( - 75 ) ) AS col1
----
-75

query I rowsort
SELECT - 90 + 49 * + 96 AS col1
----
4614

query I rowsort
SELECT + 83 * NULLIF ( 15, - 24 ) + 50 + + 86 col0
----
1381

query I rowsort
SELECT ALL + 81 * - 72 AS col0
----
-5832

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT - - 20 DIV + 89 * - ( 75 ) * - 9 + - - 55
----
55

skipif mysql # not compatible
query I rowsort label-3458
SELECT - - 20 / + 89 * - ( 75 ) * - 9 + - - 55
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT ALL + 37 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL + 37 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT + - COUNT( ALL + 20 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3460
SELECT + - COUNT ( ALL + 20 ) AS col0
----
-1

query I rowsort
SELECT + 53 + 92 + - 39 * - - 46
----
-1649

onlyif mysql # aggregate syntax: 
query II rowsort label-3462
SELECT ALL COUNT( * ) * - 94 - - NULLIF ( - 98, - 84 ) AS col0, + COUNT( * ) AS col1
----
-192
1

skipif mysql # not compatible
query II rowsort label-3462
SELECT ALL COUNT ( * ) * - 94 - - NULLIF ( - 98, - 84 ) AS col0, + COUNT ( * ) AS col1
----
-192
1

query I rowsort
SELECT + 93 * 1 * + - 89
----
-8277

query I rowsort
SELECT + NULLIF ( + + 49, + + 40 ) * - - 39 + + 45 + - 26 AS col2
----
1930

onlyif mysql # aggregate syntax: 
query II rowsort label-3465
SELECT ALL 74 * + + 80 + - SUM( + 51 ), 93 * 16 AS col2
----
5869
1488

skipif mysql # not compatible
query II rowsort label-3465
SELECT ALL 74 * + + 80 + - SUM ( + 51 ), 93 * 16 AS col2
----
5869
1488

query I rowsort
SELECT ALL + 62 * 59 + + 55
----
3713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3467
SELECT ALL + COUNT( - + 63 ) * 93 + CASE + - COUNT( * ) WHEN + 24 + + + 9 + + 54 + COUNT( * ) THEN NULL WHEN 24 THEN + 7 - - - 25 - + 32 + 16 END + + - 41 + - + 53 - + + 73 + - - 63 * 96 * + - CAST( + 52 AS SIGNED ) * - + COALESCE ( - 36, + 30 / - 48 + + 33 ) + - AVG ( DISTINCT + 11 + + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL + COUNT ( - + 63 ) * 93 + CASE + - COUNT ( * ) WHEN + 24 + + + 9 + + 54 + COUNT ( * ) THEN NULL WHEN 24 THEN + 7 - - - 25 - + 32 + 16 END + + - 41 + - + 53 - + + 73 + - - 63 * 96 * + - CAST ( + 52 AS INTEGER ) * - + COALESCE ( - 36, + 30 / - 48 + + 33 ) + - AVG ( DISTINCT + 11 + + 74 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3468
SELECT ALL - 4 DIV + + 97 AS col1, 1
----
0
1

skipif mysql # not compatible
query II rowsort label-3468
SELECT ALL - 4 / + + 97 AS col1, 1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT MIN( DISTINCT + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3469
SELECT MIN ( DISTINCT + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL + 63 * 31 * + - COUNT( * ) + - 21
----
-1974

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + 63 * 31 * + - COUNT ( * ) + - 21
----
-1974

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3471
SELECT + ( CASE + CAST( NULL AS SIGNED ) WHEN + 90 * - - 5 THEN NULL ELSE 35 DIV - + 64 END )
----
0

skipif mysql # not compatible
query I rowsort label-3471
SELECT + ( CASE + CAST ( NULL AS INTEGER ) WHEN + 90 * - - 5 THEN NULL ELSE 35 / - + 64 END )
----
0

query I rowsort
SELECT + 7 - + 31
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT SUM( ALL 27 )
----
27

skipif mysql # not compatible
query I rowsort label-3473
SELECT SUM ( ALL 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT SUM( 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3474
SELECT SUM ( 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + 37 * - COUNT( * ) * + + COALESCE ( - 15, COALESCE ( 75, MAX( ALL + + 71 ) + + - 73 + + 18, + 63, + 79 ) ) + + 30 AS col1
----
585

skipif mysql # not compatible
query I rowsort label-3475
SELECT + 37 * - COUNT ( * ) * + + COALESCE ( - 15, COALESCE ( 75, MAX ( ALL + + 71 ) + + - 73 + + 18, + 63, + 79 ) ) + + 30 AS col1
----
585

query I rowsort
SELECT - 89 * - 88
----
7832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT - COALESCE ( CAST( NULL AS SIGNED ), + 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3477
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), + 83 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL ( - 46 ) + + 58 + + - 75 + - COUNT( * ) * 22 * + 39 * - 49 + NULLIF ( - 25, + 17 * + 1 * - + ( 49 ) ) + + + 7
----
41961

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL ( - 46 ) + + 58 + + - 75 + - COUNT ( * ) * 22 * + 39 * - 49 + NULLIF ( - 25, + 17 * + 1 * - + ( 49 ) ) + + + 7
----
41961

query I rowsort
SELECT + ( 58 ) + - + 44 * + COALESCE ( + - ( 96 ), + 43 )
----
4282

query I rowsort
SELECT DISTINCT 0 - 79 + - 56 * - 51 * + 91 - - COALESCE ( 94, 88 * - 81 * - + 21 * 93 * + 48 * - - 77 + - 54, + 5 * + 72 * + + 5 )
----
259911

query I rowsort
SELECT ALL 59 * + 98 AS col2
----
5782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT - CAST( NULL AS SIGNED ) - - - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3482
SELECT - CAST ( NULL AS INTEGER ) - - - 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL MAX( ALL 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL MAX ( ALL 44 ) AS col0
----
44

query I rowsort
SELECT - CASE 37 WHEN - 18 * - - 15 THEN NULL WHEN - 43 * - 78 / 35 * - - 16 + + - 5 + + - 32 * - COALESCE ( + - 90, 78, - + ( - 48 ) ) + - 63 THEN - 91 END AS col2
----
NULL

query I rowsort
SELECT + 17 * - 73 AS col0
----
-1241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3486
SELECT - ( - + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT - ( - + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT - 40 + - - 64
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT - 75 DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT - 75 / - + 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3489
SELECT ALL + NULLIF ( + 36, - + CAST( - 33 AS SIGNED ) + + + 72 - COUNT( * ) * - 64 ) DIV 72 DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL + NULLIF ( + 36, - + CAST ( - 33 AS INTEGER ) + + + 72 - COUNT ( * ) * - 64 ) / 72 / 62 AS col0
----
0

query I rowsort
SELECT - 92 + - + 13
----
-105

query II rowsort
SELECT - - 43 AS col1, - 79 * - + ( - 28 ) AS col2
----
43
-2212

query I rowsort
SELECT ALL + ( + + 98 ) AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT - - 21 * 41 + - 35 - COUNT( * ) - CAST( NULL AS SIGNED ) + 24 / + NULLIF ( + 5, 83 * 23 * + 88 * - COUNT( * ) + MIN( ALL + + ( - + ( + NULLIF ( - + 67, - - 14 ) ) ) ) + AVG ( ALL - - 25 ) * - 55 ) + + - 20 * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT - - 21 * 41 + - 35 - COUNT ( * ) - CAST ( NULL AS INTEGER ) + 24 / + NULLIF ( + 5, 83 * 23 * + 88 * - COUNT ( * ) + MIN ( ALL + + ( - + ( + NULLIF ( - + 67, - - 14 ) ) ) ) + AVG ( ALL - - 25 ) * - 55 ) + + - 20 * 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT SUM( ALL - ( - + 3 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3494
SELECT SUM ( ALL - ( - + 3 ) ) AS col2
----
3

query I rowsort
SELECT + 39 * - 80 * - 21 * + - 53 - + 56 + + + 43 AS col0
----
-3472573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT ALL + - CASE - + 52 WHEN + ( - 77 ) * - + 18 THEN NULL WHEN 55 * + - 38 THEN + + NULLIF ( - 31, - - 58 * + - 16 ) * 33 / - + CAST( NULL AS SIGNED ) - 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + - CASE - + 52 WHEN + ( - 77 ) * - + 18 THEN NULL WHEN 55 * + - 38 THEN + + NULLIF ( - 31, - - 58 * + - 16 ) * 33 / - + CAST ( NULL AS INTEGER ) - 7 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3497
SELECT - COUNT( ALL - 22 ) * - + 34 * - ( 67 ) AS col0, - 15 + COUNT( * )
----
-2278
-14

skipif mysql # not compatible
query II rowsort label-3497
SELECT - COUNT ( ALL - 22 ) * - + 34 * - ( 67 ) AS col0, - 15 + COUNT ( * )
----
-2278
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL + + CASE + ( - + 85 ) WHEN + 97 THEN COUNT( * ) WHEN ( + 38 ) THEN NULL ELSE 53 END
----
53

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL + + CASE + ( - + 85 ) WHEN + 97 THEN COUNT ( * ) WHEN ( + 38 ) THEN NULL ELSE 53 END
----
53

query I rowsort
SELECT DISTINCT + + 78 col1
----
78

onlyif mysql # aggregate syntax: 
query III rowsort label-3500
SELECT ALL + 2 AS col0, + 39 * - 26 AS col0, + 4 + + + COUNT( ALL 67 )
----
2
-1014
5

skipif mysql # not compatible
query III rowsort label-3500
SELECT ALL + 2 AS col0, + 39 * - 26 AS col0, + 4 + + + COUNT ( ALL 67 )
----
2
-1014
5

query I rowsort
SELECT DISTINCT - 75 * + 85 AS col2
----
-6375

query I rowsort
SELECT + - 70 * - - 27 * + - ( + 19 )
----
35910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT ALL - CASE - 16 WHEN - 7 - ( + 28 ) * + COUNT( * ) * - ( 52 ) * + - ( 7 ) * + 16 + + 77 THEN - 63 + + - 32 * - 10 + - CASE + 36 WHEN + 34 THEN NULL ELSE - 75 END + COUNT( * ) END * - CAST( 23 AS SIGNED ) + - COALESCE ( 59, - CASE 11 WHEN COALESCE ( 56, + 48 * - 8 ) / + 78 THEN 71 WHEN 71 THEN CASE + 97 WHEN + ( MAX( DISTINCT - 17 ) ) THEN 13 END END, - 58 ) + + MIN( DISTINCT 66 + 79 ) / + 9 * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - CASE - 16 WHEN - 7 - ( + 28 ) * + COUNT ( * ) * - ( 52 ) * + - ( 7 ) * + 16 + + 77 THEN - 63 + + - 32 * - 10 + - CASE + 36 WHEN + 34 THEN NULL ELSE - 75 END + COUNT ( * ) END * - CAST ( 23 AS INTEGER ) + - COALESCE ( 59, - CASE 11 WHEN COALESCE ( 56, + 48 * - 8 ) / + 78 THEN 71 WHEN 71 THEN CASE + 97 WHEN + ( MAX ( DISTINCT - 17 ) ) THEN 13 END END, - 58 ) + + MIN ( DISTINCT 66 + 79 ) / + 9 * 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3504
SELECT - MAX( DISTINCT - 11 ) * + - CAST( NULL AS SIGNED ) / CASE COUNT( * ) WHEN + 5 THEN + + 4 + + + 22 ELSE NULL END / 70 * - 31 + - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT - MAX ( DISTINCT - 11 ) * + - CAST ( NULL AS INTEGER ) / CASE COUNT ( * ) WHEN + 5 THEN + + 4 + + + 22 ELSE NULL END / 70 * - 31 + - + 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3505
SELECT - 58 AS col1, + COUNT( * ) - - 76 DIV - 45 AS col2
----
-58
0

skipif mysql # not compatible
query II rowsort label-3505
SELECT - 58 AS col1, + COUNT ( * ) - - 76 / - 45 AS col2
----
-58
0

query II rowsort
SELECT + ( + 35 ) AS col2, + 92 + 41
----
35
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT + CAST( + 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-3507
SELECT + CAST ( + 25 AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT DISTINCT 83 * MIN( DISTINCT 24 ) * 93 + - + 71 AS col0
----
185185

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT 83 * MIN ( DISTINCT 24 ) * 93 + - + 71 AS col0
----
185185

query I rowsort
SELECT DISTINCT + 80 * 90 * 78 AS col0
----
561600

query I rowsort
SELECT ALL 58 * - - 52 - - 9
----
3025

query I rowsort
SELECT DISTINCT - 7 * - ( + 92 ) AS col0
----
644

onlyif mysql # aggregate syntax: 
query II rowsort label-3512
SELECT ALL COUNT( * ) AS col0, 20 - ( + - 85 ) AS col1
----
1
105

skipif mysql # not compatible
query II rowsort label-3512
SELECT ALL COUNT ( * ) AS col0, 20 - ( + - 85 ) AS col1
----
1
105

query I rowsort
SELECT ALL 11 - + 57 * 54 + + - 97 + + 7 + - 99 + + 22
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT CASE - + ( - 19 ) WHEN COUNT( * ) THEN - 25 WHEN 72 THEN NULL ELSE + 96 END + - 53
----
43

skipif mysql # not compatible
query I rowsort label-3514
SELECT CASE - + ( - 19 ) WHEN COUNT ( * ) THEN - 25 WHEN 72 THEN NULL ELSE + 96 END + - 53
----
43

query I rowsort
SELECT 76 * - 49 AS col1
----
-3724

query II rowsort
SELECT 82 + + 62 AS col1, - 42
----
144
-42

query I rowsort
SELECT DISTINCT 40 * - 95
----
-3800

query II rowsort
SELECT ALL 97 col2, 7 - 95 + 7
----
97
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3519
SELECT CAST( - 48 AS SIGNED ) - 10 + - CAST( + 88 AS DECIMAL ) + + + CASE 35 WHEN + 53 * + ( 72 ) + SUM( ALL - COALESCE ( 20, + 74 + + 25 + - ( - 4 ) * + CAST( NULL AS SIGNED ) * - 62 + + - 10 ) ) THEN NULLIF ( 22, - 83 ) WHEN + 79 + + 36 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3519
SELECT CAST ( - 48 AS INTEGER ) - 10 + - CAST ( + 88 AS REAL ) + + + CASE 35 WHEN + 53 * + ( 72 ) + SUM ( ALL - COALESCE ( 20, + 74 + + 25 + - ( - 4 ) * + CAST ( NULL AS INTEGER ) * - 62 + + - 10 ) ) THEN NULLIF ( 22, - 83 ) WHEN + 79 + + 36 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT COUNT( * ) * - 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3520
SELECT COUNT ( * ) * - 18 AS col2
----
-18

query II rowsort
SELECT ALL 51, 62 AS col1
----
51
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT DISTINCT + COUNT( * ) * - NULLIF ( + 53, - + 41 ) * - + 20 AS col0
----
1060

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( + 53, - + 41 ) * - + 20 AS col0
----
1060

query I rowsort
SELECT DISTINCT + 3 * + 32
----
96

query II rowsort
SELECT ALL 11 AS col0, - 99 * 2 + 80
----
11
-118

query I rowsort
SELECT ALL 55 + + + 88 AS col2
----
143

query II rowsort
SELECT - + 66 col1, 34 * - 31
----
-66
-1054

query I rowsort
SELECT DISTINCT + 53 * + - 99 AS col2
----
-5247

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT MAX( ALL + 26 ) + + - 49 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3528
SELECT MAX ( ALL + 26 ) + + - 49 AS col2
----
-23

query I rowsort
SELECT + 8 - - 2 + 88 + 23 * 28
----
742

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3530
SELECT ALL COUNT( * ) col2, - COUNT( - 33 ) DIV - 1 AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3530
SELECT ALL COUNT ( * ) col2, - COUNT ( - 33 ) / - 1 AS col2
----
1
1

query I rowsort
SELECT ALL + ( + 80 ) + - 31 AS col0
----
49

query II rowsort
SELECT 56 AS col1, + 31 * + 52
----
56
1612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT CAST( - NULLIF ( - 62, + + AVG ( 91 ) ) AS SIGNED ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3533
SELECT CAST ( - NULLIF ( - 62, + + AVG ( 91 ) ) AS INTEGER ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL + 60 + + COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + 60 + + COUNT ( * ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT CAST( NULL AS SIGNED ) + + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT CAST ( NULL AS INTEGER ) + + 41 AS col0
----
NULL

query I rowsort
SELECT ALL + 38 * - 2 col1
----
-76

query II rowsort
SELECT ALL - 68 + + COALESCE ( + + 55, + - 52 ) AS col2, 73 + + + 49 AS col0
----
-13
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT ALL - ( + CAST( - - 88 AS SIGNED ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - ( + CAST ( - - 88 AS INTEGER ) ) AS col1
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3539
SELECT + 48 DIV - CASE + 93 WHEN 10 + + 90 THEN + COALESCE ( CASE - 8 WHEN + COUNT( * ) * - + CASE - + COALESCE ( + 55, - + 97 * + - COUNT( * ) ) WHEN CASE + 72 WHEN + 46 - - NULLIF ( - 36, - 12 * + 99 ) THEN + ( + 41 ) DIV - - 2 + 37 WHEN + ( 23 ) THEN NULL END THEN + 93 + SUM( 4 ) * 59 END * - ( - CASE COUNT( * ) WHEN 21 THEN NULL ELSE 49 END ) + - COUNT( * ) * 53 THEN NULL ELSE - 76 * 63 END, COUNT( * ) * - 30 ) * 27 ELSE 70 - - ( 30 ) END * 86 + - ( - 72 + 14 )
----
58

skipif mysql # not compatible
query I rowsort label-3539
SELECT + 48 / - CASE + 93 WHEN 10 + + 90 THEN + COALESCE ( CASE - 8 WHEN + COUNT ( * ) * - + CASE - + COALESCE ( + 55, - + 97 * + - COUNT ( * ) ) WHEN CASE + 72 WHEN + 46 - - NULLIF ( - 36, - 12 * + 99 ) THEN + ( + 41 ) / - - 2 + 37 WHEN + ( 23 ) THEN NULL END THEN + 93 + SUM ( 4 ) * 59 END * - ( - CASE COUNT ( * ) WHEN 21 THEN NULL ELSE 49 END ) + - COUNT ( * ) * 53 THEN NULL ELSE - 76 * 63 END, COUNT ( * ) * - 30 ) * 27 ELSE 70 - - ( 30 ) END * 86 + - ( - 72 + 14 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3540
SELECT ALL + + CAST( NULL AS SIGNED ) + - ( - ( + - 39 ) ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3540
SELECT ALL + + CAST ( NULL AS INTEGER ) + - ( - ( + - 39 ) ) AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT 17 * + CAST( + 74 AS SIGNED )
----
1258

skipif mysql # not compatible
query I rowsort label-3541
SELECT 17 * + CAST ( + 74 AS INTEGER )
----
1258

query I rowsort
SELECT - 24 * - + ( - + 1 ) AS col1
----
-24

query II rowsort
SELECT + 30 AS col1, + 66 AS col1
----
30
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT COUNT( * ) + 66 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3544
SELECT COUNT ( * ) + 66 AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3545
SELECT + CAST( - - 57 AS SIGNED ) + - ( + + COUNT( * ) ) * - ( - - 11 ) - - 97 AS col0
----
165

skipif mysql # not compatible
query I rowsort label-3545
SELECT + CAST ( - - 57 AS INTEGER ) + - ( + + COUNT ( * ) ) * - ( - - 11 ) - - 97 AS col0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL + 66 - + COUNT( * ) * + + 98 * + - COUNT( * ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL + 66 - + COUNT ( * ) * + + 98 * + - COUNT ( * ) AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT 67 * - COUNT( ALL + 56 ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-3547
SELECT 67 * - COUNT ( ALL + 56 ) col2
----
-67

query I rowsort
SELECT ALL + 93 * 51 AS col1
----
4743

query I rowsort
SELECT DISTINCT - ( 46 )
----
-46

query I rowsort
SELECT DISTINCT - NULLIF ( - 96, + - 3 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL + 67 - + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL + 67 - + COUNT ( * ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3552
SELECT DISTINCT + 49 DIV + - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + 49 / + - 53 AS col1
----
0

query I rowsort
SELECT 73 + + 30 + - + 80 + - 24 col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3554
SELECT 76 - - 62 AS col1, COALESCE ( - 10, + + COUNT( * ) ) AS col1
----
138
-10

skipif mysql # not compatible
query II rowsort label-3554
SELECT 76 - - 62 AS col1, COALESCE ( - 10, + + COUNT ( * ) ) AS col1
----
138
-10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3555
SELECT COALESCE ( + 52, + + 50, - 39 ) DIV CAST( - 58 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT COALESCE ( + 52, + + 50, - 39 ) / CAST ( - 58 AS INTEGER ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL + 31 * - COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + 31 * - COUNT ( * ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT 82 * + 52 * - - COUNT( * )
----
4264

skipif mysql # not compatible
query I rowsort label-3557
SELECT 82 * + 52 * - - COUNT ( * )
----
4264

query I rowsort
SELECT - 91 * - 57 + - 8 * 86
----
4499

query II rowsort
SELECT DISTINCT - 13 + - 81 AS col2, 75 * - - 69 * COALESCE ( - 12, + 78 ) AS col1
----
-94
-62100

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL + MIN( - 16 ) + + 63 - + - 29
----
76

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL + MIN ( - 16 ) + + 63 - + - 29
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3561
SELECT COUNT( * ) / - + ( - MAX( ALL - CAST( NULL AS DECIMAL ) ) ) * - 45 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT COUNT ( * ) / - + ( - MAX ( ALL - CAST ( NULL AS REAL ) ) ) * - 45 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT + 9 * + 64 + - - NULLIF ( 0, + 19 + + COUNT( * ) * - MAX( DISTINCT + 7 ) ) AS col0
----
576

skipif mysql # not compatible
query I rowsort label-3562
SELECT + 9 * + 64 + - - NULLIF ( 0, + 19 + + COUNT ( * ) * - MAX ( DISTINCT + 7 ) ) AS col0
----
576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT DISTINCT - MIN( - + 81 ) DIV + 79 + + 54 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT - MIN ( - + 81 ) / + 79 + + 54 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3564
SELECT ALL - COALESCE ( 91, - CASE - CAST( - - 98 AS SIGNED ) WHEN + - 82 THEN + + 44 WHEN 95 + MIN( DISTINCT + 31 ) + + 86 * COUNT( * ) * - + 22 * ( - COUNT( * ) ) THEN + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * + MAX( DISTINCT + 43 ) * - - 84 * - COUNT( ALL CAST( NULL AS SIGNED ) ) * - COUNT( * ) + + 29 + + - 92 * + 88 + 94 + + 88 ) + - 89
----
-180

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL - COALESCE ( 91, - CASE - CAST ( - - 98 AS INTEGER ) WHEN + - 82 THEN + + 44 WHEN 95 + MIN ( DISTINCT + 31 ) + + 86 * COUNT ( * ) * - + 22 * ( - COUNT ( * ) ) THEN + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * + MAX ( DISTINCT + 43 ) * - - 84 * - COUNT ( ALL CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + + 29 + + - 92 * + 88 + 94 + + 88 ) + - 89
----
-180

query I rowsort
SELECT + 6 + + + 49
----
55

query I rowsort
SELECT ALL 76 + - 0
----
76

query I rowsort
SELECT ALL 89 + - 10 * - - 23 AS col1
----
-141

query I rowsort
SELECT DISTINCT - 30 + + 97 AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3569
SELECT ALL 16 * 82 AS col0, - COUNT( * ) col2
----
1312
-1

skipif mysql # not compatible
query II rowsort label-3569
SELECT ALL 16 * 82 AS col0, - COUNT ( * ) col2
----
1312
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT 52 * - - 33 + + + 24 + + 47 DIV + - 95
----
1740

skipif mysql # not compatible
query I rowsort label-3570
SELECT 52 * - - 33 + + + 24 + + 47 / + - 95
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + 92 / - CASE + - 92 WHEN + COUNT( DISTINCT - + 36 ) THEN - ( - - 82 ) * + 11 + - 1 WHEN + COALESCE ( - 66, - + 49 ) THEN 63 ELSE NULL END - - CASE + COUNT( * ) WHEN + + 12 * + 37 + + + 32 + MIN( - - 40 ) - + + 46 / - 12 * + 47 THEN + + CASE - 5 WHEN - 48 * - + 71 + - 93 THEN - 10 + + 22 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT + 92 / - CASE + - 92 WHEN + COUNT ( DISTINCT - + 36 ) THEN - ( - - 82 ) * + 11 + - 1 WHEN + COALESCE ( - 66, - + 49 ) THEN 63 ELSE NULL END - - CASE + COUNT ( * ) WHEN + + 12 * + 37 + + + 32 + MIN ( - - 40 ) - + + 46 / - 12 * + 47 THEN + + CASE - 5 WHEN - 48 * - + 71 + - 93 THEN - 10 + + 22 END END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3572
SELECT DISTINCT - CAST( + 12 AS SIGNED ) AS col1, - 65 AS col1
----
-12
-65

skipif mysql # not compatible
query II rowsort label-3572
SELECT DISTINCT - CAST ( + 12 AS INTEGER ) AS col1, - 65 AS col1
----
-12
-65

query I rowsort
SELECT 31 - 79
----
-48

query I rowsort
SELECT + - ( + 72 ) AS col1
----
-72

query I rowsort
SELECT ALL - 84 * + 29 - - 51 AS col1
----
-2385

query I rowsort
SELECT ALL 7 * - 46 - + 88 AS col2
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT 67 / + 51 * + NULLIF ( + COUNT( * ), + + COUNT( * ) ) / - ( + 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT 67 / + 51 * + NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) / - ( + 95 ) AS col1
----
NULL

query II rowsort
SELECT ALL - 2 AS col1, 17
----
-2
17

query I rowsort
SELECT ALL - 7 * 2 AS col1
----
-14

query I rowsort
SELECT 86 - 70
----
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3581
SELECT ALL 44 * + 52 - + - CAST( NULL AS SIGNED ), - 1 * 56 DIV - - 60 + + 47 AS col2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-3581
SELECT ALL 44 * + 52 - + - CAST ( NULL AS INTEGER ), - 1 * 56 / - - 60 + + 47 AS col2
----
NULL
47

query I rowsort
SELECT - 47 * + 72
----
-3384

onlyif mysql # aggregate syntax: 
query II rowsort label-3583
SELECT COUNT( * ) AS col0, - 48
----
1
-48

skipif mysql # not compatible
query II rowsort label-3583
SELECT COUNT ( * ) AS col0, - 48
----
1
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT + 62 * + 5 + + + COUNT( - - 52 ) AS col1
----
311

skipif mysql # not compatible
query I rowsort label-3584
SELECT + 62 * + 5 + + + COUNT ( - - 52 ) AS col1
----
311

query I rowsort
SELECT - 23 * + 76 AS col0
----
-1748

query I rowsort
SELECT ALL + 62 * - + 6
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + COALESCE ( - COUNT( * ), - ( - 24 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3587
SELECT + COALESCE ( - COUNT ( * ), - ( - 24 ) ) AS col1
----
-1

query I rowsort
SELECT - ( + 17 ) + - + 7
----
-24

query I rowsort
SELECT ALL + ( - + 66 ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - 59 * - ( ( + 22 ) ) + + + 79 * + - 32 + - 39 + + 70
----
-1199

skipif mysql # not compatible
query I rowsort label-3590
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - 59 * - ( ( + 22 ) ) + + + 79 * + - 32 + - 39 + + 70
----
-1199

query I rowsort
SELECT ALL 93 * - + 4 * + 5
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL + MIN( ALL - COALESCE ( - 37, + 81 ) ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL + MIN ( ALL - COALESCE ( - 37, + 81 ) ) AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3593
SELECT DISTINCT + CAST( - - 94 AS SIGNED ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + CAST ( - - 94 AS INTEGER ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT DISTINCT + 45 + 61 + + COUNT( ALL - 14 )
----
107

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT + 45 + 61 + + COUNT ( ALL - 14 )
----
107

query I rowsort
SELECT - 57 * + 28 AS col2
----
-1596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3596
SELECT ALL + COUNT( * ) + 8 DIV + SUM( ALL 10 )
----
1

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL + COUNT ( * ) + 8 / + SUM ( ALL 10 )
----
1

query II rowsort
SELECT 73 AS col1, - 30 AS col1
----
73
-30

query I rowsort
SELECT ALL - + 40 + ( + 80 ) AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT - - 48 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT - - 48 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 77 * 76
----
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT - COUNT( * ) + - 65
----
-66

skipif mysql # not compatible
query I rowsort label-3601
SELECT - COUNT ( * ) + - 65
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT ALL - + 65 * COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL - + 65 * COUNT ( * ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL - 93 + - MAX( 26 )
----
-119

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL - 93 + - MAX ( 26 )
----
-119

query I rowsort
SELECT - 43 - + 45 + + 11 * 51 AS col1
----
473

query I rowsort
SELECT DISTINCT - - 98 + - - 52 AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL + 1 + + + 9 - - COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL + 1 + + + 9 - - COUNT ( * ) AS col0
----
11

query II rowsort
SELECT ALL 31 AS col1, - 79 * - 81
----
31
6399

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL - + 48 - + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL - + 48 - + COUNT ( * )
----
-49

query I rowsort
SELECT - - 46 + - 59 - - - 27 + - 29
----
-69

query I rowsort
SELECT - + 71 + - 22 * + 0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT + COUNT( * ) - - + 14 * 44
----
617

skipif mysql # not compatible
query I rowsort label-3611
SELECT + COUNT ( * ) - - + 14 * 44
----
617

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + 20 + - 60 - - - 15 * COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3612
SELECT + 20 + - 60 - - - 15 * COUNT ( * ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL 89 - - - COALESCE ( + 27, + + COUNT( * ) + - + 28 ) - 75 * 3 AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL 89 - - - COALESCE ( + 27, + + COUNT ( * ) + - + 28 ) - 75 * 3 AS col1
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3614
SELECT + COUNT( DISTINCT - + 1 ) * - 44 * - CAST( + - 50 AS SIGNED ) + - 54 * 80
----
-6520

skipif mysql # not compatible
query I rowsort label-3614
SELECT + COUNT ( DISTINCT - + 1 ) * - 44 * - CAST ( + - 50 AS INTEGER ) + - 54 * 80
----
-6520

query I rowsort
SELECT + 73 + - 23
----
50

query I rowsort
SELECT + 59 * - COALESCE ( - 59, - 91 ) * - 29 + - + 96
----
-101045

query I rowsort
SELECT DISTINCT 95 * + 6 * 86
----
49020

query I rowsort
SELECT + 6 + + 6 * - 93
----
-552

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT ( + 57 ), ( - COUNT( DISTINCT - 21 ) ) AS col0
----
57
-1

skipif mysql # not compatible
query II rowsort label-3619
SELECT ( + 57 ), ( - COUNT ( DISTINCT - 21 ) ) AS col0
----
57
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT + 24 DIV - + 88
----
0

skipif mysql # not compatible
query I rowsort label-3620
SELECT + 24 / - + 88
----
0

query I rowsort
SELECT ALL 30 * 18 * 84 AS col0
----
45360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3622
SELECT + 33 * - 88 * - - COUNT( DISTINCT 49 ) * - - 6 - CASE - 77 WHEN 51 THEN - 62 WHEN - 59 - 66 - 32 * - 19 THEN NULL ELSE NULL END - - 79 - 17 + + 51 + - CAST( NULL AS SIGNED ) * - 97 + 46 * - 32 - + - COUNT( * ) + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT + 33 * - 88 * - - COUNT ( DISTINCT 49 ) * - - 6 - CASE - 77 WHEN 51 THEN - 62 WHEN - 59 - 66 - 32 * - 19 THEN NULL ELSE NULL END - - 79 - 17 + + 51 + - CAST ( NULL AS INTEGER ) * - 97 + 46 * - 32 - + - COUNT ( * ) + 89
----
NULL

query I rowsort
SELECT + 70 * - 94
----
-6580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT + 88 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT + 88 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL COUNT( * ) * - MIN( DISTINCT + 19 ) + 15 * + SUM( DISTINCT - 85 ) * + 50 + 98 + - COALESCE ( - 24, - 41 + ( CASE 63 WHEN - + 56 + - 28 * 83 * - 2 + - 71 THEN - 13 * ( + - COUNT( * ) ) + + 46 ELSE NULL END ), + SUM( ALL - 14 ) ) * - 2 AS col2
----
-63719

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL COUNT ( * ) * - MIN ( DISTINCT + 19 ) + 15 * + SUM ( DISTINCT - 85 ) * + 50 + 98 + - COALESCE ( - 24, - 41 + ( CASE 63 WHEN - + 56 + - 28 * 83 * - 2 + - 71 THEN - 13 * ( + - COUNT ( * ) ) + + 46 ELSE NULL END ), + SUM ( ALL - 14 ) ) * - 2 AS col2
----
-63719

query I rowsort
SELECT + 58 + + 21
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT DISTINCT 81 DIV - - 99
----
0

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT 81 / - - 99
----
0

query I rowsort
SELECT + 4 * + 26 * - 49 AS col2
----
-5096

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3629
SELECT + 22 DIV 9 DIV - 61 * - 54 * COUNT( * ), + 0 + 82 - - 31 AS col1
----
0
113

skipif mysql # not compatible
query II rowsort label-3629
SELECT + 22 / 9 / - 61 * - 54 * COUNT ( * ), + 0 + 82 - - 31 AS col1
----
0
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3630
SELECT ( + 70 ), COUNT( * ) + + 58 DIV + 2 AS col2, + MAX( + CAST( NULL AS SIGNED ) ) AS col2
----
70
30
NULL

skipif mysql # not compatible
query III rowsort label-3630
SELECT ( + 70 ), COUNT ( * ) + + 58 / + 2 AS col2, + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2
----
70
30
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3631
SELECT - 74 + + 68 DIV - CAST( + - 98 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-3631
SELECT - 74 + + 68 / - CAST ( + - 98 AS INTEGER )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ) * + 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ) * + 38 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3633
SELECT DISTINCT CAST( + 45 AS SIGNED ) AS col1, ( 56 )
----
45
56

skipif mysql # not compatible
query II rowsort label-3633
SELECT DISTINCT CAST ( + 45 AS INTEGER ) AS col1, ( 56 )
----
45
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT DISTINCT - + 60 * + ( + ( + SUM( ALL CAST( - - 30 AS SIGNED ) ) ) ) + - 16 col0
----
-1816

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - + 60 * + ( + ( + SUM ( ALL CAST ( - - 30 AS INTEGER ) ) ) ) + - 16 col0
----
-1816

query I rowsort
SELECT 36 * + 44 * + + 16 + - 47
----
25297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT ALL + CAST( + 64 AS SIGNED ) - - - 75 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL + CAST ( + 64 AS INTEGER ) - - - 75 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3637
SELECT - 7 DIV - + 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3637
SELECT - 7 / - + 37 AS col2
----
0

query II rowsort
SELECT - - 9 * 78 AS col1, + ( - ( + - 98 ) )
----
702
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3639
SELECT DISTINCT - 4 DIV 61 * COUNT( * ) DIV + + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - 4 / 61 * COUNT ( * ) / + + 82 AS col2
----
0

query I rowsort
SELECT DISTINCT - 87 * + - 16 col0
----
1392

query I rowsort
SELECT 92 * + 26
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL - NULLIF ( 88, + 6 + COUNT( * ) + 89 + - NULLIF ( - - 32, + 95 + - ( - + ( + 61 ) ) - + - 34 * + - 95 / 38 / 1 ) * ( - 7 ) * - 14 / COUNT( * ) - - + 82 )
----
-88

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - NULLIF ( 88, + 6 + COUNT ( * ) + 89 + - NULLIF ( - - 32, + 95 + - ( - + ( + 61 ) ) - + - 34 * + - 95 / 38 / 1 ) * ( - 7 ) * - 14 / COUNT ( * ) - - + 82 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT 5 * + ( - MIN( + 14 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-3643
SELECT 5 * + ( - MIN ( + 14 ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT 76 + 63 + COUNT( * ) AS col2
----
140

skipif mysql # not compatible
query I rowsort label-3644
SELECT 76 + 63 + COUNT ( * ) AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT 95 * + COUNT( * ) * + 91 AS col2
----
8645

skipif mysql # not compatible
query I rowsort label-3645
SELECT 95 * + COUNT ( * ) * + 91 AS col2
----
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL - 45 + + - 36 * 87 + 3 + - MAX( 72 )
----
-3246

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL - 45 + + - 36 * 87 + 3 + - MAX ( 72 )
----
-3246

query I rowsort
SELECT DISTINCT + 90 + - 15
----
75

query I rowsort
SELECT ALL ( 59 ) + - 34 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT ALL 40 + + + SUM( ALL + 52 ) - + 18 + - + 43 + - 83 col0
----
-52

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL 40 + + + SUM ( ALL + 52 ) - + 18 + - + 43 + - 83 col0
----
-52

query I rowsort
SELECT ALL ( - - 12 ) + + 99
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3651
SELECT - 16 * - 94 * - 73 + + COALESCE ( 15, - 9 - CASE 76 WHEN 96 + + ( + 72 ) + + + ( 19 ) THEN - 93 + - - COUNT( + 60 ) ELSE NULL END DIV 43 * - COUNT( * ) )
----
-109777

skipif mysql # not compatible
query I rowsort label-3651
SELECT - 16 * - 94 * - 73 + + COALESCE ( 15, - 9 - CASE 76 WHEN 96 + + ( + 72 ) + + + ( 19 ) THEN - 93 + - - COUNT ( + 60 ) ELSE NULL END / 43 * - COUNT ( * ) )
----
-109777

onlyif mysql # aggregate syntax: 
query II rowsort label-3652
SELECT 10 + + + 74 + - - 60 * + - ( 57 ) * + 52 + MAX( + 57 ) AS col1, 34
----
-177699
34

skipif mysql # not compatible
query II rowsort label-3652
SELECT 10 + + + 74 + - - 60 * + - ( 57 ) * + 52 + MAX ( + 57 ) AS col1, 34
----
-177699
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT COUNT( * ) * - ( - 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3653
SELECT COUNT ( * ) * - ( - 71 ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT CASE - 73 WHEN + 10 THEN + + CAST( - + 68 AS SIGNED ) ELSE - 91 + - 19 END col0
----
-110

skipif mysql # not compatible
query I rowsort label-3654
SELECT CASE - 73 WHEN + 10 THEN + + CAST ( - + 68 AS INTEGER ) ELSE - 91 + - 19 END col0
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3655
SELECT ALL + SUM( + COALESCE ( - 36, 97 ) ) DIV + COALESCE ( + 35, - 60, 95, - + ( 40 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL + SUM ( + COALESCE ( - 36, 97 ) ) / + COALESCE ( + 35, - 60, 95, - + ( 40 ) )
----
-1

query I rowsort
SELECT 7 * 15 + 7
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3657
SELECT DISTINCT - 43 DIV 96 + - + 53
----
-53

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT - 43 / 96 + - + 53
----
-53

query I rowsort
SELECT 60 * - - 36 * + 38
----
82080

query I rowsort
SELECT 91 + + + 91
----
182

query I rowsort
SELECT 7 * - 22 * 11
----
-1694

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT DISTINCT 40 * - - 90 * - - 31 + - 32 + - CAST( 44 AS SIGNED ) AS col2
----
111524

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT 40 * - - 90 * - - 31 + - 32 + - CAST ( 44 AS INTEGER ) AS col2
----
111524

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT + 19 - - COUNT( * ) col0
----
20

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + 19 - - COUNT ( * ) col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL + 60 * COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + 60 * COUNT ( * ) AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT + 19 + - + 58 * CAST( NULL AS SIGNED ) * - 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT + 19 + - + 58 * CAST ( NULL AS INTEGER ) * - 15 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3665
SELECT ALL - + COALESCE ( 31, 50 DIV - + 83 + + - 79 ) * - + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - + COALESCE ( 31, 50 / - + 83 + + - 79 ) * - + COUNT ( * )
----
31

query I rowsort
SELECT DISTINCT 11 * + - ( - + 25 ) * - 84 * 57
----
-1316700

query I rowsort
SELECT 6 + - - 47 * + + 32
----
1510

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3668
SELECT ALL CASE + 41 WHEN - AVG ( ALL - 90 ) THEN - 88 WHEN - - MIN( 59 ) + 99 THEN + COALESCE ( - COALESCE ( - CAST( + CASE - - 9 WHEN + 98 THEN NULL WHEN - ( + 62 ) THEN COUNT( * ) WHEN + COUNT( + 20 ) THEN + 91 ELSE NULL END AS DECIMAL ), 3 ), 70 / + + 14 - + 26 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL CASE + 41 WHEN - AVG ( ALL - 90 ) THEN - 88 WHEN - - MIN ( 59 ) + 99 THEN + COALESCE ( - COALESCE ( - CAST ( + CASE - - 9 WHEN + 98 THEN NULL WHEN - ( + 62 ) THEN COUNT ( * ) WHEN + COUNT ( + 20 ) THEN + 91 ELSE NULL END AS REAL ), 3 ), 70 / + + 14 - + 26 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - 68 + COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3669
SELECT - 68 + COUNT ( * ) AS col0
----
-67

query I rowsort
SELECT 40 + - 76
----
-36

query II rowsort
SELECT - 50 AS col0, + 96 AS col1
----
-50
96

query I rowsort
SELECT 99 + 38 AS col0
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT ALL - - 14 + 80 * + ( CAST( + + 91 AS SIGNED ) ) * + 84 * + 76
----
46475534

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL - - 14 + 80 * + ( CAST ( + + 91 AS INTEGER ) ) * + 84 * + 76
----
46475534

query I rowsort
SELECT 5 * - 63 * + 39 AS col1
----
-12285

query I rowsort
SELECT 12 + - + 67
----
-55

query I rowsort
SELECT ALL + 3 * + - ( - 68 )
----
204

query II rowsort
SELECT ALL 10 AS col1, + 92 * - - 76 AS col0
----
10
6992

query II rowsort
SELECT - 11 AS col1, 90
----
-11
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3679
SELECT ALL + 13 + - + COUNT( * ) * CAST( + - 83 AS SIGNED ) * 81 AS col1
----
6736

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL + 13 + - + COUNT ( * ) * CAST ( + - 83 AS INTEGER ) * 81 AS col1
----
6736

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL + COUNT( ALL + - 47 ) + + - 91 - 79 col1
----
-169

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + COUNT ( ALL + - 47 ) + + - 91 - 79 col1
----
-169

query I rowsort
SELECT ALL + 4 * 74 * - 21 col0
----
-6216

query I rowsort
SELECT ALL - 13 + - - 59
----
46

query I rowsort
SELECT DISTINCT + 86 * - 95 AS col0
----
-8170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3684
SELECT DISTINCT - COUNT( * ) + + - MIN( ALL + 99 ) - 54 + + COUNT( * ) * CAST( + 99 AS SIGNED ) * - 49 * + + NULLIF ( MAX( DISTINCT + + 27 ), - - COUNT( * ) ) + + 84 + - ( + 14 ) * + + 88 + - COUNT( * ) + + + 93 DIV + 16 + - + COUNT( * ) + - 15 * - 6 col0
----
-132186

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT - COUNT ( * ) + + - MIN ( ALL + 99 ) - 54 + + COUNT ( * ) * CAST ( + 99 AS INTEGER ) * - 49 * + + NULLIF ( MAX ( DISTINCT + + 27 ), - - COUNT ( * ) ) + + 84 + - ( + 14 ) * + + 88 + - COUNT ( * ) + + + 93 / + 16 + - + COUNT ( * ) + - 15 * - 6 col0
----
-132186

query I rowsort
SELECT 91 * 98
----
8918

query I rowsort
SELECT ALL - ( - ( - 59 ) )
----
-59

query I rowsort
SELECT ALL - ( - 43 ) + + 87
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT DISTINCT - CAST( + + 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT - CAST ( + + 70 AS INTEGER )
----
-70

query I rowsort
SELECT 7 + + 90
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3690
SELECT 11 DIV - + 8 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3690
SELECT 11 / - + 8 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3691
SELECT COALESCE ( - + 95, - ( + 79 ) * + 72 + - 40 * 47 + - CASE + 13 WHEN + - 17 THEN - 60 + 76 + - - 44 WHEN - COUNT( * ) + COALESCE ( + 33, - COUNT( * ) + - - 26 ) THEN NULL WHEN - + 96 THEN NULL ELSE NULL END, - 84 * 78 DIV 94 * + 64 ) + + 97 * + ( - + COALESCE ( CASE - COUNT( * ) WHEN 85 THEN NULL WHEN - 99 THEN + + ( 67 ) ELSE - ( 73 ) + - ( 18 + 61 * + 48 ) END, - 68 - 42, + 7 ) ) + 46 * 53 AS col0
----
295186

skipif mysql # not compatible
query I rowsort label-3691
SELECT COALESCE ( - + 95, - ( + 79 ) * + 72 + - 40 * 47 + - CASE + 13 WHEN + - 17 THEN - 60 + 76 + - - 44 WHEN - COUNT ( * ) + COALESCE ( + 33, - COUNT ( * ) + - - 26 ) THEN NULL WHEN - + 96 THEN NULL ELSE NULL END, - 84 * 78 / 94 * + 64 ) + + 97 * + ( - + COALESCE ( CASE - COUNT ( * ) WHEN 85 THEN NULL WHEN - 99 THEN + + ( 67 ) ELSE - ( 73 ) + - ( 18 + 61 * + 48 ) END, - 68 - 42, + 7 ) ) + 46 * 53 AS col0
----
295186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3692
SELECT ALL + CAST( NULL AS SIGNED ) / - SUM( ALL - + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL + CAST ( NULL AS INTEGER ) / - SUM ( ALL - + 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT - MIN( ALL 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT - MIN ( ALL 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT COUNT( * ) * + - 96 * 38 + + 78 + 3
----
-3567

skipif mysql # not compatible
query I rowsort label-3694
SELECT COUNT ( * ) * + - 96 * 38 + + 78 + 3
----
-3567

query I rowsort
SELECT ALL 45 - + 90
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3696
SELECT - COALESCE ( - 54, COUNT( * ) * + 72 + CAST( 27 AS SIGNED ) + + SUM( 57 ) * COUNT( * ) + + - 85 ) + 73
----
127

skipif mysql # not compatible
query I rowsort label-3696
SELECT - COALESCE ( - 54, COUNT ( * ) * + 72 + CAST ( 27 AS INTEGER ) + + SUM ( 57 ) * COUNT ( * ) + + - 85 ) + 73
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT ALL - - MAX( ALL + ( - 71 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL - - MAX ( ALL + ( - 71 ) )
----
-71

query I rowsort
SELECT 27 + 1 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT ALL - NULLIF ( - CAST( + - 7 AS SIGNED ), - 40 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL - NULLIF ( - CAST ( + - 7 AS INTEGER ), - 40 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT + CASE + 67 WHEN - - 55 * - ( + COUNT( - 98 ) ) THEN 46 + 20 * + 52 * - 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT + CASE + 67 WHEN - - 55 * - ( + COUNT ( - 98 ) ) THEN 46 + 20 * + 52 * - 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT COUNT( DISTINCT + 3 ) - 30 col0
----
-29

skipif mysql # not compatible
query I rowsort label-3701
SELECT COUNT ( DISTINCT + 3 ) - 30 col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT + 50 * + + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-3702
SELECT + 50 * + + COUNT ( * )
----
50

query I rowsort
SELECT + + 32 * 94 + 34 AS col1
----
3042

query II rowsort
SELECT + 60 col2, 59
----
60
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL + NULLIF ( - ( ( + 99 ) ), + COUNT( * ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + NULLIF ( - ( ( + 99 ) ), + COUNT ( * ) ) AS col2
----
-99

query I rowsort
SELECT ALL + 20 * + 45 * + 90
----
81000

query I rowsort
SELECT DISTINCT ( + 86 ) AS col2
----
86

query I rowsort
SELECT ALL CASE - - 5 WHEN - - 56 THEN + 59 WHEN 49 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3709
SELECT + COUNT( * ) - + - ( CAST( + + 44 AS SIGNED ) ) + COUNT( * ) * + 2 DIV + + 93 col2, - ( + 94 ) AS col1
----
45
-94

skipif mysql # not compatible
query II rowsort label-3709
SELECT + COUNT ( * ) - + - ( CAST ( + + 44 AS INTEGER ) ) + COUNT ( * ) * + 2 / + + 93 col2, - ( + 94 ) AS col1
----
45
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL + + MIN( + - 17 ) * - 11
----
187

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + + MIN ( + - 17 ) * - 11
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL + 38 + + SUM( ALL - - 26 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL + 38 + + SUM ( ALL - - 26 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT - CASE + NULLIF ( - COUNT( * ), + 15 * + - ( - COUNT( - - 19 ) ) + 71 ) WHEN - - 7 * + 56 THEN - + COUNT( 71 ) * - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT - CASE + NULLIF ( - COUNT ( * ), + 15 * + - ( - COUNT ( - - 19 ) ) + 71 ) WHEN - - 7 * + 56 THEN - + COUNT ( 71 ) * - 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3713
SELECT - 6, + COUNT( + + 3 ) AS col1
----
-6
1

skipif mysql # not compatible
query II rowsort label-3713
SELECT - 6, + COUNT ( + + 3 ) AS col1
----
-6
1

query I rowsort
SELECT + 66 * + + ( - + 27 ) * - 85 * + - 19
----
-2877930

query II rowsort
SELECT ALL - 63 + + - 56, + 86 * + 34 + + - COALESCE ( - - 22, 33 ) AS col1
----
-119
2902

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT DISTINCT MIN( - ( + 75 ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT MIN ( - ( + 75 ) ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT + + 82 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT + + 82 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 1 + - 12 + 51, + 21 * NULLIF ( - + ( + 44 ), 58 + + 62 * - ( - 17 ) ) AS col1
----
38
-924

query I rowsort
SELECT ALL 65 * 97 AS col1
----
6305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3720
SELECT + CASE WHEN 33 NOT BETWEEN - + 16 AND ( + COUNT( * ) + COUNT( * ) / - COALESCE ( - 27, ( - MAX( ALL 41 ) ) / 24 * - - 95 - - 80 + - COUNT( * ) * CAST( NULL AS DECIMAL ) / + 76 - - + 74 * - 49 + - - 25 ) * 89 * - NULLIF ( - - SUM( DISTINCT + 57 ), COUNT( * ) ) - 29 - + MAX( - - 43 ) - + + MAX( DISTINCT + 90 ) + CASE - + 26 WHEN NULLIF ( 5, + 58 * MIN( 67 ) + COUNT( * ) * 8 ) * 47 + CAST( NULL AS SIGNED ) THEN 57 WHEN + 45 THEN NULL ELSE CAST( 35 AS SIGNED ) * 56 END * CAST( NULL AS SIGNED ) ) THEN NULL WHEN NOT + ( - 10 ) / 42 IS NULL THEN + 93 ELSE 54 END * + 36
----
3348

skipif mysql # not compatible
query I rowsort label-3720
SELECT + CASE WHEN 33 NOT BETWEEN - + 16 AND ( + COUNT ( * ) + COUNT ( * ) / - COALESCE ( - 27, ( - MAX ( ALL 41 ) ) / 24 * - - 95 - - 80 + - COUNT ( * ) * CAST ( NULL AS REAL ) / + 76 - - + 74 * - 49 + - - 25 ) * 89 * - NULLIF ( - - SUM ( DISTINCT + 57 ), COUNT ( * ) ) - 29 - + MAX ( - - 43 ) - + + MAX ( DISTINCT + 90 ) + CASE - + 26 WHEN NULLIF ( 5, + 58 * MIN ( 67 ) + COUNT ( * ) * 8 ) * 47 + CAST ( NULL AS INTEGER ) THEN 57 WHEN + 45 THEN NULL ELSE CAST ( 35 AS INTEGER ) * 56 END * CAST ( NULL AS INTEGER ) ) THEN NULL WHEN NOT + ( - 10 ) / 42 IS NULL THEN + 93 ELSE 54 END * + 36
----
3348

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3721
SELECT - 77 * CAST( - CAST( 81 AS DECIMAL ) AS SIGNED )
----
6237

skipif mysql # not compatible
query I rowsort label-3721
SELECT - 77 * CAST ( - CAST ( 81 AS REAL ) AS INTEGER )
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT 36 + - CASE 63 WHEN + ( - + COUNT( - 12 ) ) - + 65 * - - MIN( + 63 ) THEN + 22 WHEN - - 54 THEN NULL ELSE NULL END * - + 42 + 51 - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT 36 + - CASE 63 WHEN + ( - + COUNT ( - 12 ) ) - + 65 * - - MIN ( + 63 ) THEN + 22 WHEN - - 54 THEN NULL ELSE NULL END * - + 42 + 51 - + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT - COALESCE ( ( - - 73 ), MIN( - - 77 ), - 1 + - - 74 + + 4 * - 40 * + 64 )
----
-73

skipif mysql # not compatible
query I rowsort label-3723
SELECT - COALESCE ( ( - - 73 ), MIN ( - - 77 ), - 1 + - - 74 + + 4 * - 40 * + 64 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT ALL - COUNT( * ) + + - 57 AS col2, - ( - + 76 ) AS col1
----
-58
76

skipif mysql # not compatible
query II rowsort label-3724
SELECT ALL - COUNT ( * ) + + - 57 AS col2, - ( - + 76 ) AS col1
----
-58
76

query I rowsort
SELECT - NULLIF ( - + ( - - 77 ), - 40 * - 72 + 15 ) AS col1
----
77

query I rowsort
SELECT ALL 30 * - ( + 70 ) AS col2
----
-2100

query I rowsort
SELECT - 41 * + 28 * - 4 col0
----
4592

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL COALESCE ( - CASE + 42 WHEN + COALESCE ( + 86, + 15 + ( + 48 ) + + 36 ) * - ( - 85 ) * + - COUNT( + + 49 ) THEN NULL ELSE 79 END, + 67, + COUNT( * ) )
----
-79

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL COALESCE ( - CASE + 42 WHEN + COALESCE ( + 86, + 15 + ( + 48 ) + + 36 ) * - ( - 85 ) * + - COUNT ( + + 49 ) THEN NULL ELSE 79 END, + 67, + COUNT ( * ) )
----
-79

query I rowsort
SELECT ALL 23 + 75 AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3730
SELECT - 70 DIV - - 92 * + - ( - 36 ) * MAX( ALL - + 23 ) + - - 30 + + - 56 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3730
SELECT - 70 / - - 92 * + - ( - 36 ) * MAX ( ALL - + 23 ) + - - 30 + + - 56 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL + CASE - 35 WHEN - + MIN( - 28 ) * ( + 35 ) THEN - + 12 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL + CASE - 35 WHEN - + MIN ( - 28 ) * ( + 35 ) THEN - + 12 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3732
SELECT + 81 + + CAST( - 98 AS SIGNED ) * + NULLIF ( COUNT( * ), - - 91 + - + 22 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3732
SELECT + 81 + + CAST ( - 98 AS INTEGER ) * + NULLIF ( COUNT ( * ), - - 91 + - + 22 ) AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT ALL + CAST( NULL AS SIGNED ) * - 75 - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL + CAST ( NULL AS INTEGER ) * - 75 - - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL COUNT( * ) * + 93 - + - 38 AS col1
----
131

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL COUNT ( * ) * + 93 - + - 38 AS col1
----
131

query I rowsort
SELECT DISTINCT + 28 * + 55 * - 75
----
-115500

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT + 55 * COUNT( * ) * + 33 * 15
----
27225

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + 55 * COUNT ( * ) * + 33 * 15
----
27225

onlyif mysql # DIV for integer division: 
query I rowsort label-3737
SELECT - 32 DIV 22 - + + 40 * + 34 * + - ( - 62 ) AS col1
----
-84321

skipif mysql # not compatible
query I rowsort label-3737
SELECT - 32 / 22 - + + 40 * + 34 * + - ( - 62 ) AS col1
----
-84321

query I rowsort
SELECT - + 49 * + + 8 AS col2
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL + + ( - COUNT( * ) ) * + 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + + ( - COUNT ( * ) ) * + 50 AS col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3740
SELECT - + MAX( DISTINCT - 4 ) DIV + + 97 * + 25
----
0

skipif mysql # not compatible
query I rowsort label-3740
SELECT - + MAX ( DISTINCT - 4 ) / + + 97 * + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT - - ( + 55 ) + - 17 + - SUM( 29 ) + - + COUNT( * ) * - 66
----
75

skipif mysql # not compatible
query I rowsort label-3741
SELECT - - ( + 55 ) + - 17 + - SUM ( 29 ) + - + COUNT ( * ) * - 66
----
75

query I rowsort
SELECT + 35 * ( + 27 ) - - 23 AS col0
----
968

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT DISTINCT - 60 DIV - 65 * - 17 col2
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT - 60 / - 65 * - 17 col2
----
0

query I rowsort
SELECT + 55 * - 63 + - 24 + 66 AS col2
----
-3423

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - + 86 + - COUNT( + 66 )
----
-87

skipif mysql # not compatible
query I rowsort label-3745
SELECT - + 86 + - COUNT ( + 66 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT + 59 - + + COALESCE ( - COUNT( * ), - 62 + + - 6 + - + 37 - - 89, - 91 - + 45 - 46 ) + 30 DIV + 42 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3746
SELECT + 59 - + + COALESCE ( - COUNT ( * ), - 62 + + - 6 + - + 37 - - 89, - 91 - + 45 - 46 ) + 30 / + 42 AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3747
SELECT DISTINCT 29 * - CAST( + 67 AS DECIMAL ) - CAST( NULL AS SIGNED ) + - + 48 - + - 47 * + + 38 + ( + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT 29 * - CAST ( + 67 AS REAL ) - CAST ( NULL AS INTEGER ) + - + 48 - + - 47 * + + 38 + ( + 19 )
----
NULL

query I rowsort
SELECT ALL - 17 + 80
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - COUNT( * ) + 20 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3749
SELECT - COUNT ( * ) + 20 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT - - ( + MIN( DISTINCT + 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-3750
SELECT - - ( + MIN ( DISTINCT + 62 ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT ALL + CAST( + COUNT( ALL 51 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL + CAST ( + COUNT ( ALL 51 ) AS INTEGER )
----
1

query II rowsort
SELECT - 17 + - 47, 24 AS col1
----
-64
24

query I rowsort
SELECT ALL 83 + + 26
----
109

query I rowsort
SELECT + 89 * 76
----
6764

query I rowsort
SELECT DISTINCT - 4 * - + 27
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT + 65 + NULLIF ( SUM( DISTINCT + 5 ), - 42 ) * + 16 + 86
----
231

skipif mysql # not compatible
query I rowsort label-3756
SELECT + 65 + NULLIF ( SUM ( DISTINCT + 5 ), - 42 ) * + 16 + 86
----
231

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3757
SELECT ALL CAST( + CAST( - 56 AS DECIMAL ) AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL CAST ( + CAST ( - 56 AS REAL ) AS INTEGER )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT DISTINCT 89 + - CAST( ( - 41 ) AS SIGNED ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT 89 + - CAST ( ( - 41 ) AS INTEGER ) AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL 53 * - CASE + 12 WHEN + + COUNT( * ) THEN COUNT( * ) / + + COALESCE ( - 87, + 54 ) + + 24 * - ( - + COUNT( * ) ) WHEN - ( - 71 ) + - 54 THEN + ( 45 ) * - 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL 53 * - CASE + 12 WHEN + + COUNT ( * ) THEN COUNT ( * ) / + + COALESCE ( - 87, + 54 ) + + 24 * - ( - + COUNT ( * ) ) WHEN - ( - 71 ) + - 54 THEN + ( 45 ) * - 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT ALL COUNT( 34 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL COUNT ( 34 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3761
SELECT DISTINCT 82 DIV - - 61
----
1

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT 82 / - - 61
----
1

query I rowsort
SELECT + 11 * - - 11
----
121

query I rowsort
SELECT ALL 17 * - 96
----
-1632

query I rowsort
SELECT - ( + CASE 99 WHEN + 30 THEN 29 END )
----
NULL

query I rowsort
SELECT ALL 52 * 21 * + 81 AS col2
----
88452

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT + 75 DIV - + 42
----
-1

skipif mysql # not compatible
query I rowsort label-3766
SELECT + 75 / - + 42
----
-1

query II rowsort
SELECT ALL 33 AS col1, - ( - - 25 ) AS col0
----
33
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3768
SELECT ALL + COALESCE ( + - CASE + SUM( DISTINCT CAST( NULL AS SIGNED ) ) WHEN + - 19 THEN 74 * - - 7 + + + 21 END, 41 * - + MIN( - - 12 ) + - 73 - + - SUM( - + 92 ) ) AS col1, - ( - + 13 ) * COUNT( * )
----
-657
13

skipif mysql # not compatible
query II rowsort label-3768
SELECT ALL + COALESCE ( + - CASE + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) WHEN + - 19 THEN 74 * - - 7 + + + 21 END, 41 * - + MIN ( - - 12 ) + - 73 - + - SUM ( - + 92 ) ) AS col1, - ( - + 13 ) * COUNT ( * )
----
-657
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3769
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * 35 AS col0, - COUNT( * ) DIV + COUNT( * ) AS col1
----
35
-1

skipif mysql # not compatible
query II rowsort label-3769
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * 35 AS col0, - COUNT ( * ) / + COUNT ( * ) AS col1
----
35
-1

query I rowsort
SELECT + 16 * NULLIF ( 8, + 68 )
----
128

query I rowsort
SELECT - ( + 13 ) * - ( - - 31 ) * - 86
----
-34658

query I rowsort
SELECT + 58 + + CASE + + 93 WHEN + ( 58 ) + + 97 + + 47 THEN - 25 + - + 86 WHEN + 40 * + 67 * - 55 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 32 + + 12 * + 36 + + 9
----
409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3774
SELECT + CAST( + 66 AS SIGNED ) * + COUNT( * ), 37 AS col1
----
66
37

skipif mysql # not compatible
query II rowsort label-3774
SELECT + CAST ( + 66 AS INTEGER ) * + COUNT ( * ), 37 AS col1
----
66
37

query I rowsort
SELECT DISTINCT - 31 * + - 45 + - 8 AS col0
----
1387

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT ALL + - COUNT( * ) AS col2, - 4
----
-1
-4

skipif mysql # not compatible
query II rowsort label-3776
SELECT ALL + - COUNT ( * ) AS col2, - 4
----
-1
-4

query I rowsort
SELECT + - 35 col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3778
SELECT ALL - - COUNT( * ) * CAST( NULL AS DECIMAL ) * - SUM( DISTINCT 12 ) * - + 19 + - CAST( + 27 AS SIGNED ) + - 8 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL - - COUNT ( * ) * CAST ( NULL AS REAL ) * - SUM ( DISTINCT 12 ) * - + 19 + - CAST ( + 27 AS INTEGER ) + - 8 * + - COUNT ( * )
----
NULL

query II rowsort
SELECT - 95 col0, 2 col2
----
-95
2

query I rowsort
SELECT ALL - 87 * - 54
----
4698

query I rowsort
SELECT ALL - 38 + - - 84
----
46

query I rowsort
SELECT 92 * - - 17 + + + 16 AS col1
----
1580

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT + 78 - - SUM( DISTINCT 6 ) + + - 51
----
33

skipif mysql # not compatible
query I rowsort label-3783
SELECT + 78 - - SUM ( DISTINCT 6 ) + + - 51
----
33

query I rowsort
SELECT COALESCE ( - 24, - - ( + 63 ) ) col0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT - SUM( 52 ) * - 8 AS col2, - 25
----
416
-25

skipif mysql # not compatible
query II rowsort label-3785
SELECT - SUM ( 52 ) * - 8 AS col2, - 25
----
416
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ALL - + 94 + + COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL - + 94 + + COUNT ( * ) AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3787
SELECT ALL COUNT( CAST( + 57 AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL COUNT ( CAST ( + 57 AS REAL ) ) AS col2
----
1

query I rowsort
SELECT ALL + 45 - - + 81 col2
----
126

query I rowsort
SELECT ALL 12 * + 33 col2
----
396

onlyif mysql # aggregate syntax: 
query II rowsort label-3790
SELECT ALL - 82 - - + 41 AS col2, - SUM( DISTINCT - 92 )
----
-41
92

skipif mysql # not compatible
query II rowsort label-3790
SELECT ALL - 82 - - + 41 AS col2, - SUM ( DISTINCT - 92 )
----
-41
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3791
SELECT 92 - COUNT( * ) col1, - CAST( NULL AS SIGNED ) + ( 21 )
----
91
NULL

skipif mysql # not compatible
query II rowsort label-3791
SELECT 92 - COUNT ( * ) col1, - CAST ( NULL AS INTEGER ) + ( 21 )
----
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT - 73 * - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT - 73 * - COUNT ( * ) AS col0
----
73

query I rowsort
SELECT 40 * + 96 * + 52 * 29 col1
----
5790720

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL - ( - + 11 ) * + MAX( + 14 ) AS col0
----
154

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - ( - + 11 ) * + MAX ( + 14 ) AS col0
----
154

query I rowsort
SELECT 30 * 7 AS col2
----
210

query I rowsort
SELECT ALL - 55 * + 57 AS col0
----
-3135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3797
SELECT 20 + + 40 DIV - MIN( + + 40 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3797
SELECT 20 + + 40 / - MIN ( + + 40 ) AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3798
SELECT ALL COUNT( * ) DIV - 5 * - 17
----
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL COUNT ( * ) / - 5 * - 17
----
0

query I rowsort
SELECT 26 + 96
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3800
SELECT ALL COUNT( * ) DIV 11
----
0

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL COUNT ( * ) / 11
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3801
SELECT - 24 DIV + ( + 68 ) * + COUNT( * ) + + 32 + + - COUNT( * ) * 73 * + 51 * - 92 AS col0, ( 92 ) AS col0
----
342548
92

skipif mysql # not compatible
query II rowsort label-3801
SELECT - 24 / + ( + 68 ) * + COUNT ( * ) + + 32 + + - COUNT ( * ) * 73 * + 51 * - 92 AS col0, ( 92 ) AS col0
----
342548
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3802
SELECT ALL 77 + 27 DIV - 57 * - CAST( - 30 AS SIGNED ) DIV - + 28
----
77

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL 77 + 27 / - 57 * - CAST ( - 30 AS INTEGER ) / - + 28
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - 47 + MAX( + + ( + - 16 ) ) * + 73 * - - COUNT( * ) AS col1
----
-1215

skipif mysql # not compatible
query I rowsort label-3803
SELECT - 47 + MAX ( + + ( + - 16 ) ) * + 73 * - - COUNT ( * ) AS col1
----
-1215

query I rowsort
SELECT + 76 * - 24 + + 34
----
-1790

query I rowsort
SELECT + ( ( - ( 42 ) ) )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3806
SELECT ALL - 33 + 92 AS col1, 86 * + 69 * - CAST( NULL AS SIGNED ) * - + COUNT( * )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-3806
SELECT ALL - 33 + 92 AS col1, 86 * + 69 * - CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
59
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT ALL + - 47 + COUNT( * ) DIV 27 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL + - 47 + COUNT ( * ) / 27 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL - + 84 + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL - + 84 + COUNT ( * )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3809
SELECT + 96 + 93 + - 45 - - CAST( 12 AS SIGNED ) * - SUM( - - NULLIF ( - CAST( NULL AS SIGNED ), + - 24 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3809
SELECT + 96 + 93 + - 45 - - CAST ( 12 AS INTEGER ) * - SUM ( - - NULLIF ( - CAST ( NULL AS INTEGER ), + - 24 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 41 * - 31 - + 59
----
1212

query I rowsort
SELECT DISTINCT - ( + 73 ) AS col0
----
-73

query I rowsort
SELECT - 76 + + + 68 + + + 10 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - - 4 * - 60 * + 53 - MAX( ALL + 73 ) * + + 6 AS col0
----
-13158

skipif mysql # not compatible
query I rowsort label-3813
SELECT - - 4 * - 60 * + 53 - MAX ( ALL + 73 ) * + + 6 AS col0
----
-13158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3814
SELECT ALL + 84 + CAST( NULL AS SIGNED ) * + ( + SUM( ALL - + CAST( - 75 AS SIGNED ) ) ) / COUNT( * ), - 43 AS col2
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-3814
SELECT ALL + 84 + CAST ( NULL AS INTEGER ) * + ( + SUM ( ALL - + CAST ( - 75 AS INTEGER ) ) ) / COUNT ( * ), - 43 AS col2
----
NULL
-43

query I rowsort
SELECT ALL - 26 * - 35
----
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT + NULLIF ( - CAST( - + 4 AS SIGNED ), + - 41 )
----
4

skipif mysql # not compatible
query I rowsort label-3816
SELECT + NULLIF ( - CAST ( - + 4 AS INTEGER ), + - 41 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL 7 * + 88 * - - MAX( - 59 ) AS col2
----
-36344

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL 7 * + 88 * - - MAX ( - 59 ) AS col2
----
-36344

query I rowsort
SELECT DISTINCT + 41 * - + 92 AS col0
----
-3772

query I rowsort
SELECT 40 * + 27 col1
----
1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3820
SELECT ALL + CAST( NULL AS SIGNED ) - + - 9 * - COUNT( * ), + 76 * ( + + ( - ( + + ( - 9 ) ) ) ) col2
----
NULL
684

skipif mysql # not compatible
query II rowsort label-3820
SELECT ALL + CAST ( NULL AS INTEGER ) - + - 9 * - COUNT ( * ), + 76 * ( + + ( - ( + + ( - 9 ) ) ) ) col2
----
NULL
684

query I rowsort
SELECT 20 + + - 48 AS col0
----
-28

query I rowsort
SELECT 27 * - ( - - ( + 88 ) ) AS col1
----
-2376

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT 30 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-3823
SELECT 30 / 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL - 24 * + COUNT( * ) * + - COALESCE ( 48, - 59 + 75 + + - 74 * - 60 ) AS col1
----
1152

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL - 24 * + COUNT ( * ) * + - COALESCE ( 48, - 59 + 75 + + - 74 * - 60 ) AS col1
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT COUNT( DISTINCT 15 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT COUNT ( DISTINCT 15 ) col1
----
1

query II rowsort
SELECT DISTINCT - ( 66 ) * + 63 + - 28 * - + 86 AS col2, + 48 col0
----
-1750
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT DISTINCT COUNT( + 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT COUNT ( + 25 ) AS col2
----
1

query I rowsort
SELECT ALL - 24 + + 53 + + 44 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT 71 + + COUNT( * ) * + - 79 * - - 67 AS col2
----
-5222

skipif mysql # not compatible
query I rowsort label-3829
SELECT 71 + + COUNT ( * ) * + - 79 * - - 67 AS col2
----
-5222

query I rowsort
SELECT ALL + 61 + + 75
----
136

query I rowsort
SELECT ALL CASE - AVG ( - 90 ) WHEN - 32 THEN 38 WHEN - 2 THEN NULL WHEN 29 THEN + 34 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT DISTINCT + CAST( - - 17 AS SIGNED ) + + - ( 73 )
----
-56

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT + CAST ( - - 17 AS INTEGER ) + + - ( 73 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT ALL - 31 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL - 31 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 62, 91 AS col2
----
62
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3835
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN + + CAST( + 76 AS DECIMAL ) * + 62 * + - 74 THEN + 42 WHEN + + 50 THEN - COUNT( * ) + + - 67 + + 67 + - COUNT( - CAST( NULL AS SIGNED ) ) * 29 * + ( - 22 ) - COUNT( * ) * 89 ELSE NULL END + - 76 + + 51 + - - 5 * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN + + CAST ( + 76 AS REAL ) * + 62 * + - 74 THEN + 42 WHEN + + 50 THEN - COUNT ( * ) + + - 67 + + 67 + - COUNT ( - CAST ( NULL AS INTEGER ) ) * 29 * + ( - 22 ) - COUNT ( * ) * 89 ELSE NULL END + - 76 + + 51 + - - 5 * - 10
----
NULL

query I rowsort
SELECT DISTINCT 78 * - 1 + - - 74 * - 93 + + - 68 + - 45 AS col0
----
-7073

query I rowsort
SELECT ALL 44 * + 95 + 66 col1
----
4246

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT + SUM( 17 ) * - ( + 26 ) AS col1
----
-442

skipif mysql # not compatible
query I rowsort label-3838
SELECT + SUM ( 17 ) * - ( + 26 ) AS col1
----
-442

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3839
SELECT DISTINCT 68 / + 99 * - + ( - - 7 ) + - 33 - 40 + + NULLIF ( - COALESCE ( + 62, - SUM( DISTINCT + 0 ), 89 ), - + 72 * + - 47 - - 97 * MIN( ALL + + 15 ) + - COUNT( DISTINCT + + 78 ) + - - NULLIF ( 20, + 59 + - 60 ) ) * + 5 * + 4 + 73 * + SUM( DISTINCT - 44 ) * - CAST( NULL AS DECIMAL ) + - ( + - 21 ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT 68 / + 99 * - + ( - - 7 ) + - 33 - 40 + + NULLIF ( - COALESCE ( + 62, - SUM ( DISTINCT + 0 ), 89 ), - + 72 * + - 47 - - 97 * MIN ( ALL + + 15 ) + - COUNT ( DISTINCT + + 78 ) + - - NULLIF ( 20, + 59 + - 60 ) ) * + 5 * + 4 + 73 * + SUM ( DISTINCT - 44 ) * - CAST ( NULL AS REAL ) + - ( + - 21 ) * + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ALL + SUM( ALL - + 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL + SUM ( ALL - + 42 ) AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3841
SELECT ALL 52 * - - 49 + + + 25 + - 19 + 77 DIV + 25 + + - 76 + - 81 AS col1
----
2400

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL 52 * - - 49 + + + 25 + - 19 + 77 / + 25 + + - 76 + - 81 AS col1
----
2400

query I rowsort
SELECT - + 15 * - 7
----
105

query I rowsort
SELECT + + 10 * 40 * + 7 * 2 + - 11 * - 0
----
5600

query I rowsort
SELECT + + ( - + 44 ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT + COALESCE ( + COUNT( * ), - COALESCE ( - + COUNT( - 31 ), + CAST( NULL AS SIGNED ) + 6 + + - CAST( NULL AS SIGNED ) ) + + 55 ) + + 54 + - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3845
SELECT + COALESCE ( + COUNT ( * ), - COALESCE ( - + COUNT ( - 31 ), + CAST ( NULL AS INTEGER ) + 6 + + - CAST ( NULL AS INTEGER ) ) + + 55 ) + + 54 + - COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT DISTINCT + 35 * - 67 - 74 - 62 * + 45 AS col2, + 23 + - + NULLIF ( - 46, SUM( ALL + 94 ) ) AS col0
----
-5209
69

skipif mysql # not compatible
query II rowsort label-3846
SELECT DISTINCT + 35 * - 67 - 74 - 62 * + 45 AS col2, + 23 + - + NULLIF ( - 46, SUM ( ALL + 94 ) ) AS col0
----
-5209
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT - 36 * - ( - COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - 36 * - ( - COUNT ( * ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT + 95 * + - MIN( DISTINCT 43 )
----
-4085

skipif mysql # not compatible
query I rowsort label-3848
SELECT + 95 * + - MIN ( DISTINCT 43 )
----
-4085

query I rowsort
SELECT - 92 * - NULLIF ( + 71, 71 ) + + + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - COUNT( * ) * + + COUNT( * ) * - 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3850
SELECT - COUNT ( * ) * + + COUNT ( * ) * - 60 AS col2
----
60

query I rowsort
SELECT + 59 * + 51 * 50
----
150450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3852
SELECT ALL COUNT( * ), 18 * - - CAST( + 58 AS SIGNED ) AS col0
----
1
1044

skipif mysql # not compatible
query II rowsort label-3852
SELECT ALL COUNT ( * ), 18 * - - CAST ( + 58 AS INTEGER ) AS col0
----
1
1044

query I rowsort
SELECT ALL + 92 * 57 * - - NULLIF ( + 39, - COALESCE ( 53, - 85 ) * - - 48 - - 22 + - 64 )
----
204516

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT - COUNT( * ) * - - 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3854
SELECT - COUNT ( * ) * - - 83 AS col0
----
-83

query I rowsort
SELECT ALL CASE - + 9 WHEN + 18 THEN NULL ELSE + - 30 END AS col0
----
-30

query I rowsort
SELECT + 17 - - 62 + - 77 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT DISTINCT COUNT( * ) AS col2, - 17 + - SUM( - - 83 ) + 14
----
1
-86

skipif mysql # not compatible
query II rowsort label-3857
SELECT DISTINCT COUNT ( * ) AS col2, - 17 + - SUM ( - - 83 ) + 14
----
1
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3858
SELECT ALL + 92 + + COUNT( * ) + - - 65 DIV 38 * - 77 * - SUM( - CASE 2 WHEN 3 * - 57 THEN NULL ELSE 88 END ), - 31 col1
----
-6683
-31

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL + 92 + + COUNT ( * ) + - - 65 / 38 * - 77 * - SUM ( - CASE 2 WHEN 3 * - 57 THEN NULL ELSE 88 END ), - 31 col1
----
-6683
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT + MIN( DISTINCT + 47 ) * - - 7 * - 16 AS col0
----
-5264

skipif mysql # not compatible
query I rowsort label-3859
SELECT + MIN ( DISTINCT + 47 ) * - - 7 * - 16 AS col0
----
-5264

onlyif mysql # aggregate syntax: 
query III rowsort label-3860
SELECT - 84 AS col2, NULLIF ( - - 25, + - COUNT( * ) / + COUNT( * ) / + COUNT( * ) + - 0 + - 22 * 93 ) AS col1, + 93 + - 8
----
-84
25
85

skipif mysql # not compatible
query III rowsort label-3860
SELECT - 84 AS col2, NULLIF ( - - 25, + - COUNT ( * ) / + COUNT ( * ) / + COUNT ( * ) + - 0 + - 22 * 93 ) AS col1, + 93 + - 8
----
-84
25
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3861
SELECT 26, 15 * - - NULLIF ( + - 74, + CAST( + - 19 AS SIGNED ) + - 56 ) AS col1
----
26
-1110

skipif mysql # not compatible
query II rowsort label-3861
SELECT 26, 15 * - - NULLIF ( + - 74, + CAST ( + - 19 AS INTEGER ) + - 56 ) AS col1
----
26
-1110

query I rowsort
SELECT ALL - 20 + + + 31
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT DISTINCT + 48 DIV - - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT + 48 / - - 72 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT ALL - - ( ( - - 65 ) ) + - 36 + - NULLIF ( + 97, 93 - - 40 + + CAST( - + 79 AS SIGNED ) + - - 37 ) * 39
----
-3754

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - - ( ( - - 65 ) ) + - 36 + - NULLIF ( + 97, 93 - - 40 + + CAST ( - + 79 AS INTEGER ) + - - 37 ) * 39
----
-3754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3865
SELECT - CASE WHEN + 2 NOT BETWEEN - 36 - - MIN( DISTINCT + 1 ) + 89 + + CAST( NULL AS SIGNED ) + - - COUNT( * ) * + + 52 + + 16 AND + - AVG ( + 66 ) + + 13 THEN 51 DIV + 71 END - 88 * - 24 col1
----
2112

skipif mysql # not compatible
query I rowsort label-3865
SELECT - CASE WHEN + 2 NOT BETWEEN - 36 - - MIN ( DISTINCT + 1 ) + 89 + + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + + 52 + + 16 AND + - AVG ( + 66 ) + + 13 THEN 51 / + 71 END - 88 * - 24 col1
----
2112

query I rowsort
SELECT DISTINCT + 52 + - - 22 AS col1
----
74

query I rowsort
SELECT - ( - 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT DISTINCT CASE + + 53 WHEN 9 THEN + 45 WHEN + 62 THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT CASE + + 53 WHEN 9 THEN + 45 WHEN + 62 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT - + 19 + - + 84 * - + 76 * - - 28 * + - 1 AS col1
----
-178771

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL + COUNT( * ) * + MAX( DISTINCT + 52 ) col0
----
52

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL + COUNT ( * ) * + MAX ( DISTINCT + 52 ) col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3871
SELECT ALL - CASE + - 84 WHEN + + COUNT( * ) THEN NULL WHEN - CASE 32 WHEN - 10 / - ( - COUNT( * ) ) * - - 95 * 58 + - - ( - + 83 ) THEN 56 END THEN 85 WHEN - 33 * - CAST( + 76 AS SIGNED ) + ( - 68 ) * + SUM( ALL - - 68 ) THEN NULL ELSE NULL END + + 24 * - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - CASE + - 84 WHEN + + COUNT ( * ) THEN NULL WHEN - CASE 32 WHEN - 10 / - ( - COUNT ( * ) ) * - - 95 * 58 + - - ( - + 83 ) THEN 56 END THEN 85 WHEN - 33 * - CAST ( + 76 AS INTEGER ) + ( - 68 ) * + SUM ( ALL - - 68 ) THEN NULL ELSE NULL END + + 24 * - 40 AS col1
----
NULL

query I rowsort
SELECT - + 70 + + 76
----
6

query III rowsort
SELECT DISTINCT + 62 AS col0, 99 + 45 * + - 67 AS col1, + - 28 AS col0
----
62
-2916
-28

query I rowsort
SELECT 95 * - 59 + 27
----
-5578

query II rowsort
SELECT + 70, 46 AS col2
----
70
46

query II rowsort
SELECT ALL + + 7 col2, + 0
----
7
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT DISTINCT 71 / CAST( NULL AS SIGNED ) * + CASE - 98 WHEN 50 + + 42 THEN MAX( - ( + 4 ) ) * - 15 ELSE NULL END + - 93 - - 70 * - 72 * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT 71 / CAST ( NULL AS INTEGER ) * + CASE - 98 WHEN 50 + + 42 THEN MAX ( - ( + 4 ) ) * - 15 ELSE NULL END + - 93 - - 70 * - 72 * + 35
----
NULL

query II rowsort
SELECT ALL + - 51 AS col2, 60 AS col2
----
-51
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT + - NULLIF ( + 92, - COUNT( * ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT + - NULLIF ( + 92, - COUNT ( * ) ) AS col1
----
-92

query I rowsort
SELECT + 94 + - 36 AS col0
----
58

query II rowsort
SELECT ALL + + 73, 94 AS col0
----
73
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3882
SELECT - - COUNT( * ) DIV COUNT( + 84 ) * + 46 * 41 AS col1
----
1886

skipif mysql # not compatible
query I rowsort label-3882
SELECT - - COUNT ( * ) / COUNT ( + 84 ) * + 46 * 41 AS col1
----
1886

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT ALL + - 8 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + - 8 / + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - + 66 * + COUNT( * ) * 26 + - + 35 col1
----
-1751

skipif mysql # not compatible
query I rowsort label-3884
SELECT - + 66 * + COUNT ( * ) * 26 + - + 35 col1
----
-1751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3885
SELECT + - CAST( NULL AS SIGNED ), - 3 * COUNT( * ) * 15 * 98 AS col2
----
NULL
-4410

skipif mysql # not compatible
query II rowsort label-3885
SELECT + - CAST ( NULL AS INTEGER ), - 3 * COUNT ( * ) * 15 * 98 AS col2
----
NULL
-4410

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT + ( + COUNT( * ) ) AS col1, + 69 + - ( + 65 )
----
1
4

skipif mysql # not compatible
query II rowsort label-3886
SELECT + ( + COUNT ( * ) ) AS col1, + 69 + - ( + 65 )
----
1
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT + 59 DIV - + 86 * 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3887
SELECT + 59 / - + 86 * 29 AS col0
----
0

query I rowsort
SELECT DISTINCT + CASE + 17 WHEN + 91 THEN CASE 44 WHEN + COALESCE ( - 41, - COALESCE ( 80, + + 96 + 49 ) ) THEN NULL WHEN + 88 THEN + 78 ELSE NULL END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3889
SELECT + 35 * - 86 AS col2, + CASE + 61 WHEN - COUNT( * ) * 66 * + 3 + 26 THEN NULL ELSE + 15 * + - COUNT( * ) * - 23 DIV - COUNT( * ) END
----
-3010
-345

skipif mysql # not compatible
query II rowsort label-3889
SELECT + 35 * - 86 AS col2, + CASE + 61 WHEN - COUNT ( * ) * 66 * + 3 + 26 THEN NULL ELSE + 15 * + - COUNT ( * ) * - 23 / - COUNT ( * ) END
----
-3010
-345

query I rowsort
SELECT ALL 47 * - 21 AS col0
----
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + 53 - + 51 * - COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-3891
SELECT + 53 - + 51 * - COUNT ( * )
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-3892
SELECT DISTINCT + SUM( ALL - - 89 ) * 37 + - 45 * - - 93 AS col0, COUNT( * ) + + 64 AS col0
----
-892
65

skipif mysql # not compatible
query II rowsort label-3892
SELECT DISTINCT + SUM ( ALL - - 89 ) * 37 + - 45 * - - 93 AS col0, COUNT ( * ) + + 64 AS col0
----
-892
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3893
SELECT + ( - ( CAST( NULL AS SIGNED ) ) ) AS col0, + 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-3893
SELECT + ( - ( CAST ( NULL AS INTEGER ) ) ) AS col0, + 14
----
NULL
14

query I rowsort
SELECT - 99 * + 29
----
-2871

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + COUNT( * ) * + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3895
SELECT + COUNT ( * ) * + 96 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT ALL - 73 * - + 95 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - 73 * - + 95 + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 17 + - 14
----
3

query I rowsort
SELECT - NULLIF ( + 6, + + NULLIF ( + 78, + 55 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT CASE MAX( ALL - + 11 ) WHEN - 95 THEN 12 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT CASE MAX ( ALL - + 11 ) WHEN - 95 THEN 12 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT + 93 + 89 - + - NULLIF ( - 36, + 88 + 36 + - 35 * CAST( NULL AS SIGNED ) )
----
146

skipif mysql # not compatible
query I rowsort label-3900
SELECT + 93 + 89 - + - NULLIF ( - 36, + 88 + 36 + - 35 * CAST ( NULL AS INTEGER ) )
----
146

query I rowsort
SELECT + 99 - + 67 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT - COUNT( * ) * - COUNT( * ) + 26
----
27

skipif mysql # not compatible
query I rowsort label-3902
SELECT - COUNT ( * ) * - COUNT ( * ) + 26
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3903
SELECT - ( + 64 ) - COALESCE ( ( + 17 ), 72 DIV COUNT( * ) * + 19 DIV - CAST( NULL AS SIGNED ) + + - 41 + 36 - + 36, 24 )
----
-81

skipif mysql # not compatible
query I rowsort label-3903
SELECT - ( + 64 ) - COALESCE ( ( + 17 ), 72 / COUNT ( * ) * + 19 / - CAST ( NULL AS INTEGER ) + + - 41 + 36 - + 36, 24 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT ALL CAST( NULL AS SIGNED ) * + 88 + + 81 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL CAST ( NULL AS INTEGER ) * + 88 + + 81 col0
----
NULL

query I rowsort
SELECT + 45 + 75 AS col2
----
120

query I rowsort
SELECT ALL + 46 * - 99 + - + 42
----
-4596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 10
----
NULL

query I rowsort
SELECT ALL + 61 + + 34
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3909
SELECT CAST( 95 AS SIGNED ) + - COUNT( * ) * ( + 74 ) + + 8 * + - 80 AS col1, + 6
----
-619
6

skipif mysql # not compatible
query II rowsort label-3909
SELECT CAST ( 95 AS INTEGER ) + - COUNT ( * ) * ( + 74 ) + + 8 * + - 80 AS col1, + 6
----
-619
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3910
SELECT - CAST( + - 11 AS SIGNED ) AS col1, - 49
----
11
-49

skipif mysql # not compatible
query II rowsort label-3910
SELECT - CAST ( + - 11 AS INTEGER ) AS col1, - 49
----
11
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT + 63 + - - ( + CAST( NULL AS SIGNED ) ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT + 63 + - - ( + CAST ( NULL AS INTEGER ) ) * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL - SUM( DISTINCT + 43 ) + 3
----
-40

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - SUM ( DISTINCT + 43 ) + 3
----
-40

query I rowsort
SELECT DISTINCT + 21 - - 83
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3914
SELECT - COUNT( ALL + CAST( NULL AS SIGNED ) ) + 31 + - 75 * - - 23
----
-1694

skipif mysql # not compatible
query I rowsort label-3914
SELECT - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + 31 + - 75 * - - 23
----
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT DISTINCT - 60 - + NULLIF ( 67, - COUNT( * ) * - 59 + - ( + COUNT( * ) ) * + + 29 )
----
-127

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT - 60 - + NULLIF ( 67, - COUNT ( * ) * - 59 + - ( + COUNT ( * ) ) * + + 29 )
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT ALL + COUNT( ALL - 91 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL + COUNT ( ALL - 91 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT ALL - - SUM( - 0 ) DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - - SUM ( - 0 ) / 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3918
SELECT ALL + COUNT( * ) DIV + 47 AS col2, + 18 * - 18
----
0
-324

skipif mysql # not compatible
query II rowsort label-3918
SELECT ALL + COUNT ( * ) / + 47 AS col2, + 18 * - 18
----
0
-324

query II rowsort
SELECT + 74 * 87 AS col1, 45
----
6438
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT + ( 99 ) AS col1, COUNT( * ) - + 84 AS col2
----
99
-83

skipif mysql # not compatible
query II rowsort label-3920
SELECT + ( 99 ) AS col1, COUNT ( * ) - + 84 AS col2
----
99
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3921
SELECT CASE - 15 WHEN + - COUNT( * ) - 75 * + MIN( ALL 60 ) + + - 58 + - 10 THEN - 92 DIV - + COUNT( * ) * + 69 ELSE - 77 DIV + 8 END * + 32 AS col0
----
-288

skipif mysql # not compatible
query I rowsort label-3921
SELECT CASE - 15 WHEN + - COUNT ( * ) - 75 * + MIN ( ALL 60 ) + + - 58 + - 10 THEN - 92 / - + COUNT ( * ) * + 69 ELSE - 77 / + 8 END * + 32 AS col0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL - - CASE + - 93 WHEN - CASE - 82 WHEN + - MIN( DISTINCT - NULLIF ( + 95, + 5 ) ) THEN NULL WHEN - - 99 THEN + 75 END THEN NULL WHEN + 37 THEN 73 * + MIN( - 37 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL - - CASE + - 93 WHEN - CASE - 82 WHEN + - MIN ( DISTINCT - NULLIF ( + 95, + 5 ) ) THEN NULL WHEN - - 99 THEN + 75 END THEN NULL WHEN + 37 THEN 73 * + MIN ( - 37 ) ELSE NULL END
----
NULL

query II rowsort
SELECT + ( - - 21 ) col0, - 58 * 43 AS col1
----
21
-2494

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT COALESCE ( - CASE - COALESCE ( + + ( 25 ), 77 / - NULLIF ( 84, - NULLIF ( - 74, - + 85 * + 76 * - - 2 + MAX( + 94 ) ) ) ) WHEN 17 THEN CASE - ( + + MAX( 68 ) ) WHEN - 22 + + 1 THEN - 35 END END, - 25 * + - 93 * - 19 * - COUNT( * ) * + ( + 91 ), + 75 + - 31 + + + 9 )
----
4019925

skipif mysql # not compatible
query I rowsort label-3924
SELECT COALESCE ( - CASE - COALESCE ( + + ( 25 ), 77 / - NULLIF ( 84, - NULLIF ( - 74, - + 85 * + 76 * - - 2 + MAX ( + 94 ) ) ) ) WHEN 17 THEN CASE - ( + + MAX ( 68 ) ) WHEN - 22 + + 1 THEN - 35 END END, - 25 * + - 93 * - 19 * - COUNT ( * ) * + ( + 91 ), + 75 + - 31 + + + 9 )
----
4019925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT ALL + + CAST( 53 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + + CAST ( 53 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 54 * + 60, 39 * + - 62 AS col2
----
-3240
-2418

query I rowsort
SELECT DISTINCT + 9 * 95 AS col1
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL - CASE + - COUNT( * ) WHEN 43 + + + ( - + COUNT( * ) ) THEN - 12 / - 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - CASE + - COUNT ( * ) WHEN 43 + + + ( - + COUNT ( * ) ) THEN - 12 / - 25 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT DISTINCT - COUNT( DISTINCT - - 33 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT - COUNT ( DISTINCT - - 33 ) AS col1
----
-1

query I rowsort
SELECT ALL - 91 + - 46 AS col2
----
-137

query II rowsort
SELECT 39 - - + ( 62 ) + 5 AS col2, - 52
----
106
-52

query I rowsort
SELECT DISTINCT - ( - 53 ) + 87
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT 55 DIV ( - 98 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT 55 / ( - 98 ) AS col0
----
0

query I rowsort
SELECT ALL - 92 + + 63 + + - 66
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT 26 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT 26 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 22 AS col0, 69 AS col1
----
22
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3937
SELECT + 68 col0, 95 * + CAST( - 1 AS SIGNED )
----
68
-95

skipif mysql # not compatible
query II rowsort label-3937
SELECT + 68 col0, 95 * + CAST ( - 1 AS INTEGER )
----
68
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3938
SELECT DISTINCT - 74 + - 73 / - 36 + - NULLIF ( - - ( + COUNT( * ) ), - 93 / - COUNT( * ) / + CAST( NULL AS SIGNED ) + + + ( + 88 ) * 18 + COALESCE ( 61, COUNT( * ), + 66 ) + - 66 ) + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT - 74 + - 73 / - 36 + - NULLIF ( - - ( + COUNT ( * ) ), - 93 / - COUNT ( * ) / + CAST ( NULL AS INTEGER ) + + + ( + 88 ) * 18 + COALESCE ( 61, COUNT ( * ), + 66 ) + - 66 ) + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT 39 + 15 AS col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3940
SELECT ALL 64 DIV - 50 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL 64 / - 50 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT 45 DIV - 26
----
-1

skipif mysql # not compatible
query I rowsort label-3941
SELECT 45 / - 26
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3942
SELECT 81 + 22 + 8 + + 77 - + COUNT( * ) DIV 64 * - 85 - + 75 DIV 67 AS col2
----
187

skipif mysql # not compatible
query I rowsort label-3942
SELECT 81 + 22 + 8 + + 77 - + COUNT ( * ) / 64 * - 85 - + 75 / 67 AS col2
----
187

query II rowsort
SELECT - 79 AS col1, + 28
----
-79
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL 57 + - 6 * + MAX( + 15 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL 57 + - 6 * + MAX ( + 15 ) AS col2
----
-33

query I rowsort
SELECT ALL 34 + + 28 AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT 71 DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3946
SELECT 71 / 89 AS col0
----
0

query I rowsort
SELECT ALL + 2 * - - ( 88 )
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3948
SELECT - 86 - + 24 + CAST( NULL AS SIGNED ) * 81 * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT - 86 - + 24 + CAST ( NULL AS INTEGER ) * 81 * - 33
----
NULL

query II rowsort
SELECT - 9, + 23 AS col2
----
-9
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3950
SELECT - - 63 AS col2, + MIN( - 73 ) + 36 + + MAX( DISTINCT - 93 ) / ( - SUM( 82 ) ) / - 17 + - + MIN( - CAST( NULL AS SIGNED ) ) * + + 68
----
63
NULL

skipif mysql # not compatible
query II rowsort label-3950
SELECT - - 63 AS col2, + MIN ( - 73 ) + 36 + + MAX ( DISTINCT - 93 ) / ( - SUM ( 82 ) ) / - 17 + - + MIN ( - CAST ( NULL AS INTEGER ) ) * + + 68
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT 50 - COUNT( * ) + 15 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3951
SELECT 50 - COUNT ( * ) + 15 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT - CASE - 97 WHEN - - 87 * - + 81 + + + COUNT( * ) THEN - 11 END * 50 * + NULLIF ( - 50, + AVG ( + COALESCE ( - 93, + 59 / + 34, - 67 ) ) ) / - + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT - CASE - 97 WHEN - - 87 * - + 81 + + + COUNT ( * ) THEN - 11 END * 50 * + NULLIF ( - 50, + AVG ( + COALESCE ( - 93, + 59 / + 34, - 67 ) ) ) / - + 66
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3953
SELECT + 98 AS col1, - COALESCE ( 32, COUNT( DISTINCT 29 ) * + MIN( ALL + + 30 ) ) AS col0
----
98
-32

skipif mysql # not compatible
query II rowsort label-3953
SELECT + 98 AS col1, - COALESCE ( 32, COUNT ( DISTINCT 29 ) * + MIN ( ALL + + 30 ) ) AS col0
----
98
-32

query I rowsort
SELECT + NULLIF ( - 23, + + ( + 62 ) )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3955
SELECT ALL + 42 * + COALESCE ( - CASE - - 74 WHEN - 24 THEN + - 79 * + 27 WHEN 23 + + AVG ( - 1 ) DIV - + MIN( DISTINCT - 59 ) THEN NULL WHEN + + 63 THEN - 7 DIV + + AVG ( + - 20 ) END, ( 19 ), + - COUNT( * ) ) AS col2
----
798

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + 42 * + COALESCE ( - CASE - - 74 WHEN - 24 THEN + - 79 * + 27 WHEN 23 + + AVG ( - 1 ) / - + MIN ( DISTINCT - 59 ) THEN NULL WHEN + + 63 THEN - 7 / + + AVG ( + - 20 ) END, ( 19 ), + - COUNT ( * ) ) AS col2
----
798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3956
SELECT ALL COALESCE ( COUNT( - ( + 19 ) ), + COUNT( * ) DIV 90 + + 78 * - + 6 + - 52 * + + 52 * - - 67 + + - 20 + + 18 + - + 8 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL COALESCE ( COUNT ( - ( + 19 ) ), + COUNT ( * ) / 90 + + 78 * - + 6 + - 52 * + + 52 * - - 67 + + - 20 + + 18 + - + 8 ) AS col1
----
1

query II rowsort
SELECT ALL 55, 67 AS col2
----
55
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT - 2 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-3958
SELECT - 2 / - 71
----
0

query I rowsort
SELECT 99 + + 29 AS col0
----
128

query I rowsort
SELECT - 29 + - 42 col0
----
-71

query I rowsort
SELECT + 52 * 77 * - 65 AS col0
----
-260260

onlyif mysql # aggregate syntax: 
query II rowsort label-3962
SELECT DISTINCT + - 76 * + 2 + + - 31 AS col2, COUNT( * )
----
-183
1

skipif mysql # not compatible
query II rowsort label-3962
SELECT DISTINCT + - 76 * + 2 + + - 31 AS col2, COUNT ( * )
----
-183
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3963
SELECT ALL - 66 DIV + 28 col0
----
-2

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - 66 / + 28 col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT DISTINCT - 35 * + ( + 26 ) + + + CAST( NULL AS SIGNED ) + + - 42 * - 17 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT - 35 * + ( + 26 ) + + + CAST ( NULL AS INTEGER ) + + - 42 * - 17 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT MIN( - 62 ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-3965
SELECT MIN ( - 62 ) col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL + 2 * + + 28 * - 60 * + 84 + - ( + 77 ) + + + 78 + + - 63 * COUNT( * ) AS col1
----
-282302

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + 2 * + + 28 * - 60 * + 84 + - ( + 77 ) + + + 78 + + - 63 * COUNT ( * ) AS col1
----
-282302

query I rowsort
SELECT ALL - COALESCE ( 31, + 69 + 53 )
----
-31

query I rowsort
SELECT DISTINCT + ( - 96 ) AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3969
SELECT ALL - 61 + + ( + - 61 ) + - COUNT( * ) DIV 88 * + CAST( - - COUNT( DISTINCT ( 38 ) ) AS SIGNED ) AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - 61 + + ( + - 61 ) + - COUNT ( * ) / 88 * + CAST ( - - COUNT ( DISTINCT ( 38 ) ) AS INTEGER ) AS col1
----
-122

query I rowsort
SELECT ALL + NULLIF ( + 60, - + 35 ) AS col1
----
60

query I rowsort
SELECT - ( 23 ) - 47 * ( - - ( 60 ) ) * - - 67 AS col0
----
-188963

query I rowsort
SELECT - 98 * 52
----
-5096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3973
SELECT - 28 + CASE + - 90 WHEN - COALESCE ( CAST( NULL AS SIGNED ), 83 ) THEN NULL ELSE + 77 END AS col0, - CAST( NULL AS SIGNED ) * COUNT( * ) * + 85 AS col0
----
49
NULL

skipif mysql # not compatible
query II rowsort label-3973
SELECT - 28 + CASE + - 90 WHEN - COALESCE ( CAST ( NULL AS INTEGER ), 83 ) THEN NULL ELSE + 77 END AS col0, - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 85 AS col0
----
49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3974
SELECT + CASE 14 WHEN + 13 THEN + + 23 DIV + COUNT( * ) * 24 WHEN - ( - 70 ) THEN - 77 END * + ( - - ( COUNT( * ) ) ) + - - CAST( 73 AS SIGNED ) + 86 * + 11 + 42, 75 DIV 2 + 96 AS col1
----
NULL
133

skipif mysql # not compatible
query II rowsort label-3974
SELECT + CASE 14 WHEN + 13 THEN + + 23 / + COUNT ( * ) * 24 WHEN - ( - 70 ) THEN - 77 END * + ( - - ( COUNT ( * ) ) ) + - - CAST ( 73 AS INTEGER ) + 86 * + 11 + 42, 75 / 2 + 96 AS col1
----
NULL
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3975
SELECT ALL + COALESCE ( - 41, - COALESCE ( 57, + CAST( NULL AS SIGNED ) + + + 62 - - COUNT( * ) DIV + - 6 * + - 2 ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL + COALESCE ( - 41, - COALESCE ( 57, + CAST ( NULL AS INTEGER ) + + + 62 - - COUNT ( * ) / + - 6 * + - 2 ) ) AS col1
----
-41

query I rowsort
SELECT - - 82 * - NULLIF ( + 76, + - 27 + 62 * + AVG ( - 4 ) * 57 )
----
-6232

query I rowsort
SELECT - 20 + - COALESCE ( - 87, 13 ) * + 80 AS col2
----
6940

query I rowsort
SELECT ALL ( + 89 )
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3979
SELECT + CAST( NULL AS DECIMAL ) + + - 82 + + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT + CAST ( NULL AS REAL ) + + - 82 + + 23 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 69 * + 17 col0
----
-1173

query I rowsort
SELECT ALL + + 1 * 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT - MAX( ALL 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3982
SELECT - MAX ( ALL 99 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT - MIN( - + 61 ) * + 54 * + + ( ( + + 70 ) ) AS col1
----
230580

skipif mysql # not compatible
query I rowsort label-3983
SELECT - MIN ( - + 61 ) * + 54 * + + ( ( + + 70 ) ) AS col1
----
230580

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT + + CASE + 99 WHEN + ( + + 87 ) THEN + 54 * + - 73 * - - 63 * - MAX( 1 ) + - 74 END + - + 53 + - - ( - 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT + + CASE + 99 WHEN + ( + + 87 ) THEN + 54 * + - 73 * - - 63 * - MAX ( 1 ) + - 74 END + - + 53 + - - ( - 70 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3985
SELECT ALL - 86 + - - CAST( NULL AS SIGNED ) + 34 - + - COUNT( * ) * - 37 + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL - 86 + - - CAST ( NULL AS INTEGER ) + 34 - + - COUNT ( * ) * - 37 + 42
----
NULL

query I rowsort
SELECT + - 81 * + 81 AS col2
----
-6561

query I rowsort
SELECT ALL - 75 + 44 col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3988
SELECT ALL + CAST( 37 AS SIGNED ) + - 73 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + CAST ( 37 AS INTEGER ) + - 73 AS col2
----
-36

query I rowsort
SELECT DISTINCT - 37 * - - 53 + + 44
----
-1917

query I rowsort
SELECT ALL 24 * - 60
----
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT + 30 + - 84 - 84 AS col1, - 27 * - COUNT( - + 74 ) AS col2
----
-138
27

skipif mysql # not compatible
query II rowsort label-3991
SELECT + 30 + - 84 - 84 AS col1, - 27 * - COUNT ( - + 74 ) AS col2
----
-138
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT DISTINCT - ( - 20 ) / + 63 * + + AVG ( + 91 ) + + CAST( NULL AS SIGNED ) / 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT - ( - 20 ) / + 63 * + + AVG ( + 91 ) + + CAST ( NULL AS INTEGER ) / 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT ALL + 7 / - + 95 + 42 + CAST( NULL AS SIGNED ) - + 8 * + 7 + - 10 * 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL + 7 / - + 95 + 42 + CAST ( NULL AS INTEGER ) - + 8 * + 7 + - 10 * 96 AS col0
----
NULL

query I rowsort
SELECT + ( + 22 ) AS col2
----
22

query I rowsort
SELECT + 77 - + ( - 98 )
----
175

query I rowsort
SELECT + ( - - 58 )
----
58

query I rowsort
SELECT ALL 88 * + 3
----
264

query I rowsort
SELECT + 94 + + ( 3 ) + 58 AS col2
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT 74 * - + 40 * - + 31 * + + 34 - + COUNT( * ) AS col2
----
3119839

skipif mysql # not compatible
query I rowsort label-3999
SELECT 74 * - + 40 * - + 31 * + + 34 - + COUNT ( * ) AS col2
----
3119839

query I rowsort
SELECT ( - + 27 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 62 + - ( - 96 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 62 + - ( - 96 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT DISTINCT 93 * COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT 93 * COUNT ( * )
----
93

query II rowsort
SELECT ALL 93 * 1 - + 72 AS col1, 23 * - - 34
----
21
782

query I rowsort
SELECT ( + ( - - 4 ) ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT + CASE + COUNT( * ) WHEN + 39 THEN + 99 + 1 + - CAST( NULL AS SIGNED ) / 96 + + 79 WHEN CAST( NULL AS SIGNED ) THEN - 17 ELSE NULL END - + ( 28 ) + 55 - - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT + CASE + COUNT ( * ) WHEN + 39 THEN + 99 + 1 + - CAST ( NULL AS INTEGER ) / 96 + + 79 WHEN CAST ( NULL AS INTEGER ) THEN - 17 ELSE NULL END - + ( 28 ) + 55 - - 32
----
NULL

query I rowsort
SELECT ALL + 2 * 20 AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT ALL 22 DIV 37 * - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL 22 / 37 * - 58 AS col0
----
0

query I rowsort
SELECT ALL + COALESCE ( + + 34, + 64 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT ALL - 75 * 44 * - COUNT( * ) AS col1
----
3300

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - 75 * 44 * - COUNT ( * ) AS col1
----
3300

query I rowsort
SELECT - 9 * + 59
----
-531

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL 79 * COUNT( * ) + + 75 col2
----
154

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL 79 * COUNT ( * ) + + 75 col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL - SUM( DISTINCT - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - SUM ( DISTINCT - 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT - 75 * + - COALESCE ( 76, - 54 * 55 - + COUNT( * ) - - COUNT( * ) + - 8 + - SUM( - - 74 ) ) AS col2
----
5700

skipif mysql # not compatible
query I rowsort label-4013
SELECT - 75 * + - COALESCE ( 76, - 54 * 55 - + COUNT ( * ) - - COUNT ( * ) + - 8 + - SUM ( - - 74 ) ) AS col2
----
5700

query I rowsort
SELECT - - 71 * - + 24 + - 94
----
-1798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4015
SELECT - + SUM( - - CAST( 49 AS SIGNED ) ) - + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4015
SELECT - + SUM ( - - CAST ( 49 AS INTEGER ) ) - + COUNT ( * ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT SUM( DISTINCT 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4016
SELECT SUM ( DISTINCT 48 ) AS col0
----
48

query I rowsort
SELECT - + ( + - 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4018
SELECT ALL - 90 + - 71 * + + COUNT( * ) + + + SUM( - 78 ) AS col2, + 25
----
-239
25

skipif mysql # not compatible
query II rowsort label-4018
SELECT ALL - 90 + - 71 * + + COUNT ( * ) + + + SUM ( - 78 ) AS col2, + 25
----
-239
25

query I rowsort
SELECT - + 26 col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4020
SELECT ALL + 88 DIV + MAX( ALL - + 39 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL + 88 / + MAX ( ALL - + 39 ) AS col1
----
-2

query I rowsort
SELECT ALL 64 + + + 57
----
121

query I rowsort
SELECT - 34 - 40
----
-74

query I rowsort
SELECT ALL + ( - 49 ) * - + 60 AS col1
----
2940

query I rowsort
SELECT DISTINCT - + 44 + + + 33 AS col0
----
-11

query I rowsort
SELECT - 91 + + COALESCE ( - 52, 56 * + - 27 ) AS col0
----
-143

query I rowsort
SELECT ALL - - 94 + + ( 52 )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - CASE - - 74 WHEN 50 THEN + COUNT( 18 ) - - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT - CASE - - 74 WHEN 50 THEN + COUNT ( 18 ) - - 24 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4028
SELECT + ( + SUM( DISTINCT 66 ) ) DIV - 64 - - 30 - + - 49 * - + 33 * - COUNT( * ) * - 3 * COUNT( * ) + + COALESCE ( + - 24, + 62, - + 92 * - 19 ) - - + 51 + - 42 * - MIN( DISTINCT 70 ) * + 81 + 59 AS col2, 91 * + 48
----
233404
4368

skipif mysql # not compatible
query II rowsort label-4028
SELECT + ( + SUM ( DISTINCT 66 ) ) / - 64 - - 30 - + - 49 * - + 33 * - COUNT ( * ) * - 3 * COUNT ( * ) + + COALESCE ( + - 24, + 62, - + 92 * - 19 ) - - + 51 + - 42 * - MIN ( DISTINCT 70 ) * + 81 + 59 AS col2, 91 * + 48
----
233404
4368

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT 65 col2, - 68 - + MIN( - 90 ) AS col0
----
65
22

skipif mysql # not compatible
query II rowsort label-4029
SELECT 65 col2, - 68 - + MIN ( - 90 ) AS col0
----
65
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4030
SELECT ALL 0, - ( + COALESCE ( 79, COUNT( * ) * + MAX( DISTINCT - + 90 ) + + 37 + 86, 48 * + ( + COUNT( ALL + 41 ) ) ) ) * 78 + + 66 AS col2
----
0
-6096

skipif mysql # not compatible
query II rowsort label-4030
SELECT ALL 0, - ( + COALESCE ( 79, COUNT ( * ) * + MAX ( DISTINCT - + 90 ) + + 37 + 86, 48 * + ( + COUNT ( ALL + 41 ) ) ) ) * 78 + + 66 AS col2
----
0
-6096

query I rowsort
SELECT - 53 + + 97 * - - 42
----
4021

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT + 96 DIV - 30 - + 47
----
-50

skipif mysql # not compatible
query I rowsort label-4032
SELECT + 96 / - 30 - + 47
----
-50

query I rowsort
SELECT 79 * - - 82 + - 40
----
6438

query I rowsort
SELECT ALL 17 - + - 85 + + + 71
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4035
SELECT DISTINCT 46 - 11 * + + 51 * - - 33 DIV - COUNT( * ) - - - COUNT( * ) + CAST( + 97 AS SIGNED ) + - 25 * - - 9 - + + 14 * + 23 * - - 51
----
2008

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT 46 - 11 * + + 51 * - - 33 / - COUNT ( * ) - - - COUNT ( * ) + CAST ( + 97 AS INTEGER ) + - 25 * - - 9 - + + 14 * + 23 * - - 51
----
2008

query II rowsort
SELECT + 22 AS col2, 36 * - + 88
----
22
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL 81 - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL 81 - COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT COUNT( 5 ) * + - 83 + - 39 + + 70 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4038
SELECT COUNT ( 5 ) * + - 83 + - 39 + + 70 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ( + COUNT( - + 11 ) ) * + + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4039
SELECT ( + COUNT ( - + 11 ) ) * + + 54 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4040
SELECT 62 AS col2, ( - 36 ) * + + CAST( + COUNT( * ) AS SIGNED ) col2
----
62
-36

skipif mysql # not compatible
query II rowsort label-4040
SELECT 62 AS col2, ( - 36 ) * + + CAST ( + COUNT ( * ) AS INTEGER ) col2
----
62
-36

query I rowsort
SELECT ( 49 ) * + - 84
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL - SUM( ALL - ( 79 ) )
----
79

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - SUM ( ALL - ( 79 ) )
----
79

query I rowsort
SELECT ALL 39 * - 84
----
-3276

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT 94 DIV + + 90 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4044
SELECT 94 / + + 90 AS col1
----
1

query I rowsort
SELECT 25 + - 83
----
-58

query I rowsort
SELECT 28 * - 80
----
-2240

query I rowsort
SELECT - CASE + + 1 WHEN 12 THEN 75 END + 38 * - 4 + - + 97 + + - 16 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT ( 9 ) DIV - 81 + - CASE - - 50 WHEN - 72 - + 23 THEN NULL ELSE + - ( - 97 ) END
----
-97

skipif mysql # not compatible
query I rowsort label-4048
SELECT ( 9 ) / - 81 + - CASE - - 50 WHEN - 72 - + 23 THEN NULL ELSE + - ( - 97 ) END
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4049
SELECT 17 DIV 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4049
SELECT 17 / 51 AS col2
----
0

query I rowsort
SELECT 4 + + 58 * - 42
----
-2432

onlyif mysql # aggregate syntax: 
query II rowsort label-4051
SELECT 87 AS col0, - COUNT( * )
----
87
-1

skipif mysql # not compatible
query II rowsort label-4051
SELECT 87 AS col0, - COUNT ( * )
----
87
-1

query I rowsort
SELECT ALL 12 + - 62
----
-50

query I rowsort
SELECT 94 - 47
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4054
SELECT 97 + + MAX( 93 ) + + - ( NULLIF ( + 53, + 52 + 57 ) ) * + 64 col2, 20
----
-3202
20

skipif mysql # not compatible
query II rowsort label-4054
SELECT 97 + + MAX ( 93 ) + + - ( NULLIF ( + 53, + 52 + 57 ) ) * + 64 col2, 20
----
-3202
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ALL - COUNT( * ) + - 85 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - COUNT ( * ) + - 85 AS col0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT DISTINCT + + 72 * NULLIF ( + - 62, + + CAST( - - 71 AS SIGNED ) )
----
-4464

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT + + 72 * NULLIF ( + - 62, + + CAST ( - - 71 AS INTEGER ) )
----
-4464

onlyif mysql # DIV for integer division: 
query II rowsort label-4057
SELECT 24 AS col1, 26 DIV - + 61
----
24
0

skipif mysql # not compatible
query II rowsort label-4057
SELECT 24 AS col1, 26 / - + 61
----
24
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4058
SELECT ALL CAST( - - 96 AS SIGNED ) + 34 * + COUNT( * )
----
130

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL CAST ( - - 96 AS INTEGER ) + 34 * + COUNT ( * )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT 74 + - 48 + - 84 + - 13 + - COUNT( * ) - 69 * + + 48 * - 53 AS col1
----
175464

skipif mysql # not compatible
query I rowsort label-4059
SELECT 74 + - 48 + - 84 + - 13 + - COUNT ( * ) - 69 * + + 48 * - 53 AS col1
----
175464

query I rowsort
SELECT DISTINCT COALESCE ( + 68, - 91 )
----
68

query I rowsort
SELECT ALL + 67 + + 57 + 61 + - 96
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT COUNT( ALL - 79 ) * - + 55 col0
----
-55

skipif mysql # not compatible
query I rowsort label-4062
SELECT COUNT ( ALL - 79 ) * - + 55 col0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4063
SELECT - 41 AS col1, 72 * - - ( - 67 ) * + + COUNT( * ) AS col0
----
-41
-4824

skipif mysql # not compatible
query II rowsort label-4063
SELECT - 41 AS col1, 72 * - - ( - 67 ) * + + COUNT ( * ) AS col0
----
-41
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT COALESCE ( - 92, 78 + + 35 + + + 28 + + 99 ) + + ( - SUM( 26 ) ) * - MAX( 0 ) - - 8
----
-84

skipif mysql # not compatible
query I rowsort label-4064
SELECT COALESCE ( - 92, 78 + + 35 + + + 28 + + 99 ) + + ( - SUM ( 26 ) ) * - MAX ( 0 ) - - 8
----
-84

query II rowsort
SELECT - - 43 AS col2, - 28
----
43
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4066
SELECT 39 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-4066
SELECT 39 / - 49
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4067
SELECT ALL + 74 - + + 50 + - 60 + - + NULLIF ( + 32, 10 ) DIV 6 AS col2, + 72 * + 69
----
-41
4968

skipif mysql # not compatible
query II rowsort label-4067
SELECT ALL + 74 - + + 50 + - 60 + - + NULLIF ( + 32, 10 ) / 6 AS col2, + 72 * + 69
----
-41
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT - 20 * + MIN( ALL + 15 ) * - - 84
----
-25200

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - 20 * + MIN ( ALL + 15 ) * - - 84
----
-25200

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT ALL - 47 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL - 47 / + 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT ALL - 2 * + CAST( + ( ( 69 ) ) AS SIGNED ) AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL - 2 * + CAST ( + ( ( 69 ) ) AS INTEGER ) AS col0
----
-138

query I rowsort
SELECT 74 * - + 42 AS col0
----
-3108

query I rowsort
SELECT ALL - NULLIF ( + + 69, + + 13 / - - ( - 55 ) * 71 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4073
SELECT 54 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4073
SELECT 54 / + 99 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT 90 * - + COUNT( * ) DIV - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-4074
SELECT 90 * - + COUNT ( * ) / - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT COUNT( * ) * 89 - - + 42 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-4075
SELECT COUNT ( * ) * 89 - - + 42 AS col0
----
131

query I rowsort
SELECT DISTINCT + 57 * - 38
----
-2166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4077
SELECT MAX( DISTINCT 7 ) * + COALESCE ( + COALESCE ( 43, - CAST( NULL AS SIGNED ), + 74 + - 98 ), + + MIN( - - 71 ) ) - COALESCE ( 8, - COUNT( * ), 90 - - COALESCE ( - COUNT( + 84 ), - - 9 ) ) + - - 35 AS col2
----
328

skipif mysql # not compatible
query I rowsort label-4077
SELECT MAX ( DISTINCT 7 ) * + COALESCE ( + COALESCE ( 43, - CAST ( NULL AS INTEGER ), + 74 + - 98 ), + + MIN ( - - 71 ) ) - COALESCE ( 8, - COUNT ( * ), 90 - - COALESCE ( - COUNT ( + 84 ), - - 9 ) ) + - - 35 AS col2
----
328

query I rowsort
SELECT ALL - ( - - 94 ) AS col1
----
-94

query I rowsort
SELECT - 16 * + 92 - 79 + 56 + + - 8
----
-1503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4080
SELECT ALL - ( + CAST( CASE - 73 WHEN + NULLIF ( + 52, 59 * + + 63 + + CASE + 24 WHEN COUNT( * ) THEN NULL WHEN - 54 THEN NULL WHEN CASE - 80 WHEN + - 55 THEN CAST( NULL AS DECIMAL ) WHEN + - COALESCE ( 32, + 64 ) + - MIN( ALL - 3 ) THEN NULL WHEN - + 92 + + 10 THEN NULL END + - 14 / - 9 * + - 19 + + 62 + - 72 * - CAST( NULL AS SIGNED ) + 23 + - 0 THEN NULL ELSE + ( - 88 ) * - - 94 + - COUNT( * ) END + + MIN( - 18 ) + + + 32 / 15 ) THEN NULL ELSE + ( + 98 ) * - + 97 END AS SIGNED ) )
----
9506

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL - ( + CAST ( CASE - 73 WHEN + NULLIF ( + 52, 59 * + + 63 + + CASE + 24 WHEN COUNT ( * ) THEN NULL WHEN - 54 THEN NULL WHEN CASE - 80 WHEN + - 55 THEN CAST ( NULL AS REAL ) WHEN + - COALESCE ( 32, + 64 ) + - MIN ( ALL - 3 ) THEN NULL WHEN - + 92 + + 10 THEN NULL END + - 14 / - 9 * + - 19 + + 62 + - 72 * - CAST ( NULL AS INTEGER ) + 23 + - 0 THEN NULL ELSE + ( - 88 ) * - - 94 + - COUNT ( * ) END + + MIN ( - 18 ) + + + 32 / 15 ) THEN NULL ELSE + ( + 98 ) * - + 97 END AS INTEGER ) )
----
9506

query I rowsort
SELECT DISTINCT + 82 * - - 69 * + 64 - NULLIF ( + 87, + + 11 + + 99 ) col1
----
362025

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT - 78 * - COUNT( * ) * - - 58 + + 82 AS col1
----
4606

skipif mysql # not compatible
query I rowsort label-4082
SELECT - 78 * - COUNT ( * ) * - - 58 + + 82 AS col1
----
4606

query I rowsort
SELECT 19 * - - 59 col2
----
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT 37 * - + 67 + 21 * 8 * + - CASE + 33 WHEN - + COALESCE ( + 62, + 19 - + COUNT( * ) ) THEN NULL WHEN + + 19 THEN 27 - + - 39 + - - 58 WHEN + + 50 * 75 / + 88 THEN + 57 * - 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT 37 * - + 67 + 21 * 8 * + - CASE + 33 WHEN - + COALESCE ( + 62, + 19 - + COUNT ( * ) ) THEN NULL WHEN + + 19 THEN 27 - + - 39 + - - 58 WHEN + + 50 * 75 / + 88 THEN + 57 * - 77 END
----
NULL

query I rowsort
SELECT ALL + 32 * + - 96 - 24
----
-3096

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT - + 65 * + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT - + 65 * + COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4087
SELECT DISTINCT MAX( DISTINCT + 15 ) + COUNT( * ) DIV COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT MAX ( DISTINCT + 15 ) + COUNT ( * ) / COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT CASE - 41 WHEN + 16 * 17 + - - 8 + + CASE 80 WHEN - + 70 + + ( - 18 ) * 52 + 13 * COUNT( DISTINCT + COALESCE ( 67, + + 87 - - - 81 * + 5 ) ) * - 75 THEN + 24 WHEN COUNT( - 85 ) - 58 THEN NULL WHEN - COUNT( * ) + + 91 THEN NULL ELSE - + 46 END * - 6 THEN ( + 19 ) + + - 72 WHEN COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT CASE - 41 WHEN + 16 * 17 + - - 8 + + CASE 80 WHEN - + 70 + + ( - 18 ) * 52 + 13 * COUNT ( DISTINCT + COALESCE ( 67, + + 87 - - - 81 * + 5 ) ) * - 75 THEN + 24 WHEN COUNT ( - 85 ) - 58 THEN NULL WHEN - COUNT ( * ) + + 91 THEN NULL ELSE - + 46 END * - 6 THEN ( + 19 ) + + - 72 WHEN COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT - COUNT( * ) + - 97 - - + 38 * - 74 col1
----
-2910

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT - COUNT ( * ) + - 97 - - + 38 * - 74 col1
----
-2910

query I rowsort
SELECT - ( - - COALESCE ( - 69, 99 ) ) * + 81 col0
----
5589

query I rowsort
SELECT 11 * - ( 91 ) * - 6
----
6006

query II rowsort
SELECT + 96 + + 3, - 15 * 28 * + + 11 AS col0
----
99
-4620

query I rowsort
SELECT - - CASE + AVG ( + 63 ) WHEN 46 + - 25 THEN + - COALESCE ( - 68, + 96 * 37 ) + - 56 * + 62 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT + NULLIF ( - 83, - 42 ) + 21 DIV + 60 col1
----
-83

skipif mysql # not compatible
query I rowsort label-4094
SELECT + NULLIF ( - 83, - 42 ) + 21 / + 60 col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + NULLIF ( - MIN( + ( + 33 ) ), - ( + + 13 ) ) * + - 9
----
297

skipif mysql # not compatible
query I rowsort label-4095
SELECT + NULLIF ( - MIN ( + ( + 33 ) ), - ( + + 13 ) ) * + - 9
----
297

query I rowsort
SELECT - COALESCE ( 12, + + 23 ) col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT DISTINCT 71 - - ( + 68 ) + + 37 AS col0, COUNT( * ) AS col2
----
176
1

skipif mysql # not compatible
query II rowsort label-4097
SELECT DISTINCT 71 - - ( + 68 ) + + 37 AS col0, COUNT ( * ) AS col2
----
176
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4098
SELECT - 0 - CAST( 7 AS SIGNED ) DIV ( - 4 ) + - - 24 AS col1, + 39 * - + 31 DIV - ( + + 12 ) * + 63 * + CASE - + 14 WHEN - - 34 THEN NULL WHEN + 78 THEN + ( - - 63 ) DIV - + ( - 12 ) + - CAST( + - NULLIF ( - - 95, - 3 ) AS SIGNED ) * - 47 END + 18
----
25
NULL

skipif mysql # not compatible
query II rowsort label-4098
SELECT - 0 - CAST ( 7 AS INTEGER ) / ( - 4 ) + - - 24 AS col1, + 39 * - + 31 / - ( + + 12 ) * + 63 * + CASE - + 14 WHEN - - 34 THEN NULL WHEN + 78 THEN + ( - - 63 ) / - + ( - 12 ) + - CAST ( + - NULLIF ( - - 95, - 3 ) AS INTEGER ) * - 47 END + 18
----
25
NULL

query I rowsort
SELECT ALL 6 * 32 AS col0
----
192

query I rowsort
SELECT + 11 * - 95 * - 66
----
68970

query I rowsort
SELECT - 17 * - 23 col1
----
391

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT ALL MAX( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL MAX ( DISTINCT 3 )
----
3

query I rowsort
SELECT + 64 + + 0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT - 70 DIV - 31
----
2

skipif mysql # not compatible
query I rowsort label-4104
SELECT - 70 / - 31
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT + 81 * + CAST( 85 AS SIGNED ) AS col1
----
6885

skipif mysql # not compatible
query I rowsort label-4105
SELECT + 81 * + CAST ( 85 AS INTEGER ) AS col1
----
6885

onlyif mysql # aggregate syntax: 
query II rowsort label-4106
SELECT - NULLIF ( - COUNT( * ), + 34 ) + + 52, 50 col2
----
53
50

skipif mysql # not compatible
query II rowsort label-4106
SELECT - NULLIF ( - COUNT ( * ), + 34 ) + + 52, 50 col2
----
53
50

query I rowsort
SELECT ( + + ( - - 57 ) ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT DISTINCT - 99 DIV 43 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT - 99 / 43 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4109
SELECT NULLIF ( - 43, - - 65 * COUNT( * ) * - - NULLIF ( + 98, + ( + - 62 ) * + + 5 + CAST( + - 77 AS SIGNED ) + + + COUNT( * ) ) - + - 30 + - 43 - - MIN( ALL + 43 ) / - + 3 * 52 * ( + - 70 ) * - 92 * + + 58 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4109
SELECT NULLIF ( - 43, - - 65 * COUNT ( * ) * - - NULLIF ( + 98, + ( + - 62 ) * + + 5 + CAST ( + - 77 AS INTEGER ) + + + COUNT ( * ) ) - + - 30 + - 43 - - MIN ( ALL + 43 ) / - + 3 * 52 * ( + - 70 ) * - 92 * + + 58 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4110
SELECT COUNT( * ), 3 * - 63 * - 94 + NULLIF ( 81, - 68 + + 14 ) col2
----
1
17847

skipif mysql # not compatible
query II rowsort label-4110
SELECT COUNT ( * ), 3 * - 63 * - 94 + NULLIF ( 81, - 68 + + 14 ) col2
----
1
17847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT + 47 * - 35 + - CASE + 91 WHEN - 56 THEN + 65 * CAST( NULL AS SIGNED ) + COUNT( * ) - + + 69 + + - 86 * + COUNT( * ) * + + 22 * - - COUNT( * ) * + 72 + + - 1 * 29 WHEN - 74 * + SUM( - 73 ) THEN NULL END + + 44 * - 48 + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT + 47 * - 35 + - CASE + 91 WHEN - 56 THEN + 65 * CAST ( NULL AS INTEGER ) + COUNT ( * ) - + + 69 + + - 86 * + COUNT ( * ) * + + 22 * - - COUNT ( * ) * + 72 + + - 1 * 29 WHEN - 74 * + SUM ( - 73 ) THEN NULL END + + 44 * - 48 + + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - COUNT( * ) * + 35 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-4112
SELECT - COUNT ( * ) * + 35 AS col2
----
-35

query I rowsort
SELECT - + CASE - 69 WHEN + 17 THEN NULL WHEN + 84 THEN + + 2 WHEN + 88 THEN NULL END * - 62 + - 10 * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT + + 21 * - COUNT( * ) + + 54 * 48 AS col2
----
2571

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + + 21 * - COUNT ( * ) + + 54 * 48 AS col2
----
2571

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT DISTINCT + - 29 AS col2, ( MIN( ALL + 56 ) ) + 67 + - 96 AS col0
----
-29
27

skipif mysql # not compatible
query II rowsort label-4115
SELECT DISTINCT + - 29 AS col2, ( MIN ( ALL + 56 ) ) + 67 + - 96 AS col0
----
-29
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4116
SELECT ALL + ( - 0 ) * + - CAST( NULL AS SIGNED ) + - COUNT( * ) + ( 19 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + ( - 0 ) * + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + ( 19 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4117
SELECT DISTINCT + - COALESCE ( + MAX( - - 1 ), + COUNT( * ) * 78, + 38 + CAST( 88 AS SIGNED ) DIV - + 5 + - 27, + COALESCE ( 96, + 18 ) * + CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT + - COALESCE ( + MAX ( - - 1 ), + COUNT ( * ) * 78, + 38 + CAST ( 88 AS INTEGER ) / - + 5 + - 27, + COALESCE ( 96, + 18 ) * + CAST ( NULL AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4118
SELECT + 71 * - - 37 * + 48 * - COUNT( ( - + 51 ) ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT + 71 * - - 37 * + 48 * - COUNT ( ( - + 51 ) ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - + 18 ) AS col2
----
-18

query II rowsort
SELECT - 83 * - NULLIF ( + 52, - 24 * - - 64 ) + + 51, 52 * 90 + - + 1 AS col0
----
4367
4679

query I rowsort
SELECT - 58 * - 1 * + - 3
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT ALL CAST( + ( + 81 ) AS SIGNED ) * - COALESCE ( + + 78, 89 ) AS col0
----
-6318

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL CAST ( + ( + 81 ) AS INTEGER ) * - COALESCE ( + + 78, 89 ) AS col0
----
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT - + 71 + + + MAX( 80 ) + + 69 col2
----
78

skipif mysql # not compatible
query I rowsort label-4123
SELECT - + 71 + + + MAX ( 80 ) + + 69 col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT + - SUM( DISTINCT 32 ) - - NULLIF ( - 94, + 7 )
----
-126

skipif mysql # not compatible
query I rowsort label-4124
SELECT + - SUM ( DISTINCT 32 ) - - NULLIF ( - 94, + 7 )
----
-126

query I rowsort
SELECT ALL + ( - 71 ) col2
----
-71

query I rowsort
SELECT ALL + 26 * - 45
----
-1170

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT + 3 DIV - 76 + - 25 col2
----
-25

skipif mysql # not compatible
query I rowsort label-4127
SELECT + 3 / - 76 + - 25 col2
----
-25

query II rowsort
SELECT DISTINCT - 47, + 48 AS col0
----
-47
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT + COUNT( * ) + ( + 23 )
----
24

skipif mysql # not compatible
query I rowsort label-4129
SELECT + COUNT ( * ) + ( + 23 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT - 12 DIV - - 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4130
SELECT - 12 / - - 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + NULLIF ( + COUNT( * ), - 0 * + 63 ) * + - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4131
SELECT + NULLIF ( + COUNT ( * ), - 0 * + 63 ) * + - 40 AS col2
----
-40

query I rowsort
SELECT + 76 + + + 61 + - - 68 AS col1
----
205

query I rowsort
SELECT + 94 * + 51 * + - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL 58 / - SUM( + CASE 40 WHEN - NULLIF ( - CAST( 57 AS SIGNED ), - CASE - 49 WHEN + + CAST( NULL AS SIGNED ) * - - 24 + - 12 THEN NULL ELSE - NULLIF ( 19, + - 36 ) + - 83 END * - 95 * - - 41 ) + + 66 THEN CAST( NULL AS SIGNED ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL 58 / - SUM ( + CASE 40 WHEN - NULLIF ( - CAST ( 57 AS INTEGER ), - CASE - 49 WHEN + + CAST ( NULL AS INTEGER ) * - - 24 + - 12 THEN NULL ELSE - NULLIF ( 19, + - 36 ) + - 83 END * - 95 * - - 41 ) + + 66 THEN CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4135
SELECT - ( - CASE - 43 WHEN + CAST( NULL AS SIGNED ) + + COUNT( * ) * + 92 THEN NULL WHEN + 18 THEN NULL ELSE - 55 END ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4135
SELECT - ( - CASE - 43 WHEN + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 92 THEN NULL WHEN + 18 THEN NULL ELSE - 55 END ) AS col2
----
-55

query I rowsort
SELECT - 46 + - 76 * + + 40
----
-3086

query I rowsort
SELECT + 58 * - - 84 AS col0
----
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL 64 + 22 + - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL 64 + 22 + - COUNT ( * ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT - CAST( - + 85 AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4139
SELECT - CAST ( - + 85 AS INTEGER ) AS col2
----
85

query I rowsort
SELECT ALL + 39 + + 58
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL - 85 + + - COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL - 85 + + - COUNT ( * ) AS col0
----
-86

query II rowsort
SELECT ALL 16 * 6, 70 col2
----
96
70

onlyif mysql # DIV for integer division: 
query II rowsort label-4143
SELECT ALL - 29 DIV - 29 + - 76 + - 10, - 88 - + 93 AS col2
----
-85
-181

skipif mysql # not compatible
query II rowsort label-4143
SELECT ALL - 29 / - 29 + - 76 + - 10, - 88 - + 93 AS col2
----
-85
-181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT CAST( + + ( - 23 ) AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4144
SELECT CAST ( + + ( - 23 ) AS INTEGER ) AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4145
SELECT CASE MAX( + 49 ) WHEN - AVG ( - 4 ) / - 71 THEN NULL WHEN - + 35 THEN CASE - - 49 WHEN + 71 + 96 + 22 + MAX( + + 87 ) * COUNT( * ) THEN NULL WHEN + + ( - AVG ( 52 ) ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END + + + MIN( ALL - ( - + 63 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT CASE MAX ( + 49 ) WHEN - AVG ( - 4 ) / - 71 THEN NULL WHEN - + 35 THEN CASE - - 49 WHEN + 71 + 96 + 22 + MAX ( + + 87 ) * COUNT ( * ) THEN NULL WHEN + + ( - AVG ( 52 ) ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END + + + MIN ( ALL - ( - + 63 ) ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT ALL - + 40 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL - + 40 / + 50
----
0

query I rowsort
SELECT + 19 * - 73 + 33
----
-1354

query I rowsort
SELECT + + 74 * 42
----
3108

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT - - COUNT( * ) * - - 84 * - 69 AS col0
----
-5796

skipif mysql # not compatible
query I rowsort label-4149
SELECT - - COUNT ( * ) * - - 84 * - 69 AS col0
----
-5796

query I rowsort
SELECT - ( - + 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT COUNT( * ) * 26 + + 90
----
116

skipif mysql # not compatible
query I rowsort label-4151
SELECT COUNT ( * ) * 26 + + 90
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4152
SELECT - CASE WHEN NOT 70 IN ( + 24, 94 * - 19, + - 11, + 51 * + - COALESCE ( 67, + + 92 * - NULLIF ( + 76, + ( + SUM( DISTINCT + 60 ) ) ) + - 94 ) + - + 28 + + 6, - CASE - - 93 WHEN 33 * - 10 - - - ( + 9 ) + + ( - COALESCE ( + - 52, + 62, SUM( DISTINCT 0 ) ) ) + - + CAST( 22 AS SIGNED ) THEN NULL WHEN - 35 THEN NULL ELSE + 13 * - - 0 + - + 2 / - CASE - 23 WHEN - AVG ( DISTINCT + 45 ) + + 0 THEN COUNT( + 46 ) WHEN CAST( 60 AS SIGNED ) + - 68 THEN NULL ELSE NULL END * 61 END * + 97 + COUNT( * ) ) THEN NULL ELSE 16 END * 45 AS col2
----
-720

skipif mysql # not compatible
query I rowsort label-4152
SELECT - CASE WHEN NOT 70 IN ( + 24, 94 * - 19, + - 11, + 51 * + - COALESCE ( 67, + + 92 * - NULLIF ( + 76, + ( + SUM ( DISTINCT + 60 ) ) ) + - 94 ) + - + 28 + + 6, - CASE - - 93 WHEN 33 * - 10 - - - ( + 9 ) + + ( - COALESCE ( + - 52, + 62, SUM ( DISTINCT 0 ) ) ) + - + CAST ( 22 AS INTEGER ) THEN NULL WHEN - 35 THEN NULL ELSE + 13 * - - 0 + - + 2 / - CASE - 23 WHEN - AVG ( DISTINCT + 45 ) + + 0 THEN COUNT ( + 46 ) WHEN CAST ( 60 AS INTEGER ) + - 68 THEN NULL ELSE NULL END * 61 END * + 97 + COUNT ( * ) ) THEN NULL ELSE 16 END * 45 AS col2
----
-720

query I rowsort
SELECT 48 * + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4154
SELECT COUNT( * ) * - 99 - - 39, + 64 - - COUNT( - ( 98 ) ) AS col1
----
-60
65

skipif mysql # not compatible
query II rowsort label-4154
SELECT COUNT ( * ) * - 99 - - 39, + 64 - - COUNT ( - ( 98 ) ) AS col1
----
-60
65

query I rowsort
SELECT ALL + 16 + + - 34
----
-18

query I rowsort
SELECT 83 + - 70
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4157
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), - - 66 * COUNT( + 58 ) - - 21 - - COUNT( * ), 28 ) + + 21
----
109

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), - - 66 * COUNT ( + 58 ) - - 21 - - COUNT ( * ), 28 ) + + 21
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT DISTINCT - COUNT( * ) + - 26
----
-27

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT - COUNT ( * ) + - 26
----
-27

query I rowsort
SELECT 9 - 18 * - 90 + - - 30 AS col0
----
1659

onlyif mysql # DIV for integer division: 
query II rowsort label-4160
SELECT 39, ( - - 26 ) DIV - 79 AS col1
----
39
0

skipif mysql # not compatible
query II rowsort label-4160
SELECT 39, ( - - 26 ) / - 79 AS col1
----
39
0

query I rowsort
SELECT DISTINCT 10 + + - 92 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT SUM( - 81 ) * - 80
----
6480

skipif mysql # not compatible
query I rowsort label-4162
SELECT SUM ( - 81 ) * - 80
----
6480

query I rowsort
SELECT 98 + + 61
----
159

query II rowsort
SELECT ALL 38 col0, 80
----
38
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT + COUNT( * ) * 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + COUNT ( * ) * 44 AS col0
----
44

query I rowsort
SELECT DISTINCT 34 * 95
----
3230

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4167
SELECT - 73 + + 7 - - COUNT( * ) * + 59 + - 88 * - CASE + 39 WHEN - ( 48 ) / - + CAST( + 11 AS DECIMAL ) + - MAX( ALL - 39 ) THEN 65 - + NULLIF ( + 47, - 6 ) END * + ( - COUNT( DISTINCT ( - + 39 ) ) ) + - - 65 - COALESCE ( - 87, + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT - 73 + + 7 - - COUNT ( * ) * + 59 + - 88 * - CASE + 39 WHEN - ( 48 ) / - + CAST ( + 11 AS REAL ) + - MAX ( ALL - 39 ) THEN 65 - + NULLIF ( + 47, - 6 ) END * + ( - COUNT ( DISTINCT ( - + 39 ) ) ) + - - 65 - COALESCE ( - 87, + 35 )
----
NULL

query I rowsort
SELECT 97 * 22 AS col2
----
2134

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT 27 + - NULLIF ( - - 53, - 24 + - - 62 * - COUNT( * ) + + + 36 )
----
-26

skipif mysql # not compatible
query I rowsort label-4169
SELECT 27 + - NULLIF ( - - 53, - 24 + - - 62 * - COUNT ( * ) + + + 36 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT + + NULLIF ( COUNT( * ), + - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-4170
SELECT + + NULLIF ( COUNT ( * ), + - 63 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT 29 * + 96 + + CAST( + 40 AS SIGNED ) col0
----
2824

skipif mysql # not compatible
query I rowsort label-4171
SELECT 29 * + 96 + + CAST ( + 40 AS INTEGER ) col0
----
2824

query I rowsort
SELECT + 9 * - 2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4173
SELECT - 12 * + COUNT( * ) + - + 62, - 46 * - 9 AS col2
----
-74
414

skipif mysql # not compatible
query II rowsort label-4173
SELECT - 12 * + COUNT ( * ) + - + 62, - 46 * - 9 AS col2
----
-74
414

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT ALL COUNT( * ) * 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL COUNT ( * ) * 10 AS col2
----
10

query I rowsort
SELECT ALL - - ( + 92 ) AS col2
----
92

query I rowsort
SELECT 66 + + 48 + 57 * + 53 * 84 * - 95 + - + 55
----
-24107521

query I rowsort
SELECT 97 + 34 + 33 * + - 23 col2
----
-628

query I rowsort
SELECT DISTINCT - + 41 col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4179
SELECT DISTINCT 64 DIV + - COUNT( * ) + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT 64 / + - COUNT ( * ) + COUNT ( * )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4180
SELECT + CAST( NULL AS SIGNED ) / - - COALESCE ( - 23, + ( + 37 ) + + 26 ) * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT + CAST ( NULL AS INTEGER ) / - - COALESCE ( - 23, + ( + 37 ) + + 26 ) * + 41
----
NULL

query I rowsort
SELECT + 37 * 86 + - - 6 + + 62 AS col1
----
3250

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL + 84 + + MAX( - - 24 ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL + 84 + + MAX ( - - 24 ) AS col2
----
108

query I rowsort
SELECT 93 + - 29
----
64

query I rowsort
SELECT ALL + 12 * COALESCE ( - 11, 12 + - + 79 ) AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL - 57 + - - 76 + + COUNT( * ) + - 43 * - ( + - 80 ) AS col0
----
-3420

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - 57 + - - 76 + + COUNT ( * ) + - 43 * - ( + - 80 ) AS col0
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT COUNT( * ) * - COALESCE ( + MIN( + 78 ), + + 84 * 70 ) * - 43 * + 57 + - + 69 * + 96 + - - 24 + + + 49
----
184627

skipif mysql # not compatible
query I rowsort label-4186
SELECT COUNT ( * ) * - COALESCE ( + MIN ( + 78 ), + + 84 * 70 ) * - 43 * + 57 + - + 69 * + 96 + - - 24 + + + 49
----
184627

query I rowsort
SELECT ALL 47 + ( 43 ) col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT DISTINCT 5 * - 13 * + - MAX( ALL 1 )
----
65

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT 5 * - 13 * + - MAX ( ALL 1 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4189
SELECT ALL + 85 + - - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + - 4 + 19 - 83 + 1 + - + CAST( NULL AS SIGNED ) / - 25 * - COUNT( * ) * + ( - 98 ) / - ( + + 61 ) + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + 85 + - - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 4 + 19 - 83 + 1 + - + CAST ( NULL AS INTEGER ) / - 25 * - COUNT ( * ) * + ( - 98 ) / - ( + + 61 ) + - 53 AS col2
----
NULL

query II rowsort
SELECT 22 AS col1, 63
----
22
63

query I rowsort
SELECT 99 + - + 68
----
31

query I rowsort
SELECT 18 + - 87 * - + 45 AS col1
----
3933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4193
SELECT ALL - COUNT( * ) + + - 43 * MAX( + - 92 ) * + 55 + + 61 - - 66 * 72 + - 28 - - CAST( - 95 AS SIGNED ) * + COUNT( * ) + - 75 AS col0
----
222194

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - COUNT ( * ) + + - 43 * MAX ( + - 92 ) * + 55 + + 61 - - 66 * 72 + - 28 - - CAST ( - 95 AS INTEGER ) * + COUNT ( * ) + - 75 AS col0
----
222194

query II rowsort
SELECT - 26, 96 AS col1
----
-26
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT 5 + 29 + COUNT( * ) * + 29 / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT 5 + 29 + COUNT ( * ) * + 29 / CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT ALL - 22 - + - 62 - + CAST( - NULLIF ( 97, + + 36 + + CAST( NULL AS SIGNED ) ) AS SIGNED )
----
137

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL - 22 - + - 62 - + CAST ( - NULLIF ( 97, + + 36 + + CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL CAST( NULL AS SIGNED ) - - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL CAST ( NULL AS INTEGER ) - - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT COUNT( * ) * + 12 * - 12 AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-4198
SELECT COUNT ( * ) * + 12 * - 12 AS col2
----
-144

query II rowsort
SELECT ALL + - 56 * - 73, 86 * + 60 * - + 16 AS col2
----
4088
-82560

onlyif mysql # aggregate syntax: 
query II rowsort label-4200
SELECT DISTINCT + COUNT( * ), 30 * - COUNT( * ) AS col0
----
1
-30

skipif mysql # not compatible
query II rowsort label-4200
SELECT DISTINCT + COUNT ( * ), 30 * - COUNT ( * ) AS col0
----
1
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL NULLIF ( - MIN( ALL + 57 ), + 32 / + - 32 )
----
-57

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL NULLIF ( - MIN ( ALL + 57 ), + 32 / + - 32 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT - + MIN( DISTINCT - 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4202
SELECT - + MIN ( DISTINCT - 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - COUNT( DISTINCT + 28 ) * - 15 + + 37 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4203
SELECT - COUNT ( DISTINCT + 28 ) * - 15 + + 37 AS col0
----
52

query II rowsort
SELECT ALL - + 41 col0, 94 AS col0
----
-41
94

query I rowsort
SELECT 11 * + 0 + 5
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4206
SELECT + + 55 col2, - COUNT( * )
----
55
-1

skipif mysql # not compatible
query II rowsort label-4206
SELECT + + 55 col2, - COUNT ( * )
----
55
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT 42 AS col1, + COUNT( * ) * - COUNT( * ) * - 73 AS col1
----
42
73

skipif mysql # not compatible
query II rowsort label-4207
SELECT 42 AS col1, + COUNT ( * ) * - COUNT ( * ) * - 73 AS col1
----
42
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT + 33 * + COALESCE ( + 14, + COUNT( * ) * - 93 ) + + - 75 AS col2
----
387

skipif mysql # not compatible
query I rowsort label-4208
SELECT + 33 * + COALESCE ( + 14, + COUNT ( * ) * - 93 ) + + - 75 AS col2
----
387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4209
SELECT DISTINCT - + 39 DIV - COUNT( DISTINCT + 56 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - + 39 / - COUNT ( DISTINCT + 56 ) AS col2
----
39

query II rowsort
SELECT ALL + 97 * - COALESCE ( 37, 30, - 73 - - + 13, 18 ), - 28 AS col1
----
-3589
-28

query II rowsort
SELECT ALL + + 30, + 30
----
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + MAX( DISTINCT + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4212
SELECT + MAX ( DISTINCT + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL 93 * + COUNT( - - 13 ) + + + 87 + - + 56 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL 93 * + COUNT ( - - 13 ) + + + 87 + - + 56 AS col1
----
124

query I rowsort
SELECT ALL 52 * - 90
----
-4680

query I rowsort
SELECT + + 4 col1
----
4

query II rowsort
SELECT - 84, 6 + - ( + - 5 ) AS col0
----
-84
11

query I rowsort
SELECT ALL 34 * - 64 + - 33 + + 73 + + 60 AS col0
----
-2076

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT MIN( ALL + 55 ) col0
----
55

skipif mysql # not compatible
query I rowsort label-4218
SELECT MIN ( ALL + 55 ) col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4219
SELECT ALL - 53 + - 66, COUNT( * ) AS col1
----
-119
1

skipif mysql # not compatible
query II rowsort label-4219
SELECT ALL - 53 + - 66, COUNT ( * ) AS col1
----
-119
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + 35 * + COUNT( * ) * - 84 AS col0
----
-2940

skipif mysql # not compatible
query I rowsort label-4220
SELECT + 35 * + COUNT ( * ) * - 84 AS col0
----
-2940

query I rowsort
SELECT DISTINCT CASE + 12 WHEN 43 THEN + - 44 END
----
NULL

query I rowsort
SELECT + 81 + + 23
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL 93 + + 3 + - SUM( ALL + + 87 ) * + 74 - + 74 AS col0
----
-6416

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL 93 + + 3 + - SUM ( ALL + + 87 ) * + 74 - + 74 AS col0
----
-6416

query II rowsort
SELECT + 99 * - 30 AS col0, - 2
----
-2970
-2

query I rowsort
SELECT + 51 + - 47 * - 78 * - 53 * + 5 AS col2
----
-971439

query II rowsort
SELECT - 57 * + 5 AS col2, CASE + 70 WHEN + - 27 THEN - 53 WHEN - 0 * + 37 + - 35 THEN NULL END
----
-285
NULL

query I rowsort
SELECT - 28 + 21 - 58
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4228
SELECT DISTINCT 92 * + 10 AS col0, 62 + ( + COALESCE ( 15, - + CASE + + 38 WHEN + NULLIF ( + - 29, - 36 ) / - 10 + - + 23 + - - 16 + 23 / - SUM( - + NULLIF ( + 1, ( + - 85 ) ) ) THEN NULL ELSE + - MAX( - 37 ) END * + CAST( NULL AS SIGNED ), + - COUNT( * ) + 34 ) )
----
920
77

skipif mysql # not compatible
query II rowsort label-4228
SELECT DISTINCT 92 * + 10 AS col0, 62 + ( + COALESCE ( 15, - + CASE + + 38 WHEN + NULLIF ( + - 29, - 36 ) / - 10 + - + 23 + - - 16 + 23 / - SUM ( - + NULLIF ( + 1, ( + - 85 ) ) ) THEN NULL ELSE + - MAX ( - 37 ) END * + CAST ( NULL AS INTEGER ), + - COUNT ( * ) + 34 ) )
----
920
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT ALL COUNT( DISTINCT 26 ) * 76 * + + COUNT( * ) * - 49 AS col1
----
-3724

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL COUNT ( DISTINCT 26 ) * 76 * + + COUNT ( * ) * - 49 AS col1
----
-3724

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT ALL - 91 - - 60 DIV - 80 * + 81
----
-91

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL - 91 - - 60 / - 80 * + 81
----
-91

query I rowsort
SELECT DISTINCT ( ( + + 70 ) )
----
70

query I rowsort
SELECT + + 95 + 51 * + 14 AS col1
----
809

query I rowsort
SELECT ALL - 84 - + ( 78 )
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4234
SELECT - 64 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT - 64 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 93 * - 1 * 6 - - 50 AS col1
----
608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4236
SELECT - 8 + - COUNT( * ), + CAST( - COALESCE ( 46, + 5 - + 26 ) AS SIGNED ) AS col2
----
-9
-46

skipif mysql # not compatible
query II rowsort label-4236
SELECT - 8 + - COUNT ( * ), + CAST ( - COALESCE ( 46, + 5 - + 26 ) AS INTEGER ) AS col2
----
-9
-46

query I rowsort
SELECT - COALESCE ( - 58, - - 18 )
----
58

query I rowsort
SELECT - ( 29 ) + + 51
----
22

query I rowsort
SELECT - - 37 * + 0 - - 59 AS col0
----
59

query I rowsort
SELECT ALL - 32 * 1 AS col2
----
-32

query I rowsort
SELECT + - 95 col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT + 67 * - COALESCE ( + COUNT( * ), - 37 )
----
-67

skipif mysql # not compatible
query I rowsort label-4242
SELECT + 67 * - COALESCE ( + COUNT ( * ), - 37 )
----
-67

query I rowsort
SELECT ( + ( - 53 ) ) col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4244
SELECT - 53 * - 51 + + - 19 + - 77 - - 67 + 79 DIV NULLIF ( - 90, 26 * 14 + - 82 + 74 DIV 6 + - - SUM( + - 58 ) + - 38 * - 0 DIV + - 77 * + 91 ) DIV COUNT( * ) + + COUNT( * ) AS col0
----
2675

skipif mysql # not compatible
query I rowsort label-4244
SELECT - 53 * - 51 + + - 19 + - 77 - - 67 + 79 / NULLIF ( - 90, 26 * 14 + - 82 + 74 / 6 + - - SUM ( + - 58 ) + - 38 * - 0 / + - 77 * + 91 ) / COUNT ( * ) + + COUNT ( * ) AS col0
----
2675

query II rowsort
SELECT + + 5 - 2 AS col1, 35
----
3
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT + - 75 / MIN( ALL + - 78 ) / + 90 + CASE - 92 WHEN - COUNT( * ) THEN - - 57 * + 79 + + ( 91 ) * + ( - 94 ) + - 52 + + 10 END + - + 25 + - + MAX( ALL 88 ) + 74 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT + - 75 / MIN ( ALL + - 78 ) / + 90 + CASE - 92 WHEN - COUNT ( * ) THEN - - 57 * + 79 + + ( 91 ) * + ( - 94 ) + - 52 + + 10 END + - + 25 + - + MAX ( ALL 88 ) + 74 col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4247
SELECT ALL CASE - 54 WHEN + ( + 54 ) THEN NULL ELSE + - 12 * ( + + 71 ) - + + COALESCE ( 93, + 25 + + 33 ) END * - 33 + - + 71 + + CASE - 5 WHEN + 34 THEN - 83 WHEN + CAST( NULL AS DECIMAL ) - - 14 - - 19 + - + 14 * - 17 - 6 / - 5 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL CASE - 54 WHEN + ( + 54 ) THEN NULL ELSE + - 12 * ( + + 71 ) - + + COALESCE ( 93, + 25 + + 33 ) END * - 33 + - + 71 + + CASE - 5 WHEN + 34 THEN - 83 WHEN + CAST ( NULL AS REAL ) - - 14 - - 19 + - + 14 * - 17 - 6 / - 5 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL 92 * - 20 + + 71 * + 72 * - 18 * - + COUNT( DISTINCT + 51 ) AS col2
----
90176

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL 92 * - 20 + + 71 * + 72 * - 18 * - + COUNT ( DISTINCT + 51 ) AS col2
----
90176

query II rowsort
SELECT DISTINCT 67 * - - 35 + + 73 col1, - COALESCE ( 65, - 64 )
----
2418
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-4250
SELECT COALESCE ( - 79, - 81, + 99 DIV + 18 )
----
-79

skipif mysql # not compatible
query I rowsort label-4250
SELECT COALESCE ( - 79, - 81, + 99 / + 18 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - NULLIF ( 3, - ( + 54 ) ) * + + 73 + + 8 + + 63 + - + 34 * + MAX( ALL + 74 ) AS col1
----
-2664

skipif mysql # not compatible
query I rowsort label-4251
SELECT - NULLIF ( 3, - ( + 54 ) ) * + + 73 + + 8 + + 63 + - + 34 * + MAX ( ALL + 74 ) AS col1
----
-2664

query I rowsort
SELECT ALL 42 * 1 * - - 65 - + - COALESCE ( 16, 35 )
----
2746

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT + COUNT( DISTINCT + + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-4253
SELECT + COUNT ( DISTINCT + + 73 )
----
1

query I rowsort
SELECT NULLIF ( 79, 40 + 85 )
----
79

query I rowsort
SELECT + 64 + + 96 * + - COALESCE ( - + 67, - - 11 )
----
6496

query I rowsort
SELECT + 81 * + - ( - + 83 ) AS col1
----
6723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT + 57 + + COALESCE ( + COUNT( + - 41 ), CAST( NULL AS SIGNED ) ) col2
----
58

skipif mysql # not compatible
query I rowsort label-4257
SELECT + 57 + + COALESCE ( + COUNT ( + - 41 ), CAST ( NULL AS INTEGER ) ) col2
----
58

query I rowsort
SELECT - ( - - 85 ) AS col0
----
-85

query I rowsort
SELECT + 45 * - - 68 * 72 AS col0
----
220320

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT SUM( + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4260
SELECT SUM ( + 24 ) AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4261
SELECT DISTINCT - ( + NULLIF ( - - 64, + 3 ) ) DIV - + 79 * 18 + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT - ( + NULLIF ( - - 64, + 3 ) ) / - + 79 * 18 + 24 AS col2
----
24

query I rowsort
SELECT + 98 + + 92
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT COUNT( - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4263
SELECT COUNT ( - 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL SUM( DISTINCT 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL SUM ( DISTINCT 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT DISTINCT COUNT( * ) * - COALESCE ( 73, - 50 DIV - COALESCE ( - - 63, + + COUNT( * ) ) )
----
-73

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT COUNT ( * ) * - COALESCE ( 73, - 50 / - COALESCE ( - - 63, + + COUNT ( * ) ) )
----
-73

query I rowsort
SELECT - 40 * ( + + 15 )
----
-600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4267
SELECT MIN( - CASE - + 29 WHEN + 91 * + 1 THEN 41 WHEN + NULLIF ( + 83, + 97 ) THEN NULL ELSE + 35 END ) DIV COUNT( * ) * 2 * - ( + - COUNT( * ) ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-4267
SELECT MIN ( - CASE - + 29 WHEN + 91 * + 1 THEN 41 WHEN + NULLIF ( + 83, + 97 ) THEN NULL ELSE + 35 END ) / COUNT ( * ) * 2 * - ( + - COUNT ( * ) ) col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4268
SELECT ALL + 22 * - 65 DIV COUNT( * ) AS col0, + 73 AS col1
----
-1430
73

skipif mysql # not compatible
query II rowsort label-4268
SELECT ALL + 22 * - 65 / COUNT ( * ) AS col0, + 73 AS col1
----
-1430
73

query I rowsort
SELECT ALL + + 26 * + + 0 AS col1
----
0

query I rowsort
SELECT - ( + CASE AVG ( ALL + + 67 ) WHEN 18 * - 75 THEN + + 26 END ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( + 85, 10 ) AS col2
----
-85

query I rowsort
SELECT DISTINCT 67 * - 22 AS col1
----
-1474

query I rowsort
SELECT 41 * + 46 AS col1
----
1886

query I rowsort
SELECT DISTINCT + 19 * - + 54 AS col0
----
-1026

query I rowsort
SELECT ALL - 3 + - 36 + 25 AS col1
----
-14

query I rowsort
SELECT DISTINCT + 70 + + 87 + + 94
----
251

query I rowsort
SELECT + 51 + + 17
----
68

query I rowsort
SELECT + 4 * + 52
----
208

query I rowsort
SELECT DISTINCT - 87 + 95
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT MIN( - 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4280
SELECT MIN ( - 48 ) AS col2
----
-48

query I rowsort
SELECT ALL - 54 + + 65 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT 83 * + + MIN( ALL 6 )
----
498

skipif mysql # not compatible
query I rowsort label-4282
SELECT 83 * + + MIN ( ALL 6 )
----
498

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + ( - 46 ) * + COUNT( * ) * 66 - - 99 AS col1
----
-2937

skipif mysql # not compatible
query I rowsort label-4283
SELECT + ( - 46 ) * + COUNT ( * ) * 66 - - 99 AS col1
----
-2937

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT COUNT( * ) * + 0 col1
----
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT COUNT ( * ) * + 0 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4285
SELECT DISTINCT COUNT( * ) DIV 87 * - 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT COUNT ( * ) / 87 * - 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL COALESCE ( + MAX( ALL + - 6 ), 62 * + 30 * - 14 ) - + + 71
----
-77

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL COALESCE ( + MAX ( ALL + - 6 ), 62 * + 30 * - 14 ) - + + 71
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4287
SELECT DISTINCT + 18 DIV + + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT + 18 / + + 90 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4288
SELECT DISTINCT + COUNT( * ) DIV - - 92 AS col0, - 22 * + 52 + 47 AS col2
----
0
-1097

skipif mysql # not compatible
query II rowsort label-4288
SELECT DISTINCT + COUNT ( * ) / - - 92 AS col0, - 22 * + 52 + 47 AS col2
----
0
-1097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT DISTINCT 33 * - ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT 33 * - ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4290
SELECT 8 + + COUNT( * ), - 13 AS col1
----
9
-13

skipif mysql # not compatible
query II rowsort label-4290
SELECT 8 + + COUNT ( * ), - 13 AS col1
----
9
-13

query I rowsort
SELECT 49 * + 51
----
2499

query I rowsort
SELECT 76 * - ( - 18 ) - + - 98 AS col1
----
1466

query I rowsort
SELECT ALL - 93 + + - 95 AS col1
----
-188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4294
SELECT + COUNT( DISTINCT 9 ) + - COUNT( * ) DIV - 37
----
1

skipif mysql # not compatible
query I rowsort label-4294
SELECT + COUNT ( DISTINCT 9 ) + - COUNT ( * ) / - 37
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT DISTINCT CASE - ( + 77 ) WHEN + 76 THEN + - COUNT( * ) WHEN - - 30 + + + COUNT( * ) * - 51 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT CASE - ( + 77 ) WHEN + 76 THEN + - COUNT ( * ) WHEN - - 30 + + + COUNT ( * ) * - 51 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT DISTINCT - - COUNT( * ) + + 36
----
37

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT - - COUNT ( * ) + + 36
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL COUNT( ALL 18 ) + + NULLIF ( + 14, - 20 - - 59 )
----
15

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL COUNT ( ALL 18 ) + + NULLIF ( + 14, - 20 - - 59 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL CASE + COUNT( * ) WHEN + + 7 * 76 THEN NULL ELSE + MAX( - 48 ) * + 4 END + + - COUNT( * ) AS col1
----
-193

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL CASE + COUNT ( * ) WHEN + + 7 * 76 THEN NULL ELSE + MAX ( - 48 ) * + 4 END + + - COUNT ( * ) AS col1
----
-193

query II rowsort
SELECT DISTINCT + 74 + - 97, + 40 AS col2
----
-23
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4300
SELECT ALL - CASE + 25 WHEN + COUNT( DISTINCT + + ( 68 ) ) + - NULLIF ( COUNT( * ), - + COALESCE ( - 60, - 81 + + 9 + - 51, 30 ) ) THEN - 43 WHEN + 89 + + 0 THEN NULL ELSE NULL END + + CASE + - CAST( NULL AS SIGNED ) WHEN + + 32 THEN 43 END + - + 70 * - 50 - + 50 + + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL - CASE + 25 WHEN + COUNT ( DISTINCT + + ( 68 ) ) + - NULLIF ( COUNT ( * ), - + COALESCE ( - 60, - 81 + + 9 + - 51, 30 ) ) THEN - 43 WHEN + 89 + + 0 THEN NULL ELSE NULL END + + CASE + - CAST ( NULL AS INTEGER ) WHEN + + 32 THEN 43 END + - + 70 * - 50 - + 50 + + 38 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT - 26 + - + CAST( NULL AS SIGNED ) * + 6 * - 19 * - 20 * ( - 59 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT - 26 + - + CAST ( NULL AS INTEGER ) * + 6 * - 19 * - 20 * ( - 59 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT DISTINCT COALESCE ( + + ( - COUNT( * ) ), + 73 ) DIV - - 66 + + 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT COALESCE ( + + ( - COUNT ( * ) ), + 73 ) / - - 66 + + 24 AS col1
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4303
SELECT CASE - + ( - - CAST( NULL AS DECIMAL ) ) WHEN + 9 THEN NULL WHEN - 4 THEN - 87 ELSE NULL END + + ( + + 59 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT CASE - + ( - - CAST ( NULL AS REAL ) ) WHEN + 9 THEN NULL WHEN - 4 THEN - 87 ELSE NULL END + + ( + + 59 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL - 91 + ( - COUNT( * ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL - 91 + ( - COUNT ( * ) ) AS col2
----
-92

query I rowsort
SELECT - CASE - 31 WHEN - 96 * 27 THEN + - 42 + - 99 * 33 * - 16 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + MIN( DISTINCT ( - 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-4306
SELECT + MIN ( DISTINCT ( - 59 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT - COUNT( * ) * + ( - 81 ) + 28 col2
----
109

skipif mysql # not compatible
query I rowsort label-4307
SELECT - COUNT ( * ) * + ( - 81 ) + 28 col2
----
109

query I rowsort
SELECT 58 + + 83
----
141

query I rowsort
SELECT - 76 * + 11
----
-836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT DISTINCT - 67 * - 16 * - - CAST( NULL AS SIGNED ) + - + CAST( + 65 AS SIGNED ) - - - CAST( - - COALESCE ( - 40, + COUNT( * ) * - - 1, + + 46 ) AS SIGNED ) - - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT - 67 * - 16 * - - CAST ( NULL AS INTEGER ) + - + CAST ( + 65 AS INTEGER ) - - - CAST ( - - COALESCE ( - 40, + COUNT ( * ) * - - 1, + + 46 ) AS INTEGER ) - - 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4311
SELECT DISTINCT - 97 * - - 66 * - COUNT( * ) + - 92 DIV - 88 - - 73 AS col0
----
6476

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT - 97 * - - 66 * - COUNT ( * ) + - 92 / - 88 - - 73 AS col0
----
6476

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT MIN( DISTINCT - 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4312
SELECT MIN ( DISTINCT - 32 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-4313
SELECT + 43, COUNT( DISTINCT - 8 ) * + 26 + 14 AS col2
----
43
40

skipif mysql # not compatible
query II rowsort label-4313
SELECT + 43, COUNT ( DISTINCT - 8 ) * + 26 + 14 AS col2
----
43
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT COUNT( DISTINCT - + 50 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4314
SELECT COUNT ( DISTINCT - + 50 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-4315
SELECT COUNT( * ) AS col0, - 79 * + + 13 col1, MAX( - 1 ) AS col2
----
1
-1027
-1

skipif mysql # not compatible
query III rowsort label-4315
SELECT COUNT ( * ) AS col0, - 79 * + + 13 col1, MAX ( - 1 ) AS col2
----
1
-1027
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT 89 + - + COUNT( * ) + + - 3 * + - COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4316
SELECT 89 + - + COUNT ( * ) + + - 3 * + - COUNT ( * ) AS col2
----
91

query I rowsort
SELECT 28 * - 56
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT + NULLIF ( + ( + SUM( - 94 ) ), 38 ) * + MAX( + 48 ) AS col0
----
-4512

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT + NULLIF ( + ( + SUM ( - 94 ) ), 38 ) * + MAX ( + 48 ) AS col0
----
-4512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT 31 DIV 77 + NULLIF ( COALESCE ( - - 95, - + COALESCE ( + 87, - 13 + + 6 ) * COUNT( * ) + - 42 * - 72 * - 29 ), + 16 ) - + - 54 DIV + + 74
----
95

skipif mysql # not compatible
query I rowsort label-4319
SELECT 31 / 77 + NULLIF ( COALESCE ( - - 95, - + COALESCE ( + 87, - 13 + + 6 ) * COUNT ( * ) + - 42 * - 72 * - 29 ), + 16 ) - + - 54 / + + 74
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT ALL + CAST( NULL AS SIGNED ) * + 98 * + + ( - - 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + CAST ( NULL AS INTEGER ) * + 98 * + + ( - - 84 ) AS col2
----
NULL

query I rowsort
SELECT 18 + 80 AS col1
----
98

query I rowsort
SELECT ALL + 32 * 48
----
1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4323
SELECT 24 + + + COUNT( * ) + + - COALESCE ( - 38, + SUM( 41 ) ) * + COUNT( * ) + + 40 * - ( - 99 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT 24 + + + COUNT ( * ) + + - COALESCE ( - 38, + SUM ( 41 ) ) * + COUNT ( * ) + + 40 * - ( - 99 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 8 * + - 23
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT DISTINCT + ( + MAX( - ( + 56 ) ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT + ( + MAX ( - ( + 56 ) ) ) AS col2
----
-56

query II rowsort
SELECT ALL - NULLIF ( + 62, + + 40 ) + + + 4 + 68, + 5 + 74 AS col0
----
10
79

query I rowsort
SELECT DISTINCT - 14 + 64 + - - 59 - 17
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT ALL + 60 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + 60 / 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4329
SELECT - MAX( ALL - - CAST( + + 58 AS SIGNED ) ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-4329
SELECT - MAX ( ALL - - CAST ( + + 58 AS INTEGER ) ) / - 87
----
0

query I rowsort
SELECT ALL - 33 + 43 AS col2
----
10

query I rowsort
SELECT DISTINCT 85 * 81
----
6885

query I rowsort
SELECT DISTINCT - NULLIF ( 70, 96 ) + - 59 AS col0
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT ALL + 60 DIV - ( + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL + 60 / - ( + 76 )
----
0

query I rowsort
SELECT DISTINCT 38 + + 97
----
135

query I rowsort
SELECT DISTINCT NULLIF ( - 80, + 85 )
----
-80

query I rowsort
SELECT DISTINCT + 88 + + 92
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + NULLIF ( - MAX( + 46 ), COALESCE ( 29, 39 * 92, + 7 ) ) * - 72
----
3312

skipif mysql # not compatible
query I rowsort label-4337
SELECT + NULLIF ( - MAX ( + 46 ), COALESCE ( 29, 39 * 92, + 7 ) ) * - 72
----
3312

query I rowsort
SELECT ALL 43 + - 67
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - COUNT( * ) - ( - MIN( 88 ) + 99 * + 51 ) AS col2
----
-4962

skipif mysql # not compatible
query I rowsort label-4339
SELECT - COUNT ( * ) - ( - MIN ( 88 ) + 99 * + 51 ) AS col2
----
-4962

query I rowsort
SELECT - CASE WHEN + 63 IS NULL THEN - 74 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT - CASE 41 WHEN - ( + 53 ) - COUNT( * ) * 68 THEN COUNT( * ) ELSE SUM( ALL - 56 ) END + - 64 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4341
SELECT - CASE 41 WHEN - ( + 53 ) - COUNT ( * ) * 68 THEN COUNT ( * ) ELSE SUM ( ALL - 56 ) END + - 64 AS col0
----
-8

query I rowsort
SELECT DISTINCT 78 + 6 * - 72
----
-354

query I rowsort
SELECT ALL NULLIF ( - 95, ( 43 ) / - 67 + + CASE - ( + 47 ) WHEN 79 THEN 35 * 92 + 3 * + 88 ELSE - 13 END ) AS col1
----
-95

query I rowsort
SELECT ALL + 71 - CASE 13 WHEN 96 * 31 THEN 99 WHEN + 41 THEN 75 + - 35 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT - COUNT( 7 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4345
SELECT - COUNT ( 7 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + COUNT( * ) + MIN( 26 )
----
27

skipif mysql # not compatible
query I rowsort label-4346
SELECT + COUNT ( * ) + MIN ( 26 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + 71 * + COUNT( * ) col0
----
71

skipif mysql # not compatible
query I rowsort label-4347
SELECT + 71 * + COUNT ( * ) col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT - ( + CASE CASE 29 WHEN + 6 THEN + 1 END WHEN 7 * CAST( - 98 AS SIGNED ) THEN - 72 ELSE NULL END ) * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT - ( + CASE CASE 29 WHEN + 6 THEN + 1 END WHEN 7 * CAST ( - 98 AS INTEGER ) THEN - 72 ELSE NULL END ) * 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4349
SELECT ALL MAX( + 36 ) DIV - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL MAX ( + 36 ) / - 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT + ( COALESCE ( CASE + 53 WHEN 24 * 93 THEN NULL WHEN - CASE COUNT( * ) WHEN 23 + + 89 THEN NULL ELSE + 45 END * 45 THEN - COUNT( * ) ELSE - ( COUNT( DISTINCT + 87 ) ) END, 33 + + COUNT( 93 - + 21 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4350
SELECT + ( COALESCE ( CASE + 53 WHEN 24 * 93 THEN NULL WHEN - CASE COUNT ( * ) WHEN 23 + + 89 THEN NULL ELSE + 45 END * 45 THEN - COUNT ( * ) ELSE - ( COUNT ( DISTINCT + 87 ) ) END, 33 + + COUNT ( 93 - + 21 ) ) ) AS col2
----
-1

query I rowsort
SELECT - 41 * 19 AS col0
----
-779

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT - 61 DIV COALESCE ( - 29, - 5, - 44 * 37 + 35 ) + - ( 77 ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-4352
SELECT - 61 / COALESCE ( - 29, - 5, - 44 * 37 + 35 ) + - ( 77 ) col2
----
-75

query I rowsort
SELECT DISTINCT 64 * + 55
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT DISTINCT 76 * CASE MAX( DISTINCT - 51 ) WHEN - 5 THEN 72 + + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT 76 * CASE MAX ( DISTINCT - 51 ) WHEN - 5 THEN 72 + + 72 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT + 5 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-4355
SELECT + 5 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT MIN( + 98 ) * 93
----
9114

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT MIN ( + 98 ) * 93
----
9114

query I rowsort
SELECT + 81 * + 56 AS col1
----
4536

query I rowsort
SELECT ( ( - 31 ) ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + NULLIF ( 47, - MIN( 90 ) )
----
47

skipif mysql # not compatible
query I rowsort label-4359
SELECT + NULLIF ( 47, - MIN ( 90 ) )
----
47

query I rowsort
SELECT NULLIF ( 91, + 29 )
----
91

query I rowsort
SELECT ALL + 45 * - 32 + + 85
----
-1355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT 28 * 18 - NULLIF ( 41 - - 74, - COUNT( 3 ) ) DIV 24 AS col1
----
500

skipif mysql # not compatible
query I rowsort label-4362
SELECT 28 * 18 - NULLIF ( 41 - - 74, - COUNT ( 3 ) ) / 24 AS col1
----
500

query I rowsort
SELECT + 45 * - 23
----
-1035

query I rowsort
SELECT ALL + 95 * 95 + 18 AS col2
----
9043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4365
SELECT - COUNT( * ) * 20 - - CAST( 86 + + 90 AS SIGNED ) * 26 AS col2
----
4556

skipif mysql # not compatible
query I rowsort label-4365
SELECT - COUNT ( * ) * 20 - - CAST ( 86 + + 90 AS INTEGER ) * 26 AS col2
----
4556

query I rowsort
SELECT ALL + 74 * 89 AS col0
----
6586

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT - COUNT( * ) * 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4367
SELECT - COUNT ( * ) * 47 AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4368
SELECT ALL - 18 * - 96 + - COUNT( * ) DIV MIN( 3 ) AS col0
----
1728

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - 18 * - 96 + - COUNT ( * ) / MIN ( 3 ) AS col0
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT COALESCE ( + CASE 67 WHEN - 49 THEN NULL ELSE 41 END, + COUNT( * ) * COUNT( * ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4369
SELECT COALESCE ( + CASE 67 WHEN - 49 THEN NULL ELSE 41 END, + COUNT ( * ) * COUNT ( * ) ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL - 31 * + ( - 9 ) + COUNT( * )
----
280

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL - 31 * + ( - 9 ) + COUNT ( * )
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT ALL + NULLIF ( 8, CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + NULLIF ( 8, CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT ALL + 2 * + 95 + 68 DIV 84
----
190

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + 2 * + 95 + 68 / 84
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT ALL COALESCE ( + 20, - CAST( NULL AS SIGNED ) * + 3 ) * 5 + - SUM( ALL 61 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL COALESCE ( + 20, - CAST ( NULL AS INTEGER ) * + 3 ) * 5 + - SUM ( ALL 61 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT - 19 * COUNT( * ) + + 77
----
58

skipif mysql # not compatible
query I rowsort label-4374
SELECT - 19 * COUNT ( * ) + + 77
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT - + COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4375
SELECT - + COUNT ( * ) * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - NULLIF ( 30, + 0 * - ( + 29 ) )
----
-30

query I rowsort
SELECT ALL COALESCE ( ( - 30 ), 83 + 29 ) AS col1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4378
SELECT DISTINCT - + 52 DIV + 29
----
-1

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT - + 52 / + 29
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT - + MIN( 68 ) + 94
----
26

skipif mysql # not compatible
query I rowsort label-4379
SELECT - + MIN ( 68 ) + 94
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL - + COALESCE ( MIN( 27 ), + 88, + 45 + 12 ) - - 55
----
28

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - + COALESCE ( MIN ( 27 ), + 88, + 45 + 12 ) - - 55
----
28

query I rowsort
SELECT - + ( 74 ) * - 30
----
2220

query I rowsort
SELECT DISTINCT 37 * - 12 AS col0
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL - COUNT( * ) - 83 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - COUNT ( * ) - 83 AS col2
----
-84

query I rowsort
SELECT - - 3 * 81 AS col1
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT - ( + 94 ) + 41 * MIN( ALL 69 * 45 + - 99 )
----
123152

skipif mysql # not compatible
query I rowsort label-4385
SELECT - ( + 94 ) + 41 * MIN ( ALL 69 * 45 + - 99 )
----
123152

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + 38 + COUNT( DISTINCT 27 + 63 )
----
39

skipif mysql # not compatible
query I rowsort label-4386
SELECT + 38 + COUNT ( DISTINCT 27 + 63 )
----
39

query I rowsort
SELECT ALL + + 48 - + CASE - 81 + + 70 WHEN + 54 * - 31 THEN + 74 WHEN 18 THEN 70 - + 44 * 56 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( 8 ) * 41 AS col2
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT + COUNT( * ) * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT + COUNT ( * ) * 0 AS col2
----
0

query I rowsort
SELECT - 29 * + 34 AS col2
----
-986

query I rowsort
SELECT ALL + 31 * - + 97
----
-3007

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT - 22 * 99 * + ( SUM( 72 ) * 22 ) AS col0
----
-3449952

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT - 22 * 99 * + ( SUM ( 72 ) * 22 ) AS col0
----
-3449952

query I rowsort
SELECT + 23 - + 51 AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT DISTINCT + CASE + 77 WHEN + 22 / - ( - CAST( 51 AS SIGNED ) ) THEN 84 * COALESCE ( - 13, + 93 - 63 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + CASE + 77 WHEN + 22 / - ( - CAST ( 51 AS INTEGER ) ) THEN 84 * COALESCE ( - 13, + 93 - 63 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT + CAST( + 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-4395
SELECT + CAST ( + 63 AS INTEGER )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT DISTINCT 22 + 16 DIV + 89
----
22

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT 22 + 16 / + 89
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4397
SELECT COUNT( * ) + - + MAX( ALL - COALESCE ( 57, - 81 + + 38 * 55, 41 ) ) DIV 58
----
1

skipif mysql # not compatible
query I rowsort label-4397
SELECT COUNT ( * ) + - + MAX ( ALL - COALESCE ( 57, - 81 + + 38 * 55, 41 ) ) / 58
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4398
SELECT 53 DIV - + 51
----
-1

skipif mysql # not compatible
query I rowsort label-4398
SELECT 53 / - + 51
----
-1

query I rowsort
SELECT 32 * + 70 + - 88 AS col0
----
2152

onlyif mysql # DIV for integer division: 
query I rowsort label-4400
SELECT 59 - + - 81 DIV 45
----
60

skipif mysql # not compatible
query I rowsort label-4400
SELECT 59 - + - 81 / 45
----
60

query I rowsort
SELECT DISTINCT 75 * + 21
----
1575

query I rowsort
SELECT - 74 * + 17 * - 82 + 17 * - 92 AS col1
----
101592

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL 10 * - 14 * COUNT( + ( ( 46 ) ) )
----
-140

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL 10 * - 14 * COUNT ( + ( ( 46 ) ) )
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT 43 + + - COUNT( * ) col0
----
42

skipif mysql # not compatible
query I rowsort label-4404
SELECT 43 + + - COUNT ( * ) col0
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4405
SELECT ALL 21 + 0 + + 41 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL 21 + 0 + + 41 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4406
SELECT DISTINCT ( + MAX( - CAST( NULL AS SIGNED ) ) ) + + ( + 54 ) * 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT ( + MAX ( - CAST ( NULL AS INTEGER ) ) ) + + ( + 54 ) * 67 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 39 * - ( - 2 ) col1
----
78

query I rowsort
SELECT ALL + 69 + 68 AS col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4409
SELECT CAST( - COUNT( * ) AS SIGNED ) + + 51 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4409
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + 51 AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT ALL CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4411
SELECT + + NULLIF ( - 63, CAST( NULL AS DECIMAL ) ) * 40 + 82
----
-2438

skipif mysql # not compatible
query I rowsort label-4411
SELECT + + NULLIF ( - 63, CAST ( NULL AS REAL ) ) * 40 + 82
----
-2438

query I rowsort
SELECT + + ( - 62 ) col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT COUNT( * ) + + + 68 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4413
SELECT COUNT ( * ) + + + 68 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT - NULLIF ( COUNT( * ), - 4 * + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4414
SELECT - NULLIF ( COUNT ( * ), - 4 * + COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL + 93 - - COUNT( - ( - 71 ) ) + ( ( + NULLIF ( 12, - 83 ) ) ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL + 93 - - COUNT ( - ( - 71 ) ) + ( ( + NULLIF ( 12, - 83 ) ) ) AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT DISTINCT - 71 * + - 86 * - COUNT( * )
----
-6106

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT - 71 * + - 86 * - COUNT ( * )
----
-6106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT ALL - - 0 * + 35 + - CAST( - 2 AS SIGNED ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL - - 0 * + 35 + - CAST ( - 2 AS INTEGER ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT - 95 * 2 DIV 56 - + 0
----
-3

skipif mysql # not compatible
query I rowsort label-4418
SELECT - 95 * 2 / 56 - + 0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT ALL 65 * NULLIF ( COUNT( DISTINCT + 75 ), AVG ( ALL CAST( NULL AS SIGNED ) ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL 65 * NULLIF ( COUNT ( DISTINCT + 75 ), AVG ( ALL CAST ( NULL AS INTEGER ) ) ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4420
SELECT DISTINCT - COALESCE ( CASE WHEN NOT ( - COALESCE ( + CAST( NULL AS SIGNED ), - 45 ) ) NOT IN ( 90 * COALESCE ( 49, + 21 ) ) THEN 58 DIV 60 + 91 WHEN NOT - 49 + + 3 IS NULL THEN NULL ELSE NULL END, 58 ) * - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT - COALESCE ( CASE WHEN NOT ( - COALESCE ( + CAST ( NULL AS INTEGER ), - 45 ) ) NOT IN ( 90 * COALESCE ( 49, + 21 ) ) THEN 58 / 60 + 91 WHEN NOT - 49 + + 3 IS NULL THEN NULL ELSE NULL END, 58 ) * - COUNT ( * )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT + 62 DIV - + 24 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4421
SELECT + 62 / - + 24 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT 10 * - 53 + + CAST( NULL AS SIGNED ) * 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT 10 * - 53 + + CAST ( NULL AS INTEGER ) * 6 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT COALESCE ( - - 24, + CAST( NULL AS SIGNED ) * 88 ) - + 22 col1
----
2

skipif mysql # not compatible
query I rowsort label-4423
SELECT COALESCE ( - - 24, + CAST ( NULL AS INTEGER ) * 88 ) - + 22 col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT - 84 + 56 + + 0 DIV 23 col1
----
-28

skipif mysql # not compatible
query I rowsort label-4424
SELECT - 84 + 56 + + 0 / 23 col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT 8 DIV + 69 * - 18 col2
----
0

skipif mysql # not compatible
query I rowsort label-4425
SELECT 8 / + 69 * - 18 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT - MAX( DISTINCT - 49 ) DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT - MAX ( DISTINCT - 49 ) / - 75 AS col2
----
0

query I rowsort
SELECT ALL + 36 + + + 37
----
73

query II rowsort
SELECT DISTINCT 99 AS col2, - 4 + 69
----
99
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT DISTINCT - COUNT( * ) + + 37 - 21 * - 88
----
1884

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT - COUNT ( * ) + + 37 - 21 * - 88
----
1884

query I rowsort
SELECT DISTINCT + 64 + - + 71 AS col1
----
-7

query I rowsort
SELECT 43 + - + 59
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4432
SELECT ALL + COUNT( * ) + - 12 + - 35 + COUNT( * ) DIV 33 * 21 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + COUNT ( * ) + - 12 + - 35 + COUNT ( * ) / 33 * 21 AS col0
----
-46

query II rowsort
SELECT 20 AS col0, + 41 col1
----
20
41

query I rowsort
SELECT DISTINCT - ( - 29 ) col0
----
29

query I rowsort
SELECT 33 * 52 AS col1
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL - COUNT( * ) + + COALESCE ( + - 96, + 85, - 68 )
----
-97

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL - COUNT ( * ) + + COALESCE ( + - 96, + 85, - 68 )
----
-97

query I rowsort
SELECT DISTINCT 69 + + + 60 + - 84 - + COALESCE ( + 98, 46, - 68 ) * + 25 AS col0
----
-2405

query I rowsort
SELECT ALL 27 + 78 + 56 * 62
----
3577

query I rowsort
SELECT 59 * - 24 AS col0
----
-1416

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL + 1 - - 51 * - + MAX( ALL 37 ) * 4
----
-7547

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL + 1 - - 51 * - + MAX ( ALL 37 ) * 4
----
-7547

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4441
SELECT 71, ( COUNT( * ) ) DIV - 53 col2
----
71
0

skipif mysql # not compatible
query II rowsort label-4441
SELECT 71, ( COUNT ( * ) ) / - 53 col2
----
71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT 77 * + 87 - + + 10 - ( - 4 ) * + COUNT( * ) * - 81 AS col2
----
6365

skipif mysql # not compatible
query I rowsort label-4442
SELECT 77 * + 87 - + + 10 - ( - 4 ) * + COUNT ( * ) * - 81 AS col2
----
6365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT DISTINCT 56 / - + 53 * + MIN( - ( - ( CAST( NULL AS SIGNED ) ) ) ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT 56 / - + 53 * + MIN ( - ( - ( CAST ( NULL AS INTEGER ) ) ) ) * 61
----
NULL

query I rowsort
SELECT + - 30 * - COALESCE ( ( + 0 ), 0 + COALESCE ( + ( 98 ), 95 * - 20 + 11 * 0 ) ) - COALESCE ( 67, 51 * + 69 )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT DISTINCT - - CAST( - 59 AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT - - CAST ( - 59 AS INTEGER ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL - ( + + SUM( + 79 ) ) * - 8 AS col2
----
632

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - ( + + SUM ( + 79 ) ) * - 8 AS col2
----
632

query II rowsort
SELECT DISTINCT - + 78 AS col1, 71 AS col2
----
-78
71

query I rowsort
SELECT DISTINCT - + COALESCE ( - 96, - ( ( - 28 ) ) * 53 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT + NULLIF ( 27, + + COUNT( * ) + 73 ) * 26 AS col0
----
702

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT + NULLIF ( 27, + + COUNT ( * ) + 73 ) * 26 AS col0
----
702

query I rowsort
SELECT ALL ( + - CASE - 23 WHEN + 23 + + 69 THEN CASE 44 WHEN + 75 * + 52 + 13 THEN NULL WHEN 56 THEN - 4 * + 0 END WHEN + 41 - 54 THEN NULL ELSE NULL END ) - 91 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - - 1 col0, 65
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT 25 * + + ( + COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-4452
SELECT 25 * + + ( + COUNT ( * ) )
----
25

query I rowsort
SELECT ALL 40 * + 54 * + 39 + - 98 col0
----
84142

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT + + COUNT( * ) * - - 86 * - 60 + - 32 - 44
----
-5236

skipif mysql # not compatible
query I rowsort label-4454
SELECT + + COUNT ( * ) * - - 86 * - 60 + - 32 - 44
----
-5236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT 89 * MAX( + CAST( - 60 AS SIGNED ) ) + 47
----
-5293

skipif mysql # not compatible
query I rowsort label-4455
SELECT 89 * MAX ( + CAST ( - 60 AS INTEGER ) ) + 47
----
-5293

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4456
SELECT + 85 * + COALESCE ( + + 90, MIN( ALL 62 ) - SUM( ALL + 80 + - 68 * 27 ) ) * 86 + COALESCE ( 59, + 49 * + NULLIF ( - COALESCE ( 2, 85, 43 * - 7 ), 92 ), + ( ( + 59 ) ) ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT + 85 * + COALESCE ( + + 90, MIN ( ALL 62 ) - SUM ( ALL + 80 + - 68 * 27 ) ) * 86 + COALESCE ( 59, + 49 * + NULLIF ( - COALESCE ( 2, 85, 43 * - 7 ), 92 ), + ( ( + 59 ) ) ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4457
SELECT - - CAST( NULL AS SIGNED ) AS col2, + MIN( DISTINCT + 8 )
----
NULL
8

skipif mysql # not compatible
query II rowsort label-4457
SELECT - - CAST ( NULL AS INTEGER ) AS col2, + MIN ( DISTINCT + 8 )
----
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT COALESCE ( - 41, 28 ) * 65 + + MIN( ALL 56 ) AS col1
----
-2609

skipif mysql # not compatible
query I rowsort label-4458
SELECT COALESCE ( - 41, 28 ) * 65 + + MIN ( ALL 56 ) AS col1
----
-2609

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT NULLIF ( + + CASE + COUNT( * ) WHEN ( 47 ) THEN - 53 WHEN 63 THEN COUNT( * ) ELSE NULL END, + 95 * ( + AVG ( DISTINCT 14 ) * SUM( DISTINCT 54 / 55 ) ) ) + - 0 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT NULLIF ( + + CASE + COUNT ( * ) WHEN ( 47 ) THEN - 53 WHEN 63 THEN COUNT ( * ) ELSE NULL END, + 95 * ( + AVG ( DISTINCT 14 ) * SUM ( DISTINCT 54 / 55 ) ) ) + - 0 * 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT 36, COUNT( * ) * 8 AS col2
----
36
8

skipif mysql # not compatible
query II rowsort label-4460
SELECT 36, COUNT ( * ) * 8 AS col2
----
36
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT 73 + + + NULLIF ( - 26, - CAST( COUNT( * ) AS SIGNED ) + - 46 ) * 18 AS col1
----
-395

skipif mysql # not compatible
query I rowsort label-4461
SELECT 73 + + + NULLIF ( - 26, - CAST ( COUNT ( * ) AS INTEGER ) + - 46 ) * 18 AS col1
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL - + 80 * - COUNT( * ) * + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - + 80 * - COUNT ( * ) * + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT COUNT( ALL 49 )
----
1

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT COUNT ( ALL 49 )
----
1

query II rowsort
SELECT + 52 * - 34 AS col1, + 9 AS col0
----
-1768
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT ALL SUM( DISTINCT 65 ) * 28 DIV + NULLIF ( 77, 43 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL SUM ( DISTINCT 65 ) * 28 / + NULLIF ( 77, 43 ) col2
----
23

query II rowsort
SELECT - 34 + - 13 AS col2, 94 AS col1
----
-47
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL - COUNT( * ) + - - 75
----
74

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - COUNT ( * ) + - - 75
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL - NULLIF ( + 2, - MAX( DISTINCT + 46 ) ) + 41 col1
----
39

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - NULLIF ( + 2, - MAX ( DISTINCT + 46 ) ) + 41 col1
----
39

query I rowsort
SELECT + 64 + + - 70 AS col2
----
-6

query I rowsort
SELECT - 40 + + 68
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL + COUNT( - + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL + COUNT ( - + 20 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT DISTINCT + 53 * + 46 - + 0 + + 42 DIV 10 * - 84 AS col1
----
2102

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT + 53 * + 46 - + 0 + + 42 / 10 * - 84 AS col1
----
2102

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL ( - 69 ) * - + NULLIF ( 23, + COALESCE ( - 31, COUNT( * ) / - 88 ) + - COUNT( * ) * + CASE 60 + + 16 WHEN 26 THEN NULL ELSE 77 * NULLIF ( - 14, + 10 + - 27 ) END ) - 41 * 58 AS col1
----
-791

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL ( - 69 ) * - + NULLIF ( 23, + COALESCE ( - 31, COUNT ( * ) / - 88 ) + - COUNT ( * ) * + CASE 60 + + 16 WHEN 26 THEN NULL ELSE 77 * NULLIF ( - 14, + 10 + - 27 ) END ) - 41 * 58 AS col1
----
-791

onlyif mysql # DIV for integer division: 
query II rowsort label-4474
SELECT ALL + 15 DIV - 7 AS col0, + 85 * + 47 - - NULLIF ( 64, - 10 ) DIV + ( 54 * 23 )
----
-2
3995

skipif mysql # not compatible
query II rowsort label-4474
SELECT ALL + 15 / - 7 AS col0, + 85 * + 47 - - NULLIF ( 64, - 10 ) / + ( 54 * 23 )
----
-2
3995

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT - SUM( ALL + ( - + 56 ) ) * + + 67 * - 28
----
-105056

skipif mysql # not compatible
query I rowsort label-4475
SELECT - SUM ( ALL + ( - + 56 ) ) * + + 67 * - 28
----
-105056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4476
SELECT - SUM( - + 74 ) + - CAST( NULL AS SIGNED ) + + + COUNT( * ) / 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT - SUM ( - + 74 ) + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) / 19 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT DISTINCT + ( - CAST( - 15 AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + ( - CAST ( - 15 AS INTEGER ) )
----
15

query I rowsort
SELECT ALL - 43 * 35 AS col0
----
-1505

query I rowsort
SELECT 31 * 65 + - 13
----
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT + CASE + 44 WHEN 16 * - 22 + - 75 / - 74 THEN + 27 END - + MIN( + 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT + CASE + 44 WHEN 16 * - 22 + - 75 / - 74 THEN + 27 END - + MIN ( + 87 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4481
SELECT DISTINCT - 93 * ( 59 ) + + + CAST( COUNT( * ) AS SIGNED ) AS col1
----
-5486

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT - 93 * ( 59 ) + + + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-5486

query I rowsort
SELECT - 41 + - - 93 AS col0
----
52

query I rowsort
SELECT DISTINCT + - 91 * 21 - - + 9
----
-1902

query I rowsort
SELECT DISTINCT + + ( ( - + 69 ) )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT - - 90 + - ( 84 ) + 41 DIV - 87
----
6

skipif mysql # not compatible
query I rowsort label-4485
SELECT - - 90 + - ( 84 ) + 41 / - 87
----
6

query I rowsort
SELECT - + 21 * 31
----
-651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4487
SELECT - NULLIF ( + 83, - CAST( + 80 AS SIGNED ) ) / CASE 44 WHEN + 51 * + CAST( 48 * CASE 41 * 32 WHEN 47 THEN 38 + + 24 WHEN 56 THEN NULL END AS SIGNED ) THEN 14 WHEN + MAX( 25 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT - NULLIF ( + 83, - CAST ( + 80 AS INTEGER ) ) / CASE 44 WHEN + 51 * + CAST ( 48 * CASE 41 * 32 WHEN 47 THEN 38 + + 24 WHEN 56 THEN NULL END AS INTEGER ) THEN 14 WHEN + MAX ( 25 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4488
SELECT DISTINCT - CASE MIN( DISTINCT + + 17 ) WHEN - + 80 THEN NULL WHEN 92 THEN 31 ELSE 23 + COUNT( * ) * - 38 END DIV + 8
----
1

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - CASE MIN ( DISTINCT + + 17 ) WHEN - + 80 THEN NULL WHEN 92 THEN 31 ELSE 23 + COUNT ( * ) * - 38 END / + 8
----
1

query I rowsort
SELECT + + 66 + - 89 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL - + 91 * - - COUNT( - + 15 ) + + - 33 col0
----
-124

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - + 91 * - - COUNT ( - + 15 ) + + - 33 col0
----
-124

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4491
SELECT DISTINCT + - NULLIF ( + 34, - + 94 * + 14 + CAST( 3 + - 7 AS DECIMAL ) ) * COALESCE ( 60 + + 95, 3 + + 10 ) + + 59 AS col0
----
-5211

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + - NULLIF ( + 34, - + 94 * + 14 + CAST ( 3 + - 7 AS REAL ) ) * COALESCE ( 60 + + 95, 3 + + 10 ) + + 59 AS col0
----
-5211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4492
SELECT DISTINCT + + 74 DIV + 31 * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT + + 74 / + 31 * + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT - 9 * - COALESCE ( 13, COUNT( - ( - 84 ) ) ) + 27 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT - 9 * - COALESCE ( 13, COUNT ( - ( - 84 ) ) ) + 27 AS col0
----
144

query I rowsort
SELECT ALL - 94 + - - 64 AS col2
----
-30

query II rowsort
SELECT DISTINCT - 78 + - 1 AS col0, 44 - 17 AS col0
----
-79
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT DISTINCT SUM( ALL 69 ) + + 24
----
93

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT SUM ( ALL 69 ) + + 24
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4497
SELECT - 53 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-4497
SELECT - 53 / 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT + COUNT( ALL + 0 ) * - 89 + - - 20 + - 38 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-4498
SELECT + COUNT ( ALL + 0 ) * - 89 + - - 20 + - 38 AS col1
----
-107

query I rowsort
SELECT + 35 * + 84 AS col0
----
2940

query I rowsort
SELECT ALL 17 + - 69 AS col2
----
-52

query I rowsort
SELECT + 23 - 36 AS col1
----
-13

query I rowsort
SELECT + 99 - + 22
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT ALL NULLIF ( + CAST( 3 AS SIGNED ), + - ( - + 98 ) + - 96 )
----
3

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL NULLIF ( + CAST ( 3 AS INTEGER ), + - ( - + 98 ) + - 96 )
----
3

query I rowsort
SELECT ALL NULLIF ( + ( + NULLIF ( - 12, 42 - 25 ) ), 72 + + 21 * + COALESCE ( + 20, - 65 / - 94 + + 50 ) ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + 10 + + MIN( ALL + 63 ) col2
----
73

skipif mysql # not compatible
query I rowsort label-4505
SELECT + 10 + + MIN ( ALL + 63 ) col2
----
73

query I rowsort
SELECT DISTINCT 16 - 2 + - 16 AS col1
----
-2

query I rowsort
SELECT - CASE 19 WHEN + 51 THEN + 85 * 63 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 92 - + - 76 AS col2
----
168

query I rowsort
SELECT - ( ( - 81 ) ) AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4510
SELECT + COUNT( * ) * - + 3 DIV 76 * - 16 col0
----
0

skipif mysql # not compatible
query I rowsort label-4510
SELECT + COUNT ( * ) * - + 3 / 76 * - 16 col0
----
0

query I rowsort
SELECT - ( + 63 ) * + + 53 AS col2
----
-3339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT CAST( - + 86 AS SIGNED ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-4512
SELECT CAST ( - + 86 AS INTEGER ) AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4513
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT DISTINCT + 83 DIV 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT + 83 / 52 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4515
SELECT ALL + COALESCE ( + 22, + - 2 * + COALESCE ( + COUNT( + 55 ), - ( + CAST( - 19 AS SIGNED ) ) ) + 42, 38 + + 9 )
----
22

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL + COALESCE ( + 22, + - 2 * + COALESCE ( + COUNT ( + 55 ), - ( + CAST ( - 19 AS INTEGER ) ) ) + 42, 38 + + 9 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - 62 * COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4516
SELECT - 62 * COUNT ( * ) AS col0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4517
SELECT ALL - 39 DIV + CASE - 3 WHEN + 88 * 64 - - 35 THEN + 5 + - 83 * - MIN( + 4 ) ELSE 29 END
----
-1

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - 39 / + CASE - 3 WHEN + 88 * 64 - - 35 THEN + 5 + - 83 * - MIN ( + 4 ) ELSE 29 END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT + 5 * - NULLIF ( + 4, + + 25 * - COUNT( * ) * ( + 3 ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4518
SELECT + 5 * - NULLIF ( + 4, + + 25 * - COUNT ( * ) * ( + 3 ) ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT + - CASE + NULLIF ( - 49, 58 / - - MIN( ALL - 21 ) ) WHEN - COUNT( * ) THEN NULL WHEN 73 THEN - CAST( NULL AS SIGNED ) - + 62 END * + SUM( - 38 ) - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT + - CASE + NULLIF ( - 49, 58 / - - MIN ( ALL - 21 ) ) WHEN - COUNT ( * ) THEN NULL WHEN 73 THEN - CAST ( NULL AS INTEGER ) - + 62 END * + SUM ( - 38 ) - - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4520
SELECT DISTINCT + COUNT( * ) * + - 50 DIV - 93 + - 74
----
-74

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT + COUNT ( * ) * + - 50 / - 93 + - 74
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT - 28 - - 81 + 38 + + 88 DIV - MIN( DISTINCT - 92 ) + 20 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-4521
SELECT - 28 - - 81 + 38 + + 88 / - MIN ( DISTINCT - 92 ) + 20 AS col1
----
111

query I rowsort
SELECT - + 9 + + 44 AS col2
----
35

query I rowsort
SELECT DISTINCT 72 * + - ( + 90 ) + ( - 47 ) AS col0
----
-6527

query I rowsort
SELECT ALL - 20 * - - 81 * - - 15 + - - 0 + + - 45 * 7
----
-24615

query I rowsort
SELECT + - ( - 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT + ( + + NULLIF ( - + ( - 50 ), - 85 ) ) + + ( MIN( + 62 ) ) * + 18
----
1166

skipif mysql # not compatible
query I rowsort label-4526
SELECT + ( + + NULLIF ( - + ( - 50 ), - 85 ) ) + + ( MIN ( + 62 ) ) * + 18
----
1166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4527
SELECT - 91 - + + 19 + - 30 * + NULLIF ( - 45, + 81 ) / + 18 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT - 91 - + + 19 + - 30 * + NULLIF ( - 45, + 81 ) / + 18 + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT NULLIF ( + 48, + 67 )
----
48

query II rowsort
SELECT 55, - 86 AS col0
----
55
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT - ( NULLIF ( - - 85, + 94 ) ) + + + COUNT( * ) + - 82 + - 43
----
-209

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT - ( NULLIF ( - - 85, + 94 ) ) + + + COUNT ( * ) + - 82 + - 43
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT 18 * MIN( + 27 ) * ( - - COUNT( * ) ) + 71 AS col0
----
557

skipif mysql # not compatible
query I rowsort label-4531
SELECT 18 * MIN ( + 27 ) * ( - - COUNT ( * ) ) + 71 AS col0
----
557

query II rowsort
SELECT 63 AS col2, + 39
----
63
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL COUNT( * ) + + - ( - 93 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL COUNT ( * ) + + - ( - 93 ) AS col2
----
94

query I rowsort
SELECT ALL 11 * 35
----
385

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4535
SELECT 43 * 8 DIV - SUM( 55 ) AS col1, - 41
----
-6
-41

skipif mysql # not compatible
query II rowsort label-4535
SELECT 43 * 8 / - SUM ( 55 ) AS col1, - 41
----
-6
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT ALL - 42 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - 42 / 75
----
0

query I rowsort
SELECT ALL + ( - + 97 ) - 1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4538
SELECT ALL 63 - 52 + - COUNT( * ) DIV + 59
----
11

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL 63 - 52 + - COUNT ( * ) / + 59
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT 62 DIV + - 15 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4539
SELECT 62 / + - 15 AS col0
----
-4

query I rowsort
SELECT ALL 75 * - 83
----
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT 33 + - - 76 * 25 + COUNT( * ) + + 4 * - + COUNT( * )
----
1930

skipif mysql # not compatible
query I rowsort label-4541
SELECT 33 + - - 76 * 25 + COUNT ( * ) + + 4 * - + COUNT ( * )
----
1930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4542
SELECT CASE + + 71 WHEN + 39 THEN NULL ELSE - CAST( + CASE + - COUNT( * ) WHEN - 71 THEN - 50 END AS SIGNED ) * - 30 - + 58 END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT CASE + + 71 WHEN + 39 THEN NULL ELSE - CAST ( + CASE + - COUNT ( * ) WHEN - 71 THEN - 50 END AS INTEGER ) * - 30 - + 58 END + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4543
SELECT 79 AS col2, + 3 DIV ( 16 )
----
79
0

skipif mysql # not compatible
query II rowsort label-4543
SELECT 79 AS col2, + 3 / ( 16 )
----
79
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4544
SELECT 52 DIV - 7 AS col2, + ( 8 ) AS col0
----
-7
8

skipif mysql # not compatible
query II rowsort label-4544
SELECT 52 / - 7 AS col2, + ( 8 ) AS col0
----
-7
8

query I rowsort
SELECT 87 * 82 AS col1
----
7134

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT 58 + - + 69 - - - ( 40 ) + - + COUNT( * ) + 0 - + 39 * 52
----
-2080

skipif mysql # not compatible
query I rowsort label-4546
SELECT 58 + - + 69 - - - ( 40 ) + - + COUNT ( * ) + 0 - + 39 * 52
----
-2080

onlyif mysql # aggregate syntax: 
query II rowsort label-4547
SELECT 60 AS col2, + MIN( + + 63 )
----
60
63

skipif mysql # not compatible
query II rowsort label-4547
SELECT 60 AS col2, + MIN ( + + 63 )
----
60
63

query I rowsort
SELECT DISTINCT - COALESCE ( + + 10, 56 ) AS col1
----
-10

query I rowsort
SELECT + - 74 * + 50 * - 71 - 11 AS col2
----
262689

onlyif mysql # aggregate syntax: 
query II rowsort label-4550
SELECT + + 77, COUNT( * ) AS col2
----
77
1

skipif mysql # not compatible
query II rowsort label-4550
SELECT + + 77, COUNT ( * ) AS col2
----
77
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4551
SELECT ALL - - 6 col2, 79 DIV + ( - COUNT( * ) ) AS col0
----
6
-79

skipif mysql # not compatible
query II rowsort label-4551
SELECT ALL - - 6 col2, 79 / + ( - COUNT ( * ) ) AS col0
----
6
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - COUNT( * ) * - - COUNT( * ) + + 78 + - 18
----
59

skipif mysql # not compatible
query I rowsort label-4552
SELECT - COUNT ( * ) * - - COUNT ( * ) + + 78 + - 18
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL 20 * + MAX( + 85 ) + SUM( 0 ) AS col1
----
1700

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL 20 * + MAX ( + 85 ) + SUM ( 0 ) AS col1
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT 54 + COUNT( * ) * - + 96 - + + 92
----
-134

skipif mysql # not compatible
query I rowsort label-4554
SELECT 54 + COUNT ( * ) * - + 96 - + + 92
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT ALL - MIN( - + NULLIF ( 25, + 5 + - 60 * - 97 * 65 ) ) + - CAST( COUNT( * ) AS SIGNED ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - MIN ( - + NULLIF ( 25, + 5 + - 60 * - 97 * 65 ) ) + - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT COUNT( * ) + - 66 DIV - 52
----
2

skipif mysql # not compatible
query I rowsort label-4556
SELECT COUNT ( * ) + - 66 / - 52
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT + MIN( + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-4557
SELECT + MIN ( + 49 )
----
49

query I rowsort
SELECT ALL + 19 + 18 * 18
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + - 37 * - 72 + - + COUNT( * )
----
2663

skipif mysql # not compatible
query I rowsort label-4559
SELECT + - 37 * - 72 + - + COUNT ( * )
----
2663

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ALL - COUNT( * ) * - ( + + 20 ) * ( - 79 ) + 23
----
-1557

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL - COUNT ( * ) * - ( + + 20 ) * ( - 79 ) + 23
----
-1557

query I rowsort
SELECT DISTINCT 91 + + 59 - + 99
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT - 0 + + SUM( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT - 0 + + SUM ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT + - COALESCE ( + 31, COALESCE ( + + COUNT( * ), - - 29 + - ( - 9 ) ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4563
SELECT + - COALESCE ( + 31, COALESCE ( + + COUNT ( * ), - - 29 + - ( - 9 ) ) )
----
-31

query I rowsort
SELECT DISTINCT - + ( + 32 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4565
SELECT + 28 * + 38 * - COALESCE ( MAX( ALL 42 ), NULLIF ( + CASE - 75 WHEN + 33 THEN 58 ELSE + 62 * + 55 + 32 END, 92 + 9 * + 23 ) DIV ( CASE - NULLIF ( 79, + 19 + - 55 ) WHEN + 54 THEN 60 END * + 5 ), COUNT( ALL - 30 ) ) AS col2
----
-44688

skipif mysql # not compatible
query I rowsort label-4565
SELECT + 28 * + 38 * - COALESCE ( MAX ( ALL 42 ), NULLIF ( + CASE - 75 WHEN + 33 THEN 58 ELSE + 62 * + 55 + 32 END, 92 + 9 * + 23 ) / ( CASE - NULLIF ( 79, + 19 + - 55 ) WHEN + 54 THEN 60 END * + 5 ), COUNT ( ALL - 30 ) ) AS col2
----
-44688

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT 79 * - COUNT( * ) + + 59
----
-20

skipif mysql # not compatible
query I rowsort label-4566
SELECT 79 * - COUNT ( * ) + + 59
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT ALL + 55 * - ( 37 ) * - 83 * + + CAST( NULL AS SIGNED ) * 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL + 55 * - ( 37 ) * - 83 * + + CAST ( NULL AS INTEGER ) * 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT 27 * - ( - - COUNT( * ) ) * 46
----
-1242

skipif mysql # not compatible
query I rowsort label-4568
SELECT 27 * - ( - - COUNT ( * ) ) * 46
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT MAX( DISTINCT + - 52 ) * + 58 + - SUM( DISTINCT + 6 )
----
-3022

skipif mysql # not compatible
query I rowsort label-4569
SELECT MAX ( DISTINCT + - 52 ) * + 58 + - SUM ( DISTINCT + 6 )
----
-3022

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + COUNT( * ) * + + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + COUNT ( * ) * + + 76 AS col1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4571
SELECT 33 + - COUNT( * ) AS col1, 57 col1
----
32
57

skipif mysql # not compatible
query II rowsort label-4571
SELECT 33 + - COUNT ( * ) AS col1, 57 col1
----
32
57

query I rowsort
SELECT 52 * + + 90 col0
----
4680

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT - 37 * - - ( - + NULLIF ( + - ( - 9 ), + - 80 * 11 * - CASE 83 * 30 WHEN MAX( 48 ) * + 15 + - COUNT( * ) THEN COUNT( * ) * ( 84 ) END + + 16 * ( + 37 * ( 3 ) ) ) )
----
333

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - 37 * - - ( - + NULLIF ( + - ( - 9 ), + - 80 * 11 * - CASE 83 * 30 WHEN MAX ( 48 ) * + 15 + - COUNT ( * ) THEN COUNT ( * ) * ( 84 ) END + + 16 * ( + 37 * ( 3 ) ) ) )
----
333

query I rowsort
SELECT 42 * + - 88 * + + 80
----
-295680

query II rowsort
SELECT 78 + - 39 AS col1, 0 + + 5 + - - 81 AS col0
----
39
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4576
SELECT 61 - - CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT 61 - - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT ALL - 84 * - - MAX( ALL - 52 )
----
4368

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - 84 * - - MAX ( ALL - 52 )
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT DISTINCT 56 * + - COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT 56 * + - COUNT ( * ) AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4579
SELECT ALL - 93 DIV - 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - 93 / - 80 AS col2
----
1

query I rowsort
SELECT ALL 91 + + 56 + 8 AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT DISTINCT - + ( 78 ) * + CASE + NULLIF ( - 21, + COUNT( * ) ) WHEN + + 65 - 85 THEN NULL ELSE + 74 END
----
-5772

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT - + ( 78 ) * + CASE + NULLIF ( - 21, + COUNT ( * ) ) WHEN + + 65 - 85 THEN NULL ELSE + 74 END
----
-5772

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT + 60 * 13 DIV 85 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4582
SELECT + 60 * 13 / 85 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT - NULLIF ( 38, - - COUNT( * ) / COUNT( * ) * + - 18 ) - + COALESCE ( + 65, 38 ) AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-4583
SELECT - NULLIF ( 38, - - COUNT ( * ) / COUNT ( * ) * + - 18 ) - + COALESCE ( + 65, 38 ) AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT COUNT( * ) + 7 * - + 23 AS col0
----
-160

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT COUNT ( * ) + 7 * - + 23 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL + 22 + - COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL + 22 + - COUNT ( * ) AS col1
----
21

query I rowsort
SELECT 56 * - - 35 * - 83 AS col0
----
-162680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4587
SELECT + 5 DIV + 61 * + 43 + - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4587
SELECT + 5 / + 61 * + 43 + - - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT DISTINCT 80 * - + COUNT( * ) + - + COUNT( * ) + COUNT( - ( - COALESCE ( ( - 44 ), CASE 58 WHEN 57 THEN NULL ELSE + 2 * - 73 END * 35 + - 7, 28 ) ) ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT 80 * - + COUNT ( * ) + - + COUNT ( * ) + COUNT ( - ( - COALESCE ( ( - 44 ), CASE 58 WHEN 57 THEN NULL ELSE + 2 * - 73 END * 35 + - 7, 28 ) ) ) AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT DISTINCT - - CAST( + COALESCE ( + 9, ( 94 ) ) AS SIGNED ) * + - 82 * + 64 + - 92
----
-47324

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT - - CAST ( + COALESCE ( + 9, ( 94 ) ) AS INTEGER ) * + - 82 * + 64 + - 92
----
-47324

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL + - 30 * COUNT( * ) + COUNT( * ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + - 30 * COUNT ( * ) + COUNT ( * ) col2
----
-29

query I rowsort
SELECT DISTINCT - - 64 * + 66 + - 59 + + - 30
----
4135

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT + + NULLIF ( 16, - - 29 * + 63 * 93 + 51 + - ( + 39 ) * - COUNT( * ) ) * - 71
----
-1136

skipif mysql # not compatible
query I rowsort label-4592
SELECT + + NULLIF ( 16, - - 29 * + 63 * 93 + 51 + - ( + 39 ) * - COUNT ( * ) ) * - 71
----
-1136

query I rowsort
SELECT + - ( 42 ) * - - 47
----
-1974

query I rowsort
SELECT - 34 * - 73 - - 91
----
2573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT + COUNT( * ) + + - COALESCE ( - 70, + - 63 + + 28 ) + - CASE - 60 WHEN + 34 THEN 81 WHEN AVG ( 32 ) * 37 THEN NULL ELSE COALESCE ( + 94, MIN( ALL 76 ) * - 42 ) END + 65 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT + COUNT ( * ) + + - COALESCE ( - 70, + - 63 + + 28 ) + - CASE - 60 WHEN + 34 THEN 81 WHEN AVG ( 32 ) * 37 THEN NULL ELSE COALESCE ( + 94, MIN ( ALL 76 ) * - 42 ) END + 65 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL - 76 * 74 * - 84 - - COUNT( * )
----
472417

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL - 76 * 74 * - 84 - - COUNT ( * )
----
472417

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT COUNT( + 23 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4597
SELECT COUNT ( + 23 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4598
SELECT ALL - 87 DIV - 38 col0
----
2

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL - 87 / - 38 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4599
SELECT + ( + 18 ) * - - 6 * + CAST( NULL AS DECIMAL ) * - 56 - SUM( ALL 95 ) * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT + ( + 18 ) * - - 6 * + CAST ( NULL AS REAL ) * - 56 - SUM ( ALL 95 ) * - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL + SUM( DISTINCT + 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL + SUM ( DISTINCT + 44 ) AS col2
----
44

query I rowsort
SELECT + 40 + 9 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT + 57 DIV + - 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4602
SELECT + 57 / + - 99 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT DISTINCT + 79 DIV 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT + 79 / 46 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT - 39 * - + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4604
SELECT - 39 * - + COUNT ( * )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4605
SELECT ALL CASE + + 76 WHEN + + AVG ( + + 96 ) THEN NULL WHEN + ( COUNT( * ) ) THEN + + CAST( NULL AS SIGNED ) + + 47 + - 75 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL CASE + + 76 WHEN + + AVG ( + + 96 ) THEN NULL WHEN + ( COUNT ( * ) ) THEN + + CAST ( NULL AS INTEGER ) + + 47 + - 75 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT - COUNT( + + 57 ) + - 24 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT - COUNT ( + + 57 ) + - 24 AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4607
SELECT - 86 + 43 + + + ( - - CAST( + + 77 AS SIGNED ) ) + - MAX( ( - - 26 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT - 86 + 43 + + + ( - - CAST ( + + 77 AS INTEGER ) ) + - MAX ( ( - - 26 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 80 + - - COALESCE ( + 13, + 18 ) * 18
----
154

query I rowsort
SELECT ALL CASE 40 WHEN - + 44 * + 23 - + 12 + - + 46 + 71 * + - 28 + 19 THEN - 20 - - ( NULLIF ( + 86, + 9 + + 38 ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 89 * + - 49 * 62
----
270382

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + 68 + + CASE + 93 WHEN - + 45 THEN NULL WHEN + 8 THEN NULL ELSE - + COUNT( * ) * - SUM( + 49 ) END * + 58
----
2910

skipif mysql # not compatible
query I rowsort label-4611
SELECT + 68 + + CASE + 93 WHEN - + 45 THEN NULL WHEN + 8 THEN NULL ELSE - + COUNT ( * ) * - SUM ( + 49 ) END * + 58
----
2910

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - 73 * MAX( - 29 ) AS col2
----
2117

skipif mysql # not compatible
query I rowsort label-4612
SELECT - 73 * MAX ( - 29 ) AS col2
----
2117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4613
SELECT - CAST( NULL AS SIGNED ) AS col0, + 71
----
NULL
71

skipif mysql # not compatible
query II rowsort label-4613
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 71
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT - 81 + - + MAX( ALL - 48 ) * - + 80
----
-3921

skipif mysql # not compatible
query I rowsort label-4614
SELECT - 81 + - + MAX ( ALL - 48 ) * - + 80
----
-3921

query I rowsort
SELECT ALL - - ( 52 ) + - 28
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL + - 15 + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + - 15 + COUNT ( * )
----
-14

query I rowsort
SELECT - 8 + 53 + - 25 AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4618
SELECT ALL - 11 + - COALESCE ( + 16, 41 * 42 ) + COUNT( * ) AS col1, + 63 * 19 * 58 col2
----
-26
69426

skipif mysql # not compatible
query II rowsort label-4618
SELECT ALL - 11 + - COALESCE ( + 16, 41 * 42 ) + COUNT ( * ) AS col1, + 63 * 19 * 58 col2
----
-26
69426

query I rowsort
SELECT - - 5 - 78 - + 53 - 98 AS col1
----
-224

query I rowsort
SELECT DISTINCT + + 65 * - - 81 AS col2
----
5265

query I rowsort
SELECT ALL + COALESCE ( 48, + 52 * - ( 62 ), + 0 + + 95 )
----
48

query I rowsort
SELECT ALL + 67 * + 3 AS col1
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT CASE 80 WHEN + 8 + + 72 THEN - NULLIF ( + COUNT( * ), + - ( - - 36 ) + 35 ) + + 7 WHEN - 46 * 53 + 53 THEN NULL ELSE NULL END
----
6

skipif mysql # not compatible
query I rowsort label-4623
SELECT CASE 80 WHEN + 8 + + 72 THEN - NULLIF ( + COUNT ( * ), + - ( - - 36 ) + 35 ) + + 7 WHEN - 46 * 53 + 53 THEN NULL ELSE NULL END
----
6

query I rowsort
SELECT - 83 * 28 AS col1
----
-2324

query II rowsort
SELECT ALL + - 27 AS col1, + 84 + + - 16 AS col0
----
-27
68

query I rowsort
SELECT - 97 + - 55 * + 99 - - 89
----
-5453

query I rowsort
SELECT + + 16 col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4628
SELECT ALL + + 50 col0, CAST( - 88 AS SIGNED ) * - 81 - + 82 + + CAST( NULL AS SIGNED ) AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-4628
SELECT ALL + + 50 col0, CAST ( - 88 AS INTEGER ) * - 81 - + 82 + + CAST ( NULL AS INTEGER ) AS col2
----
50
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT 20 DIV 74 * - 61 + + 90
----
90

skipif mysql # not compatible
query I rowsort label-4629
SELECT 20 / 74 * - 61 + + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + + COUNT( * ) * - - 54 + - - 72
----
126

skipif mysql # not compatible
query I rowsort label-4630
SELECT + + COUNT ( * ) * - - 54 + - - 72
----
126

query I rowsort
SELECT ( 44 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ( - CASE 3 WHEN - AVG ( + NULLIF ( + 69, 74 ) ) * + 44 THEN NULL WHEN 67 * - 72 THEN + MAX( + 55 ) * + 20 ELSE - 3 * 33 + 82 END ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4632
SELECT ( - CASE 3 WHEN - AVG ( + NULLIF ( + 69, 74 ) ) * + 44 THEN NULL WHEN 67 * - 72 THEN + MAX ( + 55 ) * + 20 ELSE - 3 * 33 + 82 END ) AS col2
----
17

query I rowsort
SELECT + 52 * - 38 * - 96 AS col2
----
189696

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + 70 + + COUNT( * ) * - + 88 + + ( + 56 ) + - 37
----
1

skipif mysql # not compatible
query I rowsort label-4634
SELECT + 70 + + COUNT ( * ) * - + 88 + + ( + 56 ) + - 37
----
1

query I rowsort
SELECT - 82 * - + 9 * - + 6 AS col2
----
-4428

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + CASE - + 68 WHEN COUNT( * ) / + 88 / + 70 + + 40 THEN + 93 * - 10 - + MAX( ALL - 34 ) WHEN + NULLIF ( - 63, 80 ) / + 3 THEN ( 18 ) WHEN 40 THEN NULL ELSE 22 END * 42 + 0
----
924

skipif mysql # not compatible
query I rowsort label-4636
SELECT + CASE - + 68 WHEN COUNT ( * ) / + 88 / + 70 + + 40 THEN + 93 * - 10 - + MAX ( ALL - 34 ) WHEN + NULLIF ( - 63, 80 ) / + 3 THEN ( 18 ) WHEN 40 THEN NULL ELSE 22 END * 42 + 0
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT + COUNT( * ) + + + 36
----
37

skipif mysql # not compatible
query I rowsort label-4637
SELECT + COUNT ( * ) + + + 36
----
37

query I rowsort
SELECT ALL 28 * - - 97 * 82 AS col0
----
222712

query II rowsort
SELECT CASE + 69 WHEN + - 16 THEN NULL WHEN - 38 * - 18 THEN NULL ELSE + ( + + 22 ) END AS col2, - 84 - 83 AS col0
----
22
-167

query I rowsort
SELECT + ( + ( 22 ) ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL + ( NULLIF ( - 2, + + 50 ) ) * 88 + + - 84 + - - 52 * + MAX( 65 ) * 62
----
209300

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL + ( NULLIF ( - 2, + + 50 ) ) * 88 + + - 84 + - - 52 * + MAX ( 65 ) * 62
----
209300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4642
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * - + NULLIF ( COUNT( * ), + 42 + - 40 * 52 ) * - 16
----
-16

skipif mysql # not compatible
query I rowsort label-4642
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - + NULLIF ( COUNT ( * ), + 42 + - 40 * 52 ) * - 16
----
-16

query I rowsort
SELECT - 74 + 96 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT COUNT( * ) * + 60 + - + 69 DIV - 32 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT COUNT ( * ) * + 60 + - + 69 / - 32 AS col1
----
62

query I rowsort
SELECT - 50 + + 12 AS col0
----
-38

query I rowsort
SELECT ALL NULLIF ( - 28, 88 + + - 73 * - 55 * + 28 / - 15 ) + - 28
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-4647
SELECT + 56 * 51 AS col0, 45 + 96 DIV - 59 AS col0
----
2856
44

skipif mysql # not compatible
query II rowsort label-4647
SELECT + 56 * 51 AS col0, 45 + 96 / - 59 AS col0
----
2856
44

query I rowsort
SELECT ALL + - 42 * - 97 * - 51
----
-207774

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT + + ( 6 ) DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-4649
SELECT + + ( 6 ) / - 66
----
0

query I rowsort
SELECT DISTINCT 57 * 82 AS col0
----
4674

query I rowsort
SELECT ( + 85 ) col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL - CASE WHEN 56 IS NULL THEN NULL WHEN NOT ( CAST( NULL AS SIGNED ) * + + ( + 22 ) * + 98 * 63 ) IS NULL THEN NULL ELSE - 73 END * 28
----
2044

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL - CASE WHEN 56 IS NULL THEN NULL WHEN NOT ( CAST ( NULL AS INTEGER ) * + + ( + 22 ) * + 98 * 63 ) IS NULL THEN NULL ELSE - 73 END * 28
----
2044

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT - COUNT( * ) + + - ( - + MIN( 85 ) ) + + - 53 + - 63 * - 70 AS col1
----
4441

skipif mysql # not compatible
query I rowsort label-4653
SELECT - COUNT ( * ) + + - ( - + MIN ( 85 ) ) + + - 53 + - 63 * - 70 AS col1
----
4441

query I rowsort
SELECT - + 64 col0
----
-64

query I rowsort
SELECT - 72 * 72 AS col0
----
-5184

query I rowsort
SELECT ALL + + 87 * + 24
----
2088

query I rowsort
SELECT ALL + - 62 * 10 AS col0
----
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ( - 17 ) * 0 + MAX( DISTINCT - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-4658
SELECT ( - 17 ) * 0 + MAX ( DISTINCT - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT 33 / + ( + 12 ) * - + CASE + + 53 WHEN + 42 * - + 84 THEN + - 50 - - + ( - ( SUM( + 10 ) ) ) END + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT 33 / + ( + 12 ) * - + CASE + + 53 WHEN + 42 * - + 84 THEN + - 50 - - + ( - ( SUM ( + 10 ) ) ) END + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT 97 * - 90 + - 4 * 61 + - + 70 - - - SUM( DISTINCT 43 ) + - + ( - - 86 )
----
-9173

skipif mysql # not compatible
query I rowsort label-4660
SELECT 97 * - 90 + - 4 * 61 + - + 70 - - - SUM ( DISTINCT 43 ) + - + ( - - 86 )
----
-9173

query I rowsort
SELECT ALL - 24 * + 50 AS col2
----
-1200

query I rowsort
SELECT 78 * + + ( - 16 ) AS col2
----
-1248

query I rowsort
SELECT ALL 5 + + 63 * + 43 + - 55 AS col2
----
2659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4664
SELECT 62 + + CAST( COUNT( * ) AS SIGNED ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4664
SELECT 62 + + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
63

query I rowsort
SELECT ALL 81 + 10 + - 26
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4666
SELECT 71 + SUM( + 45 ) DIV - + 40
----
70

skipif mysql # not compatible
query I rowsort label-4666
SELECT 71 + SUM ( + 45 ) / - + 40
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL - 52 + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL - 52 + - COUNT ( * )
----
-53

query I rowsort
SELECT + 4 * + 13 + 42 + + 27
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT NULLIF ( - 62, + + 17 ) + - ( AVG ( ALL + ( + ( - CASE - - CAST( 7 AS SIGNED ) WHEN 91 THEN 10 - 32 END ) ) ) ) / - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT NULLIF ( - 62, + + 17 ) + - ( AVG ( ALL + ( + ( - CASE - - CAST ( 7 AS INTEGER ) WHEN 91 THEN 10 - 32 END ) ) ) ) / - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL COUNT( * ) + + 14
----
15

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL COUNT ( * ) + + 14
----
15

query I rowsort
SELECT 16 + 96 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT CASE ( + - COUNT( * ) ) WHEN 97 THEN 28 * + 60 * 42 * 28 * 19 END * + - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT CASE ( + - COUNT ( * ) ) WHEN 97 THEN 28 * + 60 * 42 * 28 * 19 END * + - 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT CASE WHEN NULL <> NULL THEN NULL ELSE - NULLIF ( + + 14, - 48 - + COUNT( * ) * 78 * - + 14 * - 79 * ( 50 ) - + 98 ) END + + 88 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4673
SELECT CASE WHEN NULL <> NULL THEN NULL ELSE - NULLIF ( + + 14, - 48 - + COUNT ( * ) * 78 * - + 14 * - 79 * ( 50 ) - + 98 ) END + + 88 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4674
SELECT ALL + - 23 * CAST( + 31 AS SIGNED ) AS col1, COUNT( * ) col2
----
-713
1

skipif mysql # not compatible
query II rowsort label-4674
SELECT ALL + - 23 * CAST ( + 31 AS INTEGER ) AS col1, COUNT ( * ) col2
----
-713
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT + COUNT( + + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + COUNT ( + + 97 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4676
SELECT DISTINCT 42 * - MIN( ALL - ( + + 86 ) ) + - + 72 + - 86 AS col1, 68 AS col2
----
3454
68

skipif mysql # not compatible
query II rowsort label-4676
SELECT DISTINCT 42 * - MIN ( ALL - ( + + 86 ) ) + - + 72 + - 86 AS col1, 68 AS col2
----
3454
68

query I rowsort
SELECT ALL + 11 - 85 + - 65 * + - 26 + - 59
----
1557

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT ALL + + 15 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL + + 15 / + 58
----
0

query I rowsort
SELECT 33 + + 15
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT 92 + + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4680
SELECT 92 + + COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4681
SELECT ALL MIN( - + 64 ) DIV MIN( DISTINCT + 75 ) DIV - ( + COALESCE ( - + ( - - COALESCE ( 60, - NULLIF ( 97, 72 * - COUNT( * ) ) * 23 ) ), + 94 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL MIN ( - + 64 ) / MIN ( DISTINCT + 75 ) / - ( + COALESCE ( - + ( - - COALESCE ( 60, - NULLIF ( 97, 72 * - COUNT ( * ) ) * 23 ) ), + 94 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT + 65 + + + 47 - - + 94 * 89 * - - COUNT( + + 43 ) * - COUNT( DISTINCT 1 ) + - COUNT( * ) AS col1
----
-8255

skipif mysql # not compatible
query I rowsort label-4682
SELECT + 65 + + + 47 - - + 94 * 89 * - - COUNT ( + + 43 ) * - COUNT ( DISTINCT 1 ) + - COUNT ( * ) AS col1
----
-8255

query I rowsort
SELECT 25 * + + 68 AS col2
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT - SUM( 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4684
SELECT - SUM ( 79 )
----
-79

query I rowsort
SELECT ALL + - 60 * + ( 48 )
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + COUNT( * ) + + + 45 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4686
SELECT + COUNT ( * ) + + + 45 AS col0
----
46

query I rowsort
SELECT - 15 + 11 AS col0
----
-4

query I rowsort
SELECT DISTINCT COALESCE ( + 10, - 61 - + 54 ) AS col2
----
10

query I rowsort
SELECT - 72 * + 89
----
-6408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT + 45 DIV - 98 + COALESCE ( + - 90, + ( 2 ) * COUNT( * ) + 60 * - 50 + + + 80 + + - COUNT( * ) - - 0, + 5 + 41 DIV 52, COUNT( * ) ) DIV 38
----
-2

skipif mysql # not compatible
query I rowsort label-4690
SELECT + 45 / - 98 + COALESCE ( + - 90, + ( 2 ) * COUNT ( * ) + 60 * - 50 + + + 80 + + - COUNT ( * ) - - 0, + 5 + 41 / 52, COUNT ( * ) ) / 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT COUNT( - + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-4691
SELECT COUNT ( - + 44 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT ( 80 ) * + 1 + 53 - + 8 - - COUNT( * ) - - 82 AS col0
----
208

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT ( 80 ) * + 1 + 53 - + 8 - - COUNT ( * ) - - 82 AS col0
----
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4693
SELECT 92 * + - 52 + MAX( DISTINCT - + 41 ) + - - NULLIF ( - ( - 54 ), - 91 ) / - 72 - - + ( + - COUNT( * ) ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT 92 * + - 52 + MAX ( DISTINCT - + 41 ) + - - NULLIF ( - ( - 54 ), - 91 ) / - 72 - - + ( + - COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT COUNT( * ), 18 AS col0
----
1
18

skipif mysql # not compatible
query II rowsort label-4694
SELECT COUNT ( * ), 18 AS col0
----
1
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT + 57 * 38 DIV + + 53 + - NULLIF ( - + 30, - 20 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4695
SELECT + 57 * 38 / + + 53 + - NULLIF ( - + 30, - 20 ) AS col2
----
70

query II rowsort
SELECT + 82 * - 45 * - 63 + + - 95 AS col1, 18 * 61 AS col2
----
232375
1098

query I rowsort
SELECT ALL - 66 + - 70 col0
----
-136

query I rowsort
SELECT 87 * + + 11 * - + 31
----
-29667

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT DISTINCT - COALESCE ( + + CAST( CASE ( - + 45 ) WHEN + 72 * ( + ( COUNT( * ) ) ) - + ( + COUNT( * ) ) THEN NULL WHEN - 11 THEN 35 * COUNT( * ) + - ( 47 + - 88 * MIN( 10 * 90 ) ) WHEN 26 THEN NULL END AS SIGNED ), + COUNT( * ) ) * + 59
----
-59

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT - COALESCE ( + + CAST ( CASE ( - + 45 ) WHEN + 72 * ( + ( COUNT ( * ) ) ) - + ( + COUNT ( * ) ) THEN NULL WHEN - 11 THEN 35 * COUNT ( * ) + - ( 47 + - 88 * MIN ( 10 * 90 ) ) WHEN 26 THEN NULL END AS INTEGER ), + COUNT ( * ) ) * + 59
----
-59

query I rowsort
SELECT DISTINCT - 48 + 13
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL - COALESCE ( 22, + 44, - + 8, + ( - 52 ) * - MAX( ALL + 70 ) + 48 + + 19 * - COUNT( * ) * - MIN( DISTINCT ( 57 ) ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL - COALESCE ( 22, + 44, - + 8, + ( - 52 ) * - MAX ( ALL + 70 ) + 48 + + 19 * - COUNT ( * ) * - MIN ( DISTINCT ( 57 ) ) ) AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT 66 * + 41 * + + ( CAST( NULL AS SIGNED ) ) + - NULLIF ( + - 48, 49 + + - 29 ) * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT 66 * + 41 * + + ( CAST ( NULL AS INTEGER ) ) + - NULLIF ( + - 48, 49 + + - 29 ) * 45 AS col0
----
NULL

query II rowsort
SELECT + 18, 48 * - ( + + 82 ) - + - 98 col0
----
18
-3838

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT COUNT( * ) + + ( + - 48 )
----
-47

skipif mysql # not compatible
query I rowsort label-4704
SELECT COUNT ( * ) + + ( + - 48 )
----
-47

query II rowsort
SELECT 58 AS col2, - 30 * 97 + 25 AS col0
----
58
-2885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4706
SELECT ALL - ( + CASE + 50 WHEN NULLIF ( - 88, 32 ) THEN - COALESCE ( - + ( - CAST( - CAST( - 78 AS DECIMAL ) AS SIGNED ) ), - 6 ) * 76 ELSE + ( - COUNT( * ) ) END )
----
1

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL - ( + CASE + 50 WHEN NULLIF ( - 88, 32 ) THEN - COALESCE ( - + ( - CAST ( - CAST ( - 78 AS REAL ) AS INTEGER ) ), - 6 ) * 76 ELSE + ( - COUNT ( * ) ) END )
----
1

query II rowsort
SELECT ALL - 32, 51 * - 82 AS col2
----
-32
-4182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT DISTINCT + 76 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + 76 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4709
SELECT 39 AS col0, ( - + COUNT( * ) ) col2
----
39
-1

skipif mysql # not compatible
query II rowsort label-4709
SELECT 39 AS col0, ( - + COUNT ( * ) ) col2
----
39
-1

query II rowsort
SELECT ALL + 76 AS col2, - 58 AS col1
----
76
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL + MAX( - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL + MAX ( - 21 )
----
-21

query II rowsort
SELECT 30, 15 AS col0
----
30
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4713
SELECT + MIN( CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT + MIN ( CAST ( NULL AS REAL ) ) col0
----
NULL

query I rowsort
SELECT + - 95 * + - 98 + - + 95 col0
----
9215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT + 88 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT + 88 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 48 * - 6 AS col1
----
-288

query I rowsort
SELECT DISTINCT 75 * + 25 AS col1
----
1875

query I rowsort
SELECT ALL CASE - 91 WHEN + 87 THEN - - 65 ELSE 24 END AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT - - CASE + CASE + + 35 WHEN NULLIF ( 95, + SUM( - 10 ) ) THEN - + COALESCE ( + - 46, MAX( DISTINCT - 26 ) ) WHEN - COUNT( * ) * 92 THEN NULL ELSE NULL END WHEN - 38 THEN COALESCE ( + 86, 8 ) WHEN 98 THEN NULL WHEN - 98 * 45 THEN NULL ELSE - 62 + COUNT( * ) END * + 7 AS col0
----
-427

skipif mysql # not compatible
query I rowsort label-4719
SELECT - - CASE + CASE + + 35 WHEN NULLIF ( 95, + SUM ( - 10 ) ) THEN - + COALESCE ( + - 46, MAX ( DISTINCT - 26 ) ) WHEN - COUNT ( * ) * 92 THEN NULL ELSE NULL END WHEN - 38 THEN COALESCE ( + 86, 8 ) WHEN 98 THEN NULL WHEN - 98 * 45 THEN NULL ELSE - 62 + COUNT ( * ) END * + 7 AS col0
----
-427

query I rowsort
SELECT + - 93 * + 96
----
-8928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4721
SELECT ALL - CAST( - 84 AS SIGNED ) * + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - CAST ( - 84 AS INTEGER ) * + COUNT ( * )
----
84

query I rowsort
SELECT + + 24 - 84 + + + 60 + + 0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4723
SELECT ALL + ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT DISTINCT - + 54 * 95 DIV - 25
----
205

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT - + 54 * 95 / - 25
----
205

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT + 90 * 16 DIV + - 10
----
-144

skipif mysql # not compatible
query I rowsort label-4725
SELECT + 90 * 16 / + - 10
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL MAX( + 77 ) * - 31 + - 24 AS col1
----
-2411

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL MAX ( + 77 ) * - 31 + - 24 AS col1
----
-2411

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT CASE + + 73 WHEN + + 9 THEN - SUM( + + NULLIF ( + + 65, - 81 ) ) * + 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT CASE + + 73 WHEN + + 9 THEN - SUM ( + + NULLIF ( + + 65, - 81 ) ) * + 70 END AS col2
----
NULL

query I rowsort
SELECT ( 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4729
SELECT + COUNT( * ) AS col2, 4 DIV COUNT( * ) * - 92 + - + 67
----
1
-435

skipif mysql # not compatible
query II rowsort label-4729
SELECT + COUNT ( * ) AS col2, 4 / COUNT ( * ) * - 92 + - + 67
----
1
-435

query II rowsort
SELECT ALL - 37 AS col2, 4 + + + 48 + + 59
----
-37
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT + + CASE + 1 WHEN AVG ( - - 7 ) THEN NULL WHEN - + 45 - - 59 * - 90 * + - COUNT( * ) THEN - MIN( + 97 ) * + + 67 WHEN + 34 THEN NULL END / + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT + + CASE + 1 WHEN AVG ( - - 7 ) THEN NULL WHEN - + 45 - - 59 * - 90 * + - COUNT ( * ) THEN - MIN ( + 97 ) * + + 67 WHEN + 34 THEN NULL END / + 89 AS col2
----
NULL

query I rowsort
SELECT + + 67 * 38 col2
----
2546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4733
SELECT + + 56 - + 77, MAX( - 63 ) * 5 / + - AVG ( - 47 ) * + - 83 / - CAST( + 15 AS SIGNED ) * + CASE 39 WHEN 86 THEN NULL WHEN - 77 * 24 + CAST( NULL AS SIGNED ) THEN - 15 + 68 END AS col1
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-4733
SELECT + + 56 - + 77, MAX ( - 63 ) * 5 / + - AVG ( - 47 ) * + - 83 / - CAST ( + 15 AS INTEGER ) * + CASE 39 WHEN 86 THEN NULL WHEN - 77 * 24 + CAST ( NULL AS INTEGER ) THEN - 15 + 68 END AS col1
----
-21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT + - MAX( - 55 ) * 11 AS col2
----
605

skipif mysql # not compatible
query I rowsort label-4734
SELECT + - MAX ( - 55 ) * 11 AS col2
----
605

onlyif mysql # aggregate syntax: 
query II rowsort label-4735
SELECT ALL 5 + + + 63 AS col0, - COUNT( * )
----
68
-1

skipif mysql # not compatible
query II rowsort label-4735
SELECT ALL 5 + + + 63 AS col0, - COUNT ( * )
----
68
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT + 11 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-4736
SELECT + 11 / - 32
----
0

query II rowsort
SELECT ALL 23 * - 67 AS col1, + ( - 20 ) AS col1
----
-1541
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL ( - 21 ) * - + COUNT( * ) * 44 + + 16 AS col2
----
940

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL ( - 21 ) * - + COUNT ( * ) * 44 + + 16 AS col2
----
940

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT ( + 6 ) AS col2, - NULLIF ( + MAX( 59 ), 82 )
----
6
-59

skipif mysql # not compatible
query II rowsort label-4739
SELECT ( + 6 ) AS col2, - NULLIF ( + MAX ( 59 ), 82 )
----
6
-59

query I rowsort
SELECT DISTINCT + 52 * - ( 94 )
----
-4888

query I rowsort
SELECT - 57 * + 46 AS col1
----
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + 58 * - 91 * SUM( ALL 51 ) + + COUNT( * ) - + + 17 AS col2
----
-269194

skipif mysql # not compatible
query I rowsort label-4742
SELECT + 58 * - 91 * SUM ( ALL 51 ) + + COUNT ( * ) - + + 17 AS col2
----
-269194

query I rowsort
SELECT + ( - + 27 ) AS col2
----
-27

query I rowsort
SELECT COALESCE ( + + 89, + 17 + 35 )
----
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4745
SELECT 98 DIV CAST( 85 AS SIGNED ) + - 11
----
-10

skipif mysql # not compatible
query I rowsort label-4745
SELECT 98 / CAST ( 85 AS INTEGER ) + - 11
----
-10

query I rowsort
SELECT - ( + 84 ) + - 87 AS col0
----
-171

query I rowsort
SELECT - 91 * + ( + - 87 ) AS col0
----
7917

query I rowsort
SELECT DISTINCT - 90 * + - 80 AS col1
----
7200

query I rowsort
SELECT + - 94 + - 47
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-4750
SELECT - - ( 33 ) - + 88 AS col0, - ( - 8 ) * + + COUNT( * ) + - 32 AS col1
----
-55
-24

skipif mysql # not compatible
query II rowsort label-4750
SELECT - - ( 33 ) - + 88 AS col0, - ( - 8 ) * + + COUNT ( * ) + - 32 AS col1
----
-55
-24

query I rowsort
SELECT - + 78 * + 17 * - 88 AS col2
----
116688

query I rowsort
SELECT - 81 * - + 27 AS col2
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - - 3 * + - MAX( - 39 )
----
117

skipif mysql # not compatible
query I rowsort label-4753
SELECT - - 3 * + - MAX ( - 39 )
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4754
SELECT ALL ( + 91 ) AS col0, 18 DIV - - MIN( + COALESCE ( 37, + + 59 ) ) AS col2
----
91
0

skipif mysql # not compatible
query II rowsort label-4754
SELECT ALL ( + 91 ) AS col0, 18 / - - MIN ( + COALESCE ( 37, + + 59 ) ) AS col2
----
91
0

query I rowsort
SELECT + 72 * - + 7 + - + 54 + + 49 * + 19 * + - 26 * - - ( + - 68 ) * - ( + 74 ) - - 54 + + CASE - 61 WHEN - 74 * 91 THEN - 67 END AS col0
----
NULL

query I rowsort
SELECT - 52 + + 10 * - 65 * 76 AS col0
----
-49452

query I rowsort
SELECT - 61 * 26 + - 42 AS col0
----
-1628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4758
SELECT ALL COUNT( * ) DIV + - 78
----
0

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL COUNT ( * ) / + - 78
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4759
SELECT - + ( 22 ) DIV + CAST( - 88 AS SIGNED ) - - 28, - 35 * 72 col0
----
28
-2520

skipif mysql # not compatible
query II rowsort label-4759
SELECT - + ( 22 ) / + CAST ( - 88 AS INTEGER ) - - 28, - 35 * 72 col0
----
28
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT ALL - 51 + + - COUNT( * ) - - + COALESCE ( CAST( NULL AS SIGNED ), 90 + + COUNT( * ) - + + COUNT( * ) * - + 85 * + - COUNT( * ) - - + 1 ) * - 78
----
-598

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - 51 + + - COUNT ( * ) - - + COALESCE ( CAST ( NULL AS INTEGER ), 90 + + COUNT ( * ) - + + COUNT ( * ) * - + 85 * + - COUNT ( * ) - - + 1 ) * - 78
----
-598

query I rowsort
SELECT - + 76 + + - 77 + + - 7 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + + ( - COUNT( * ) ) * - + 57 * COUNT( * ) * + CASE + 63 WHEN + 65 THEN 11 WHEN - 15 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT + + ( - COUNT ( * ) ) * - + 57 * COUNT ( * ) * + CASE + 63 WHEN + 65 THEN 11 WHEN - 15 THEN NULL END
----
NULL

query I rowsort
SELECT + + 12 + + 37 * + 12 AS col1
----
456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4764
SELECT DISTINCT - 48 + CASE + 96 WHEN 49 THEN + 3 ELSE - - 12 + + 88 - + 57 + - - 76 + 23 DIV + - MAX( ( 40 ) ) * ( - 33 * ( MIN( ALL - COALESCE ( - NULLIF ( ( 77 ), + COALESCE ( + 95, NULLIF ( 30, - 91 ), 43 ) ), 59, 71 ) ) ) + 51 ) + 63 * 68 END col1
----
4355

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT - 48 + CASE + 96 WHEN 49 THEN + 3 ELSE - - 12 + + 88 - + 57 + - - 76 + 23 / + - MAX ( ( 40 ) ) * ( - 33 * ( MIN ( ALL - COALESCE ( - NULLIF ( ( 77 ), + COALESCE ( + 95, NULLIF ( 30, - 91 ), 43 ) ), 59, 71 ) ) ) + 51 ) + 63 * 68 END col1
----
4355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT - 63 + + CAST( - 29 AS SIGNED ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4765
SELECT - 63 + + CAST ( - 29 AS INTEGER ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - CASE + 5 WHEN - - 1 THEN + 52 END + + COUNT( * ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT - CASE + 5 WHEN - - 1 THEN + 52 END + + COUNT ( * ) + - 58
----
NULL

query I rowsort
SELECT ALL 82 * - 47 AS col2
----
-3854

query I rowsort
SELECT + 88 + 7 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL - 65 + + - MAX( ALL - 38 ) + - + 49
----
-76

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL - 65 + + - MAX ( ALL - 38 ) + - + 49
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT ALL 90, + COUNT( * ) AS col0
----
90
1

skipif mysql # not compatible
query II rowsort label-4770
SELECT ALL 90, + COUNT ( * ) AS col0
----
90
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL CASE - ( 82 ) WHEN - + 30 + - 66 THEN - - 29 WHEN + 74 + 85 THEN NULL ELSE NULL END + + CASE - - 49 WHEN - 99 THEN + + 37 + ( + 17 ) WHEN - 60 + COUNT( * ) THEN - 39 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL CASE - ( 82 ) WHEN - + 30 + - 66 THEN - - 29 WHEN + 74 + 85 THEN NULL ELSE NULL END + + CASE - - 49 WHEN - 99 THEN + + 37 + ( + 17 ) WHEN - 60 + COUNT ( * ) THEN - 39 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT + CAST( + 90 AS SIGNED ) + NULLIF ( + 26, + + 88 * - COUNT( * ) * + + 42 ) col1
----
116

skipif mysql # not compatible
query I rowsort label-4772
SELECT + CAST ( + 90 AS INTEGER ) + NULLIF ( + 26, + + 88 * - COUNT ( * ) * + + 42 ) col1
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-4773
SELECT DISTINCT 95, - 78 + + SUM( + + 13 ) AS col1
----
95
-65

skipif mysql # not compatible
query II rowsort label-4773
SELECT DISTINCT 95, - 78 + + SUM ( + + 13 ) AS col1
----
95
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4774
SELECT 3 DIV + - 22 + + 16 * + MAX( DISTINCT - 81 )
----
-1296

skipif mysql # not compatible
query I rowsort label-4774
SELECT 3 / + - 22 + + 16 * + MAX ( DISTINCT - 81 )
----
-1296

query I rowsort
SELECT + 10 + 38 AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT ALL COUNT( * ) DIV 29 col0
----
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL COUNT ( * ) / 29 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT + COALESCE ( + ( + 79 ), + 60 + 41 + + - 74 + ( - - 61 ) ) DIV + - 90
----
0

skipif mysql # not compatible
query I rowsort label-4777
SELECT + COALESCE ( + ( + 79 ), + 60 + 41 + + - 74 + ( - - 61 ) ) / + - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + 27 / - 76 * - ( ( - 21 ) ) * - CASE WHEN NOT + 53 = + 28 THEN COUNT( * ) END * + CASE + 83 WHEN CASE COUNT( * ) WHEN + 88 THEN 61 - + 10 WHEN 75 THEN + 25 + MIN( DISTINCT + 35 - - 75 ) ELSE NULL END THEN COALESCE ( + ( + 74 ), - ( 42 ) ) * + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT + 27 / - 76 * - ( ( - 21 ) ) * - CASE WHEN NOT + 53 = + 28 THEN COUNT ( * ) END * + CASE + 83 WHEN CASE COUNT ( * ) WHEN + 88 THEN 61 - + 10 WHEN 75 THEN + 25 + MIN ( DISTINCT + 35 - - 75 ) ELSE NULL END THEN COALESCE ( + ( + 74 ), - ( 42 ) ) * + COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 25 AS col2, 20
----
25
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT COUNT( ALL - + 28 ) * + 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT COUNT ( ALL - + 28 ) * + 73 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4781
SELECT ALL CASE - - MIN( 70 ) WHEN + 9 / 53 + - + 72 + + 31 THEN + 79 * + NULLIF ( CAST( NULL AS SIGNED ), + + 27 * - 34 ) + 1 WHEN 75 + COUNT( * ) THEN NULL END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL CASE - - MIN ( 70 ) WHEN + 9 / 53 + - + 72 + + 31 THEN + 79 * + NULLIF ( CAST ( NULL AS INTEGER ), + + 27 * - 34 ) + 1 WHEN 75 + COUNT ( * ) THEN NULL END * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4782
SELECT ( - + CAST( 32 AS SIGNED ) ) DIV ( + 35 ) + - CASE - - 97 WHEN 50 THEN NULL WHEN - 92 THEN NULL WHEN - + 67 THEN 7 ELSE + 41 END col0
----
-41

skipif mysql # not compatible
query I rowsort label-4782
SELECT ( - + CAST ( 32 AS INTEGER ) ) / ( + 35 ) + - CASE - - 97 WHEN 50 THEN NULL WHEN - 92 THEN NULL WHEN - + 67 THEN 7 ELSE + 41 END col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT 22 * + - MIN( 93 ) col2
----
-2046

skipif mysql # not compatible
query I rowsort label-4783
SELECT 22 * + - MIN ( 93 ) col2
----
-2046

query I rowsort
SELECT ALL 73 * - ( + 56 ) col1
----
-4088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4785
SELECT 92 * + 4 / - CASE CAST( NULL AS SIGNED ) WHEN - + 38 THEN NULL WHEN - 27 THEN - 12 WHEN + + MIN( DISTINCT - 93 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT 92 * + 4 / - CASE CAST ( NULL AS INTEGER ) WHEN - + 38 THEN NULL WHEN - 27 THEN - 12 WHEN + + MIN ( DISTINCT - 93 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 54 * - - 89
----
-4806

query I rowsort
SELECT DISTINCT - - 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT 29 * - 99 * - SUM( + + COALESCE ( 40, + 60 * - + 90 ) ) * 47 * + 18 * + 12
----
1165855680

skipif mysql # not compatible
query I rowsort label-4788
SELECT 29 * - 99 * - SUM ( + + COALESCE ( 40, + 60 * - + 90 ) ) * 47 * + 18 * + 12
----
1165855680

onlyif mysql # aggregate syntax: 
query II rowsort label-4789
SELECT + 94, MAX( ALL + 69 ) - - - COUNT( * ) AS col1
----
94
68

skipif mysql # not compatible
query II rowsort label-4789
SELECT + 94, MAX ( ALL + 69 ) - - - COUNT ( * ) AS col1
----
94
68

query II rowsort
SELECT ALL - 88 AS col1, 51
----
-88
51

query II rowsort
SELECT ALL - - 92 AS col1, 69 - + 72
----
92
-3

query I rowsort
SELECT 8 * 74 AS col1
----
592

query I rowsort
SELECT ALL - 60 + 34 col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT + + MIN( ALL 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4794
SELECT + + MIN ( ALL 81 ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4795
SELECT ALL - - CAST( NULL AS SIGNED ) + - 32 * - 88, COUNT( * ) * - 43 AS col2
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-4795
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 32 * - 88, COUNT ( * ) * - 43 AS col2
----
NULL
-43

query I rowsort
SELECT ALL + + 53 + + 74 + + + 81 * + 48
----
4015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4797
SELECT ALL + 11 DIV + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + 11 / + COUNT ( * )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT 87 DIV + 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4798
SELECT 87 / + 65 AS col2
----
1

query I rowsort
SELECT - 81 + 66 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT - MIN( ALL + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4800
SELECT - MIN ( ALL + 94 )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4801
SELECT ALL - - 24 + NULLIF ( 97, ( - 53 ) ) DIV COUNT( * ) AS col2, - 5 * - 52 + - SUM( DISTINCT ( - + 34 ) ) DIV - 96 AS col1
----
121
260

skipif mysql # not compatible
query II rowsort label-4801
SELECT ALL - - 24 + NULLIF ( 97, ( - 53 ) ) / COUNT ( * ) AS col2, - 5 * - 52 + - SUM ( DISTINCT ( - + 34 ) ) / - 96 AS col1
----
121
260

onlyif mysql # aggregate syntax: 
query II rowsort label-4802
SELECT + 74, - COUNT( * ) AS col0
----
74
-1

skipif mysql # not compatible
query II rowsort label-4802
SELECT + 74, - COUNT ( * ) AS col0
----
74
-1

query I rowsort
SELECT DISTINCT 26 * NULLIF ( - 61, + 90 ) - - 28
----
-1558

query I rowsort
SELECT - 66 - - 15 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4805
SELECT - + COUNT( * ) AS col2, 72 * - 47
----
-1
-3384

skipif mysql # not compatible
query II rowsort label-4805
SELECT - + COUNT ( * ) AS col2, 72 * - 47
----
-1
-3384

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL + - COUNT( * ) + - 39 + - 92 * + 53 AS col0
----
-4916

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL + - COUNT ( * ) + - 39 + - 92 * + 53 AS col0
----
-4916

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT DISTINCT + 88 DIV 31
----
2

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT + 88 / 31
----
2

query I rowsort
SELECT ALL 76 - + 19
----
57

query I rowsort
SELECT 77 - + 54 * - + 51
----
2831

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL COUNT( * ) * + + 34
----
34

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL COUNT ( * ) * + + 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT COUNT( * ) * - COALESCE ( + 23, 3, - - COUNT( * ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4811
SELECT COUNT ( * ) * - COALESCE ( + 23, 3, - - COUNT ( * ) ) AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4812
SELECT - 12 DIV + 93 * - 60 * + + 39 - 18 + 77 * + - 69 * - COUNT( * ) + 36 col1
----
5331

skipif mysql # not compatible
query I rowsort label-4812
SELECT - 12 / + 93 * - 60 * + + 39 - 18 + 77 * + - 69 * - COUNT ( * ) + 36 col1
----
5331

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL + MAX( 14 ) * + 72
----
1008

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + MAX ( 14 ) * + 72
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4814
SELECT - 12 / - CAST( NULL AS SIGNED ) + - + 85 * SUM( - + 99 ) * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT - 12 / - CAST ( NULL AS INTEGER ) + - + 85 * SUM ( - + 99 ) * - 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4815
SELECT ( + - COUNT( * ) ) * - 90 - + 15, - 54 AS col2
----
75
-54

skipif mysql # not compatible
query II rowsort label-4815
SELECT ( + - COUNT ( * ) ) * - 90 - + 15, - 54 AS col2
----
75
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4816
SELECT ( + + MAX( ALL + 91 ) ) DIV - 79 AS col0, + CASE - - 36 WHEN 13 * + 34 + + - COUNT( * ) THEN + 51 END col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4816
SELECT ( + + MAX ( ALL + 91 ) ) / - 79 AS col0, + CASE - - 36 WHEN 13 * + 34 + + - COUNT ( * ) THEN + 51 END col1
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4817
SELECT DISTINCT - ( + - 67 ) + - 35 DIV + - NULLIF ( + NULLIF ( + 39, - 28 - + MAX( DISTINCT + 37 ) ), + 2 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT - ( + - 67 ) + - 35 / + - NULLIF ( + NULLIF ( + 39, - 28 - + MAX ( DISTINCT + 37 ) ), + 2 ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT CASE - + 91 WHEN + - 94 THEN NULL WHEN + 88 * 92 + - 0 + - + CASE WHEN NOT NULL IS NOT NULL THEN + MIN( DISTINCT + 22 ) END THEN + 59 WHEN SUM( DISTINCT - CAST( 80 AS SIGNED ) ) THEN NULL END / - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT CASE - + 91 WHEN + - 94 THEN NULL WHEN + 88 * 92 + - 0 + - + CASE WHEN NOT NULL IS NOT NULL THEN + MIN ( DISTINCT + 22 ) END THEN + 59 WHEN SUM ( DISTINCT - CAST ( 80 AS INTEGER ) ) THEN NULL END / - 21
----
NULL

query I rowsort
SELECT + 18 * 2 + - + 82
----
-46

query I rowsort
SELECT ALL + 31 + + - ( - 8 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT DISTINCT 8 * - - 4 * + COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT 8 * - - 4 * + COUNT ( * ) AS col1
----
32

query I rowsort
SELECT DISTINCT + 81 + + ( - 78 )
----
3

query I rowsort
SELECT 71 * + 9 AS col1
----
639

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT 15 + - + COUNT( * ) * 26 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4824
SELECT 15 + - + COUNT ( * ) * 26 AS col2
----
-11

query I rowsort
SELECT DISTINCT + COALESCE ( ( 38 ), 83 ) + - ( + 7 ) AS col2
----
31

query I rowsort
SELECT ALL 53 + + - 65 - - 45 * - - 89 + - 38 AS col0
----
3955

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT + MIN( + 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4827
SELECT + MIN ( + 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + 32 - - - ( - MAX( - 56 ) ) * + + NULLIF ( + 99, + NULLIF ( 10, 78 * - COUNT( * ) * + 82 * 57 ) )
----
-5512

skipif mysql # not compatible
query I rowsort label-4828
SELECT + 32 - - - ( - MAX ( - 56 ) ) * + + NULLIF ( + 99, + NULLIF ( 10, 78 * - COUNT ( * ) * + 82 * 57 ) )
----
-5512

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL COUNT( DISTINCT 4 )
----
1

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL COUNT ( DISTINCT 4 )
----
1

query I rowsort
SELECT ALL - ( + 44 ) - - 64 AS col2
----
20

query I rowsort
SELECT ALL + - 9 * - 58
----
522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4832
SELECT 87 - + 47 * + + NULLIF ( + + CASE AVG ( DISTINCT 37 ) WHEN CASE + + 83 WHEN + - COUNT( * ) + - + 59 THEN - 93 ELSE NULL END * + - 31 / + COUNT( - COALESCE ( + 98, + 68, 48 + - 91 ) ) * + 30 + 89 THEN 27 END, + 63 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT 87 - + 47 * + + NULLIF ( + + CASE AVG ( DISTINCT 37 ) WHEN CASE + + 83 WHEN + - COUNT ( * ) + - + 59 THEN - 93 ELSE NULL END * + - 31 / + COUNT ( - COALESCE ( + 98, + 68, 48 + - 91 ) ) * + 30 + 89 THEN 27 END, + 63 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 61 + 14
----
75

query I rowsort
SELECT 0 + - 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL + 3 * - + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL + 3 * - + COUNT ( * ) AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT CAST( 18 AS SIGNED ) + 56
----
74

skipif mysql # not compatible
query I rowsort label-4836
SELECT CAST ( 18 AS INTEGER ) + 56
----
74

query I rowsort
SELECT 87 + + ( 21 ) + 43
----
151

query I rowsort
SELECT ALL 4 * 54 AS col0
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4839
SELECT - 75 + - COUNT( * ) DIV 80, MAX( ALL - - 16 ) * - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) DIV 91 AS col0
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-4839
SELECT - 75 + - COUNT ( * ) / 80, MAX ( ALL - - 16 ) * - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) / 91 AS col0
----
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT MIN( ALL + 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT MIN ( ALL + 81 ) AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4841
SELECT ALL - NULLIF ( - 79, MIN( + + 21 ) DIV - - 91 ) DIV 86 * + + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - NULLIF ( - 79, MIN ( + + 21 ) / - - 91 ) / 86 * + + 91 AS col1
----
0

query I rowsort
SELECT - 68 + - 40 AS col1
----
-108

query I rowsort
SELECT - 44 + 10 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT NULLIF ( + + COUNT( * ), - 20 * - + 88 / + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4844
SELECT NULLIF ( + + COUNT ( * ), - 20 * - + 88 / + COUNT ( * ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT 77 DIV + 95 + - - 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4845
SELECT 77 / + 95 + - - 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL - 67 * - 9 + ( - COUNT( * ) ) AS col0
----
602

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - 67 * - 9 + ( - COUNT ( * ) ) AS col0
----
602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4847
SELECT NULLIF ( COALESCE ( CASE WHEN 14 IN ( + - CAST( NULL AS SIGNED ) * - 63, - CAST( - 22 AS DECIMAL ), 18, CASE WHEN + 83 BETWEEN ( - 97 ) AND + CAST( 14 AS SIGNED ) THEN NULL ELSE + 84 END ) THEN 48 + + 15 END, + 24 ), CASE + COUNT( + 19 ) WHEN + COUNT( * ) THEN NULL WHEN 98 THEN NULL WHEN + SUM( 84 ) THEN - 46 + - 75 END )
----
24

skipif mysql # not compatible
query I rowsort label-4847
SELECT NULLIF ( COALESCE ( CASE WHEN 14 IN ( + - CAST ( NULL AS INTEGER ) * - 63, - CAST ( - 22 AS REAL ), 18, CASE WHEN + 83 BETWEEN ( - 97 ) AND + CAST ( 14 AS INTEGER ) THEN NULL ELSE + 84 END ) THEN 48 + + 15 END, + 24 ), CASE + COUNT ( + 19 ) WHEN + COUNT ( * ) THEN NULL WHEN 98 THEN NULL WHEN + SUM ( 84 ) THEN - 46 + - 75 END )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT ALL + 68 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL + 68 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT ALL + COUNT( * ) * CAST( - 95 AS SIGNED ) + + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL + COUNT ( * ) * CAST ( - 95 AS INTEGER ) + + - COUNT ( * )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT - - 66 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT - - 66 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4851
SELECT ALL SUM( ALL - - CAST( + 75 AS SIGNED ) ) * 24 + - - ( + COALESCE ( + NULLIF ( + + COUNT( * ), - 12 ), - MAX( - 16 ) * + 80 DIV - 2 - - + 63 ) )
----
1801

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL SUM ( ALL - - CAST ( + 75 AS INTEGER ) ) * 24 + - - ( + COALESCE ( + NULLIF ( + + COUNT ( * ), - 12 ), - MAX ( - 16 ) * + 80 / - 2 - - + 63 ) )
----
1801

query II rowsort
SELECT + 85 col1, 91
----
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + CASE - 21 WHEN - COUNT( * ) THEN NULL ELSE - 31 END
----
-31

skipif mysql # not compatible
query I rowsort label-4853
SELECT + CASE - 21 WHEN - COUNT ( * ) THEN NULL ELSE - 31 END
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4854
SELECT ALL - 27 * + ( 14 ) + 51 + + 76 DIV + NULLIF ( + ( 63 ), - COUNT( * ) ) AS col2
----
-326

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - 27 * + ( 14 ) + 51 + + 76 / + NULLIF ( + ( 63 ), - COUNT ( * ) ) AS col2
----
-326

query I rowsort
SELECT - + 39 * + + 3 AS col0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4856
SELECT ALL 60 DIV 19 + - 39 - + - COUNT( * ) * - - 19 * + COUNT( DISTINCT - - 63 )
----
-17

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL 60 / 19 + - 39 - + - COUNT ( * ) * - - 19 * + COUNT ( DISTINCT - - 63 )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT + 30 + - 90 + - CAST( + - 78 AS SIGNED ) - - - ( - 81 ) - + 51 col2
----
48

skipif mysql # not compatible
query I rowsort label-4857
SELECT + 30 + - 90 + - CAST ( + - 78 AS INTEGER ) - - - ( - 81 ) - + 51 col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4858
SELECT + - 64 * + - CASE + 25 WHEN + 37 * + 62 / - 37 + - MIN( - 80 ) THEN + + COUNT( * ) WHEN 72 THEN 22 - ( 11 ) * + - 52 * - 77 + ( + 9 + NULLIF ( + 91, + 36 ) / - ( + 43 + 1 * 78 ) ) WHEN + 4 THEN - 5 * 72 ELSE NULL END * CAST( 21 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT + - 64 * + - CASE + 25 WHEN + 37 * + 62 / - 37 + - MIN ( - 80 ) THEN + + COUNT ( * ) WHEN 72 THEN 22 - ( 11 ) * + - 52 * - 77 + ( + 9 + NULLIF ( + 91, + 36 ) / - ( + 43 + 1 * 78 ) ) WHEN + 4 THEN - 5 * 72 ELSE NULL END * CAST ( 21 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT DISTINCT 83 * - CAST( NULL AS SIGNED ) + + ( - + 16 ) + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT 83 * - CAST ( NULL AS INTEGER ) + + ( - + 16 ) + 27 AS col1
----
NULL

query I rowsort
SELECT ALL 87 * + 10 AS col1
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT + 57 * + - 40 * + + 40 * + COUNT( * )
----
-91200

skipif mysql # not compatible
query I rowsort label-4861
SELECT + 57 * + - 40 * + + 40 * + COUNT ( * )
----
-91200

query I rowsort
SELECT ALL 27 * + ( + + 32 ) AS col0
----
864

query I rowsort
SELECT + 70 * + - 90
----
-6300

onlyif mysql # aggregate syntax: 
query II rowsort label-4864
SELECT - COUNT( * ) AS col2, - 59 + 39 + 14 * - MIN( ALL - 86 ) * - 43 + - 21 + - + 51 * - 98 col2
----
-1
-46815

skipif mysql # not compatible
query II rowsort label-4864
SELECT - COUNT ( * ) AS col2, - 59 + 39 + 14 * - MIN ( ALL - 86 ) * - 43 + - 21 + - + 51 * - 98 col2
----
-1
-46815

query I rowsort
SELECT + 35 + - 30 AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT + 11 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT + 11 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT - COALESCE ( + - 94, + CAST( - 71 AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-4867
SELECT - COALESCE ( + - 94, + CAST ( - 71 AS INTEGER ) )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4868
SELECT ALL COUNT( * ) AS col0, + 94 * - 8 * - 70
----
1
52640

skipif mysql # not compatible
query II rowsort label-4868
SELECT ALL COUNT ( * ) AS col0, + 94 * - 8 * - 70
----
1
52640

query I rowsort
SELECT + 75 * - NULLIF ( + 18, + - 33 ) col1
----
-1350

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT ALL - ( + - 15 ) * 70 DIV + 71 + - 20 DIV + - 75 col0
----
14

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - ( + - 15 ) * 70 / + 71 + - 20 / + - 75 col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT - CAST( - 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-4871
SELECT - CAST ( - 62 AS INTEGER )
----
62

query I rowsort
SELECT + 39 * 69 col2
----
2691

query I rowsort
SELECT - 45 * 58
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL 51 * + - COUNT( * ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL 51 * + - COUNT ( * ) col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT - ( MIN( ALL 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-4875
SELECT - ( MIN ( ALL 19 ) )
----
-19

query I rowsort
SELECT + 33 - - 77 + - 29
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT DISTINCT - COUNT( * ) + - 13 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT - COUNT ( * ) + - 13 AS col1
----
-14

query I rowsort
SELECT DISTINCT 50 * + - 41
----
-2050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4879
SELECT - 3 DIV - COUNT( * ) col0
----
3

skipif mysql # not compatible
query I rowsort label-4879
SELECT - 3 / - COUNT ( * ) col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4880
SELECT ALL COUNT( * ) DIV - 53 + - 40 + + MIN( ALL + - ( - + 26 ) ) + - 59 + - + 53
----
-126

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL COUNT ( * ) / - 53 + - 40 + + MIN ( ALL + - ( - + 26 ) ) + - 59 + - + 53
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL - - 31 / - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * - 4 + + CASE - COUNT( * ) WHEN + 25 THEN NULL ELSE - - 73 * CASE + - CASE 87 WHEN + 46 * - + 60 * ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) * COUNT( * ) + - 51 + - CAST( NULL AS SIGNED ) THEN - 4 * + 44 WHEN COALESCE ( 73, COUNT( * ) * 46 + 36 ) THEN 59 + CAST( + COUNT( DISTINCT 65 ) AS SIGNED ) END WHEN + 10 THEN - AVG ( + 46 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - - 31 / - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 4 + + CASE - COUNT ( * ) WHEN + 25 THEN NULL ELSE - - 73 * CASE + - CASE 87 WHEN + 46 * - + 60 * ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * COUNT ( * ) + - 51 + - CAST ( NULL AS INTEGER ) THEN - 4 * + 44 WHEN COALESCE ( 73, COUNT ( * ) * 46 + 36 ) THEN 59 + CAST ( + COUNT ( DISTINCT 65 ) AS INTEGER ) END WHEN + 10 THEN - AVG ( + 46 ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT + + COUNT( * ) + - 1
----
0

skipif mysql # not compatible
query I rowsort label-4882
SELECT + + COUNT ( * ) + - 1
----
0

query I rowsort
SELECT 34 * 19 + + 86 - - ( + 92 )
----
824

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT MIN( + ( COALESCE ( - 59, 92 ) ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4884
SELECT MIN ( + ( COALESCE ( - 59, 92 ) ) ) AS col2
----
-59

query II rowsort
SELECT - 53 AS col0, 26 AS col1
----
-53
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4886
SELECT - CAST( + 29 AS SIGNED ) * - 70 AS col0
----
2030

skipif mysql # not compatible
query I rowsort label-4886
SELECT - CAST ( + 29 AS INTEGER ) * - 70 AS col0
----
2030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT DISTINCT - - 46 / - + 97 - - ( + CASE - 40 WHEN + 60 * + 97 * + ( + MAX( 92 ) ) - CAST( NULL AS SIGNED ) THEN NULL WHEN + ( - 77 ) + + 81 THEN - - 64 END ) * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - - 46 / - + 97 - - ( + CASE - 40 WHEN + 60 * + 97 * + ( + MAX ( 92 ) ) - CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( - 77 ) + + 81 THEN - - 64 END ) * - 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4888
SELECT - CAST( NULL AS DECIMAL ) + CAST( - - COUNT( * ) AS SIGNED ) + 60, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4888
SELECT - CAST ( NULL AS REAL ) + CAST ( - - COUNT ( * ) AS INTEGER ) + 60, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT + 71 * + 3 + - 1
----
212

query I rowsort
SELECT ALL - 38 * - 67 * + 21
----
53466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4891
SELECT - COALESCE ( - + 67, - + CAST( 2 AS SIGNED ), + COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-4891
SELECT - COALESCE ( - + 67, - + CAST ( 2 AS INTEGER ), + COUNT ( * ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT - - 27 * - + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4892
SELECT - - 27 * - + COUNT ( * ) AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT - - CAST( NULL AS SIGNED ) * 94 - + 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT - - CAST ( NULL AS INTEGER ) * 94 - + 46 col2
----
NULL

query II rowsort
SELECT + 65, 30 + - 70 AS col2
----
65
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4895
SELECT ALL + CAST( 44 AS SIGNED ) AS col1, - MAX( + 17 ) - - 78
----
44
61

skipif mysql # not compatible
query II rowsort label-4895
SELECT ALL + CAST ( 44 AS INTEGER ) AS col1, - MAX ( + 17 ) - - 78
----
44
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT + - CAST( - + 49 AS SIGNED ) + + COUNT( * ) + SUM( 16 ) - - - MAX( - 72 ) * - 58 AS col0
----
-4110

skipif mysql # not compatible
query I rowsort label-4896
SELECT + - CAST ( - + 49 AS INTEGER ) + + COUNT ( * ) + SUM ( 16 ) - - - MAX ( - 72 ) * - 58 AS col0
----
-4110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4897
SELECT - 5 DIV + SUM( ALL + - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-4897
SELECT - 5 / + SUM ( ALL + - 29 )
----
0

query I rowsort
SELECT + 11 * + 46 col1
----
506

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT ALL 17 DIV - 86 * + + CASE 80 WHEN - 2 THEN + 98 - - 3 * 26 ELSE - 38 END
----
0

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL 17 / - 86 * + + CASE 80 WHEN - 2 THEN + 98 - - 3 * 26 ELSE - 38 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - COUNT( * ) + - CASE + 74 WHEN + + COUNT( 99 ) + + + 59 THEN - 10 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT - COUNT ( * ) + - CASE + 74 WHEN + + COUNT ( 99 ) + + + 59 THEN - 10 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 52 * - 19
----
-988

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT ALL - 85 DIV - 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL - 85 / - 70 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT 6 DIV - ( + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT 6 / - ( + 62 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL + COUNT( * ) + - - 17 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + COUNT ( * ) + - - 17 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4905
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - 37 + - + 8 / + 24 * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 37 + - + 8 / + 24 * + 65
----
NULL

query I rowsort
SELECT 22 - + - 66 + COALESCE ( 30, + 67 ) + + 89 + + 69 * - - 17
----
1380

query I rowsort
SELECT 96 + - + 98
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL MIN( + - 32 ) + 54 * + 85 + - 47 AS col2
----
4511

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL MIN ( + - 32 ) + 54 * + 85 + - 47 AS col2
----
4511

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL 10 * + 50 * - COUNT( * ) AS col2
----
-500

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL 10 * + 50 * - COUNT ( * ) AS col2
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT 41 * - 76 * + + MAX( - - 84 )
----
-261744

skipif mysql # not compatible
query I rowsort label-4910
SELECT 41 * - 76 * + + MAX ( - - 84 )
----
-261744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4911
SELECT COUNT( * ) + + 21, CAST( 32 AS SIGNED ) * 54 * + + 84 AS col0
----
22
145152

skipif mysql # not compatible
query II rowsort label-4911
SELECT COUNT ( * ) + + 21, CAST ( 32 AS INTEGER ) * 54 * + + 84 AS col0
----
22
145152

query I rowsort
SELECT ALL + 41 + - 33
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT 31 + - 46 + 26 * - + MAX( DISTINCT - - 26 )
----
-691

skipif mysql # not compatible
query I rowsort label-4913
SELECT 31 + - 46 + 26 * - + MAX ( DISTINCT - - 26 )
----
-691

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ( + 21 ) + - + COUNT( DISTINCT + - 29 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4914
SELECT ( + 21 ) + - + COUNT ( DISTINCT + - 29 ) AS col0
----
20

query I rowsort
SELECT DISTINCT - 23 * 85
----
-1955

query I rowsort
SELECT 31 * - 15 + - 34 + + - 7 AS col0
----
-506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4917
SELECT + 9 + - COALESCE ( - 7, + 2 * 81 + + ( + COUNT( DISTINCT - - 50 ) ) + + 20, + CAST( - - COUNT( * ) AS SIGNED ) ) + SUM( DISTINCT + 4 ) + + COUNT( * ) + 67
----
88

skipif mysql # not compatible
query I rowsort label-4917
SELECT + 9 + - COALESCE ( - 7, + 2 * 81 + + ( + COUNT ( DISTINCT - - 50 ) ) + + 20, + CAST ( - - COUNT ( * ) AS INTEGER ) ) + SUM ( DISTINCT + 4 ) + + COUNT ( * ) + 67
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT CAST( NULL AS SIGNED ) + - 18 / + 2 - + - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT CAST ( NULL AS INTEGER ) + - 18 / + 2 - + - 12 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4919
SELECT DISTINCT - CAST( - + ( + + 62 ) AS SIGNED ) * + ( + - ( - SUM( DISTINCT + + 81 ) ) ) AS col0
----
5022

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT - CAST ( - + ( + + 62 ) AS INTEGER ) * + ( + - ( - SUM ( DISTINCT + + 81 ) ) ) AS col0
----
5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4920
SELECT - 76 * + CASE - ( - 6 ) WHEN CASE + + 98 WHEN + 94 THEN NULL ELSE ( + AVG ( ALL 65 ) ) END THEN - - CAST( NULL AS SIGNED ) END / + ( - - 79 ) + 12 / - CAST( NULL AS SIGNED ) AS col2, + ( - MAX( ALL 88 ) ) * 16 + + 75 AS col1
----
NULL
-1333

skipif mysql # not compatible
query II rowsort label-4920
SELECT - 76 * + CASE - ( - 6 ) WHEN CASE + + 98 WHEN + 94 THEN NULL ELSE ( + AVG ( ALL 65 ) ) END THEN - - CAST ( NULL AS INTEGER ) END / + ( - - 79 ) + 12 / - CAST ( NULL AS INTEGER ) AS col2, + ( - MAX ( ALL 88 ) ) * 16 + + 75 AS col1
----
NULL
-1333

query I rowsort
SELECT 98 * - 92 + 33 * - + 42
----
-10402

query I rowsort
SELECT DISTINCT + 61 * - 33 * 69
----
-138897

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT DISTINCT - NULLIF ( + 88, - COUNT( * ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT - NULLIF ( + 88, - COUNT ( * ) ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-4924
SELECT DISTINCT + 0 * - MAX( DISTINCT - 52 ) + - + 53 * - 15 AS col0, 52 * + - 68 AS col1
----
795
-3536

skipif mysql # not compatible
query II rowsort label-4924
SELECT DISTINCT + 0 * - MAX ( DISTINCT - 52 ) + - + 53 * - 15 AS col0, 52 * + - 68 AS col1
----
795
-3536

query I rowsort
SELECT + 25 * 69 col0
----
1725

onlyif mysql # aggregate syntax: 
query II rowsort label-4926
SELECT + MAX( DISTINCT + + 5 ), 97 AS col1
----
5
97

skipif mysql # not compatible
query II rowsort label-4926
SELECT + MAX ( DISTINCT + + 5 ), 97 AS col1
----
5
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT 56 * - + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-4927
SELECT 56 * - + COUNT ( * )
----
-56

query I rowsort
SELECT + NULLIF ( + 91, + 50 ) AS col0
----
91

query I rowsort
SELECT - 92 * - 29 * 45 AS col2
----
120060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4930
SELECT ALL - 26 * 9 + + 69 + 18 - + - 33 DIV - 73 - - CAST( + 27 AS SIGNED ) * COUNT( * ) AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL - 26 * 9 + + 69 + 18 - + - 33 / - 73 - - CAST ( + 27 AS INTEGER ) * COUNT ( * ) AS col0
----
-120

query I rowsort
SELECT 96 * - 33 AS col1
----
-3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT ALL - CAST( - + CASE + + COUNT( * ) WHEN 5 THEN - + COUNT( * ) ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL - CAST ( - + CASE + + COUNT ( * ) WHEN 5 THEN - + COUNT ( * ) ELSE NULL END AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 86, 20 AS col2
----
86
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL + COUNT( * ) + + 12 * - - 54 col2
----
649

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL + COUNT ( * ) + + 12 * - - 54 col2
----
649

query I rowsort
SELECT 86 * - 13
----
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT 8 * 73 + 13 * COUNT( * ) AS col1
----
597

skipif mysql # not compatible
query I rowsort label-4936
SELECT 8 * 73 + 13 * COUNT ( * ) AS col1
----
597

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT NULLIF ( - COALESCE ( - 26, - - 10, - 85, - - 37 ), - COUNT( * ) + - - COALESCE ( - 54, - + 27 * - + 74 ) ) + - 23 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4937
SELECT NULLIF ( - COALESCE ( - 26, - - 10, - 85, - - 37 ), - COUNT ( * ) + - - COALESCE ( - 54, - + 27 * - + 74 ) ) + - 23 AS col1
----
3

query I rowsort
SELECT 34 * - 37 AS col1
----
-1258

query I rowsort
SELECT 41 + 81 AS col1
----
122

query I rowsort
SELECT 12 * 37 AS col1
----
444

query II rowsort
SELECT - 7 AS col1, - 78
----
-7
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4942
SELECT ALL - 81 + - CAST( NULL AS DECIMAL ) + + 5 * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - 81 + - CAST ( NULL AS REAL ) + + 5 * + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT DISTINCT + NULLIF ( - 30, 7 * + MIN( + 24 ) + + + ( - + 13 ) ) + - 52
----
-82

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT + NULLIF ( - 30, 7 * + MIN ( + 24 ) + + + ( - + 13 ) ) + - 52
----
-82

query I rowsort
SELECT 24 + - 27 * 54 AS col2
----
-1434

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT 31 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-4945
SELECT 31 / + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL 97 + - + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL 97 + - + COUNT ( * ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT 21 + + 81 * + COUNT( * ) * 2
----
183

skipif mysql # not compatible
query I rowsort label-4947
SELECT 21 + + 81 * + COUNT ( * ) * 2
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4948
SELECT CASE - 35 WHEN 40 + + MAX( + ( 40 ) ) * - 96 THEN NULL WHEN CAST( NULL AS DECIMAL ) * CASE COUNT( * ) WHEN 10 THEN + CAST( NULL AS SIGNED ) * - - 54 + + 80 / - 69 WHEN + - COALESCE ( - 80, - + CAST( 16 AS SIGNED ) * - 48, - 43 / 17 + CASE - CAST( NULL AS SIGNED ) + - 37 WHEN 12 * + 6 THEN 40 * + COUNT( * ) + - 69 / + 5 WHEN 29 THEN + CASE + COALESCE ( - 90, - COUNT( * ) + CAST( NULL AS DECIMAL ) * 43 ) WHEN 44 + 45 THEN + 64 ELSE - ( CAST( NULL AS SIGNED ) ) END + 96 END * 25 ) THEN NULL END - - CASE + 84 WHEN - 45 / + 14 THEN COUNT( - CAST( NULL AS SIGNED ) ) END THEN + 7 END / + SUM( DISTINCT - 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT CASE - 35 WHEN 40 + + MAX ( + ( 40 ) ) * - 96 THEN NULL WHEN CAST ( NULL AS REAL ) * CASE COUNT ( * ) WHEN 10 THEN + CAST ( NULL AS INTEGER ) * - - 54 + + 80 / - 69 WHEN + - COALESCE ( - 80, - + CAST ( 16 AS INTEGER ) * - 48, - 43 / 17 + CASE - CAST ( NULL AS INTEGER ) + - 37 WHEN 12 * + 6 THEN 40 * + COUNT ( * ) + - 69 / + 5 WHEN 29 THEN + CASE + COALESCE ( - 90, - COUNT ( * ) + CAST ( NULL AS REAL ) * 43 ) WHEN 44 + 45 THEN + 64 ELSE - ( CAST ( NULL AS INTEGER ) ) END + 96 END * 25 ) THEN NULL END - - CASE + 84 WHEN - 45 / + 14 THEN COUNT ( - CAST ( NULL AS INTEGER ) ) END THEN + 7 END / + SUM ( DISTINCT - 72 ) AS col2
----
NULL

query I rowsort
SELECT 77 * - 14
----
-1078

query II rowsort
SELECT - 70 AS col2, + 25 AS col1
----
-70
25

query I rowsort
SELECT 23 - - 54
----
77

query I rowsort
SELECT - 65 * 48 + 59 * 3
----
-2943

query I rowsort
SELECT ALL - - 58 - ( - 91 )
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4954
SELECT DISTINCT - - 33 * + - ( + COALESCE ( - + 51, - 9 DIV - + 30 - + - COUNT( * ) * + COUNT( * ) - + - 22 - - - COALESCE ( 64, + 65 * MIN( 13 ) DIV 81 * - - NULLIF ( - + 71, - + AVG ( - 45 ) ) + 9 * 0, - 7, - 62 DIV 39 + - 54 ) * + 9 ) ) + - COUNT( * ) * - 10 AS col0
----
1693

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT - - 33 * + - ( + COALESCE ( - + 51, - 9 / - + 30 - + - COUNT ( * ) * + COUNT ( * ) - + - 22 - - - COALESCE ( 64, + 65 * MIN ( 13 ) / 81 * - - NULLIF ( - + 71, - + AVG ( - 45 ) ) + 9 * 0, - 7, - 62 / 39 + - 54 ) * + 9 ) ) + - COUNT ( * ) * - 10 AS col0
----
1693

query II rowsort
SELECT + 38, 37 * - 48 AS col1
----
38
-1776

query I rowsort
SELECT 92 * 21 + - ( + 10 )
----
1922

query II rowsort
SELECT ALL - 82 col1, - 80 AS col1
----
-82
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT + 0 * - 9 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT + 0 * - 9 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT 84 - + - MIN( 32 ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4959
SELECT 84 - + - MIN ( 32 ) AS col2
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-4960
SELECT 71 DIV - + 64 + + 50
----
49

skipif mysql # not compatible
query I rowsort label-4960
SELECT 71 / - + 64 + + 50
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-4961
SELECT 15 * 49 DIV 15 + - + NULLIF ( - 23, - 67 ), + 54 AS col1
----
72
54

skipif mysql # not compatible
query II rowsort label-4961
SELECT 15 * 49 / 15 + - + NULLIF ( - 23, - 67 ), + 54 AS col1
----
72
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4962
SELECT + - 50 + - 6 DIV + - COALESCE ( - CAST( NULL AS SIGNED ), + 24 * 94 + - - 23 + + 98 + + 96 - 96 - COALESCE ( + COUNT( * ), 44, - 76 + + 22 ) + + + 46 DIV - - 11, - ( + 96 ) ) * 40 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4962
SELECT + - 50 + - 6 / + - COALESCE ( - CAST ( NULL AS INTEGER ), + 24 * 94 + - - 23 + + 98 + + 96 - 96 - COALESCE ( + COUNT ( * ), 44, - 76 + + 22 ) + + + 46 / - - 11, - ( + 96 ) ) * 40 AS col0
----
-50

query I rowsort
SELECT ALL - 44 * - 92
----
4048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4964
SELECT DISTINCT 66 * - CASE + 34 WHEN - 8 - COUNT( * ) THEN NULL ELSE 96 * + 98 - + 76 * - - 76 END + + ( - 76 ) * 51 + CAST( + + 79 AS SIGNED ) + + CASE + + 9 WHEN - - 51 THEN COUNT( * ) / + 71 ELSE NULL END * + NULLIF ( 55, COUNT( * ) ) / + ( - ( - 0 ) + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT 66 * - CASE + 34 WHEN - 8 - COUNT ( * ) THEN NULL ELSE 96 * + 98 - + 76 * - - 76 END + + ( - 76 ) * 51 + CAST ( + + 79 AS INTEGER ) + + CASE + + 9 WHEN - - 51 THEN COUNT ( * ) / + 71 ELSE NULL END * + NULLIF ( 55, COUNT ( * ) ) / + ( - ( - 0 ) + 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT - 1 * ( SUM( ALL - + 30 ) ) + - 99
----
-69

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - 1 * ( SUM ( ALL - + 30 ) ) + - 99
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT MIN( ALL + 26 ) AS col0, 55 + + 82 AS col0
----
26
137

skipif mysql # not compatible
query II rowsort label-4966
SELECT MIN ( ALL + 26 ) AS col0, 55 + + 82 AS col0
----
26
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT + CASE 77 WHEN + 52 / 89 * COUNT( * ) * + 9 * - 56 - - + COUNT( * ) / + + NULLIF ( 31, + + 72 ) * + COUNT( * ) * 92 THEN - - 90 - - NULLIF ( - 78, - - NULLIF ( 90, 5 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT + CASE 77 WHEN + 52 / 89 * COUNT ( * ) * + 9 * - 56 - - + COUNT ( * ) / + + NULLIF ( 31, + + 72 ) * + COUNT ( * ) * 92 THEN - - 90 - - NULLIF ( - 78, - - NULLIF ( 90, 5 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT + CASE 36 WHEN - - COUNT( * ) THEN + - 69 + - - 73 ELSE - 15 END AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4968
SELECT + CASE 36 WHEN - - COUNT ( * ) THEN + - 69 + - - 73 ELSE - 15 END AS col2
----
-15

query I rowsort
SELECT DISTINCT + 41 * + 62
----
2542

query I rowsort
SELECT ALL + 23 * - 43
----
-989

onlyif mysql # DIV for integer division: 
query I rowsort label-4971
SELECT DISTINCT - 96 - 81 + + 57 - + 13 DIV + 82 * + - 94
----
-120

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT - 96 - 81 + + 57 - + 13 / + 82 * + - 94
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT + 50 + COUNT( * ) AS col0, ( - SUM( ALL 33 ) )
----
51
-33

skipif mysql # not compatible
query II rowsort label-4972
SELECT + 50 + COUNT ( * ) AS col0, ( - SUM ( ALL 33 ) )
----
51
-33

query I rowsort
SELECT - 56 - + 70
----
-126

query II rowsort
SELECT ALL + 23 * 80 AS col2, 58
----
1840
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4975
SELECT - COALESCE ( 30, - COALESCE ( 28, - + 13 DIV - 49 * 36 + 80 * + ( - + 96 ) * + 1, + + 34, + 41 ) * - 93 + 81 DIV + - ( + COUNT( * ) ) - - COUNT( * ), 7 + 9, 88 - + 11 * + NULLIF ( - 95, + CASE 75 WHEN COUNT( * ) + + COUNT( * ) THEN + CASE - 47 WHEN - 57 * 8 + CAST( COUNT( * ) AS DECIMAL ) THEN NULL WHEN 33 THEN + 26 - + 15 ELSE ( 41 ) * 64 END WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE + 72 END ) ) + + 77
----
47

skipif mysql # not compatible
query I rowsort label-4975
SELECT - COALESCE ( 30, - COALESCE ( 28, - + 13 / - 49 * 36 + 80 * + ( - + 96 ) * + 1, + + 34, + 41 ) * - 93 + 81 / + - ( + COUNT ( * ) ) - - COUNT ( * ), 7 + 9, 88 - + 11 * + NULLIF ( - 95, + CASE 75 WHEN COUNT ( * ) + + COUNT ( * ) THEN + CASE - 47 WHEN - 57 * 8 + CAST ( COUNT ( * ) AS REAL ) THEN NULL WHEN 33 THEN + 26 - + 15 ELSE ( 41 ) * 64 END WHEN CAST ( NULL AS REAL ) THEN NULL ELSE + 72 END ) ) + + 77
----
47

query I rowsort
SELECT ALL + + 44 * + ( - 49 )
----
-2156

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4977
SELECT - - 55 + + 94 AS col2, ( - + CAST( NULL AS DECIMAL ) ) + ( + 71 )
----
149
NULL

skipif mysql # not compatible
query II rowsort label-4977
SELECT - - 55 + + 94 AS col2, ( - + CAST ( NULL AS REAL ) ) + ( + 71 )
----
149
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4978
SELECT DISTINCT + 44 DIV COUNT( 20 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT + 44 / COUNT ( 20 ) AS col2
----
44

query I rowsort
SELECT - + ( 58 ) + - + 95 AS col1
----
-153

query I rowsort
SELECT ALL + 11 * + 36 * + 95 * - 59 - + - 19
----
-2219561

query I rowsort
SELECT - 85 * 87 * 30
----
-221850

query I rowsort
SELECT + 7 + - 47 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT - - NULLIF ( + + SUM( ALL - 87 ), - - 47 + - 3 ) * - 80 AS col2
----
6960

skipif mysql # not compatible
query I rowsort label-4983
SELECT - - NULLIF ( + + SUM ( ALL - 87 ), - - 47 + - 3 ) * - 80 AS col2
----
6960

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT - 51 * - CASE + 81 WHEN + ( + - 20 ) THEN NULL WHEN 22 THEN NULL ELSE - + 7 + - - COUNT( * ) END AS col2
----
-306

skipif mysql # not compatible
query I rowsort label-4984
SELECT - 51 * - CASE + 81 WHEN + ( + - 20 ) THEN NULL WHEN 22 THEN NULL ELSE - + 7 + - - COUNT ( * ) END AS col2
----
-306

query I rowsort
SELECT + - 40 + 43 - + 60
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL 56 / - COALESCE ( + 70, + 4, - + 99 ) * 37 + - - AVG ( DISTINCT + - 66 ) + + + CASE COALESCE ( - - COUNT( * ), - 72, + + 36 + + + 31 + + 73 ) WHEN - ( - 29 ) + - + MAX( ALL - - 80 ) THEN NULL WHEN + 62 THEN 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL 56 / - COALESCE ( + 70, + 4, - + 99 ) * 37 + - - AVG ( DISTINCT + - 66 ) + + + CASE COALESCE ( - - COUNT ( * ), - 72, + + 36 + + + 31 + + 73 ) WHEN - ( - 29 ) + - + MAX ( ALL - - 80 ) THEN NULL WHEN + 62 THEN 69 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT DISTINCT - 37 / + CAST( NULL AS SIGNED ) - - 64 * + 27 * - 50 + - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT - 37 / + CAST ( NULL AS INTEGER ) - - 64 * + 27 * - 50 + - 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4988
SELECT DISTINCT + + 89 * + 4 * MIN( 88 ) col1, 74 + - - 33 + - MAX( - - 57 ) + - 5
----
31328
45

skipif mysql # not compatible
query II rowsort label-4988
SELECT DISTINCT + + 89 * + 4 * MIN ( 88 ) col1, 74 + - - 33 + - MAX ( - - 57 ) + - 5
----
31328
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4989
SELECT DISTINCT COUNT( * ) DIV + 98 * + - 96 + 48 + - - NULLIF ( 77, - 63 ) + - 51 * 71 * + 39 AS col0
----
-141094

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT COUNT ( * ) / + 98 * + - 96 + 48 + - - NULLIF ( 77, - 63 ) + - 51 * 71 * + 39 AS col0
----
-141094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4990
SELECT DISTINCT + + NULLIF ( + + COUNT( * ), CASE + - 94 WHEN 10 * + 8 / + ( - MIN( DISTINCT 57 ) ) - + - 48 THEN 53 + + 49 + CAST( NULL AS SIGNED ) * - 8 END / + 6 + - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT + + NULLIF ( + + COUNT ( * ), CASE + - 94 WHEN 10 * + 8 / + ( - MIN ( DISTINCT 57 ) ) - + - 48 THEN 53 + + 49 + CAST ( NULL AS INTEGER ) * - 8 END / + 6 + - 92 )
----
1

query I rowsort
SELECT DISTINCT + 8 * 42 + + 77
----
413

query I rowsort
SELECT + 28 * - - 72
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT + COUNT( 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4993
SELECT + COUNT ( 74 ) AS col0
----
1

query I rowsort
SELECT ALL + 63 * - 3 * - - ( - 96 ) + 67 + - 19
----
18192

query I rowsort
SELECT + 10 + 93
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT 27 * - + ( - + 3 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT 27 * - + ( - + 3 ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 86 * - 90 - + - 84
----
-7656

query I rowsort
SELECT + 62 * - - 63
----
3906

query II rowsort
SELECT ALL + 11 AS col0, 78
----
11
78

query I rowsort
SELECT CASE - ( + + 15 ) WHEN + 63 / 45 + - ( - + 33 ) - - + 32 THEN + 28 END
----
NULL

query I rowsort
SELECT + 26 * + + 94
----
2444

query I rowsort
SELECT - 32 + 24
----
-8

query II rowsort
SELECT - 72 AS col2, 40
----
-72
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT MAX( 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5004
SELECT MAX ( 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5005
SELECT - 66 AS col0, - MIN( + 9 )
----
-66
-9

skipif mysql # not compatible
query II rowsort label-5005
SELECT - 66 AS col0, - MIN ( + 9 )
----
-66
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT + - 49 + + + 27 + + COUNT( * ) * + 71 col1
----
49

skipif mysql # not compatible
query I rowsort label-5006
SELECT + - 49 + + + 27 + + COUNT ( * ) * + 71 col1
----
49

query II rowsort
SELECT - 50 AS col2, 83
----
-50
83

query I rowsort
SELECT DISTINCT + + 66 + 46
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT ALL - - CAST( NULL AS SIGNED ) + - + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - - CAST ( NULL AS INTEGER ) + - + 96 AS col0
----
NULL

query I rowsort
SELECT 55 - + 45 * - 11 + + 44 AS col1
----
594

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5011
SELECT ALL CAST( NULL AS DECIMAL ) * + 81 * - 20, + NULLIF ( - - 21, - COUNT( * ) ) col2
----
NULL
21

skipif mysql # not compatible
query II rowsort label-5011
SELECT ALL CAST ( NULL AS REAL ) * + 81 * - 20, + NULLIF ( - - 21, - COUNT ( * ) ) col2
----
NULL
21

query I rowsort
SELECT ALL - 19 + + 37
----
18

query II rowsort
SELECT DISTINCT - 61 + + + 28 + - 6 AS col0, - 86
----
-39
-86

query I rowsort
SELECT ALL - + 24 + - + 34
----
-58

query I rowsort
SELECT 93 * + + 14
----
1302

query II rowsort
SELECT DISTINCT - + ( + 78 ) + + + 3 AS col2, + 99 * + 94
----
-75
9306

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT - COUNT( * ) * 45 + + ( 70 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5017
SELECT - COUNT ( * ) * 45 + + ( 70 ) AS col1
----
25

query I rowsort
SELECT + 21 - - + 41
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT + MIN( DISTINCT 24 ) * 87 + NULLIF ( - - 92, - 92 )
----
2180

skipif mysql # not compatible
query I rowsort label-5019
SELECT + MIN ( DISTINCT 24 ) * 87 + NULLIF ( - - 92, - 92 )
----
2180

query I rowsort
SELECT NULLIF ( - - 55, + 22 ) - 44 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL - ( - 34 ) - + + 86 + 99 + - 0 * SUM( + + 14 ) * - MIN( ALL + - ( 58 ) )
----
47

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - ( - 34 ) - + + 86 + 99 + - 0 * SUM ( + + 14 ) * - MIN ( ALL + - ( 58 ) )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5022
SELECT 59 DIV COUNT( - 5 ) + + 6 * CAST( + + COUNT( * ) AS SIGNED ) col1
----
65

skipif mysql # not compatible
query I rowsort label-5022
SELECT 59 / COUNT ( - 5 ) + + 6 * CAST ( + + COUNT ( * ) AS INTEGER ) col1
----
65

query II rowsort
SELECT ALL - 50 AS col1, + 25 + - 4 AS col1
----
-50
21

query I rowsort
SELECT DISTINCT - 13 - - NULLIF ( + - 71, 7 ) * + + 42
----
-2995

onlyif mysql # aggregate syntax: 
query II rowsort label-5025
SELECT ALL - 95 AS col0, + MAX( - 25 ) * - ( - - 85 )
----
-95
2125

skipif mysql # not compatible
query II rowsort label-5025
SELECT ALL - 95 AS col0, + MAX ( - 25 ) * - ( - - 85 )
----
-95
2125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) - + 14
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5027
SELECT DISTINCT + 41 * 71 DIV + 12
----
242

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT + 41 * 71 / + 12
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL 33 - + ( - 34 ) * + 16 * + - COUNT( 78 )
----
-511

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL 33 - + ( - 34 ) * + 16 * + - COUNT ( 78 )
----
-511

query I rowsort
SELECT 87 * - 99 + - - 29 * + + 93
----
-5916

query II rowsort
SELECT 42 AS col0, 74 + + - 67 * + + 0
----
42
74

query II rowsort
SELECT + 61 AS col0, 38 col1
----
61
38

query I rowsort
SELECT 40 * - 69 * - - 48 AS col1
----
-132480

onlyif mysql # aggregate syntax: 
query II rowsort label-5033
SELECT 75 * - COUNT( * ) col2, 52 AS col1
----
-75
52

skipif mysql # not compatible
query II rowsort label-5033
SELECT 75 * - COUNT ( * ) col2, 52 AS col1
----
-75
52

query I rowsort
SELECT 46 + 11 AS col1
----
57

query I rowsort
SELECT ALL - ( + + 58 ) AS col1
----
-58

query I rowsort
SELECT ALL 67 * - + 0 AS col1
----
0

query II rowsort
SELECT 65 + + 30 AS col2, + 63 * 96 AS col2
----
95
6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5038
SELECT ALL 79 * + + CAST( - ( + 1 ) AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL 79 * + + CAST ( - ( + 1 ) AS INTEGER )
----
-79

query I rowsort
SELECT DISTINCT 19 * + 37 * - 28 col0
----
-19684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5040
SELECT + CASE 69 WHEN - CAST( NULL AS DECIMAL ) + + 16 + + + 62 + 45 + + - CAST( NULL AS SIGNED ) / + - 73 + 25 * ( - + MIN( DISTINCT + 77 ) ) + - + CASE + + 13 WHEN + - 86 * 23 THEN - CAST( + + 17 AS SIGNED ) + + 69 WHEN + 6 THEN NULL END - - - COUNT( * ) + 88 THEN 45 * - 31 + 49 WHEN 5 THEN + 64 END - MAX( ALL - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT + CASE 69 WHEN - CAST ( NULL AS REAL ) + + 16 + + + 62 + 45 + + - CAST ( NULL AS INTEGER ) / + - 73 + 25 * ( - + MIN ( DISTINCT + 77 ) ) + - + CASE + + 13 WHEN + - 86 * 23 THEN - CAST ( + + 17 AS INTEGER ) + + 69 WHEN + 6 THEN NULL END - - - COUNT ( * ) + 88 THEN 45 * - 31 + 49 WHEN 5 THEN + 64 END - MAX ( ALL - 35 )
----
NULL

query I rowsort
SELECT DISTINCT 32 * - 19 + + - 37 col0
----
-645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5042
SELECT ALL CASE - AVG ( DISTINCT + 71 ) WHEN CASE 68 WHEN - - 20 THEN 28 ELSE + COUNT( * ) END THEN NULL ELSE + 14 DIV SUM( DISTINCT 67 ) + - COUNT( * ) - + - 39 - - ( 98 ) DIV + 97 + - 75 END
----
-36

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL CASE - AVG ( DISTINCT + 71 ) WHEN CASE 68 WHEN - - 20 THEN 28 ELSE + COUNT ( * ) END THEN NULL ELSE + 14 / SUM ( DISTINCT 67 ) + - COUNT ( * ) - + - 39 - - ( 98 ) / + 97 + - 75 END
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT - 68 * - COUNT( * ) + + + COUNT( * ) + + 6
----
75

skipif mysql # not compatible
query I rowsort label-5043
SELECT - 68 * - COUNT ( * ) + + + COUNT ( * ) + + 6
----
75

query I rowsort
SELECT - 76 + 40 - - ( - CASE - ( + - 56 ) WHEN - 15 THEN + NULLIF ( + + 97, - 22 * 56 / - 69 ) END ) * 85 + - 54 + + 84 AS col2
----
NULL

query I rowsort
SELECT + 20 * + NULLIF ( - - ( - + 28 ), - - 35 ) - + 99 AS col2
----
-659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5046
SELECT 90 + - ( - 22 ) + - CAST( - 34 AS SIGNED ) DIV + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-5046
SELECT 90 + - ( - 22 ) + - CAST ( - 34 AS INTEGER ) / + - COUNT ( * )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT ALL 59 + - 4 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL 59 + - 4 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT - 3 DIV + 61 col2
----
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT - 3 / + 61 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5049
SELECT - 42 + + MIN( DISTINCT 87 ) + 50 DIV + 58 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5049
SELECT - 42 + + MIN ( DISTINCT 87 ) + 50 / + 58 AS col1
----
45

query I rowsort
SELECT + 69 + + 73 * + COALESCE ( + + 33, - + 88 ) AS col2
----
2478

query I rowsort
SELECT ALL - 57 + 82 * + COALESCE ( - - 65, - 50 + - 18 ) AS col0
----
5273

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT ALL - 77 + + 26 DIV + + 33
----
-77

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - 77 + + 26 / + + 33
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL 62 * + 40 * CASE AVG ( DISTINCT + 20 ) WHEN - - 45 + 4 + CASE 16 WHEN - CASE - 26 WHEN - 88 - + 21 THEN + ( - COUNT( * ) ) END THEN - 46 WHEN - 30 * + - 55 / - 36 THEN NULL ELSE NULL END * 82 - NULLIF ( 42, + ( - 63 ) ) + + COUNT( * ) THEN NULL ELSE - 36 END
----
-89280

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL 62 * + 40 * CASE AVG ( DISTINCT + 20 ) WHEN - - 45 + 4 + CASE 16 WHEN - CASE - 26 WHEN - 88 - + 21 THEN + ( - COUNT ( * ) ) END THEN - 46 WHEN - 30 * + - 55 / - 36 THEN NULL ELSE NULL END * 82 - NULLIF ( 42, + ( - 63 ) ) + + COUNT ( * ) THEN NULL ELSE - 36 END
----
-89280

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT - CASE 64 WHEN + COUNT( * ) - - 61 - 1 THEN NULL ELSE ( - + MIN( - 90 ) ) END AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-5054
SELECT - CASE 64 WHEN + COUNT ( * ) - - 61 - 1 THEN NULL ELSE ( - + MIN ( - 90 ) ) END AS col1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5055
SELECT ( COALESCE ( + 76, - NULLIF ( + + 93, - - 21 ) * + COUNT( * ) + + SUM( DISTINCT - 36 ) + + 34 DIV - 11 + - + 68 DIV - 5, + 9 + - 44 + - 36 ) ) + 61 AS col1, + 57 DIV COALESCE ( - - 85, 14 )
----
137
0

skipif mysql # not compatible
query II rowsort label-5055
SELECT ( COALESCE ( + 76, - NULLIF ( + + 93, - - 21 ) * + COUNT ( * ) + + SUM ( DISTINCT - 36 ) + + 34 / - 11 + - + 68 / - 5, + 9 + - 44 + - 36 ) ) + 61 AS col1, + 57 / COALESCE ( - - 85, 14 )
----
137
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5056
SELECT DISTINCT + 13 AS col2, MAX( DISTINCT 21 ) * COUNT( DISTINCT - + 68 ) AS col1
----
13
21

skipif mysql # not compatible
query II rowsort label-5056
SELECT DISTINCT + 13 AS col2, MAX ( DISTINCT 21 ) * COUNT ( DISTINCT - + 68 ) AS col1
----
13
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT ALL - 16 - + 37 * + 31 + - 77 + + 15 DIV 58 * + - 55 * + - 5
----
-1240

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL - 16 - + 37 * + 31 + - 77 + + 15 / 58 * + - 55 * + - 5
----
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT - 58 * 96 * - 94 - COUNT( * ) - + 40 AS col0
----
523351

skipif mysql # not compatible
query I rowsort label-5058
SELECT - 58 * 96 * - 94 - COUNT ( * ) - + 40 AS col0
----
523351

onlyif mysql # DIV for integer division: 
query I rowsort label-5059
SELECT 44 + 17 DIV + 76 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5059
SELECT 44 + 17 / + 76 AS col2
----
44

query I rowsort
SELECT ALL - ( + 29 ) AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5061
SELECT DISTINCT - 82 DIV + COUNT( * ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT - 82 / + COUNT ( * ) col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT 64 * + ( + 39 ) - ( + AVG ( DISTINCT + + 43 ) ) / + CAST( NULL AS SIGNED ) / ( + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT 64 * + ( + 39 ) - ( + AVG ( DISTINCT + + 43 ) ) / + CAST ( NULL AS INTEGER ) / ( + 49 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5063
SELECT 50 / CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT 50 / CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5064
SELECT 0 DIV - CAST( - + 72 AS SIGNED ) - - COUNT( * ) * + + 79 * - 55 AS col0
----
-4345

skipif mysql # not compatible
query I rowsort label-5064
SELECT 0 / - CAST ( - + 72 AS INTEGER ) - - COUNT ( * ) * + + 79 * - 55 AS col0
----
-4345

query I rowsort
SELECT ALL + 64 * 20
----
1280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5066
SELECT 40 DIV SUM( DISTINCT + 25 ) * 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5066
SELECT 40 / SUM ( DISTINCT + 25 ) * 70 AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5067
SELECT + 41 * 90 + + 33 + - 99 + CAST( NULL AS SIGNED ) + 15 - - + 3 + + 43 * - 82 * + 25 * - MIN( DISTINCT - - 75 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT + 41 * 90 + + 33 + - 99 + CAST ( NULL AS INTEGER ) + 15 - - + 3 + + 43 * - 82 * + 25 * - MIN ( DISTINCT - - 75 ) col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - 90 ) col1
----
90

query II rowsort
SELECT ALL - 92 * + 5, + 45 AS col1
----
-460
45

query I rowsort
SELECT DISTINCT - 19 * + 65
----
-1235

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT 26 + COUNT( * ) + 17 + 73 * - + 59 + + - 87 * + + 29
----
-6786

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT 26 + COUNT ( * ) + 17 + 73 * - + 59 + + - 87 * + + 29
----
-6786

onlyif mysql # aggregate syntax: 
query II rowsort label-5072
SELECT DISTINCT - ( - - COALESCE ( - 92, - 5 * - - COUNT( * ) ) ) AS col0, COUNT( * ) AS col0
----
92
1

skipif mysql # not compatible
query II rowsort label-5072
SELECT DISTINCT - ( - - COALESCE ( - 92, - 5 * - - COUNT ( * ) ) ) AS col0, COUNT ( * ) AS col0
----
92
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT ALL - 92 + - 8 DIV + 90
----
-92

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL - 92 + - 8 / + 90
----
-92

query I rowsort
SELECT 38 + - 13
----
25

query I rowsort
SELECT 15 * 62 col1
----
930

onlyif mysql # aggregate syntax: 
query II rowsort label-5076
SELECT - 74 * - 9, COUNT( ALL 38 ) AS col2
----
666
1

skipif mysql # not compatible
query II rowsort label-5076
SELECT - 74 * - 9, COUNT ( ALL 38 ) AS col2
----
666
1

query I rowsort
SELECT ALL 43 + 50 - - + 47
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT - COUNT( 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5078
SELECT - COUNT ( 26 ) AS col2
----
-1

query I rowsort
SELECT + - 66 * 13 * - 61 + - + 82 + 73
----
52329

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL - 61 + - MAX( 93 ) AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL - 61 + - MAX ( 93 ) AS col1
----
-154

query I rowsort
SELECT - - ( + - 0 )
----
0

query I rowsort
SELECT ALL - 11 * + - 95 * - NULLIF ( 54, + 19 ) col2
----
-56430

query I rowsort
SELECT + 20 + ( 44 )
----
64

query I rowsort
SELECT + 90 * 57 * - + 73 AS col0
----
-374490

query II rowsort
SELECT ALL 59 - - 58 AS col0, - ( - NULLIF ( + 83, - + 86 ) ) * + + 37
----
117
3071

onlyif mysql # DIV for integer division: 
query I rowsort label-5086
SELECT + + 40 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-5086
SELECT + + 40 / + 95
----
0

query I rowsort
SELECT - - 34 * + 24
----
816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT DISTINCT 21 - 58 + + 21 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT 21 - 58 + + 21 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT + 70 + - + 97 + - COUNT( * ) * + - 75 * + - 73
----
-5502

skipif mysql # not compatible
query I rowsort label-5089
SELECT + 70 + - + 97 + - COUNT ( * ) * + - 75 * + - 73
----
-5502

query I rowsort
SELECT ALL - 95 - - - 36
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT + 63 * - 27 DIV 1
----
-1701

skipif mysql # not compatible
query I rowsort label-5091
SELECT + 63 * - 27 / 1
----
-1701

query II rowsort
SELECT ALL + 76 AS col2, + 78 - - 73 AS col1
----
76
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL + MAX( DISTINCT - + 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL + MAX ( DISTINCT - + 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + 34 + - CASE + ( + 47 ) WHEN + + 67 - - 52 + ( - 86 ) THEN - MIN( 17 ) + 22 WHEN 67 * - 62 THEN + - 35 + + - 53 / 29 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT + 34 + - CASE + ( + 47 ) WHEN + + 67 - - 52 + ( - 86 ) THEN - MIN ( 17 ) + 22 WHEN 67 * - 62 THEN + - 35 + + - 53 / 29 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 68 * + 75 + + - 58
----
5042

query I rowsort
SELECT - 16 - - 32 col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5097
SELECT + 27 * + - CASE - 62 WHEN - 56 * - COUNT( * ) * NULLIF ( - + COALESCE ( 73, + + 45 ), - + ( - - COUNT( * ) ) DIV 49 ) * + COUNT( * ) * COUNT( * ) + - 98 - - 73 + MIN( ALL - NULLIF ( - ( + 42 ), + 71 ) ) THEN NULL ELSE + + MIN( DISTINCT + - 34 ) DIV + 4 END
----
216

skipif mysql # not compatible
query I rowsort label-5097
SELECT + 27 * + - CASE - 62 WHEN - 56 * - COUNT ( * ) * NULLIF ( - + COALESCE ( 73, + + 45 ), - + ( - - COUNT ( * ) ) / 49 ) * + COUNT ( * ) * COUNT ( * ) + - 98 - - 73 + MIN ( ALL - NULLIF ( - ( + 42 ), + 71 ) ) THEN NULL ELSE + + MIN ( DISTINCT + - 34 ) / + 4 END
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT + ( - SUM( - + 56 ) ) * + - 9 + - COUNT( * ) - + 22
----
-527

skipif mysql # not compatible
query I rowsort label-5098
SELECT + ( - SUM ( - + 56 ) ) * + - 9 + - COUNT ( * ) - + 22
----
-527

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT + ( - + COALESCE ( 4, COUNT( + - 14 ), - CASE 62 WHEN + + ( + + 16 ) + - + 23 THEN - 69 + COUNT( * ) WHEN + + 68 THEN 30 - + + 71 + + 52 END * - 40, - - COUNT( * ) + - 70 ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5099
SELECT + ( - + COALESCE ( 4, COUNT ( + - 14 ), - CASE 62 WHEN + + ( + + 16 ) + - + 23 THEN - 69 + COUNT ( * ) WHEN + + 68 THEN 30 - + + 71 + + 52 END * - 40, - - COUNT ( * ) + - 70 ) ) AS col0
----
-4

query I rowsort
SELECT + 38 * + 37 + - 9 AS col2
----
1397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT + 62 / - 49 / + 19 + + CAST( NULL AS SIGNED ) * 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT + 62 / - 49 / + 19 + + CAST ( NULL AS INTEGER ) * 82 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT - MAX( 91 ) * - COUNT( * ) * + CAST( 16 AS SIGNED ) + CAST( + 17 AS SIGNED )
----
1473

skipif mysql # not compatible
query I rowsort label-5102
SELECT - MAX ( 91 ) * - COUNT ( * ) * + CAST ( 16 AS INTEGER ) + CAST ( + 17 AS INTEGER )
----
1473

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT - 45 * + 67 + + MIN( ALL + 83 ) * 23 * + 42 AS col2
----
77163

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT - 45 * + 67 + + MIN ( ALL + 83 ) * 23 * + 42 AS col2
----
77163

query II rowsort
SELECT ALL + 95 AS col1, + 14 AS col0
----
95
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT ALL + 33 DIV - + 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + 33 / - + 45 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ALL COUNT( * ) * - 46 + - 35
----
-81

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL COUNT ( * ) * - 46 + - 35
----
-81

query I rowsort
SELECT ALL 93 * + - 7 + - 61 * - 90
----
4839

query II rowsort
SELECT + 22 AS col0, 33 * - 62 AS col0
----
22
-2046

query I rowsort
SELECT + 38 + - 99 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - COUNT( * ) + - 24 + - + ( + 68 ) + 39
----
-54

skipif mysql # not compatible
query I rowsort label-5110
SELECT - COUNT ( * ) + - 24 + - + ( + 68 ) + 39
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT - + 56 DIV - - 70
----
0

skipif mysql # not compatible
query I rowsort label-5111
SELECT - + 56 / - - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT - COUNT( - COALESCE ( + 19, + 30 / + 36 / - + 45 ) ) + - 61 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-5112
SELECT - COUNT ( - COALESCE ( + 19, + 30 / + 36 / - + 45 ) ) + - 61 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT + 34 * - 55 + - 80 * - COUNT( * ) + 2 AS col0
----
-1788

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT + 34 * - 55 + - 80 * - COUNT ( * ) + 2 AS col0
----
-1788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT DISTINCT + 85 * + + 28 * - 26 + + + CAST( - 40 AS SIGNED ) AS col2
----
-61920

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + 85 * + + 28 * - 26 + + + CAST ( - 40 AS INTEGER ) AS col2
----
-61920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5115
SELECT ALL + + CASE + CAST( NULL AS SIGNED ) WHEN 85 THEN 91 END AS col2, 55 DIV - 13 col0, MIN( + - 98 )
----
NULL
-4
-98

skipif mysql # not compatible
query III rowsort label-5115
SELECT ALL + + CASE + CAST ( NULL AS INTEGER ) WHEN 85 THEN 91 END AS col2, 55 / - 13 col0, MIN ( + - 98 )
----
NULL
-4
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5116
SELECT ALL + CAST( NULL AS DECIMAL ) * 47 + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + CAST ( NULL AS REAL ) * 47 + + 34
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5117
SELECT DISTINCT 36 AS col2, MIN( 49 ) AS col1
----
36
49

skipif mysql # not compatible
query II rowsort label-5117
SELECT DISTINCT 36 AS col2, MIN ( 49 ) AS col1
----
36
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5118
SELECT ALL + - CAST( + + 67 AS SIGNED ) * + CASE - 47 WHEN + 83 + - - 7 * COUNT( * ) - CASE 28 WHEN - 99 THEN + 64 + - + MIN( - 74 ) ELSE NULL END + - 19 - - 7 + - COUNT( * ) THEN - - 45 ELSE NULL END * - 15 + + 29 * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL + - CAST ( + + 67 AS INTEGER ) * + CASE - 47 WHEN + 83 + - - 7 * COUNT ( * ) - CASE 28 WHEN - 99 THEN + 64 + - + MIN ( - 74 ) ELSE NULL END + - 19 - - 7 + - COUNT ( * ) THEN - - 45 ELSE NULL END * - 15 + + 29 * + 58
----
NULL

query I rowsort
SELECT - 91 + + - 81
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - 61 + + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-5120
SELECT - 61 + + COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT - MAX( 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5121
SELECT - MAX ( 17 ) AS col2
----
-17

query I rowsort
SELECT ALL + - 5 - + 33
----
-38

query II rowsort
SELECT ALL + 35, + 37 AS col0
----
35
37

query II rowsort
SELECT - 14 AS col1, - 99 + 99 * - - 77
----
-14
7524

query I rowsort
SELECT + - 80 + - 51
----
-131

query I rowsort
SELECT - - 69 + + + 80 + + 2 + + - 51 * + + 19
----
-818

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5127
SELECT - + 11 * + CAST( NULL AS DECIMAL ) + - + 91 / AVG ( + - ( + + 5 ) ) / + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT - + 11 * + CAST ( NULL AS REAL ) + - + 91 / AVG ( + - ( + + 5 ) ) / + 83 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5128
SELECT + + 5 + COUNT( NULLIF ( + CAST( NULL AS SIGNED ), + - 73 * + 89 + + 2 ) ) * 46
----
5

skipif mysql # not compatible
query I rowsort label-5128
SELECT + + 5 + COUNT ( NULLIF ( + CAST ( NULL AS INTEGER ), + - 73 * + 89 + + 2 ) ) * 46
----
5

query II rowsort
SELECT + - 19 + + 28 + 88, + 15 col1
----
97
15

query I rowsort
SELECT + 46 + - + 84
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5131
SELECT + MAX( - 64 ) DIV - + 88 + + 73, + CAST( CASE - 89 WHEN 63 + CASE - + 58 WHEN + + 4 THEN NULL ELSE 90 + - 86 + 32 - 45 DIV 12 * - + CAST( 35 AS SIGNED ) + + 3 * 78 END THEN NULL WHEN - CAST( - 12 AS SIGNED ) * - 37 THEN MIN( - 55 ) WHEN + 98 THEN NULL ELSE 71 * COUNT( * ) END AS SIGNED ) AS col1
----
73
71

skipif mysql # not compatible
query II rowsort label-5131
SELECT + MAX ( - 64 ) / - + 88 + + 73, + CAST ( CASE - 89 WHEN 63 + CASE - + 58 WHEN + + 4 THEN NULL ELSE 90 + - 86 + 32 - 45 / 12 * - + CAST ( 35 AS INTEGER ) + + 3 * 78 END THEN NULL WHEN - CAST ( - 12 AS INTEGER ) * - 37 THEN MIN ( - 55 ) WHEN + 98 THEN NULL ELSE 71 * COUNT ( * ) END AS INTEGER ) AS col1
----
73
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5132
SELECT DISTINCT + CASE COUNT( * ) WHEN + 74 * + 69 * 29 * - 72 / - - 54 + - SUM( 63 ) / + - 12 THEN + 48 WHEN - + CAST( + 36 AS DECIMAL ) THEN 10 + + 60 * - - 45 WHEN - 9 THEN NULL END * - 46 * - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT + CASE COUNT ( * ) WHEN + 74 * + 69 * 29 * - 72 / - - 54 + - SUM ( 63 ) / + - 12 THEN + 48 WHEN - + CAST ( + 36 AS REAL ) THEN 10 + + 60 * - - 45 WHEN - 9 THEN NULL END * - 46 * - 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT ( - 16 ) * + SUM( + 58 ) * COUNT( * )
----
-928

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT ( - 16 ) * + SUM ( + 58 ) * COUNT ( * )
----
-928

query I rowsort
SELECT - 10 * + 38 AS col0
----
-380

query I rowsort
SELECT + NULLIF ( 30, - 53 / + + 27 ) + - 24 AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT + 28 DIV - 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5136
SELECT + 28 / - 40 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT + MAX( DISTINCT - 74 ) + 63 * 84
----
5218

skipif mysql # not compatible
query I rowsort label-5137
SELECT + MAX ( DISTINCT - 74 ) + 63 * 84
----
5218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5138
SELECT DISTINCT 9 DIV ( + - 65 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT 9 / ( + - 65 ) + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT + CASE + 31 WHEN + + 75 * + 98 * COUNT( * ) THEN + COUNT( * ) WHEN + ( + 2 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT + CASE + 31 WHEN + + 75 * + 98 * COUNT ( * ) THEN + COUNT ( * ) WHEN + ( + 2 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5140
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 64 + - - 51 / 25, 73 AS col0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-5140
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 64 + - - 51 / 25, 73 AS col0
----
NULL
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5141
SELECT CAST( + + COUNT( * ) AS SIGNED ), 79 - CAST( + - 94 AS SIGNED ) * + 36 * ( - 1 ) AS col0
----
1
-3305

skipif mysql # not compatible
query II rowsort label-5141
SELECT CAST ( + + COUNT ( * ) AS INTEGER ), 79 - CAST ( + - 94 AS INTEGER ) * + 36 * ( - 1 ) AS col0
----
1
-3305

onlyif mysql # DIV for integer division: 
query II rowsort label-5142
SELECT ALL 52 DIV 16 + + + 67 * NULLIF ( - + 63, - 3 + - 61 ), 67 AS col2
----
-4218
67

skipif mysql # not compatible
query II rowsort label-5142
SELECT ALL 52 / 16 + + + 67 * NULLIF ( - + 63, - 3 + - 61 ), 67 AS col2
----
-4218
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT ALL 20 DIV 71 DIV 25 DIV 81 + 70
----
70

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL 20 / 71 / 25 / 81 + 70
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5144
SELECT - 33 * - 35 * - MAX( - 22 ) - - 43, 70 AS col0
----
25453
70

skipif mysql # not compatible
query II rowsort label-5144
SELECT - 33 * - 35 * - MAX ( - 22 ) - - 43, 70 AS col0
----
25453
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT CAST( + COALESCE ( + 78, + 83 ) AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5145
SELECT CAST ( + COALESCE ( + 78, + 83 ) AS INTEGER ) AS col0
----
78

query I rowsort
SELECT - ( + 33 ) + 44 + - + 76
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5147
SELECT DISTINCT 95 DIV + COUNT( * ) + 76 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT 95 / + COUNT ( * ) + 76 AS col1
----
171

query I rowsort
SELECT DISTINCT 67 * 99
----
6633

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT 4 * + SUM( 70 ) AS col0
----
280

skipif mysql # not compatible
query I rowsort label-5149
SELECT 4 * + SUM ( 70 ) AS col0
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT DISTINCT - - COALESCE ( + - ( + 69 ), COALESCE ( + COUNT( * ), + 43 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT - - COALESCE ( + - ( + 69 ), COALESCE ( + COUNT ( * ), + 43 ) ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT 65 + - - MAX( 31 ) * - + MIN( + 95 ) * + 3 + 59 AS col0
----
-8711

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT 65 + - - MAX ( 31 ) * - + MIN ( + 95 ) * + 3 + 59 AS col0
----
-8711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT + - ( 96 ) * + ( + - CAST( NULL AS SIGNED ) ) - + - CAST( NULL AS SIGNED ) + 95 * - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT + - ( 96 ) * + ( + - CAST ( NULL AS INTEGER ) ) - + - CAST ( NULL AS INTEGER ) + 95 * - 39 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5153
SELECT DISTINCT - + CASE + + 93 WHEN - 97 * - 24 * + + 38 THEN NULL WHEN - 22 THEN 96 ELSE COALESCE ( + - 16, - 16 DIV - 35 DIV + COALESCE ( + 83, + 53 - + - 46 ) * + CAST( 8 AS SIGNED ) + 49 DIV + COUNT( * ) * + - 73 ) + + 72 + SUM( + 49 ) END col0
----
-105

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT - + CASE + + 93 WHEN - 97 * - 24 * + + 38 THEN NULL WHEN - 22 THEN 96 ELSE COALESCE ( + - 16, - 16 / - 35 / + COALESCE ( + 83, + 53 - + - 46 ) * + CAST ( 8 AS INTEGER ) + 49 / + COUNT ( * ) * + - 73 ) + + 72 + SUM ( + 49 ) END col0
----
-105

query I rowsort
SELECT DISTINCT + - 32 * + 48 AS col2
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT 10 - + 10 + - 19 + - MIN( 30 )
----
-49

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT 10 - + 10 + - 19 + - MIN ( 30 )
----
-49

query I rowsort
SELECT + + 80 * 3 + - 37
----
203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5157
SELECT NULLIF ( + 14, + 77 * - 35 - + - CAST( - + 77 AS DECIMAL ) ) * + CAST( NULL AS SIGNED ) AS col0, + MAX( ALL + 67 ) + ( - + 45 )
----
NULL
22

skipif mysql # not compatible
query II rowsort label-5157
SELECT NULLIF ( + 14, + 77 * - 35 - + - CAST ( - + 77 AS REAL ) ) * + CAST ( NULL AS INTEGER ) AS col0, + MAX ( ALL + 67 ) + ( - + 45 )
----
NULL
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5158
SELECT + NULLIF ( + 43, ( - COUNT( * ) ) ), 14 + - ( 39 ) AS col1
----
43
-25

skipif mysql # not compatible
query II rowsort label-5158
SELECT + NULLIF ( + 43, ( - COUNT ( * ) ) ), 14 + - ( 39 ) AS col1
----
43
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5159
SELECT DISTINCT - - 40 * COALESCE ( + COUNT( * ), SUM( - + 88 ) + - 47 ) + - 80 DIV + 64 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT - - 40 * COALESCE ( + COUNT ( * ), SUM ( - + 88 ) + - 47 ) + - 80 / + 64 AS col0
----
39

query I rowsort
SELECT 93 * + 10
----
930

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5161
SELECT COUNT( * ) * - - 9 + 66 + - + 23 AS col1, + COUNT( * ) DIV MAX( ALL - 17 ) - + - 27
----
52
27

skipif mysql # not compatible
query II rowsort label-5161
SELECT COUNT ( * ) * - - 9 + 66 + - + 23 AS col1, + COUNT ( * ) / MAX ( ALL - 17 ) - + - 27
----
52
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL - COALESCE ( 9, + + COUNT( * ) - NULLIF ( + 68, - + ( 94 ) ) * 98 * + 6 * 35 ) * 55 AS col1
----
-495

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL - COALESCE ( 9, + + COUNT ( * ) - NULLIF ( + 68, - + ( 94 ) ) * 98 * + 6 * 35 ) * 55 AS col1
----
-495

query I rowsort
SELECT NULLIF ( + - 29, 46 - + 23 * - + 89 * - 0 ) AS col1
----
-29

query I rowsort
SELECT DISTINCT + 26 * + 40 * - 46 * + 98 * 38 AS col0
----
-178156160

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT ALL + MAX( DISTINCT - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL + MAX ( DISTINCT - 51 )
----
-51

query I rowsort
SELECT - + ( + 89 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT 62 * + 0 * 13 DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5167
SELECT 62 * + 0 * 13 / - 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL + 4 * COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL + 4 * COUNT ( * )
----
4

query I rowsort
SELECT 15 + - + 85
----
-70

query I rowsort
SELECT 24 + + + 37
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5171
SELECT 34 + - MAX( 80 ) * - SUM( + 97 ), 66 AS col0
----
7794
66

skipif mysql # not compatible
query II rowsort label-5171
SELECT 34 + - MAX ( 80 ) * - SUM ( + 97 ), 66 AS col0
----
7794
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL 75 + + COUNT( * ) + - COUNT( * ) - - - 6 col2
----
69

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL 75 + + COUNT ( * ) + - COUNT ( * ) - - - 6 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT 50 - 44 * + COUNT( * ) + - + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-5173
SELECT 50 - 44 * + COUNT ( * ) + - + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT DISTINCT + COUNT( + 21 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT + COUNT ( + 21 ) + + COUNT ( * )
----
2

query I rowsort
SELECT ALL 68 * - 65 AS col2
----
-4420

query I rowsort
SELECT DISTINCT - 60 + - 69
----
-129

query I rowsort
SELECT ALL + 6 + + 60
----
66

query I rowsort
SELECT 49 + + - 3 AS col2
----
46

query I rowsort
SELECT ALL 32 * 87
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT 26 + - - SUM( - 33 )
----
-7

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT 26 + - - SUM ( - 33 )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5181
SELECT ALL 2 DIV - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL 2 / - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT ALL MIN( 86 ) - - 50 * - 51 + + 86 + + 18
----
-2360

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL MIN ( 86 ) - - 50 * - 51 + + 86 + + 18
----
-2360

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL - - CASE + + 67 WHEN + 73 THEN ( MIN( ALL + 76 ) ) WHEN - - COUNT( * ) THEN 75 * - COUNT( * ) + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL - - CASE + + 67 WHEN + 73 THEN ( MIN ( ALL + 76 ) ) WHEN - - COUNT ( * ) THEN 75 * - COUNT ( * ) + 33 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5184
SELECT 59 + + 58 DIV - MIN( - 35 )
----
60

skipif mysql # not compatible
query I rowsort label-5184
SELECT 59 + + 58 / - MIN ( - 35 )
----
60

query II rowsort
SELECT ALL - + 76 AS col1, + 70 AS col2
----
-76
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5186
SELECT + NULLIF ( - - 86, + + 54 * 36 / - 14 + + CAST( - 88 AS SIGNED ) )
----
86

skipif mysql # not compatible
query I rowsort label-5186
SELECT + NULLIF ( - - 86, + + 54 * 36 / - 14 + + CAST ( - 88 AS INTEGER ) )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT DISTINCT 99 - - SUM( DISTINCT + 3 ), COUNT( * ) AS col0
----
102
1

skipif mysql # not compatible
query II rowsort label-5187
SELECT DISTINCT 99 - - SUM ( DISTINCT + 3 ), COUNT ( * ) AS col0
----
102
1

query I rowsort
SELECT 28 + + + 6
----
34

query I rowsort
SELECT - 86 * + 70 AS col1
----
-6020

query I rowsort
SELECT ALL 26 * 56
----
1456

query I rowsort
SELECT - 9 + + 14
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT 8 DIV + 43 - + 66
----
-66

skipif mysql # not compatible
query I rowsort label-5192
SELECT 8 / + 43 - + 66
----
-66

query I rowsort
SELECT ALL 83 * + - 72
----
-5976

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT - + MAX( - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - + MAX ( - 41 )
----
41

query I rowsort
SELECT DISTINCT + ( + ( - + 83 ) ) AS col2
----
-83

query I rowsort
SELECT + 36 + - + 53
----
-17

query II rowsort
SELECT ALL - 28, + 10 AS col1
----
-28
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT COUNT( * ) DIV - - CASE - 57 WHEN - - SUM( - 3 ) THEN + 49 - - 91 + 99 * - 61 + - COUNT( * ) ELSE 57 END + - + 99 col1
----
-99

skipif mysql # not compatible
query I rowsort label-5198
SELECT COUNT ( * ) / - - CASE - 57 WHEN - - SUM ( - 3 ) THEN + 49 - - 91 + 99 * - 61 + - COUNT ( * ) ELSE 57 END + - + 99 col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT CAST( NULL AS SIGNED ) * - + 45 - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT CAST ( NULL AS INTEGER ) * - + 45 - 83 AS col0
----
NULL

query I rowsort
SELECT 61 + + 30 + 82 + + 2
----
175

onlyif mysql # aggregate syntax: 
query II rowsort label-5201
SELECT 83 AS col2, - COUNT( * ) AS col2
----
83
-1

skipif mysql # not compatible
query II rowsort label-5201
SELECT 83 AS col2, - COUNT ( * ) AS col2
----
83
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT - MAX( 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-5202
SELECT - MAX ( 2 )
----
-2

query I rowsort
SELECT 50 + - 14 + - + 56 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5204
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT CAST ( NULL AS REAL ) + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5205
SELECT - 44 AS col2, + 72 + SUM( DISTINCT - 86 )
----
-44
-14

skipif mysql # not compatible
query II rowsort label-5205
SELECT - 44 AS col2, + 72 + SUM ( DISTINCT - 86 )
----
-44
-14

query I rowsort
SELECT 69 * - 77 * + - 31
----
164703

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5207
SELECT ALL + 74 + CASE + 62 WHEN - 45 THEN - - 33 ELSE + ( - 60 ) END + 22 * 98 AS col2, - 49 + CAST( + 36 AS SIGNED ) + - 76 DIV 12 AS col2
----
2170
-19

skipif mysql # not compatible
query II rowsort label-5207
SELECT ALL + 74 + CASE + 62 WHEN - 45 THEN - - 33 ELSE + ( - 60 ) END + 22 * 98 AS col2, - 49 + CAST ( + 36 AS INTEGER ) + - 76 / 12 AS col2
----
2170
-19

query I rowsort
SELECT - CASE 51 WHEN - + 75 THEN + - ( - 24 ) + 37 * 39 - - 85 WHEN + 22 / - 14 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 85 + - 52
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL MAX( - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL MAX ( - 14 )
----
-14

query II rowsort
SELECT - 55 AS col0, 65 * 48 AS col1
----
-55
3120

query I rowsort
SELECT - 3 + 38 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT MAX( DISTINCT 23 )
----
23

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT MAX ( DISTINCT 23 )
----
23

query I rowsort
SELECT + 79 + - 11 col2
----
68

query I rowsort
SELECT - 67 * - 65 AS col0
----
4355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT CAST( - 93 AS SIGNED ) * COUNT( 10 ) * 54 + + - 49 + + 82 + + + CASE 88 WHEN - - MAX( DISTINCT - 54 ) THEN - + 95 WHEN - ( - MIN( ALL - 75 ) ) + + 59 THEN - - 83 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT CAST ( - 93 AS INTEGER ) * COUNT ( 10 ) * 54 + + - 49 + + 82 + + + CASE 88 WHEN - - MAX ( DISTINCT - 54 ) THEN - + 95 WHEN - ( - MIN ( ALL - 75 ) ) + + 59 THEN - - 83 END col0
----
NULL

query II rowsort
SELECT DISTINCT + 26 AS col2, 96 + + NULLIF ( + 81, - + 94 * + + 6 + - 32 + - - 36 * NULLIF ( 51, 91 * - 46 ) * + + 11 / - 45 * 88 ) - 39 AS col0
----
26
138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5218
SELECT ALL + CAST( NULL AS SIGNED ), 97 col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-5218
SELECT ALL + CAST ( NULL AS INTEGER ), 97 col1
----
NULL
97

query II rowsort
SELECT + - 58 AS col0, + 5 AS col1
----
-58
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT ALL - 44 * - NULLIF ( - CAST( 84 AS SIGNED ), + - 32 ) * + 97 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL - 44 * - NULLIF ( - CAST ( 84 AS INTEGER ), + - 32 ) * + 97 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + - 69 AS col0, - 12
----
-69
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT + COUNT( * ) * + 74 - - - ( - + 26 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-5222
SELECT + COUNT ( * ) * + 74 - - - ( - + 26 ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-5223
SELECT ALL + 94 AS col1, MAX( 8 )
----
94
8

skipif mysql # not compatible
query II rowsort label-5223
SELECT ALL + 94 AS col1, MAX ( 8 )
----
94
8

query III rowsort
SELECT + 32, - 29 col1, + - 0 AS col2
----
32
-29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + COUNT( * ) + - 4 * + - ( + ( 0 ) ) * + 14
----
1

skipif mysql # not compatible
query I rowsort label-5225
SELECT + COUNT ( * ) + - 4 * + - ( + ( 0 ) ) * + 14
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT - ( 97 ) * - + 42 - - SUM( + 14 ) + + 20 AS col2
----
4108

skipif mysql # not compatible
query I rowsort label-5226
SELECT - ( 97 ) * - + 42 - - SUM ( + 14 ) + + 20 AS col2
----
4108

query I rowsort
SELECT ALL + + 10 col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT ALL 28 DIV + 92 * - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL 28 / + 92 * - 42 AS col2
----
0

query II rowsort
SELECT - + 79 * - - 57 - + 76 + - 39 AS col2, CASE + ( - 70 ) WHEN 51 THEN NULL WHEN - 17 / - 14 * + - 57 + - 94 THEN 21 END
----
-4618
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5230
SELECT ALL - 12 DIV 47 * CAST( - COUNT( * ) AS SIGNED ) * - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL - 12 / 47 * CAST ( - COUNT ( * ) AS INTEGER ) * - 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5231
SELECT + - 7 * - 22, - COUNT( * ) + MAX( DISTINCT + 5 ) AS col1
----
154
4

skipif mysql # not compatible
query II rowsort label-5231
SELECT + - 7 * - 22, - COUNT ( * ) + MAX ( DISTINCT + 5 ) AS col1
----
154
4

query I rowsort
SELECT + + 32 * 3
----
96

query II rowsort
SELECT DISTINCT + - 99, - 1 AS col2
----
-99
-1

query II rowsort
SELECT + 67, 63 AS col0
----
67
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT + SUM( 44 ) * + - 6
----
-264

skipif mysql # not compatible
query I rowsort label-5235
SELECT + SUM ( 44 ) * + - 6
----
-264

query I rowsort
SELECT + 56 * - 22 AS col2
----
-1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5237
SELECT - - 22 AS col0, + 45 + - 4 DIV - COUNT( * ) + + + COUNT( * ) + - - 34
----
22
84

skipif mysql # not compatible
query II rowsort label-5237
SELECT - - 22 AS col0, + 45 + - 4 / - COUNT ( * ) + + + COUNT ( * ) + - - 34
----
22
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL 99 + + + COUNT( * ) + + 48 + - + COUNT( * ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL 99 + + + COUNT ( * ) + + 48 + - + COUNT ( * ) AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT - 66 * - + 4 - + + COUNT( * ) + - - COALESCE ( + 33, - 32 )
----
296

skipif mysql # not compatible
query I rowsort label-5239
SELECT - 66 * - + 4 - + + COUNT ( * ) + - - COALESCE ( + 33, - 32 )
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL 69 * - + NULLIF ( - 1, - 27 * + 9 + 71 * + + MAX( 55 ) + - - ( - 70 ) + - + 66 )
----
69

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL 69 * - + NULLIF ( - 1, - 27 * + 9 + 71 * + + MAX ( 55 ) + - - ( - 70 ) + - + 66 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT + 81 * COUNT( DISTINCT + 38 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-5241
SELECT + 81 * COUNT ( DISTINCT + 38 ) col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5242
SELECT ALL MAX( DISTINCT - - 68 ), + 67 * 80 AS col1
----
68
5360

skipif mysql # not compatible
query II rowsort label-5242
SELECT ALL MAX ( DISTINCT - - 68 ), + 67 * 80 AS col1
----
68
5360

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - ( + ( COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5243
SELECT - ( + ( COUNT ( * ) ) ) AS col0
----
-1

query I rowsort
SELECT ALL 39 + + NULLIF ( - 26, + 0 + + 47 ) * 78
----
-1989

query I rowsort
SELECT DISTINCT 98 + 35 - 11 * - - 44 AS col2
----
-351

query I rowsort
SELECT + NULLIF ( - 69, + 81 / - ( + + 44 ) ) + + 70 * - 57 + + + 5 AS col0
----
-4054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5247
SELECT - NULLIF ( + + 56, + 93 ) DIV - + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-5247
SELECT - NULLIF ( + + 56, + 93 ) / - + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT + COUNT( * ) * + 36 col1
----
36

skipif mysql # not compatible
query I rowsort label-5248
SELECT + COUNT ( * ) * + 36 col1
----
36

query I rowsort
SELECT + 74 + + - 72
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL - COUNT( * ) - + - 77
----
76

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL - COUNT ( * ) - + - 77
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL + CASE 61 WHEN - - 42 THEN + 33 * COALESCE ( COUNT( * ), 43 * - + 37 ) - COUNT( * ) ELSE CAST( NULL AS SIGNED ) - ( 91 ) * + 97 END * + - 82 * - + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL + CASE 61 WHEN - - 42 THEN + 33 * COALESCE ( COUNT ( * ), 43 * - + 37 ) - COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) - ( 91 ) * + 97 END * + - 82 * - + 47 AS col0
----
NULL

query I rowsort
SELECT ALL - 16 * - - 97 * - 2 AS col1
----
3104

query I rowsort
SELECT - 44 + + 78 + + 35 * + 27 AS col2
----
979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5254
SELECT ALL 49 - COUNT( * ) + - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL 49 - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT DISTINCT ( + CAST( + AVG ( ALL + + 81 ) AS SIGNED ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT ( + CAST ( + AVG ( ALL + + 81 ) AS INTEGER ) ) AS col0
----
81

query I rowsort
SELECT - 20 + - ( + + 97 ) + 67 - - - 58 AS col2
----
-108

query I rowsort
SELECT ALL 26 * + 73 * - 60 * + 9
----
-1024920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5258
SELECT + COUNT( * ) + + - COALESCE ( 18, + + 88 + - - 59 - - COUNT( - - 70 ) * - + 52, + 80 ) DIV + - NULLIF ( + + 64, + + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-5258
SELECT + COUNT ( * ) + + - COALESCE ( 18, + + 88 + - - 59 - - COUNT ( - - 70 ) * - + 52, + 80 ) / + - NULLIF ( + + 64, + + 45 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT - 79 DIV + 94 - 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5259
SELECT - 79 / + 94 - 47 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL + SUM( DISTINCT - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + SUM ( DISTINCT - 4 )
----
-4

query I rowsort
SELECT - 16 + + 93 + + 13 * 55 AS col0
----
792

query I rowsort
SELECT ALL + ( - ( + + 53 ) )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT - 5 * + COUNT( * ) AS col2, - 80
----
-5
-80

skipif mysql # not compatible
query II rowsort label-5263
SELECT - 5 * + COUNT ( * ) AS col2, - 80
----
-5
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL 70 * - COUNT( * ) + - 35 col0
----
-105

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL 70 * - COUNT ( * ) + - 35 col0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT - - 70 - + + 86 * - 63 * - + 39 + - - MIN( ALL - + 95 )
----
-211327

skipif mysql # not compatible
query I rowsort label-5265
SELECT - - 70 - + + 86 * - 63 * - + 39 + - - MIN ( ALL - + 95 )
----
-211327

onlyif mysql # DIV for integer division: 
query I rowsort label-5266
SELECT ALL + 6 * 0 DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + 6 * 0 / + 80 AS col0
----
0

query II rowsort
SELECT - - 0 + 85, - ( 10 ) AS col1
----
85
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL - ( - 27 ) * - COALESCE ( - + MAX( ( - 14 ) ), - 49 ) + 61 AS col0
----
-317

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - ( - 27 ) * - COALESCE ( - + MAX ( ( - 14 ) ), - 49 ) + 61 AS col0
----
-317

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5269
SELECT ALL 91 * - - ( COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) ) + + 93 + - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL 91 * - - ( COUNT ( DISTINCT CAST ( NULL AS REAL ) ) ) + + 93 + - COUNT ( * ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5270
SELECT - - CAST( NULL AS SIGNED ) + + COUNT( * ) + 66 * - - CAST( + ( 14 ) AS SIGNED ) * 47 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + 66 * - - CAST ( + ( 14 ) AS INTEGER ) * 47 * + 7
----
NULL

query I rowsort
SELECT DISTINCT - 3 * + 9
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL + - COUNT( * ) * 3
----
-3

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL + - COUNT ( * ) * 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT NULLIF ( NULLIF ( MIN( 84 ), COUNT( * ) * + NULLIF ( - 6, + + 86 / + 84 * - 66 ) + + 83 * - + 74 + + 82 + - COALESCE ( - 72, - - 1, + - 53 ) ), 47 - MIN( - 31 ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5273
SELECT NULLIF ( NULLIF ( MIN ( 84 ), COUNT ( * ) * + NULLIF ( - 6, + + 86 / + 84 * - 66 ) + + 83 * - + 74 + + 82 + - COALESCE ( - 72, - - 1, + - 53 ) ), 47 - MIN ( - 31 ) ) AS col2
----
84

query I rowsort
SELECT DISTINCT + ( + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT 61 * COUNT( * ) + - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT 61 * COUNT ( * ) + - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5276
SELECT ALL COUNT( * ) * 18 + ( + COUNT( * ) ) + - 57 + + + 97 + + 9 * - + ( + + 74 ) DIV + 37 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL COUNT ( * ) * 18 + ( + COUNT ( * ) ) + - 57 + + + 97 + + 9 * - + ( + + 74 ) / + 37 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT + ( - COALESCE ( COUNT( * ), COUNT( * ) + + 14 ) ) * 95 + - - 99 + + - 13 + + 62
----
53

skipif mysql # not compatible
query I rowsort label-5277
SELECT + ( - COALESCE ( COUNT ( * ), COUNT ( * ) + + 14 ) ) * 95 + - - 99 + + - 13 + + 62
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT + COUNT( * ) + + 91 * + - 2 AS col1
----
-181

skipif mysql # not compatible
query I rowsort label-5278
SELECT + COUNT ( * ) + + 91 * + - 2 AS col1
----
-181

query I rowsort
SELECT DISTINCT 51 * + 46 AS col2
----
2346

query II rowsort
SELECT 54, ( + 2 ) AS col0
----
54
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT COALESCE ( 10, + + SUM( ALL - 33 ), COUNT( * ) * - - CAST( 22 AS SIGNED ) - 94 + + COUNT( ALL 17 ) ) + - 3 * - 68 AS col0
----
214

skipif mysql # not compatible
query I rowsort label-5281
SELECT COALESCE ( 10, + + SUM ( ALL - 33 ), COUNT ( * ) * - - CAST ( 22 AS INTEGER ) - 94 + + COUNT ( ALL 17 ) ) + - 3 * - 68 AS col0
----
214

query I rowsort
SELECT ALL 86 * 58 AS col1
----
4988

query I rowsort
SELECT ALL + 38 * 86 AS col2
----
3268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT COALESCE ( - 78, + 83 * + 12 - - 60 - - 81 - CAST( NULL AS SIGNED ) * + 59 ) * 9 AS col0
----
-702

skipif mysql # not compatible
query I rowsort label-5284
SELECT COALESCE ( - 78, + 83 * + 12 - - 60 - - 81 - CAST ( NULL AS INTEGER ) * + 59 ) * 9 AS col0
----
-702

query II rowsort
SELECT - 17 AS col1, + ( - 96 )
----
-17
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5286
SELECT DISTINCT COUNT( + 46 ) DIV 77 col0
----
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT COUNT ( + 46 ) / 77 col0
----
0

query I rowsort
SELECT ALL - ( - 9 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT + 13 * + COALESCE ( + 66, - + COALESCE ( COUNT( * ), + - CAST( NULL AS SIGNED ) ) + ( - 42 ), + + 94 )
----
858

skipif mysql # not compatible
query I rowsort label-5288
SELECT + 13 * + COALESCE ( + 66, - + COALESCE ( COUNT ( * ), + - CAST ( NULL AS INTEGER ) ) + ( - 42 ), + + 94 )
----
858

query I rowsort
SELECT ALL - 62 * - 15 * + 86 AS col1
----
79980

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT ALL 22 DIV - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL 22 / - 63 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL - 70 * - 17 * - 69 * - - 15 / + CAST( NULL AS SIGNED ) * + 16 * + - 32 + - 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - 70 * - 17 * - 69 * - - 15 / + CAST ( NULL AS INTEGER ) * + 16 * + - 32 + - 45 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT MAX( DISTINCT - 44 ) * 4 + + 19 * + MIN( DISTINCT - + 35 ) AS col0
----
-841

skipif mysql # not compatible
query I rowsort label-5292
SELECT MAX ( DISTINCT - 44 ) * 4 + + 19 * + MIN ( DISTINCT - + 35 ) AS col0
----
-841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT - 80 * COUNT( ALL CAST( 38 AS SIGNED ) ) * - 91 * + + 36 + 4 + - - 17 + - 15 * CAST( NULL AS SIGNED ) * + 46 * 39 * - - 94 * + 4 + + 91 * - + SUM( ALL - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT - 80 * COUNT ( ALL CAST ( 38 AS INTEGER ) ) * - 91 * + + 36 + 4 + - - 17 + - 15 * CAST ( NULL AS INTEGER ) * + 46 * 39 * - - 94 * + 4 + + 91 * - + SUM ( ALL - 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL 50 * + 15 * COUNT( * ) * COUNT( * )
----
750

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL 50 * + 15 * COUNT ( * ) * COUNT ( * )
----
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5295
SELECT - CAST( - + 78 AS SIGNED ) / - + CAST( NULL AS SIGNED ) + - 73 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT - CAST ( - + 78 AS INTEGER ) / - + CAST ( NULL AS INTEGER ) + - 73 + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 79 + - 70
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT COUNT( * ) * - COUNT( * ) * - 39 - + 77 col2
----
-38

skipif mysql # not compatible
query I rowsort label-5297
SELECT COUNT ( * ) * - COUNT ( * ) * - 39 - + 77 col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5298
SELECT COUNT( * ) * + COUNT( * ) * - CASE + - 55 WHEN - 71 + + 37 + + 0 + 83 THEN NULL WHEN - 58 THEN + 55 + + 31 WHEN + CAST( NULL AS DECIMAL ) THEN - - 72 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT COUNT ( * ) * + COUNT ( * ) * - CASE + - 55 WHEN - 71 + + 37 + + 0 + 83 THEN NULL WHEN - 58 THEN + 55 + + 31 WHEN + CAST ( NULL AS REAL ) THEN - - 72 END col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5299
SELECT - 80 DIV - 65 + - 94 AS col2, + 2 AS col2
----
-93
2

skipif mysql # not compatible
query II rowsort label-5299
SELECT - 80 / - 65 + - 94 AS col2, + 2 AS col2
----
-93
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT - 79 AS col2, COUNT( DISTINCT - 85 )
----
-79
1

skipif mysql # not compatible
query II rowsort label-5300
SELECT - 79 AS col2, COUNT ( DISTINCT - 85 )
----
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL - + SUM( ALL + 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - + SUM ( ALL + 71 ) AS col1
----
-71

query II rowsort
SELECT 83 AS col1, 89 AS col0
----
83
89

query I rowsort
SELECT DISTINCT 61 + - 25
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5304
SELECT ALL + + MAX( - 52 ) * - + COUNT( * ) / 49 - + - ( COUNT( * ) ) * - NULLIF ( + - CAST( NULL AS SIGNED ), - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + + MAX ( - 52 ) * - + COUNT ( * ) / 49 - + - ( COUNT ( * ) ) * - NULLIF ( + - CAST ( NULL AS INTEGER ), - 6 )
----
NULL

query II rowsort
SELECT + + 39, + 72 AS col0
----
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL + ( + SUM( + + 68 ) ) + 72 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + ( + SUM ( + + 68 ) ) + 72 AS col1
----
140

query I rowsort
SELECT DISTINCT + 5 + 4 + + - 37
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5308
SELECT DISTINCT - COALESCE ( - 41, - + 23 * - 78 + + + NULLIF ( 84, 95 ) ), + 40 + + COUNT( * )
----
41
41

skipif mysql # not compatible
query II rowsort label-5308
SELECT DISTINCT - COALESCE ( - 41, - + 23 * - 78 + + + NULLIF ( 84, 95 ) ), + 40 + + COUNT ( * )
----
41
41

query I rowsort
SELECT 43 * 84 * - 85
----
-307020

query I rowsort
SELECT ALL + 15 * + - 14 col0
----
-210

query I rowsort
SELECT DISTINCT + 97 * 24
----
2328

query I rowsort
SELECT 68 * + - 94 AS col1
----
-6392

query I rowsort
SELECT DISTINCT + 98 * + 75
----
7350

onlyif mysql # aggregate syntax: 
query II rowsort label-5314
SELECT ALL + 43 - + 90 - MAX( 2 ) AS col1, 73
----
-49
73

skipif mysql # not compatible
query II rowsort label-5314
SELECT ALL + 43 - + 90 - MAX ( 2 ) AS col1, 73
----
-49
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT ALL 38 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL 38 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 94 * 39 AS col0
----
3666

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT ALL 56 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL 56 / 50
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5318
SELECT 0 DIV - + 7
----
0

skipif mysql # not compatible
query I rowsort label-5318
SELECT 0 / - + 7
----
0

query I rowsort
SELECT 84 + + 55
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT 19 - + MAX( ALL 20 ) + + - 10 DIV - 68 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5320
SELECT 19 - + MAX ( ALL 20 ) + + - 10 / - 68 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT DISTINCT - MIN( + 63 ) AS col0, - COUNT( * ) * 11
----
-63
-11

skipif mysql # not compatible
query II rowsort label-5321
SELECT DISTINCT - MIN ( + 63 ) AS col0, - COUNT ( * ) * 11
----
-63
-11

query I rowsort
SELECT + 28 + + 44
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT - 37 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT - 37 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 81 + - + 77 - - - 83 + 18 + - - 19
----
-42

query II rowsort
SELECT ALL + - 12 * - COALESCE ( - 2, + + 83 ) * + 32, 93 + - 24 * - 96 * 23 AS col0
----
-768
53085

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT COALESCE ( + NULLIF ( - 75, - 97 ), - 0 + - NULLIF ( 94, + 0 ) ) * MAX( DISTINCT + 37 )
----
-2775

skipif mysql # not compatible
query I rowsort label-5326
SELECT COALESCE ( + NULLIF ( - 75, - 97 ), - 0 + - NULLIF ( 94, + 0 ) ) * MAX ( DISTINCT + 37 )
----
-2775

query I rowsort
SELECT ALL 34 + - 50 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5328
SELECT ALL - 14 + 56 DIV COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - 14 + 56 / COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5329
SELECT ALL MIN( ALL - - 82 ) AS col0, ( + 6 ) * + 31 * ( + 29 ) + - 97 AS col2
----
82
5297

skipif mysql # not compatible
query II rowsort label-5329
SELECT ALL MIN ( ALL - - 82 ) AS col0, ( + 6 ) * + 31 * ( + 29 ) + - 97 AS col2
----
82
5297

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT 92 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-5330
SELECT 92 / 63
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5331
SELECT 70 DIV 85 * COUNT( * ) * - - 81 + + 36
----
36

skipif mysql # not compatible
query I rowsort label-5331
SELECT 70 / 85 * COUNT ( * ) * - - 81 + + 36
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5332
SELECT + COUNT( * ) DIV 89 + ( + 87 ) + - 72 DIV + - 84 * + + 65 * + CAST( + 78 AS SIGNED ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5332
SELECT + COUNT ( * ) / 89 + ( + 87 ) + - 72 / + - 84 * + + 65 * + CAST ( + 78 AS INTEGER ) AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT + CAST( NULL AS SIGNED ) + - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT + CAST ( NULL AS INTEGER ) + - 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5334
SELECT ALL + MAX( DISTINCT - 97 ) DIV - - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL + MAX ( DISTINCT - 97 ) / - - 98 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5335
SELECT ALL + 8 * + COALESCE ( - 89, + CAST( NULL AS SIGNED ) DIV SUM( ALL - 43 ) ) + + + 1 AS col2
----
-711

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL + 8 * + COALESCE ( - 89, + CAST ( NULL AS INTEGER ) / SUM ( ALL - 43 ) ) + + + 1 AS col2
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT + 56 * - COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT + 56 * - COUNT ( * ) AS col1
----
-56

query I rowsort
SELECT DISTINCT + 65 * + 14 - - 59 - CASE - 16 WHEN - 56 + - + 40 THEN + 94 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5338
SELECT ALL 50 DIV COUNT( ALL 14 ) * 48 * 53
----
127200

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL 50 / COUNT ( ALL 14 ) * 48 * 53
----
127200

query II rowsort
SELECT DISTINCT + 65 * - ( - 66 ) * - + 47 * + 75 + - 5 + + - 40, 27 AS col0
----
-15122295
27

query I rowsort
SELECT ALL - NULLIF ( + 58, + 3 ) col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT ALL - ( + 41 ) * + CAST( - 2 AS SIGNED ) * 84 + + MIN( DISTINCT + 64 )
----
6952

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL - ( + 41 ) * + CAST ( - 2 AS INTEGER ) * 84 + + MIN ( DISTINCT + 64 )
----
6952

query I rowsort
SELECT - 23 * - - 33 + + 93 * 13 + 36
----
486

query II rowsort
SELECT ALL + 14, + 8 * - + 1 + - + 67 AS col2
----
14
-75

query I rowsort
SELECT 47 * + - NULLIF ( 95, 5 / - 37 ) + - - 16 * - - COALESCE ( + 67, + 11 * 4 * + 26 * 70, 92 * 70 )
----
-3393

query II rowsort
SELECT 10 * 33 - - NULLIF ( - 89, + + 65 ) col0, + 83 + - - 19 AS col1
----
241
102

query I rowsort
SELECT DISTINCT 22 * + 18 - + 30
----
366

query I rowsort
SELECT ALL + NULLIF ( - - 82, + - 60 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT - ( - MIN( ALL + 60 ) ) * + 58 * + 2 * MAX( ALL + 46 ) AS col1
----
320160

skipif mysql # not compatible
query I rowsort label-5348
SELECT - ( - MIN ( ALL + 60 ) ) * + 58 * + 2 * MAX ( ALL + 46 ) AS col1
----
320160

query I rowsort
SELECT ALL + ( 76 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + MIN( ALL + 64 ) * - 41 + SUM( - 81 )
----
-2705

skipif mysql # not compatible
query I rowsort label-5350
SELECT + MIN ( ALL + 64 ) * - 41 + SUM ( - 81 )
----
-2705

query II rowsort
SELECT ALL COALESCE ( - - 22, 6 ) AS col2, 35 * + + COALESCE ( + + 77, - 8 * + - 91 - 9 )
----
22
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL - 57 * - ( + - COUNT( * ) ) * + + 6 * + 95 AS col2
----
-32490

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - 57 * - ( + - COUNT ( * ) ) * + + 6 * + 95 AS col2
----
-32490

query I rowsort
SELECT - 21 + + 82 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT - COALESCE ( + + 4, + 1 - 87, MAX( ALL - - 46 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-5354
SELECT - COALESCE ( + + 4, + 1 - 87, MAX ( ALL - - 46 ) )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT - 38 + + + CAST( + 43 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-5355
SELECT - 38 + + + CAST ( + 43 AS INTEGER )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL MIN( + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL MIN ( + 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL MIN( + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL MIN ( + 23 )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT - 85 * MAX( + 96 ) AS col2, 79
----
-8160
79

skipif mysql # not compatible
query II rowsort label-5358
SELECT - 85 * MAX ( + 96 ) AS col2, 79
----
-8160
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5359
SELECT - 91 + + + NULLIF ( - 84, + + CAST( + 64 AS DECIMAL ) / - 76 )
----
-175

skipif mysql # not compatible
query I rowsort label-5359
SELECT - 91 + + + NULLIF ( - 84, + + CAST ( + 64 AS REAL ) / - 76 )
----
-175

query I rowsort
SELECT ALL - ( + + 10 ) * + - 99 - - + 11
----
1001

query I rowsort
SELECT DISTINCT - 40 + + 61 + 13 AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5362
SELECT - - 40 * + - 62 DIV COUNT( * ) * + 92 AS col0
----
-228160

skipif mysql # not compatible
query I rowsort label-5362
SELECT - - 40 * + - 62 / COUNT ( * ) * + 92 AS col0
----
-228160

query I rowsort
SELECT ALL - 34 + 2
----
-32

query II rowsort
SELECT 57 AS col1, 64 * - + 43 + - 62
----
57
-2814

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT DISTINCT - MAX( - 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT - MAX ( - 43 ) AS col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT - - 90 DIV - 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5366
SELECT - - 90 / - 61 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5367
SELECT ALL - 85 + - 23 + + 72 / - SUM( ALL - 28 ) * SUM( - 78 ) + - 32 - + 3 + + CAST( NULL AS SIGNED ) / + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL - 85 + - 23 + + 72 / - SUM ( ALL - 28 ) * SUM ( - 78 ) + - 32 - + 3 + + CAST ( NULL AS INTEGER ) / + 10
----
NULL

query I rowsort
SELECT - - 79 - + 74 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + SUM( DISTINCT - 74 ) * - + NULLIF ( 16, + 44 / - 84 ) col2
----
1184

skipif mysql # not compatible
query I rowsort label-5369
SELECT + SUM ( DISTINCT - 74 ) * - + NULLIF ( 16, + 44 / - 84 ) col2
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - + 4 * - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5370
SELECT - + 4 * - COUNT ( * )
----
4

query I rowsort
SELECT ALL 68 + COALESCE ( - + 51, 0 + - 87 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5372
SELECT COALESCE ( + CASE + NULLIF ( + 7, - + 94 ) WHEN 71 + - ( - - 27 ) THEN - 28 END, - COUNT( * ) ) col2, + ( 16 ) * + + 42
----
-1
672

skipif mysql # not compatible
query II rowsort label-5372
SELECT COALESCE ( + CASE + NULLIF ( + 7, - + 94 ) WHEN 71 + - ( - - 27 ) THEN - 28 END, - COUNT ( * ) ) col2, + ( 16 ) * + + 42
----
-1
672

onlyif mysql # DIV for integer division: 
query II rowsort label-5373
SELECT DISTINCT CASE AVG ( DISTINCT - 56 ) WHEN - 25 THEN - 43 END AS col1, 63 DIV 43 + + 99 * - 23 col1
----
NULL
-2276

skipif mysql # not compatible
query II rowsort label-5373
SELECT DISTINCT CASE AVG ( DISTINCT - 56 ) WHEN - 25 THEN - 43 END AS col1, 63 / 43 + + 99 * - 23 col1
----
NULL
-2276

query I rowsort
SELECT DISTINCT + 91 - + + 84 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5375
SELECT ALL - CAST( NULL AS SIGNED ) * - CASE + COUNT( * ) WHEN - 67 THEN NULL WHEN - 64 / - ( + 32 ) * - - 35 + + ( MAX( ALL + 89 ) ) * - - 89 - 34 * - - CAST( - 13 AS DECIMAL ) + 18 THEN 30 ELSE NULL END * - - 89, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5375
SELECT ALL - CAST ( NULL AS INTEGER ) * - CASE + COUNT ( * ) WHEN - 67 THEN NULL WHEN - 64 / - ( + 32 ) * - - 35 + + ( MAX ( ALL + 89 ) ) * - - 89 - 34 * - - CAST ( - 13 AS REAL ) + 18 THEN 30 ELSE NULL END * - - 89, - COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT + - 22 + + 58 * + 5 * + 45 AS col2
----
13028

onlyif mysql # aggregate syntax: 
query II rowsort label-5377
SELECT DISTINCT - - 42 * 63 * - 83, NULLIF ( - MAX( - 12 ), SUM( 61 ) ) AS col2
----
-219618
12

skipif mysql # not compatible
query II rowsort label-5377
SELECT DISTINCT - - 42 * 63 * - 83, NULLIF ( - MAX ( - 12 ), SUM ( 61 ) ) AS col2
----
-219618
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT - 21 * + COUNT( + 17 ) + - + 97
----
-118

skipif mysql # not compatible
query I rowsort label-5378
SELECT - 21 * + COUNT ( + 17 ) + - + 97
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5379
SELECT + COUNT( * ) + + 48 DIV 64 * + 3 * - + 60 * + 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5379
SELECT + COUNT ( * ) + + 48 / 64 * + 3 * - + 60 * + 67 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT 49 * - 88 * + + COUNT( 22 ) - + + 68 + - - 71
----
-4309

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT 49 * - 88 * + + COUNT ( 22 ) - + + 68 + - - 71
----
-4309

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5381
SELECT ALL + 23 AS col1, - 5 DIV - - 47 + + MAX( DISTINCT - 68 )
----
23
-68

skipif mysql # not compatible
query II rowsort label-5381
SELECT ALL + 23 AS col1, - 5 / - - 47 + + MAX ( DISTINCT - 68 )
----
23
-68

query I rowsort
SELECT + 99 * - 47 AS col2
----
-4653

query I rowsort
SELECT + 4 + - 73
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT + CAST( - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-5384
SELECT + CAST ( - 5 AS INTEGER )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT DISTINCT 28 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT 28 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 63 * + 90 AS col2
----
5670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5387
SELECT + 49 * - 79 * + 51 / 27 + - COUNT( * ) + + COUNT( * ) * CAST( - CASE + - 23 WHEN + 10 THEN - MAX( - 78 ) * - - 88 + - ( + 40 ) - + 88 WHEN - COUNT( * ) + - CAST( NULL AS SIGNED ) + + CAST( + 33 AS SIGNED ) + + - 92 THEN + 52 / + 22 + 78 END AS SIGNED ) * + COUNT( * ) + + - 30 * + - 22 + + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT + 49 * - 79 * + 51 / 27 + - COUNT ( * ) + + COUNT ( * ) * CAST ( - CASE + - 23 WHEN + 10 THEN - MAX ( - 78 ) * - - 88 + - ( + 40 ) - + 88 WHEN - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + CAST ( + 33 AS INTEGER ) + + - 92 THEN + 52 / + 22 + 78 END AS INTEGER ) * + COUNT ( * ) + + - 30 * + - 22 + + 45 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5388
SELECT DISTINCT 92 DIV - - 41 AS col0, ( - 54 ) * 87 + + - 51
----
2
-4749

skipif mysql # not compatible
query II rowsort label-5388
SELECT DISTINCT 92 / - - 41 AS col0, ( - 54 ) * 87 + + - 51
----
2
-4749

query II rowsort
SELECT DISTINCT + 36 AS col0, 89 col1
----
36
89

query I rowsort
SELECT ALL 4 * - 85 + - + 85 * + + 2 * - ( - 41 ) + 38 AS col1
----
-7272

onlyif mysql # aggregate syntax: 
query II rowsort label-5391
SELECT + COUNT( * ) - 51 AS col1, 4
----
-50
4

skipif mysql # not compatible
query II rowsort label-5391
SELECT + COUNT ( * ) - 51 AS col1, 4
----
-50
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5392
SELECT + 97 * 19 AS col0, - COALESCE ( - COUNT( * ), - 11 + 98 DIV 16 ) - + 13 * + 10 AS col1
----
1843
-129

skipif mysql # not compatible
query II rowsort label-5392
SELECT + 97 * 19 AS col0, - COALESCE ( - COUNT ( * ), - 11 + 98 / 16 ) - + 13 * + 10 AS col1
----
1843
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT NULLIF ( - + COUNT( * ), - 36 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5393
SELECT NULLIF ( - + COUNT ( * ), - 36 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT ALL 20 * - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL 20 * - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL 85 * + MAX( - 35 ) AS col2
----
-2975

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL 85 * + MAX ( - 35 ) AS col2
----
-2975

query I rowsort
SELECT ALL - ( + 67 ) * 65 + + 82 + + 27 AS col0
----
-4246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT + 55 - CAST( NULL AS SIGNED ) * + 18 * + 0 - 24 + + 17 + COUNT( * ) / - + 76 + 66 * 17 + + ( - + 2 ) + + - 71 + - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT + 55 - CAST ( NULL AS INTEGER ) * + 18 * + 0 - 24 + + 17 + COUNT ( * ) / - + 76 + 66 * 17 + + ( - + 2 ) + + - 71 + - 59 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5399
SELECT ALL - MAX( ALL - 56 ) + - - 27 DIV - 10
----
54

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - MAX ( ALL - 56 ) + - - 27 / - 10
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5400
SELECT COUNT( * ), + 59 AS col2
----
1
59

skipif mysql # not compatible
query II rowsort label-5400
SELECT COUNT ( * ), + 59 AS col2
----
1
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT + CAST( 79 AS SIGNED ) + CAST( NULL AS SIGNED ) / + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT + CAST ( 79 AS INTEGER ) + CAST ( NULL AS INTEGER ) / + - 89
----
NULL

query I rowsort
SELECT + 99 + + + 16 + 29 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT - MAX( ALL - 41 ) - 85 col0
----
-44

skipif mysql # not compatible
query I rowsort label-5403
SELECT - MAX ( ALL - 41 ) - 85 col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT - CAST( NULL AS SIGNED ) + + + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT - CAST ( NULL AS INTEGER ) + + + 79 AS col0
----
NULL

query I rowsort
SELECT - + 67 + + + 86 * - ( - - 80 )
----
-6947

query I rowsort
SELECT - - 92 + 52 * - + 94 + - - 66 AS col2
----
-4730

onlyif mysql # aggregate syntax: 
query III rowsort label-5407
SELECT DISTINCT - 88, + 32 AS col2, 6 + - + SUM( - ( + + 30 ) ) AS col2
----
-88
32
36

skipif mysql # not compatible
query III rowsort label-5407
SELECT DISTINCT - 88, + 32 AS col2, 6 + - + SUM ( - ( + + 30 ) ) AS col2
----
-88
32
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5408
SELECT DISTINCT + MAX( ALL + 95 ) DIV 89
----
1

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT + MAX ( ALL + 95 ) / 89
----
1

query I rowsort
SELECT - 98 * + 6 * 95 * - + 49 - + + 0 + + 68
----
2737208

query I rowsort
SELECT 68 * + + NULLIF ( - 87, 96 ) AS col1
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL 87 * + ( - - SUM( ALL + 70 ) ) * + 74 AS col1
----
450660

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL 87 * + ( - - SUM ( ALL + 70 ) ) * + 74 AS col1
----
450660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT 94 * - ( CAST( - NULLIF ( + + COUNT( + + 28 ), + 65 + - - ( - 63 ) ) AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-5412
SELECT 94 * - ( CAST ( - NULLIF ( + + COUNT ( + + 28 ), + 65 + - - ( - 63 ) ) AS INTEGER ) )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5413
SELECT ALL - 84 + + SUM( - 53 ) - + 83 - 23 DIV 67 * 72 + - - 17 AS col0, + 59 + + COUNT( * ) AS col2
----
-203
60

skipif mysql # not compatible
query II rowsort label-5413
SELECT ALL - 84 + + SUM ( - 53 ) - + 83 - 23 / 67 * 72 + - - 17 AS col0, + 59 + + COUNT ( * ) AS col2
----
-203
60

query I rowsort
SELECT ALL + 21 + 88 AS col1
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT + 44 * + 19 * + - 54 + 33 + + - ( - - 23 ) / 29 / + + CAST( NULL AS SIGNED ) * - + ( - 96 ) + 98 * - - 24 * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT + 44 * + 19 * + - 54 + 33 + + - ( - - 23 ) / 29 / + + CAST ( NULL AS INTEGER ) * - + ( - 96 ) + 98 * - - 24 * + 90
----
NULL

query I rowsort
SELECT 77 - 80
----
-3

query I rowsort
SELECT DISTINCT 21 + - - 85 * 71 * 55 * + 94
----
31200971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5418
SELECT COUNT( * ) + - 68 + + 4 DIV + 99
----
-67

skipif mysql # not compatible
query I rowsort label-5418
SELECT COUNT ( * ) + - 68 + + 4 / + 99
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT 22 * CASE 70 WHEN + 31 THEN COUNT( * ) END + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT 22 * CASE 70 WHEN + 31 THEN COUNT ( * ) END + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL ( 14 ) * - - COUNT( * ) * + - 94 AS col1
----
-1316

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL ( 14 ) * - - COUNT ( * ) * + - 94 AS col1
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT NULLIF ( + ( 62 ), + 23 ) + + 75 + 17 * - 60 * + + COUNT( * ) + - + 98 AS col2
----
-981

skipif mysql # not compatible
query I rowsort label-5421
SELECT NULLIF ( + ( 62 ), + 23 ) + + 75 + 17 * - 60 * + + COUNT ( * ) + - + 98 AS col2
----
-981

query I rowsort
SELECT ALL NULLIF ( - 92, - 40 ) + + 77 col0
----
-15

query I rowsort
SELECT ( - 58 ) * + 30
----
-1740

query I rowsort
SELECT 67 * - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5425
SELECT + 39 + + 8 AS col2, COUNT( * ) AS col1
----
47
1

skipif mysql # not compatible
query II rowsort label-5425
SELECT + 39 + + 8 AS col2, COUNT ( * ) AS col1
----
47
1

query I rowsort
SELECT ALL + 26 * - + 89 * + 74 + 30
----
-171206

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL ( - SUM( + + 11 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL ( - SUM ( + + 11 ) ) AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5428
SELECT - COALESCE ( - 8, COUNT( * ) ) * + + COUNT( CAST( NULL AS DECIMAL ) ) + + 58
----
58

skipif mysql # not compatible
query I rowsort label-5428
SELECT - COALESCE ( - 8, COUNT ( * ) ) * + + COUNT ( CAST ( NULL AS REAL ) ) + + 58
----
58

query I rowsort
SELECT + ( + 4 ) * - - 83 + - ( 12 )
----
320

query I rowsort
SELECT - 42 * 86 col0
----
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT - ( + MAX( DISTINCT - - 31 ) ) - - 98 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5431
SELECT - ( + MAX ( DISTINCT - - 31 ) ) - - 98 AS col1
----
67

query I rowsort
SELECT 6 * + - 57 AS col2
----
-342

query I rowsort
SELECT ALL - 50 * 75 AS col2
----
-3750

onlyif mysql # aggregate syntax: 
query II rowsort label-5434
SELECT + COUNT( * ) * - 93, 15 col2
----
-93
15

skipif mysql # not compatible
query II rowsort label-5434
SELECT + COUNT ( * ) * - 93, 15 col2
----
-93
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT - + COUNT( ALL + + 76 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5435
SELECT - + COUNT ( ALL + + 76 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT - + ( - + SUM( DISTINCT + - 12 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-5436
SELECT - + ( - + SUM ( DISTINCT + - 12 ) )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT + CAST( + - CASE 66 WHEN - 12 * + + COUNT( * ) * - COUNT( * ) * - COALESCE ( 95, + CASE WHEN NOT - 4 NOT IN ( - COUNT( * ) + 47 - - ( - - 56 ) + + MIN( ALL - + 33 ) + 71 + - - 29 / 69, 4 + + - 76 + - 81 + COUNT( + - 40 ) * + 10 * - 70 + + 75 * 38 * - ( 68 ) * + COUNT( * ) + - AVG ( DISTINCT - 36 ) ) THEN + COUNT( * ) WHEN + 70 * 67 > ( 55 ) * NULLIF ( COUNT( * ) * - 84, COUNT( * ) ) THEN NULL ELSE NULL END ) THEN - 68 * - 8 WHEN 98 THEN NULL WHEN - 83 * - 47 THEN 9 * - 45 END AS SIGNED ) + - 27 * 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT + CAST ( + - CASE 66 WHEN - 12 * + + COUNT ( * ) * - COUNT ( * ) * - COALESCE ( 95, + CASE WHEN NOT - 4 NOT IN ( - COUNT ( * ) + 47 - - ( - - 56 ) + + MIN ( ALL - + 33 ) + 71 + - - 29 / 69, 4 + + - 76 + - 81 + COUNT ( + - 40 ) * + 10 * - 70 + + 75 * 38 * - ( 68 ) * + COUNT ( * ) + - AVG ( DISTINCT - 36 ) ) THEN + COUNT ( * ) WHEN + 70 * 67 > ( 55 ) * NULLIF ( COUNT ( * ) * - 84, COUNT ( * ) ) THEN NULL ELSE NULL END ) THEN - 68 * - 8 WHEN 98 THEN NULL WHEN - 83 * - 47 THEN 9 * - 45 END AS INTEGER ) + - 27 * 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5438
SELECT MAX( ALL + - 58 ) DIV 7 + + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5438
SELECT MAX ( ALL + - 58 ) / 7 + + COUNT ( * ) AS col2
----
-7

query I rowsort
SELECT 78 - + 11 AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5440
SELECT DISTINCT 16 + COUNT( ALL 13 ) + + + 82 * + + CAST( 51 AS SIGNED ) * + 62 AS col0
----
259301

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT 16 + COUNT ( ALL 13 ) + + + 82 * + + CAST ( 51 AS INTEGER ) * + 62 AS col0
----
259301

onlyif mysql # DIV for integer division: 
query I rowsort label-5441
SELECT + 3 DIV + 36 - - 31
----
31

skipif mysql # not compatible
query I rowsort label-5441
SELECT + 3 / + 36 - - 31
----
31

query I rowsort
SELECT ALL - ( - + 43 ) col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT 94 DIV - 63
----
-1

skipif mysql # not compatible
query I rowsort label-5443
SELECT 94 / - 63
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5444
SELECT ALL + 52 + 92 * + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * - + CAST( NULL AS DECIMAL ) + + 67 * 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + 52 + 92 * + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + CAST ( NULL AS REAL ) + + 67 * 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT COUNT( * ) AS col1, COUNT( * ) + + 29 * - 72
----
1
-2087

skipif mysql # not compatible
query II rowsort label-5445
SELECT COUNT ( * ) AS col1, COUNT ( * ) + + 29 * - 72
----
1
-2087

query I rowsort
SELECT 98 * - 42 - 92 AS col2
----
-4208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5447
SELECT DISTINCT + 8 + - COUNT( 26 ) + + 64 + - 40 + + ( + COUNT( - - 66 ) ) + + ( NULLIF ( - NULLIF ( 21, - 37 * - 58 ), - 52 ) ) + CAST( NULL AS SIGNED ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT + 8 + - COUNT ( 26 ) + + 64 + - 40 + + ( + COUNT ( - - 66 ) ) + + ( NULLIF ( - NULLIF ( 21, - 37 * - 58 ), - 52 ) ) + CAST ( NULL AS INTEGER ) * + 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5448
SELECT COUNT( * ) AS col1, 44 * 98
----
1
4312

skipif mysql # not compatible
query II rowsort label-5448
SELECT COUNT ( * ) AS col1, 44 * 98
----
1
4312

onlyif mysql # aggregate syntax: 
query II rowsort label-5449
SELECT 32 AS col2, 68 * - 20 + + COUNT( * ) - + 79
----
32
-1438

skipif mysql # not compatible
query II rowsort label-5449
SELECT 32 AS col2, 68 * - 20 + + COUNT ( * ) - + 79
----
32
-1438

query I rowsort
SELECT 9 - + + 9
----
0

query II rowsort
SELECT 62, + 19 col0
----
62
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT + - SUM( DISTINCT - 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-5452
SELECT + - SUM ( DISTINCT - 56 ) col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5453
SELECT - CAST( + - 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-5453
SELECT - CAST ( + - 27 AS INTEGER )
----
27

query I rowsort
SELECT ALL - ( - 32 ) AS col1
----
32

query II rowsort
SELECT + 9 AS col2, - 44 AS col2
----
9
-44

query II rowsort
SELECT - 90 * + 78 + - 2, 78 * - 79 + + 94 * 46 AS col2
----
-7022
-1838

query II rowsort
SELECT DISTINCT - 3 col0, - 13 AS col1
----
-3
-13

query I rowsort
SELECT - 4 - + 61 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT 51 - + NULLIF ( + 1, - COALESCE ( - ( - COUNT( * ) ), - CASE + - 64 WHEN COUNT( ALL - 45 ) THEN - + 68 + 63 ELSE NULL END ) )
----
50

skipif mysql # not compatible
query I rowsort label-5459
SELECT 51 - + NULLIF ( + 1, - COALESCE ( - ( - COUNT ( * ) ), - CASE + - 64 WHEN COUNT ( ALL - 45 ) THEN - + 68 + 63 ELSE NULL END ) )
----
50

query I rowsort
SELECT ALL + 40 * + 60
----
2400

onlyif mysql # aggregate syntax: 
query II rowsort label-5461
SELECT - 82 AS col0, + 9 - - + 57 + - + SUM( - 11 ) + + 91 + + - 11 AS col2
----
-82
157

skipif mysql # not compatible
query II rowsort label-5461
SELECT - 82 AS col0, + 9 - - + 57 + - + SUM ( - 11 ) + + 91 + + - 11 AS col2
----
-82
157

query I rowsort
SELECT DISTINCT 5 * 42 AS col2
----
210

query I rowsort
SELECT + 44 * - ( - + 0 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT - CAST( + AVG ( DISTINCT - 74 ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-5464
SELECT - CAST ( + AVG ( DISTINCT - 74 ) AS INTEGER )
----
74

query I rowsort
SELECT ALL + 79 * - 79
----
-6241

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT + - 10 - MAX( + - 50 ) + - CASE 67 WHEN + + 35 THEN 61 END + - + 41 / ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT + - 10 - MAX ( + - 50 ) + - CASE 67 WHEN + + 35 THEN 61 END + - + 41 / ( - COUNT ( * ) )
----
NULL

query I rowsort
SELECT + 6 * + - 89
----
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + + 40 + - COUNT( * ) col0
----
39

skipif mysql # not compatible
query I rowsort label-5468
SELECT + + 40 + - COUNT ( * ) col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL 64 + COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL 64 + COUNT ( * ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT + 33 + + COUNT( ALL - + 7 )
----
34

skipif mysql # not compatible
query I rowsort label-5470
SELECT + 33 + + COUNT ( ALL - + 7 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL + SUM( - 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + SUM ( - 84 ) AS col1
----
-84

query I rowsort
SELECT DISTINCT + 27 + + 18
----
45

query I rowsort
SELECT ALL 10 + - 92
----
-82

query I rowsort
SELECT - ( - - ( + - 31 ) ) AS col1
----
31

query I rowsort
SELECT + 10 + 7
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5476
SELECT - 74 + - CAST( NULL AS SIGNED ) * + + 16 + CASE + - AVG ( ALL + 25 ) WHEN - COALESCE ( + COUNT( * ), COALESCE ( + 40, - - 99 + COUNT( * ) ), + 85, + + CASE - + 59 WHEN COUNT( * ) * - - 96 / + - 35 * - CAST( NULL AS SIGNED ) + + - CASE 44 WHEN + SUM( ALL 48 ) * - 58 * + - 15 - - 89 THEN + 58 ELSE NULL END * + + 21 THEN + 39 WHEN - - 10 + 92 * + - ( + 33 ) THEN NULL END ) + ( - 60 ) + ( ( + 62 ) ) THEN NULL ELSE 28 + 21 END * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT - 74 + - CAST ( NULL AS INTEGER ) * + + 16 + CASE + - AVG ( ALL + 25 ) WHEN - COALESCE ( + COUNT ( * ), COALESCE ( + 40, - - 99 + COUNT ( * ) ), + 85, + + CASE - + 59 WHEN COUNT ( * ) * - - 96 / + - 35 * - CAST ( NULL AS INTEGER ) + + - CASE 44 WHEN + SUM ( ALL 48 ) * - 58 * + - 15 - - 89 THEN + 58 ELSE NULL END * + + 21 THEN + 39 WHEN - - 10 + 92 * + - ( + 33 ) THEN NULL END ) + ( - 60 ) + ( ( + 62 ) ) THEN NULL ELSE 28 + 21 END * - 44
----
NULL

query I rowsort
SELECT ( 43 ) col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5478
SELECT - 92 DIV - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-5478
SELECT - 92 / - COUNT ( * )
----
92

query I rowsort
SELECT ALL + 18 * + + 3 + 42 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + ( MIN( ALL 9 ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5480
SELECT + ( MIN ( ALL 9 ) ) AS col1
----
9

query I rowsort
SELECT - 38 * - + 45 * + + 53
----
90630

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5482
SELECT ALL + CAST( - 23 AS SIGNED ) AS col1, 28 - + 51 - + + 73 AS col0
----
-23
-96

skipif mysql # not compatible
query II rowsort label-5482
SELECT ALL + CAST ( - 23 AS INTEGER ) AS col1, 28 - + 51 - + + 73 AS col0
----
-23
-96

query I rowsort
SELECT ALL + 41 * - 89 - - 86
----
-3563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5484
SELECT COALESCE ( + - 7, + - 86 + - + 42 + + 7 + ( - 95 ) * + + 10 - + 51 * - ( - COUNT( * ) ) + 69 * + 98 * 68, + CASE + 39 WHEN + ( 40 ) THEN + + 91 + + ( + 87 ) DIV + + 86 + + 47 + + + 65 WHEN CASE - 37 WHEN 35 + + - 79 THEN - 8 + - 36 WHEN - AVG ( 27 ) THEN - 74 END * - 11 + + 70 * - 71 THEN NULL WHEN 98 - + 79 THEN COUNT( DISTINCT CAST( - 27 AS SIGNED ) ) WHEN MAX( DISTINCT + 44 ) THEN NULL END, + 84 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5484
SELECT COALESCE ( + - 7, + - 86 + - + 42 + + 7 + ( - 95 ) * + + 10 - + 51 * - ( - COUNT ( * ) ) + 69 * + 98 * 68, + CASE + 39 WHEN + ( 40 ) THEN + + 91 + + ( + 87 ) / + + 86 + + 47 + + + 65 WHEN CASE - 37 WHEN 35 + + - 79 THEN - 8 + - 36 WHEN - AVG ( 27 ) THEN - 74 END * - 11 + + 70 * - 71 THEN NULL WHEN 98 - + 79 THEN COUNT ( DISTINCT CAST ( - 27 AS INTEGER ) ) WHEN MAX ( DISTINCT + 44 ) THEN NULL END, + 84 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT + 2 * + + CASE + 86 WHEN - 46 THEN COUNT( * ) * + + COUNT( * ) + - 65 WHEN + COALESCE ( 99, - 22 ) * ( + 2 ) * - 90 * - - 41 + 86 THEN 47 WHEN + + COUNT( - + 26 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT + 2 * + + CASE + 86 WHEN - 46 THEN COUNT ( * ) * + + COUNT ( * ) + - 65 WHEN + COALESCE ( 99, - 22 ) * ( + 2 ) * - 90 * - - 41 + 86 THEN 47 WHEN + + COUNT ( - + 26 ) THEN NULL END col2
----
NULL

query I rowsort
SELECT 59 * + 84 + + 10
----
4966

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL + CASE + COUNT( * ) WHEN + 3 THEN 10 * COUNT( * ) + - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + CASE + COUNT ( * ) WHEN + 3 THEN 10 * COUNT ( * ) + - 76 END
----
NULL

query II rowsort
SELECT - 96 + 69 col2, - 56
----
-27
-56

query I rowsort
SELECT + 16 * - ( + - 77 ) + - - 5 AS col2
----
1237

onlyif mysql # DIV for integer division: 
query II rowsort label-5490
SELECT - 61 DIV + 68 AS col2, 63
----
0
63

skipif mysql # not compatible
query II rowsort label-5490
SELECT - 61 / + 68 AS col2, 63
----
0
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - 72 * 54 * COALESCE ( 61, + ( - COUNT( * ) ) ) * - 40 * + + ( 32 ) AS col2
----
303575040

skipif mysql # not compatible
query I rowsort label-5491
SELECT - 72 * 54 * COALESCE ( 61, + ( - COUNT ( * ) ) ) * - 40 * + + ( 32 ) AS col2
----
303575040

query I rowsort
SELECT - 35 + ( - + 96 ) AS col1
----
-131

query II rowsort
SELECT ALL - + 38 * + - 38, - 97 * + + 73 * - - 81 AS col0
----
1444
-573561

onlyif mysql # aggregate syntax: 
query II rowsort label-5494
SELECT - 74 + 32, COALESCE ( + - COUNT( ALL 54 ), + 49, + - 80 ) + - 82 AS col0
----
-42
-83

skipif mysql # not compatible
query II rowsort label-5494
SELECT - 74 + 32, COALESCE ( + - COUNT ( ALL 54 ), + 49, + - 80 ) + - 82 AS col0
----
-42
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT + + ( + + COUNT( DISTINCT + + 34 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + + ( + + COUNT ( DISTINCT + + 34 ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT + + 25 * + 60 * 20
----
30000

query I rowsort
SELECT - - 5 + - + 18 AS col0
----
-13

query I rowsort
SELECT - ( 85 ) * + 79 AS col0
----
-6715

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5499
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 6 - + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 6 - + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + - 55 * + 27 * + - 59 AS col0
----
87615

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT + ( 98 ) + COALESCE ( - NULLIF ( + - COUNT( * ), 29 ), + 78 * - + 92 + - 4 + 53 )
----
99

skipif mysql # not compatible
query I rowsort label-5501
SELECT + ( 98 ) + COALESCE ( - NULLIF ( + - COUNT ( * ), 29 ), + 78 * - + 92 + - 4 + 53 )
----
99

query I rowsort
SELECT DISTINCT - 17 + 49 - + 60 col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL - SUM( 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL - SUM ( 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5504
SELECT ALL - + ( - CAST( NULL AS SIGNED ) ) + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - + ( - CAST ( NULL AS INTEGER ) ) + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ALL - MIN( ALL + 7 ) * + COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL - MIN ( ALL + 7 ) * + COUNT ( * ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL 61 + + ( + ( - + COUNT( ( - 6 ) ) ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL 61 + + ( + ( - + COUNT ( ( - 6 ) ) ) ) AS col0
----
60

query I rowsort
SELECT ALL + + 78 + CASE + 76 WHEN - CASE - - 71 WHEN 75 + 41 + + CASE - - 86 WHEN - + 3 - AVG ( 64 ) THEN COALESCE ( + 73, - 64 ) END THEN - 27 + + - 62 END THEN - 77 WHEN + 82 THEN + 83 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT DISTINCT + 34 + - CAST( - 91 AS SIGNED )
----
125

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT + 34 + - CAST ( - 91 AS INTEGER )
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5509
SELECT - - COUNT( * ) - + CASE + ( - + ( - 77 ) ) WHEN + - 35 THEN - - 65 WHEN - ( - 65 ) THEN 27 * - 3 - - CASE + 11 WHEN + 38 THEN + 12 END ELSE NULL END * - + COUNT( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT - - COUNT ( * ) - + CASE + ( - + ( - 77 ) ) WHEN + - 35 THEN - - 65 WHEN - ( - 65 ) THEN 27 * - 3 - - CASE + 11 WHEN + 38 THEN + 12 END ELSE NULL END * - + COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL 28 * MIN( DISTINCT - 36 ) AS col0
----
-1008

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL 28 * MIN ( DISTINCT - 36 ) AS col0
----
-1008

query I rowsort
SELECT + 69 - 93
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5512
SELECT + 75 * - 1 / CAST( NULL AS SIGNED ) AS col2, 89 * - 47 AS col2
----
NULL
-4183

skipif mysql # not compatible
query II rowsort label-5512
SELECT + 75 * - 1 / CAST ( NULL AS INTEGER ) AS col2, 89 * - 47 AS col2
----
NULL
-4183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5513
SELECT - COALESCE ( 60, 96 DIV + + COUNT( DISTINCT + 25 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-5513
SELECT - COALESCE ( 60, 96 / + + COUNT ( DISTINCT + 25 ) )
----
-60

query I rowsort
SELECT + 92 + - 36 + + 32
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5515
SELECT DISTINCT 98 + - + COUNT( * ) + + ( 10 ) * - - 60 AS col1, 88 * - MIN( - - 27 ) * 6 * - - 83 col0
----
697
-1183248

skipif mysql # not compatible
query II rowsort label-5515
SELECT DISTINCT 98 + - + COUNT ( * ) + + ( 10 ) * - - 60 AS col1, 88 * - MIN ( - - 27 ) * 6 * - - 83 col0
----
697
-1183248

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL ( + COUNT( * ) ) + + + 17 * + 68 + + 85
----
1242

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL ( + COUNT ( * ) ) + + + 17 * + 68 + + 85
----
1242

query I rowsort
SELECT + 39 - + - 9
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT + CAST( - 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-5518
SELECT + CAST ( - 66 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5519
SELECT DISTINCT - 59 DIV + 62 * - - ( 89 ) - - 37 + - 31 + - 4 DIV + + 67 * COUNT( * ) * 12
----
6

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT - 59 / + 62 * - - ( 89 ) - - 37 + - 31 + - 4 / + + 67 * COUNT ( * ) * 12
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5520
SELECT CAST( - COALESCE ( + - ( - - 55 ), + 41 ) AS SIGNED ), 77 + - - 40 AS col2
----
55
117

skipif mysql # not compatible
query II rowsort label-5520
SELECT CAST ( - COALESCE ( + - ( - - 55 ), + 41 ) AS INTEGER ), 77 + - - 40 AS col2
----
55
117

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT - 2 + + COUNT( ALL - - 6 ), 34 AS col1
----
-1
34

skipif mysql # not compatible
query II rowsort label-5521
SELECT - 2 + + COUNT ( ALL - - 6 ), 34 AS col1
----
-1
34

query I rowsort
SELECT DISTINCT 8 * + - 20 AS col1
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT + CAST( + - 93 AS SIGNED ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5523
SELECT + CAST ( + - 93 AS INTEGER ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL + COUNT( - 95 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL + COUNT ( - 95 ) col0
----
1

query I rowsort
SELECT + 49 * 43 AS col2
----
2107

query I rowsort
SELECT ALL 55 * - 53 AS col2
----
-2915

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5527
SELECT - COALESCE ( - - 27, 18 DIV + + AVG ( 62 ) + - 15 + - CAST( 28 AS SIGNED ), + 48 )
----
-27

skipif mysql # not compatible
query I rowsort label-5527
SELECT - COALESCE ( - - 27, 18 / + + AVG ( 62 ) + - 15 + - CAST ( 28 AS INTEGER ), + 48 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT 23 * - 62 + - CAST( + 63 AS SIGNED ) * - + 42 - 65 * - 82 col1
----
6550

skipif mysql # not compatible
query I rowsort label-5528
SELECT 23 * - 62 + - CAST ( + 63 AS INTEGER ) * - + 42 - 65 * - 82 col1
----
6550

query II rowsort
SELECT + 27 AS col0, + 66 AS col0
----
27
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - CASE - 34 WHEN NULLIF ( - 66, + 88 + + MIN( DISTINCT 52 ) ) THEN + 73 / - 76 ELSE NULL END + 89 + COUNT( * ) * - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT - CASE - 34 WHEN NULLIF ( - 66, + 88 + + MIN ( DISTINCT 52 ) ) THEN + 73 / - 76 ELSE NULL END + 89 + COUNT ( * ) * - - 74
----
NULL

query I rowsort
SELECT 74 * + 84 + ( + - 10 )
----
6206

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - 35 * - 43 * + 78 * - 91 * 75 + - 68 * + COUNT( * ) col0
----
-801186818

skipif mysql # not compatible
query I rowsort label-5532
SELECT - 35 * - 43 * + 78 * - 91 * 75 + - 68 * + COUNT ( * ) col0
----
-801186818

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT ALL - 62 DIV + 89 * + + 88
----
0

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - 62 / + 89 * + + 88
----
0

query I rowsort
SELECT - ( + + ( - 65 ) ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT 60 * + + ( + COALESCE ( 7, + 82 + - - MIN( ALL + 34 ) ) ) * - 16 * COUNT( * )
----
-6720

skipif mysql # not compatible
query I rowsort label-5535
SELECT 60 * + + ( + COALESCE ( 7, + 82 + - - MIN ( ALL + 34 ) ) ) * - 16 * COUNT ( * )
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL + - 31 + + - MIN( + 27 ) + 40 / - + CASE + ( + - 85 ) WHEN - 80 + + 71 + - 90 - + 9 * + 42 THEN - - 44 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL + - 31 + + - MIN ( + 27 ) + 40 / - + CASE + ( + - 85 ) WHEN - 80 + + 71 + - 90 - + 9 * + 42 THEN - - 44 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 71 + 63 + CASE - + 40 WHEN + + 91 + - 41 - + 43 * + 27 THEN NULL WHEN - - 63 THEN + - 70 ELSE NULL END
----
NULL

query I rowsort
SELECT 83 + ( + + 0 ) AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5539
SELECT ALL - 27 + - 60 + + 18 - + 76 DIV + - 82 + - 22 * - COUNT( * ) * + 54 + - 14
----
1105

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - 27 + - 60 + + 18 - + 76 / + - 82 + - 22 * - COUNT ( * ) * + 54 + - 14
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT - MAX( + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-5540
SELECT - MAX ( + 32 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5541
SELECT + COUNT( * ) * + 68 DIV - 71 + - 75 + - 71 AS col0, - 25 AS col2
----
-146
-25

skipif mysql # not compatible
query II rowsort label-5541
SELECT + COUNT ( * ) * + 68 / - 71 + - 75 + - 71 AS col0, - 25 AS col2
----
-146
-25

query I rowsort
SELECT ALL - 77 + + - 12 * + 34
----
-485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5543
SELECT 63 + ( - AVG ( 89 ) ) - - - CAST( NULL AS SIGNED ) + + COUNT( * ) * + + 83 + + COALESCE ( - 93, - - ( + 3 ) + + 15 * MAX( 1 ) ) * - 41 * + - CASE - 47 WHEN + 31 * + 10 + + 35 + 60 - - 73 THEN NULL WHEN - 46 * + - COUNT( * ) * - 90 + + + 13 THEN 4 * - + 95 - - 76 / 16 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT 63 + ( - AVG ( 89 ) ) - - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + + 83 + + COALESCE ( - 93, - - ( + 3 ) + + 15 * MAX ( 1 ) ) * - 41 * + - CASE - 47 WHEN + 31 * + 10 + + 35 + 60 - - 73 THEN NULL WHEN - 46 * + - COUNT ( * ) * - 90 + + + 13 THEN 4 * - + 95 - - 76 / 16 END AS col2
----
NULL

query I rowsort
SELECT - 51 - 61 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT COUNT( * ) - 4 + ( + - 49 )
----
-52

skipif mysql # not compatible
query I rowsort label-5545
SELECT COUNT ( * ) - 4 + ( + - 49 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT 97 + - COUNT( * ) * + + CASE + 51 WHEN + + COALESCE ( - 62, - CASE WHEN - COALESCE ( + - 58, 7 ) NOT BETWEEN 57 AND MAX( 38 ) * 49 THEN + 43 END / 38 ) THEN - - COUNT( * ) WHEN + 46 * - 54 + - + COUNT( ALL + + 6 ) THEN - 86 END + 49 + + ( - - ( + CASE - + 2 WHEN ( - 63 ) THEN + ( 56 ) WHEN 78 - 38 * - 30 THEN + 79 END ) ) * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT 97 + - COUNT ( * ) * + + CASE + 51 WHEN + + COALESCE ( - 62, - CASE WHEN - COALESCE ( + - 58, 7 ) NOT BETWEEN 57 AND MAX ( 38 ) * 49 THEN + 43 END / 38 ) THEN - - COUNT ( * ) WHEN + 46 * - 54 + - + COUNT ( ALL + + 6 ) THEN - 86 END + 49 + + ( - - ( + CASE - + 2 WHEN ( - 63 ) THEN + ( 56 ) WHEN 78 - 38 * - 30 THEN + 79 END ) ) * COUNT ( * ) col1
----
NULL

query I rowsort
SELECT 32 - ( 83 ) + - 4 + - + 62 AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL - COUNT( * ) - 57
----
-58

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - COUNT ( * ) - 57
----
-58

query I rowsort
SELECT 3 * + 13
----
39

query II rowsort
SELECT ALL 31 col2, ( - 71 ) * - NULLIF ( 79, + 7 ) AS col2
----
31
5609

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT DISTINCT - COUNT( * ) - + + 27
----
-28

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT - COUNT ( * ) - + + 27
----
-28

query I rowsort
SELECT 22 + + 47 + 91 + + 90 * + + ( - 31 ) + + 68 * + - 14 * + 39 + + 81 AS col2
----
-39677

query II rowsort
SELECT DISTINCT 90 AS col1, - ( - 24 )
----
90
24

query II rowsort
SELECT ALL 96 AS col1, - 79 + 65 + + 5 * + 69
----
96
331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5555
SELECT COUNT( * ) DIV - + 21 col1
----
0

skipif mysql # not compatible
query I rowsort label-5555
SELECT COUNT ( * ) / - + 21 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT 18 + - SUM( + - 47 )
----
65

skipif mysql # not compatible
query I rowsort label-5556
SELECT 18 + - SUM ( + - 47 )
----
65

query II rowsort
SELECT + 3, + 21 col1
----
3
21

query I rowsort
SELECT 57 + - 75
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5559
SELECT COUNT( * ) DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5559
SELECT COUNT ( * ) / 86 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5560
SELECT - ( - ( + 64 ) ) * + CAST( - ( + 30 ) AS SIGNED ) - + - 96 + - + 13 - + + 37 - + 49 * + 2 AS col2, - 81 * - 21 * - 45 + 42 + 15 * + 64 col1
----
-1972
-75543

skipif mysql # not compatible
query II rowsort label-5560
SELECT - ( - ( + 64 ) ) * + CAST ( - ( + 30 ) AS INTEGER ) - + - 96 + - + 13 - + + 37 - + 49 * + 2 AS col2, - 81 * - 21 * - 45 + 42 + 15 * + 64 col1
----
-1972
-75543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5561
SELECT 32 / - 96 + - CAST( - + 97 AS SIGNED ) + - - CAST( CASE - 83 WHEN + - 9 + - 69 THEN - 68 * - + 5 WHEN + + COUNT( - - 28 ) THEN + + 98 * - + 10 END AS SIGNED ) + - 68 + - COUNT( * ) / COALESCE ( + - 61, 5, 92 - + 21 + - 70 ) * + - 63 * - 92 + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT 32 / - 96 + - CAST ( - + 97 AS INTEGER ) + - - CAST ( CASE - 83 WHEN + - 9 + - 69 THEN - 68 * - + 5 WHEN + + COUNT ( - - 28 ) THEN + + 98 * - + 10 END AS INTEGER ) + - 68 + - COUNT ( * ) / COALESCE ( + - 61, 5, 92 - + 21 + - 70 ) * + - 63 * - 92 + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT 49 * + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-5562
SELECT 49 * + - COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5563
SELECT 77 * + - ( - 69 ) + COALESCE ( COUNT( * ), - 18 ) AS col0, - 73 AS col0
----
5314
-73

skipif mysql # not compatible
query II rowsort label-5563
SELECT 77 * + - ( - 69 ) + COALESCE ( COUNT ( * ), - 18 ) AS col0, - 73 AS col0
----
5314
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5564
SELECT 72 * - COUNT( * ) - + 61 * + 69 * - COUNT( * ) + - 25 + - 74 AS col0, + 50 AS col2
----
4038
50

skipif mysql # not compatible
query II rowsort label-5564
SELECT 72 * - COUNT ( * ) - + 61 * + 69 * - COUNT ( * ) + - 25 + - 74 AS col0, + 50 AS col2
----
4038
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT ALL + ( + 21 ) + + - COUNT( * ) - + 92 * - ( - + NULLIF ( - 30, - COALESCE ( + + 66, + - 73, + AVG ( ALL - 98 ), + COUNT( * ) ) ) ) + COUNT( * ), - 23 + + COUNT( * ) + + 39 + 39 col1
----
2781
56

skipif mysql # not compatible
query II rowsort label-5565
SELECT ALL + ( + 21 ) + + - COUNT ( * ) - + 92 * - ( - + NULLIF ( - 30, - COALESCE ( + + 66, + - 73, + AVG ( ALL - 98 ), + COUNT ( * ) ) ) ) + COUNT ( * ), - 23 + + COUNT ( * ) + + 39 + 39 col1
----
2781
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5566
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 12 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT 29 DIV - - 27 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5567
SELECT 29 / - - 27 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT + 33 + + COUNT( * ) col1
----
34

skipif mysql # not compatible
query I rowsort label-5568
SELECT + 33 + + COUNT ( * ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT + SUM( DISTINCT - 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-5569
SELECT + SUM ( DISTINCT - 78 ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT ALL + + 3 + - 3 * CAST( + + 64 AS SIGNED )
----
-189

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL + + 3 + - 3 * CAST ( + + 64 AS INTEGER )
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + COUNT( ALL 10 ) * - CASE - - 65 WHEN + 72 * + 54 THEN + + 87 WHEN NULLIF ( + - 84, - 85 * - + SUM( - 60 ) ) + + - 23 / + ( ( + + 72 ) ) THEN - - 71 WHEN 83 * - + 76 THEN - 42 WHEN 91 * 88 + - COUNT( * ) - + 49 - + - 8 THEN NULL WHEN + + 24 THEN - 83 * + COUNT( * ) - + - COALESCE ( COUNT( * ), - 68 + - 92 + - AVG ( - 89 ) + + 91 * ( + MAX( DISTINCT - 83 ) ) * 39 ) - 76 * - COUNT( * ) * - 69 END * + 76 + 84 * + 29 + + 47 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT + COUNT ( ALL 10 ) * - CASE - - 65 WHEN + 72 * + 54 THEN + + 87 WHEN NULLIF ( + - 84, - 85 * - + SUM ( - 60 ) ) + + - 23 / + ( ( + + 72 ) ) THEN - - 71 WHEN 83 * - + 76 THEN - 42 WHEN 91 * 88 + - COUNT ( * ) - + 49 - + - 8 THEN NULL WHEN + + 24 THEN - 83 * + COUNT ( * ) - + - COALESCE ( COUNT ( * ), - 68 + - 92 + - AVG ( - 89 ) + + 91 * ( + MAX ( DISTINCT - 83 ) ) * 39 ) - 76 * - COUNT ( * ) * - 69 END * + 76 + 84 * + 29 + + 47 col1
----
NULL

query I rowsort
SELECT + - 78 * - 99 + + 40 + + 12 col2
----
7774

onlyif mysql # aggregate syntax: 
query II rowsort label-5573
SELECT DISTINCT - + 74 AS col0, - COUNT( - ( 37 ) ) + ( - - 14 )
----
-74
13

skipif mysql # not compatible
query II rowsort label-5573
SELECT DISTINCT - + 74 AS col0, - COUNT ( - ( 37 ) ) + ( - - 14 )
----
-74
13

query II rowsort
SELECT + 30 AS col0, 50 AS col1
----
30
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5575
SELECT + 66 DIV NULLIF ( + - MAX( - - 14 ), 2 ) * - 53 * + 86 AS col2
----
18232

skipif mysql # not compatible
query I rowsort label-5575
SELECT + 66 / NULLIF ( + - MAX ( - - 14 ), 2 ) * - 53 * + 86 AS col2
----
18232

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT + 30 AS col0, COUNT( * ) AS col0
----
30
1

skipif mysql # not compatible
query II rowsort label-5576
SELECT + 30 AS col0, COUNT ( * ) AS col0
----
30
1

query I rowsort
SELECT ALL - + 11 - + 40 AS col1
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-5578
SELECT 3 DIV - 36 AS col1, - 27 AS col2
----
0
-27

skipif mysql # not compatible
query II rowsort label-5578
SELECT 3 / - 36 AS col1, - 27 AS col2
----
0
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5579
SELECT 13 * 55, 17 AS col2, CASE + 33 WHEN - 70 * - + CAST( NULL AS SIGNED ) * - 96 / 18 / 76 - + 43 THEN NULL WHEN + COUNT( * ) THEN + - 44 + 96 END AS col0
----
715
17
NULL

skipif mysql # not compatible
query III rowsort label-5579
SELECT 13 * 55, 17 AS col2, CASE + 33 WHEN - 70 * - + CAST ( NULL AS INTEGER ) * - 96 / 18 / 76 - + 43 THEN NULL WHEN + COUNT ( * ) THEN + - 44 + 96 END AS col0
----
715
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT ALL COUNT( - + 4 )
----
1

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL COUNT ( - + 4 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT - ( - COUNT( * ) ) * - 66 * + + ( COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT - ( - COUNT ( * ) ) * - 66 * + + ( COUNT ( * ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT COUNT( * ) - 19 - + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-5582
SELECT COUNT ( * ) - 19 - + + COUNT ( * )
----
-19

query I rowsort
SELECT 12 - 32 col2
----
-20

query I rowsort
SELECT 28 * - 87
----
-2436

query I rowsort
SELECT 63 + ( - 95 ) AS col0
----
-32

query I rowsort
SELECT ALL NULLIF ( - + 90, - 79 ) col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT 47 - - MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT 47 - - MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL COUNT( + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL COUNT ( + 55 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5589
SELECT 53 * + 57, + 94 + - COUNT( * ) AS col0
----
3021
93

skipif mysql # not compatible
query II rowsort label-5589
SELECT 53 * + 57, + 94 + - COUNT ( * ) AS col0
----
3021
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT DISTINCT + ( 99 ) DIV + 22 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT + ( 99 ) / + 22 AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5591
SELECT + 35 DIV - - 94 + SUM( ALL + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-5591
SELECT + 35 / - - 94 + SUM ( ALL + 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT - - 32 * - + 87 + - 41 * + - 6 + - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT - - 32 * - + 87 + - 41 * + - 6 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5593
SELECT + - 26 + + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT + - 26 + + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5594
SELECT + 85 * 36 + - - CAST( + - SUM( 42 ) AS SIGNED ) - 43
----
2975

skipif mysql # not compatible
query I rowsort label-5594
SELECT + 85 * 36 + - - CAST ( + - SUM ( 42 ) AS INTEGER ) - 43
----
2975

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL - COUNT( * ) * - COUNT( * ) + - SUM( + - 31 ) + - + ( + 44 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + - SUM ( + - 31 ) + - + ( + 44 ) AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5596
SELECT - - 30 + + + CAST( NULL AS DECIMAL ) + + 51 + COUNT( * ) / + + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5596
SELECT - - 30 + + + CAST ( NULL AS REAL ) + + 51 + COUNT ( * ) / + + 72 AS col0
----
NULL

query I rowsort
SELECT + - NULLIF ( 71, + 89 ) col0
----
-71

query I rowsort
SELECT ALL + - CASE + 55 WHEN - 42 * + + 6 / 43 + - 22 THEN 35 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5599
SELECT + COUNT( DISTINCT - - 18 ) * + 39 + + COALESCE ( - 85, + COUNT( * ) * ( - + 51 ) * - + COUNT( * ) + - ( + - 34 ) + CAST( NULL AS SIGNED ) + - 60 ) + + - ( + - 14 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-5599
SELECT + COUNT ( DISTINCT - - 18 ) * + 39 + + COALESCE ( - 85, + COUNT ( * ) * ( - + 51 ) * - + COUNT ( * ) + - ( + - 34 ) + CAST ( NULL AS INTEGER ) + - 60 ) + + - ( + - 14 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT + 73 * + 78 * COUNT( * ) AS col1
----
5694

skipif mysql # not compatible
query I rowsort label-5600
SELECT + 73 * + 78 * COUNT ( * ) AS col1
----
5694

query I rowsort
SELECT DISTINCT + 17 - + 66
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL COALESCE ( + COALESCE ( - 59, + COUNT( * ), 87 ), - COUNT( * ) ) * 53 + - SUM( ALL + 33 ) AS col1
----
-3160

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL COALESCE ( + COALESCE ( - 59, + COUNT ( * ), 87 ), - COUNT ( * ) ) * 53 + - SUM ( ALL + 33 ) AS col1
----
-3160

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT + 40 - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-5603
SELECT + 40 - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT ALL COUNT( * ) * + 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL COUNT ( * ) * + 32 AS col0
----
32

query I rowsort
SELECT + 16 + - + 74 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT DISTINCT COUNT( ALL 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT COUNT ( ALL 28 ) AS col0
----
1

query II rowsort
SELECT + 92 + + ( 48 ) AS col2, 56 + 71
----
140
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT ALL CASE COUNT( * ) WHEN 88 THEN - + COUNT( * ) - + COUNT( * ) WHEN + 3 THEN 1 ELSE NULL END * 58 * - 77 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL CASE COUNT ( * ) WHEN 88 THEN - + COUNT ( * ) - + COUNT ( * ) WHEN + 3 THEN 1 ELSE NULL END * 58 * - 77 col1
----
NULL

query I rowsort
SELECT + 4 + - 22 col1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5610
SELECT - COUNT( * ) DIV 85 * - 54 AS col0, + 47 DIV 31 + - 80 AS col1
----
0
-79

skipif mysql # not compatible
query II rowsort label-5610
SELECT - COUNT ( * ) / 85 * - 54 AS col0, + 47 / 31 + - 80 AS col1
----
0
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - 86 - - + 83 * - COUNT( * ) AS col1
----
-169

skipif mysql # not compatible
query I rowsort label-5611
SELECT - 86 - - + 83 * - COUNT ( * ) AS col1
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5612
SELECT + 56 + 20 + - + 87 * - - COALESCE ( + ( + + 9 ), 27, COALESCE ( - 65, - COUNT( * ) * + - 25 + 86 - + CASE 67 WHEN - - 38 THEN - - COALESCE ( - 75, - 71 ) + 57 END + + + 26 * + CAST( + 37 AS SIGNED ) DIV - 71 + 2, COUNT( * ) * - - 12 ) + 94 ) * - + ( 2 ) + 46 + + CAST( + 31 AS SIGNED ) + - 2 - 95
----
1622

skipif mysql # not compatible
query I rowsort label-5612
SELECT + 56 + 20 + - + 87 * - - COALESCE ( + ( + + 9 ), 27, COALESCE ( - 65, - COUNT ( * ) * + - 25 + 86 - + CASE 67 WHEN - - 38 THEN - - COALESCE ( - 75, - 71 ) + 57 END + + + 26 * + CAST ( + 37 AS INTEGER ) / - 71 + 2, COUNT ( * ) * - - 12 ) + 94 ) * - + ( 2 ) + 46 + + CAST ( + 31 AS INTEGER ) + - 2 - 95
----
1622

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT + 73 DIV + 17
----
4

skipif mysql # not compatible
query I rowsort label-5613
SELECT + 73 / + 17
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5614
SELECT - ( + 91 ) DIV + 39 + 12 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5614
SELECT - ( + 91 ) / + 39 + 12 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5615
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 39 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 39 * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL - 14 + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL - 14 + COUNT ( * ) AS col1
----
-13

query I rowsort
SELECT - 26 + + 34 col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5618
SELECT ALL 32 DIV 1 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL 32 / 1 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT - COUNT( * ) + - 86
----
-87

skipif mysql # not compatible
query I rowsort label-5619
SELECT - COUNT ( * ) + - 86
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT - COUNT( * ) * 81
----
-81

skipif mysql # not compatible
query I rowsort label-5620
SELECT - COUNT ( * ) * 81
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5621
SELECT 89, + 23 * + - COALESCE ( + - CASE - - CASE - COUNT( * ) WHEN 9 THEN - 40 ELSE 96 + CASE + 39 WHEN + CASE - + 36 WHEN + + NULLIF ( COUNT( * ), - + 11 + + - ( + 79 ) ) THEN NULL WHEN - 15 THEN + 90 WHEN + 50 THEN - + 27 - + - COUNT( - + ( + 57 ) ) + - 69 - 92 + + 98 + - 84 * - 97 END THEN - COUNT( * ) * - - 20 WHEN + 35 THEN NULL WHEN + 28 THEN - COUNT( * ) WHEN 68 THEN NULL END END WHEN COUNT( * ) THEN + + 13 * 8 END, 53 ) col2
----
89
-1219

skipif mysql # not compatible
query II rowsort label-5621
SELECT 89, + 23 * + - COALESCE ( + - CASE - - CASE - COUNT ( * ) WHEN 9 THEN - 40 ELSE 96 + CASE + 39 WHEN + CASE - + 36 WHEN + + NULLIF ( COUNT ( * ), - + 11 + + - ( + 79 ) ) THEN NULL WHEN - 15 THEN + 90 WHEN + 50 THEN - + 27 - + - COUNT ( - + ( + 57 ) ) + - 69 - 92 + + 98 + - 84 * - 97 END THEN - COUNT ( * ) * - - 20 WHEN + 35 THEN NULL WHEN + 28 THEN - COUNT ( * ) WHEN 68 THEN NULL END END WHEN COUNT ( * ) THEN + + 13 * 8 END, 53 ) col2
----
89
-1219

query I rowsort
SELECT + 7 + + 42
----
49

query I rowsort
SELECT DISTINCT - + 87 + - 43
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5624
SELECT ALL + + COUNT( * ) * - 5 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL + + COUNT ( * ) * - 5 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5625
SELECT - - CAST( + CAST( + - 20 AS SIGNED ) AS SIGNED ) + - 12, + 10 AS col0
----
-32
10

skipif mysql # not compatible
query II rowsort label-5625
SELECT - - CAST ( + CAST ( + - 20 AS INTEGER ) AS INTEGER ) + - 12, + 10 AS col0
----
-32
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5626
SELECT ALL + 41 DIV + 57 * COUNT( * ) + + CAST( 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL + 41 / + 57 * COUNT ( * ) + + CAST ( 25 AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5627
SELECT DISTINCT + + COUNT( * ) AS col0, COUNT( * ) * + 31 * + - ( + ( + 11 ) )
----
1
-341

skipif mysql # not compatible
query II rowsort label-5627
SELECT DISTINCT + + COUNT ( * ) AS col0, COUNT ( * ) * + 31 * + - ( + ( + 11 ) )
----
1
-341

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5628
SELECT DISTINCT + 17, - COUNT( * ) DIV 15 + + NULLIF ( - 82, + 26 - 17 ) - + - 78 + COUNT( * ) AS col2
----
17
-3

skipif mysql # not compatible
query II rowsort label-5628
SELECT DISTINCT + 17, - COUNT ( * ) / 15 + + NULLIF ( - 82, + 26 - 17 ) - + - 78 + COUNT ( * ) AS col2
----
17
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5629
SELECT - - COUNT( * ) + ( CAST( NULL AS SIGNED ) ), + 80 col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-5629
SELECT - - COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ), + 80 col2
----
NULL
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5630
SELECT ALL + COUNT( * ) DIV 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL + COUNT ( * ) / 9 AS col2
----
0

query I rowsort
SELECT + 24 * + 93 + 51
----
2283

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT ALL + 56 AS col0, 46 + - + COUNT( * )
----
56
45

skipif mysql # not compatible
query II rowsort label-5632
SELECT ALL + 56 AS col0, 46 + - + COUNT ( * )
----
56
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT DISTINCT + + MIN( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT + + MIN ( - 73 )
----
-73

query II rowsort
SELECT ALL + 48, - 22 AS col2
----
48
-22

query I rowsort
SELECT - - ( + ( 50 ) ) + 92
----
142

query I rowsort
SELECT - 75 * 89 AS col0
----
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT - 48 * + MIN( 83 ) * - - 75 + 77 + CASE - 28 WHEN + + 87 + + + COUNT( * ) + + 95 + - 77 THEN - 2 WHEN 58 THEN + 7 END + + + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT - 48 * + MIN ( 83 ) * - - 75 + 77 + CASE - 28 WHEN + + 87 + + + COUNT ( * ) + + 95 + - 77 THEN - 2 WHEN 58 THEN + 7 END + + + 0 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5638
SELECT + 16 + 38 - - CAST( NULL AS SIGNED ) + - - 77 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT + 16 + 38 - - CAST ( NULL AS INTEGER ) + - - 77 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5639
SELECT + AVG ( ALL + + 36 ) * ( - MAX( 78 ) ) + - CASE + 75 WHEN - + 38 THEN + + 93 / - + 71 * + + 38 WHEN + COALESCE ( CASE - + CASE + - 9 WHEN COUNT( * ) + + 15 THEN NULL WHEN 9 THEN NULL WHEN COUNT( * ) THEN 97 + - 34 END WHEN + + 82 + AVG ( ALL - 24 ) + + 6 THEN - 25 ELSE NULL END, - ( + + 4 ) ) THEN NULL END / - 11 col1, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-5639
SELECT + AVG ( ALL + + 36 ) * ( - MAX ( 78 ) ) + - CASE + 75 WHEN - + 38 THEN + + 93 / - + 71 * + + 38 WHEN + COALESCE ( CASE - + CASE + - 9 WHEN COUNT ( * ) + + 15 THEN NULL WHEN 9 THEN NULL WHEN COUNT ( * ) THEN 97 + - 34 END WHEN + + 82 + AVG ( ALL - 24 ) + + 6 THEN - 25 ELSE NULL END, - ( + + 4 ) ) THEN NULL END / - 11 col1, 45
----
NULL
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5640
SELECT - 98 * COUNT( * ) DIV + + 2
----
-49

skipif mysql # not compatible
query I rowsort label-5640
SELECT - 98 * COUNT ( * ) / + + 2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT COUNT( * ) * - COUNT( * ) + + + 43
----
42

skipif mysql # not compatible
query I rowsort label-5641
SELECT COUNT ( * ) * - COUNT ( * ) + + + 43
----
42

query I rowsort
SELECT + 33 * + 82 * - NULLIF ( 31, - + 17 )
----
-83886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5643
SELECT ALL 40 * - + CASE - - COUNT( ( 89 ) ) WHEN COUNT( * ) THEN NULL WHEN 89 THEN NULL ELSE + 22 + + - 48 + 53 + + 85 END * 74 * 60 + + - CAST( + 42 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL 40 * - + CASE - - COUNT ( ( 89 ) ) WHEN COUNT ( * ) THEN NULL WHEN 89 THEN NULL ELSE + 22 + + - 48 + 53 + + 85 END * 74 * 60 + + - CAST ( + 42 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5644
SELECT DISTINCT CAST( - + 85 AS SIGNED ) + + 92 + - CAST( 2 AS SIGNED ) DIV + 35 * - 53
----
7

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT CAST ( - + 85 AS INTEGER ) + + 92 + - CAST ( 2 AS INTEGER ) / + 35 * - 53
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT NULLIF ( 71, + CASE + COUNT( ALL 23 ) WHEN - + 87 THEN NULL WHEN + - 84 + - - 10 THEN - - ( 33 ) * - - 82 / 31 + + NULLIF ( - 33, - - 34 ) / - 19 END * + - 75 ) + - 15 - - + 7
----
63

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT NULLIF ( 71, + CASE + COUNT ( ALL 23 ) WHEN - + 87 THEN NULL WHEN + - 84 + - - 10 THEN - - ( 33 ) * - - 82 / 31 + + NULLIF ( - 33, - - 34 ) / - 19 END * + - 75 ) + - 15 - - + 7
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5646
SELECT ALL 84 + 81 - - 42 DIV 37, + 35 + 68 + 18 * + CAST( - - 83 AS SIGNED ) AS col2
----
166
1597

skipif mysql # not compatible
query II rowsort label-5646
SELECT ALL 84 + 81 - - 42 / 37, + 35 + 68 + 18 * + CAST ( - - 83 AS INTEGER ) AS col2
----
166
1597

query I rowsort
SELECT 88 + 70 + 22 * + 90 * - 55 * 40 * ( - - 38 ) AS col1
----
-165527842

query I rowsort
SELECT ALL + 4 + - 93 * 82
----
-7622

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT ALL - 46 + + + COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - 46 + + + COUNT ( * ) AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5650
SELECT 81 * ( - + CASE + CAST( NULL AS SIGNED ) WHEN - + 51 + + 80 THEN 80 END ) / + CASE - 88 WHEN + CAST( NULL AS DECIMAL ) * 46 THEN - COUNT( * ) * + + CAST( NULL AS DECIMAL ) + - COUNT( * ) + - + CAST( NULL AS SIGNED ) * - 26 WHEN 58 * - 77 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT 81 * ( - + CASE + CAST ( NULL AS INTEGER ) WHEN - + 51 + + 80 THEN 80 END ) / + CASE - 88 WHEN + CAST ( NULL AS REAL ) * 46 THEN - COUNT ( * ) * + + CAST ( NULL AS REAL ) + - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * - 26 WHEN 58 * - 77 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT + 43 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT + 43 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 11 - - + 83 AS col2
----
72

query I rowsort
SELECT COALESCE ( + - 87, + - 98 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT + - MAX( - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-5654
SELECT + - MAX ( - 24 )
----
24

query II rowsort
SELECT 29 * 70 AS col2, - 94 * - + 86 AS col0
----
2030
8084

query I rowsort
SELECT + - ( + 13 )
----
-13

query I rowsort
SELECT DISTINCT + 17 * - + 23 - + + 22
----
-413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT CAST( 26 AS SIGNED ) * - 61 AS col2
----
-1586

skipif mysql # not compatible
query I rowsort label-5658
SELECT CAST ( 26 AS INTEGER ) * - 61 AS col2
----
-1586

query I rowsort
SELECT 3 + + 98 + + 44 * + + 50
----
2301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5660
SELECT DISTINCT - CASE 81 WHEN COUNT( * ) THEN COUNT( ALL 64 ) * + 19 * + ( + - 50 ) - + - COUNT( * ) + - 80 + - 8 + - COUNT( * ) * + + CAST( NULL AS SIGNED ) * - - 32 ELSE - 30 * + + 90 + + COUNT( * ) - + - 15 END
----
2684

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT - CASE 81 WHEN COUNT ( * ) THEN COUNT ( ALL 64 ) * + 19 * + ( + - 50 ) - + - COUNT ( * ) + - 80 + - 8 + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * - - 32 ELSE - 30 * + + 90 + + COUNT ( * ) - + - 15 END
----
2684

query I rowsort
SELECT ALL - ( - 86 ) col0
----
86

query I rowsort
SELECT - 36 * + + 47 + 95
----
-1597

query I rowsort
SELECT 31 + - ( + + 23 ) AS col0
----
8

query I rowsort
SELECT ALL - 13 + - NULLIF ( - 43, 15 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5665
SELECT 77 * - + ( - 33 ) - - + COUNT( * ) - - COUNT( * ) * NULLIF ( - + 90, 62 + 79 * + 52 DIV + 17 ), - 7 DIV - 1 AS col0
----
2452
7

skipif mysql # not compatible
query II rowsort label-5665
SELECT 77 * - + ( - 33 ) - - + COUNT ( * ) - - COUNT ( * ) * NULLIF ( - + 90, 62 + 79 * + 52 / + 17 ), - 7 / - 1 AS col0
----
2452
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL - COUNT( * ) * + 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL - COUNT ( * ) * + 12 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5667
SELECT ALL + 86 + + + ( COUNT( * ) ) + - + MAX( + 23 ) + COUNT( * ) * - CAST( + + CASE 37 WHEN + 63 - - - 69 / + + SUM( + - 72 ) * + - 30 THEN + 78 * + MIN( ALL - 37 ) * + 97 + + - 8 WHEN + COUNT( * ) * + - COUNT( * ) THEN NULL WHEN 4 THEN NULL ELSE NULL END AS SIGNED ) / - COUNT( * ) + + SUM( ALL - 88 ) + + COALESCE ( + - 0, - - 69 + + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + 86 + + + ( COUNT ( * ) ) + - + MAX ( + 23 ) + COUNT ( * ) * - CAST ( + + CASE 37 WHEN + 63 - - - 69 / + + SUM ( + - 72 ) * + - 30 THEN + 78 * + MIN ( ALL - 37 ) * + 97 + + - 8 WHEN + COUNT ( * ) * + - COUNT ( * ) THEN NULL WHEN 4 THEN NULL ELSE NULL END AS INTEGER ) / - COUNT ( * ) + + SUM ( ALL - 88 ) + + COALESCE ( + - 0, - - 69 + + - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT ALL 97 + 93 DIV 13 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL 97 + 93 / 13 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL - 14 + + - 64 + + 54 + + 90 * + MAX( ALL 12 ) AS col1
----
1056

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL - 14 + + - 64 + + 54 + + 90 * + MAX ( ALL 12 ) AS col1
----
1056

query I rowsort
SELECT + ( - 15 ) * - 40 * 40 + - 2 AS col2
----
23998

query I rowsort
SELECT 37 + 24 AS col2
----
61

query I rowsort
SELECT 47 + 98 * - 15 AS col0
----
-1423

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT SUM( + + 38 ) - + 74 col1
----
-36

skipif mysql # not compatible
query I rowsort label-5673
SELECT SUM ( + + 38 ) - + 74 col1
----
-36

query II rowsort
SELECT 41 AS col1, 8
----
41
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5675
SELECT DISTINCT - 6 DIV - - COALESCE ( - + 7, 33 DIV COUNT( * ) * - 69 + CAST( - 49 AS SIGNED ), - 67 ) * + 12 * - 69
----
0

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT - 6 / - - COALESCE ( - + 7, 33 / COUNT ( * ) * - 69 + CAST ( - 49 AS INTEGER ), - 67 ) * + 12 * - 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ALL ( + 44 ) * - COUNT( DISTINCT + 90 )
----
-44

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL ( + 44 ) * - COUNT ( DISTINCT + 90 )
----
-44

query I rowsort
SELECT DISTINCT - ( 53 )
----
-53

query I rowsort
SELECT ALL 11 - - - 29
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5679
SELECT 18 * - 49 * CAST( NULL AS SIGNED ) / - 28 * 1 + + CASE + + 34 WHEN + + COUNT( * ) THEN + 91 - + 91 END * 65 * + + 50 * ( - - 90 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT 18 * - 49 * CAST ( NULL AS INTEGER ) / - 28 * 1 + + CASE + + 34 WHEN + + COUNT ( * ) THEN + 91 - + 91 END * 65 * + + 50 * ( - - 90 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT 6 + - + COUNT( * ) + - 85 + 21
----
-59

skipif mysql # not compatible
query I rowsort label-5680
SELECT 6 + - + COUNT ( * ) + - 85 + 21
----
-59

query I rowsort
SELECT + 17 + + 29 + + ( - 58 )
----
-12

query I rowsort
SELECT - - CASE 15 WHEN + + 68 THEN + 55 WHEN 32 / 86 THEN - - 81 END
----
NULL

query I rowsort
SELECT ALL - ( 99 ) AS col1
----
-99

query I rowsort
SELECT + 44 * + 19
----
836

query I rowsort
SELECT ALL - ( + NULLIF ( + - 65, - 96 ) ) col1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5686
SELECT DISTINCT + 29 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT + 29 / + 53
----
0

query I rowsort
SELECT - 66 + - COALESCE ( + ( + + 49 ), - - 27 ) AS col2
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5688
SELECT ALL COUNT( * ) DIV + - NULLIF ( - + MAX( DISTINCT - - ( + 85 ) ), - + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL COUNT ( * ) / + - NULLIF ( - + MAX ( DISTINCT - - ( + 85 ) ), - + 55 )
----
0

query I rowsort
SELECT - 10 * 73
----
-730

query I rowsort
SELECT 98 + + ( + 50 )
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5691
SELECT DISTINCT - 5 * + + 23 DIV + COUNT( * ) - - 72 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT - 5 * + + 23 / + COUNT ( * ) - - 72 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT - SUM( - 14 ) * + - COUNT( * ) + + 97 * + 37 * - 47 * + COUNT( + 33 )
----
-168697

skipif mysql # not compatible
query I rowsort label-5692
SELECT - SUM ( - 14 ) * + - COUNT ( * ) + + 97 * + 37 * - 47 * + COUNT ( + 33 )
----
-168697

query I rowsort
SELECT 22 * - - 50 AS col2
----
1100

query I rowsort
SELECT DISTINCT 80 * - + 17
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT DISTINCT - 0 + - COUNT( DISTINCT 41 ) + CASE - 10 WHEN - 31 + + - 18 THEN + NULLIF ( 83, + - 81 / - - MAX( - - 12 ) ) / + + 44 * + 61 + 85 WHEN + + 16 THEN + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT - 0 + - COUNT ( DISTINCT 41 ) + CASE - 10 WHEN - 31 + + - 18 THEN + NULLIF ( 83, + - 81 / - - MAX ( - - 12 ) ) / + + 44 * + 61 + 85 WHEN + + 16 THEN + 67 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5696
SELECT COUNT( * ), CAST( + COUNT( ALL + 79 ) AS SIGNED )
----
1
1

skipif mysql # not compatible
query II rowsort label-5696
SELECT COUNT ( * ), CAST ( + COUNT ( ALL + 79 ) AS INTEGER )
----
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5697
SELECT ALL - 10 DIV + - 50, + 9 AS col1
----
0
9

skipif mysql # not compatible
query II rowsort label-5697
SELECT ALL - 10 / + - 50, + 9 AS col1
----
0
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT 13 AS col1, + 26 * - + COUNT( * ) AS col0
----
13
-26

skipif mysql # not compatible
query II rowsort label-5698
SELECT 13 AS col1, + 26 * - + COUNT ( * ) AS col0
----
13
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5699
SELECT ALL + 83 - - + ( 75 ) DIV + - 46 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + 83 - - + ( 75 ) / + - 46 AS col1
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-5700
SELECT 27, 8 DIV + 8 AS col0
----
27
1

skipif mysql # not compatible
query II rowsort label-5700
SELECT 27, 8 / + 8 AS col0
----
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT ALL ( - NULLIF ( - 77, - - 49 + COUNT( * ) ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL ( - NULLIF ( - 77, - - 49 + COUNT ( * ) ) ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT - COUNT( * ) + - 46 col0
----
-47

skipif mysql # not compatible
query I rowsort label-5702
SELECT - COUNT ( * ) + - 46 col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5703
SELECT - CAST( - 56 AS SIGNED ) * + + ( - 33 ) * - 73 col1
----
134904

skipif mysql # not compatible
query I rowsort label-5703
SELECT - CAST ( - 56 AS INTEGER ) * + + ( - 33 ) * - 73 col1
----
134904

query I rowsort
SELECT - 78 - - NULLIF ( - 31, ( 89 ) + - 10 + - 48 )
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT - + CAST( 84 AS SIGNED ) + + ( - - ( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT - + CAST ( 84 AS INTEGER ) + + ( - - ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 71 + + 49 AS col0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT - CAST( + - 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-5707
SELECT - CAST ( + - 43 AS INTEGER )
----
43

query I rowsort
SELECT ALL 67 * - 86 AS col1
----
-5762

query I rowsort
SELECT + 37 * - 84 * + 11 AS col2
----
-34188

query I rowsort
SELECT DISTINCT - + 21 * 37 AS col1
----
-777

onlyif mysql # DIV for integer division: 
query II rowsort label-5711
SELECT - 94 AS col1, - 6 DIV + + ( + - 76 )
----
-94
0

skipif mysql # not compatible
query II rowsort label-5711
SELECT - 94 AS col1, - 6 / + + ( + - 76 )
----
-94
0

query I rowsort
SELECT ALL 25 * + 79 + 15
----
1990

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT + MAX( + ( 68 ) )
----
68

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT + MAX ( + ( 68 ) )
----
68

query I rowsort
SELECT - + 45 * 6
----
-270

query II rowsort
SELECT 60 col2, 53 + 26
----
60
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL + NULLIF ( + 5, CASE 99 WHEN 40 * NULLIF ( - - COUNT( DISTINCT + 38 ), 58 * 4 ) THEN + 23 END ) * - + ( 4 ) + + + SUM( DISTINCT 50 ) + 34 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL + NULLIF ( + 5, CASE 99 WHEN 40 * NULLIF ( - - COUNT ( DISTINCT + 38 ), 58 * 4 ) THEN + 23 END ) * - + ( 4 ) + + + SUM ( DISTINCT 50 ) + 34 AS col2
----
64

query I rowsort
SELECT + 75 * - 31 AS col2
----
-2325

query I rowsort
SELECT DISTINCT + ( - - 22 )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5719
SELECT DISTINCT + 46 * - COUNT( * ) + 35 + + 44 DIV - + 73 * 47
----
-11

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT + 46 * - COUNT ( * ) + 35 + + 44 / - + 73 * 47
----
-11

query I rowsort
SELECT ALL 28 * + 45 + 23 * 10 + + 95 col2
----
1585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5721
SELECT + COUNT( * ) DIV - + 48
----
0

skipif mysql # not compatible
query I rowsort label-5721
SELECT + COUNT ( * ) / - + 48
----
0

query I rowsort
SELECT + 3 * - 98 * + 78 AS col2
----
-22932

query I rowsort
SELECT 14 * + ( + 85 ) + 89 + 83 AS col0
----
1362

query I rowsort
SELECT CASE - ( + 85 ) WHEN - 91 - + 45 - 50 THEN - - 87 + + 3 / 41 ELSE 85 END col2
----
85

query I rowsort
SELECT NULLIF ( - - 97, - 99 + + + 63 ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5726
SELECT ALL 62 * + CAST( NULL AS SIGNED ) AS col0, 16 AS col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL 62 * + CAST ( NULL AS INTEGER ) AS col0, 16 AS col2
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT - MIN( DISTINCT + + 3 ) * + 12
----
-36

skipif mysql # not compatible
query I rowsort label-5727
SELECT - MIN ( DISTINCT + + 3 ) * + 12
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT + 90 * CAST( NULL AS SIGNED ) + + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT + 90 * CAST ( NULL AS INTEGER ) + + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT ALL COUNT( * ) * + 58 - + + 33 + - 2 * + 18
----
-11

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL COUNT ( * ) * + 58 - + + 33 + - 2 * + 18
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL 26 * CASE + + NULLIF ( COUNT( * ), + - 94 ) WHEN - 61 THEN 85 / - - 56 - + + 12 END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL 26 * CASE + + NULLIF ( COUNT ( * ), + - 94 ) WHEN - 61 THEN 85 / - - 56 - + + 12 END * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT - 13 + + SUM( ALL 29 ) * + + 80 AS col2
----
2307

skipif mysql # not compatible
query I rowsort label-5731
SELECT - 13 + + SUM ( ALL 29 ) * + + 80 AS col2
----
2307

query I rowsort
SELECT ALL 52 * + 23 * + + 41 * + 40 - - 91 + - 98 + - 55
----
1961378

query I rowsort
SELECT - ( 33 ) + + 7 * - 75
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT + - COUNT( + 18 ) * - - NULLIF ( ( - 50 ), + COUNT( * ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5734
SELECT + - COUNT ( + 18 ) * - - NULLIF ( ( - 50 ), + COUNT ( * ) ) AS col0
----
50

query I rowsort
SELECT - - 62 * - 33 AS col2
----
-2046

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5736
SELECT - + CAST( - 79 AS SIGNED ) col2, 56 * 98 AS col2
----
79
5488

skipif mysql # not compatible
query II rowsort label-5736
SELECT - + CAST ( - 79 AS INTEGER ) col2, 56 * 98 AS col2
----
79
5488

onlyif mysql # DIV for integer division: 
query I rowsort label-5737
SELECT ALL + 23 DIV 59 DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + 23 / 59 / 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT + - NULLIF ( + 69, COUNT( * ) - 37 ) + + 38
----
-31

skipif mysql # not compatible
query I rowsort label-5738
SELECT + - NULLIF ( + 69, COUNT ( * ) - 37 ) + + 38
----
-31

query II rowsort
SELECT - - 12 + + 25 AS col1, + 68 + + 6
----
37
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5740
SELECT - ( COALESCE ( + - 41, 0 DIV - 13 + + - ( + + 76 ) ) ) * - + MIN( ALL + 92 ) AS col0
----
-3772

skipif mysql # not compatible
query I rowsort label-5740
SELECT - ( COALESCE ( + - 41, 0 / - 13 + + - ( + + 76 ) ) ) * - + MIN ( ALL + 92 ) AS col0
----
-3772

query I rowsort
SELECT ALL + ( + 39 ) * - 37 AS col0
----
-1443

query I rowsort
SELECT DISTINCT - COALESCE ( 2, 71, - 51 ) col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5743
SELECT - - 35 * - 22 + - COUNT( * ) DIV + 58
----
-770

skipif mysql # not compatible
query I rowsort label-5743
SELECT - - 35 * - 22 + - COUNT ( * ) / + 58
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT ALL - ( 51 ) * + + 75 * + MAX( DISTINCT - 51 )
----
195075

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - ( 51 ) * + + 75 * + MAX ( DISTINCT - 51 )
----
195075

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT - + ( + - 46 ), 17 * MAX( DISTINCT - 59 ) AS col2
----
46
-1003

skipif mysql # not compatible
query II rowsort label-5745
SELECT - + ( + - 46 ), 17 * MAX ( DISTINCT - 59 ) AS col2
----
46
-1003

query I rowsort
SELECT ALL + 80 + - ( + + 78 ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT - 88 + - 71 DIV 99 col1
----
-88

skipif mysql # not compatible
query I rowsort label-5747
SELECT - 88 + - 71 / 99 col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5748
SELECT - + CASE - COUNT( * ) WHEN + 42 * - 84 THEN + 17 * + - 78 ELSE + - COALESCE ( - - 44, - 15 * 83 / - COUNT( * ) ) * 28 + - + ( - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT - + CASE - COUNT ( * ) WHEN + 42 * - 84 THEN + 17 * + - 78 ELSE + - COALESCE ( - - 44, - 15 * 83 / - COUNT ( * ) ) * 28 + - + ( - CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT - 1 + + 37 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT + ( - 66 ) * - 70 + + CASE - - NULLIF ( + COALESCE ( ( - 69 ), SUM( + 85 ) ), + 17 ) WHEN + + COUNT( * ) THEN NULL WHEN 15 THEN 9 END / 37 + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT + ( - 66 ) * - 70 + + CASE - - NULLIF ( + COALESCE ( ( - 69 ), SUM ( + 85 ) ), + 17 ) WHEN + + COUNT ( * ) THEN NULL WHEN 15 THEN 9 END / 37 + + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT DISTINCT + - COUNT( + + ( + 0 ) ) + + 3
----
2

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT + - COUNT ( + + ( + 0 ) ) + + 3
----
2

query I rowsort
SELECT DISTINCT + + 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT - ( + COUNT( * ) ) + - - 27 + 93 * - - 12 AS col2
----
1142

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - ( + COUNT ( * ) ) + - - 27 + 93 * - - 12 AS col2
----
1142

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5754
SELECT 18 DIV + 39 + CAST( + 15 AS SIGNED ) * + 49 AS col2
----
735

skipif mysql # not compatible
query I rowsort label-5754
SELECT 18 / + 39 + CAST ( + 15 AS INTEGER ) * + 49 AS col2
----
735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5755
SELECT ALL + CAST( NULL AS SIGNED ) * - + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT CASE 4 WHEN 22 * - 54 THEN NULL WHEN 29 THEN - 47 + + + COUNT( * ) END + - 27 + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT CASE 4 WHEN 22 * - 54 THEN NULL WHEN 29 THEN - 47 + + + COUNT ( * ) END + - 27 + 83 col0
----
NULL

query I rowsort
SELECT 28 * 79
----
2212

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5758
SELECT DISTINCT + 9 * CASE + CAST( COUNT( * ) AS DECIMAL ) WHEN + 14 THEN + 41 - 31 + ( + - 99 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT + 9 * CASE + CAST ( COUNT ( * ) AS REAL ) WHEN + 14 THEN + 41 - 31 + ( + - 99 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5759
SELECT 73 + + 41 - 76 - + 69 + + 47 + + COUNT( * ) - + - SUM( DISTINCT + 40 ) * 42 DIV + 7 + - + 50 - - 66 - 96
----
177

skipif mysql # not compatible
query I rowsort label-5759
SELECT 73 + + 41 - 76 - + 69 + + 47 + + COUNT ( * ) - + - SUM ( DISTINCT + 40 ) * 42 / + 7 + - + 50 - - 66 - 96
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-5760
SELECT ( 6 ) * + 20 + - 15 DIV + 87
----
120

skipif mysql # not compatible
query I rowsort label-5760
SELECT ( 6 ) * + 20 + - 15 / + 87
----
120

query II rowsort
SELECT ( 12 ) * - - 68 * - - 8 + + 29 + - 68 + - 56 * 56 * 98 + + - 35 * + + 94, 81 col1
----
-304129
81

query I rowsort
SELECT DISTINCT - COALESCE ( + 16, 61 * + 14 )
----
-16

query I rowsort
SELECT DISTINCT 67 * 23
----
1541

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT DISTINCT 78 DIV - + 25
----
-3

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT 78 / - + 25
----
-3

query I rowsort
SELECT 62 - + 46
----
16

query I rowsort
SELECT DISTINCT 13 * - 50
----
-650

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5767
SELECT - 72, 79 DIV + + COUNT( * ) AS col2
----
-72
79

skipif mysql # not compatible
query II rowsort label-5767
SELECT - 72, 79 / + + COUNT ( * ) AS col2
----
-72
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT ALL + + 45 + + - SUM( + 1 ) + - + 73
----
-29

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL + + 45 + + - SUM ( + 1 ) + - + 73
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT - ( - CAST( - 21 AS SIGNED ) ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-5769
SELECT - ( - CAST ( - 21 AS INTEGER ) ) col1
----
-21

query II rowsort
SELECT 9 AS col0, 69 AS col1
----
9
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL 2 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL 2 + + COUNT ( * )
----
3

query I rowsort
SELECT ALL + 51 + + 62 AS col2
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5773
SELECT - CAST( + 34 AS SIGNED ) + - + 55 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-5773
SELECT - CAST ( + 34 AS INTEGER ) + - + 55 AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5774
SELECT - 85 DIV SUM( DISTINCT - 68 ) * - + 37 DIV + + 63 - - 47 DIV - 25 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5774
SELECT - 85 / SUM ( DISTINCT - 68 ) * - + 37 / + + 63 - - 47 / - 25 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT 50 + + - 93 + + + MAX( + + 99 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5775
SELECT 50 + + - 93 + + + MAX ( + + 99 ) AS col0
----
56

query I rowsort
SELECT DISTINCT - + 53 + 93 + + NULLIF ( + 88, + 33 ) AS col2
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT ALL 73 + + CAST( + + 80 AS SIGNED ) AS col1
----
153

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL 73 + + CAST ( + + 80 AS INTEGER ) AS col1
----
153

query I rowsort
SELECT DISTINCT - 68 - - 65 col0
----
-3

query I rowsort
SELECT DISTINCT + NULLIF ( - 16, - 94 ) * + - 11
----
176

query I rowsort
SELECT 28 - - 74
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5781
SELECT ALL - 51 - + 73 + + 65 * - - 13 + 10 / + CAST( NULL AS SIGNED ) * - + 95 + 75 * + ( - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL - 51 - + 73 + + 65 * - - 13 + 10 / + CAST ( NULL AS INTEGER ) * - + 95 + 75 * + ( - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 69 - - 7
----
-62

query I rowsort
SELECT DISTINCT - ( - 81 ) AS col2
----
81

query I rowsort
SELECT ALL - ( - 64 ) AS col0
----
64

query II rowsort
SELECT DISTINCT - 79 * - 30 * + ( 82 ), - 20 col1
----
194340
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL - COALESCE ( 98, - 11 * 29 + - - MIN( DISTINCT + 56 ) ) col0
----
-98

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL - COALESCE ( 98, - 11 * 29 + - - MIN ( DISTINCT + 56 ) ) col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5787
SELECT + 25 DIV + COUNT( * ) + + 4 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5787
SELECT + 25 / + COUNT ( * ) + + 4 AS col2
----
29

query I rowsort
SELECT 1 * + 61 * - 33
----
-2013

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5789
SELECT ALL - 61 * - ( - - 64 ) * + + CAST( NULL AS DECIMAL ) + - + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL - 61 * - ( - - 64 ) * + + CAST ( NULL AS REAL ) + - + 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT 72 + + 57 + 8 * + 85 + COUNT( * ) * - 62 + - 35
----
712

skipif mysql # not compatible
query I rowsort label-5790
SELECT 72 + + 57 + 8 * + 85 + COUNT ( * ) * - 62 + - 35
----
712

query I rowsort
SELECT 88 * 65 - + + 38 * 2
----
5644

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT + COUNT( * ) * + 28 + - 99
----
-71

skipif mysql # not compatible
query I rowsort label-5792
SELECT + COUNT ( * ) * + 28 + - 99
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT + MAX( DISTINCT - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-5793
SELECT + MAX ( DISTINCT - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT COUNT( * ) + - ( - 56 )
----
57

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT COUNT ( * ) + - ( - 56 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT ( - COUNT( * ) ) + + + 87 + 7 * - 12 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5795
SELECT ( - COUNT ( * ) ) + + + 87 + 7 * - 12 AS col2
----
2

query I rowsort
SELECT ALL - + CASE - ( 5 ) WHEN - + 14 / - - 57 * + 40 * + 68 THEN - 70 END col1
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( ( + 69 ), 37 ) + - - 90
----
21

query I rowsort
SELECT + 94 + + - 26 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT ALL 34 * COALESCE ( - COUNT( * ), + - SUM( 21 ) * - 74 )
----
-34

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL 34 * COALESCE ( - COUNT ( * ), + - SUM ( 21 ) * - 74 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5800
SELECT ALL 91 + + + COUNT( DISTINCT + - 99 ) + 62 DIV 15 * - - 70 AS col2
----
372

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL 91 + + + COUNT ( DISTINCT + - 99 ) + 62 / 15 * - - 70 AS col2
----
372

query I rowsort
SELECT 88 * 70 AS col1
----
6160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5802
SELECT - 74 * + 35 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT - 74 * + 35 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 44 + 25 + - + 92 + + - 15 + + - COALESCE ( + + 65, + ( - 53 ) * + 59 - + NULLIF ( + 4, - - 59 + + 82 ) + + + 85 ) * 2 AS col0
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL + MIN( ALL - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL + MIN ( ALL - 57 ) AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT ALL + COALESCE ( ( - 84 ), + - 10 * - - 26 DIV 14, COALESCE ( - 1, - - 61 ) ) + + + 89
----
5

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL + COALESCE ( ( - 84 ), + - 10 * - - 26 / 14, COALESCE ( - 1, - - 61 ) ) + + + 89
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5806
SELECT DISTINCT CAST( - 77 AS SIGNED ) * 83
----
-6391

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT CAST ( - 77 AS INTEGER ) * 83
----
-6391

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL - COUNT( * ) - - ( + + 99 )
----
98

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL - COUNT ( * ) - - ( + + 99 )
----
98

query I rowsort
SELECT + - 33 * + 24 AS col1
----
-792

query I rowsort
SELECT + + 59 + 59 * + 94
----
5605

query I rowsort
SELECT ALL 69 - + 58
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5811
SELECT + 75 * - - COUNT( - 99 ) * - - COUNT( - CAST( NULL AS DECIMAL ) ) DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT + 75 * - - COUNT ( - 99 ) * - - COUNT ( - CAST ( NULL AS REAL ) ) / 81 AS col0
----
0

query I rowsort
SELECT - 80 * + ( 17 ) AS col1
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT + 92 + + + MAX( + - 92 ) * - - 57 col0
----
-5152

skipif mysql # not compatible
query I rowsort label-5813
SELECT + 92 + + + MAX ( + - 92 ) * - - 57 col0
----
-5152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5814
SELECT + COUNT( ALL - - 74 ) + 55 DIV + + 13
----
5

skipif mysql # not compatible
query I rowsort label-5814
SELECT + COUNT ( ALL - - 74 ) + 55 / + + 13
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5815
SELECT - 33 DIV ( 79 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5815
SELECT - 33 / ( 79 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL - 64 * + SUM( DISTINCT - - 30 ) AS col2
----
-1920

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL - 64 * + SUM ( DISTINCT - - 30 ) AS col2
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + 44 * MAX( 82 ) AS col0
----
3608

skipif mysql # not compatible
query I rowsort label-5817
SELECT + 44 * MAX ( 82 ) AS col0
----
3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5818
SELECT DISTINCT COUNT( + 51 ) DIV + 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT COUNT ( + 51 ) / + 35 AS col1
----
0

query I rowsort
SELECT ALL + 92 * - 66
----
-6072

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT + 15 * + - 87 * - COUNT( * ) * - 26 + - 31 + - 16 - COUNT( * ) * + 72
----
-34049

skipif mysql # not compatible
query I rowsort label-5820
SELECT + 15 * + - 87 * - COUNT ( * ) * - 26 + - 31 + - 16 - COUNT ( * ) * + 72
----
-34049

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT - 97 DIV - 31 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5821
SELECT - 97 / - 31 AS col2
----
3

query I rowsort
SELECT ALL 3 * + + COALESCE ( 31, + 25 + 14 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5823
SELECT 92 DIV + 81 + MAX( - - 20 ) * + - 7 AS col1
----
-139

skipif mysql # not compatible
query I rowsort label-5823
SELECT 92 / + 81 + MAX ( - - 20 ) * + - 7 AS col1
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL + MAX( - - 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + MAX ( - - 2 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5825
SELECT ALL + CAST( + 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL + CAST ( + 7 AS INTEGER )
----
7

query I rowsort
SELECT ALL + 93 * + 96
----
8928

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT COALESCE ( - 7, + - 88 DIV NULLIF ( - 67, - + 19 ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5827
SELECT COALESCE ( - 7, + - 88 / NULLIF ( - 67, - + 19 ) ) AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5828
SELECT - 43 * 37 DIV + 75 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-5828
SELECT - 43 * 37 / + 75 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL + CASE - 90 WHEN - COUNT( * ) THEN - - 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL + CASE - 90 WHEN - COUNT ( * ) THEN - - 25 ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( ( 20 ), - 33 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5831
SELECT DISTINCT CAST( ( - CAST( + - COUNT( * ) AS SIGNED ) ) AS DECIMAL ) * + COUNT( * ) / CASE + + SUM( ALL 68 ) WHEN 2 * - - ( - + 86 ) THEN - - 77 + + COUNT( * ) WHEN + 35 * + 49 THEN NULL END + 98 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT CAST ( ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) AS REAL ) * + COUNT ( * ) / CASE + + SUM ( ALL 68 ) WHEN 2 * - - ( - + 86 ) THEN - - 77 + + COUNT ( * ) WHEN + 35 * + 49 THEN NULL END + 98 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5832
SELECT DISTINCT + AVG ( - - CAST( NULL AS SIGNED ) ) * ( 8 ) + + + 0 + 41 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT + AVG ( - - CAST ( NULL AS INTEGER ) ) * ( 8 ) + + + 0 + 41 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT CASE - COUNT( * ) WHEN - 86 THEN NULL WHEN 1 THEN 94 + + 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT CASE - COUNT ( * ) WHEN - 86 THEN NULL WHEN 1 THEN 94 + + 79 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT DISTINCT - + 1 * - + 80 * - MAX( DISTINCT - 70 ) + + COUNT( * ) col0
----
5601

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT - + 1 * - + 80 * - MAX ( DISTINCT - 70 ) + + COUNT ( * ) col0
----
5601

query I rowsort
SELECT + + 23 * 58 AS col0
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ALL + 48 - - COUNT( 68 )
----
49

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL + 48 - - COUNT ( 68 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT - SUM( DISTINCT + + COALESCE ( - 44, + 49 + + 1 * 36, 75 * + 50 ) ) * - 82 AS col2
----
-3608

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT - SUM ( DISTINCT + + COALESCE ( - 44, + 49 + + 1 * 36, 75 * + 50 ) ) * - 82 AS col2
----
-3608

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL COUNT( * ) - - - 81 - + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL COUNT ( * ) - - - 81 - + COUNT ( * )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5839
SELECT + CAST( ( COALESCE ( + 93, + COUNT( * ) + 44 - - + COUNT( * ) * + 97 ) ) AS SIGNED ) - - 78 - - NULLIF ( + + COUNT( * ), 63 * ( 34 ) + - 65 ) + + 48
----
220

skipif mysql # not compatible
query I rowsort label-5839
SELECT + CAST ( ( COALESCE ( + 93, + COUNT ( * ) + 44 - - + COUNT ( * ) * + 97 ) ) AS INTEGER ) - - 78 - - NULLIF ( + + COUNT ( * ), 63 * ( 34 ) + - 65 ) + + 48
----
220

query I rowsort
SELECT + - 46 + + 48
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT COALESCE ( 5, - 85 * + - 19 + COUNT( * ) + - - 34 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT COALESCE ( 5, - 85 * + - 19 + COUNT ( * ) + - - 34 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT - MIN( - 12 )
----
12

skipif mysql # not compatible
query I rowsort label-5842
SELECT - MIN ( - 12 )
----
12

query I rowsort
SELECT ALL 91 - - 41
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5844
SELECT - - COUNT( * ) DIV 26 * 24
----
0

skipif mysql # not compatible
query I rowsort label-5844
SELECT - - COUNT ( * ) / 26 * 24
----
0

query I rowsort
SELECT + - 96 * + 61 * + 20 * + + 70
----
-8198400

query II rowsort
SELECT 87, 81 * - 76 AS col0
----
87
-6156

query I rowsort
SELECT - 51 + - 15 + - 81 * - 10 col2
----
744

query I rowsort
SELECT + 57 * 97 AS col2
----
5529

query I rowsort
SELECT - NULLIF ( - 77, ( - + 47 ) ) AS col0
----
77

query I rowsort
SELECT + 74 + + 1 + 21
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5851
SELECT + ( - + NULLIF ( - + 1, - 56 ) ) - - 14 DIV + 36 * 32
----
1

skipif mysql # not compatible
query I rowsort label-5851
SELECT + ( - + NULLIF ( - + 1, - 56 ) ) - - 14 / + 36 * 32
----
1

query II rowsort
SELECT DISTINCT 75 AS col1, 34 col0
----
75
34

query I rowsort
SELECT ALL 27 * - + 17 * - 19
----
8721

query II rowsort
SELECT 73, 9 AS col2
----
73
9

query II rowsort
SELECT DISTINCT 62 * + + 6, + 45 AS col0
----
372
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT + 85 * MIN( - + 40 )
----
-3400

skipif mysql # not compatible
query I rowsort label-5856
SELECT + 85 * MIN ( - + 40 )
----
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT + COUNT( ALL + 78 ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5857
SELECT + COUNT ( ALL + 78 ) * + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5858
SELECT ALL 97 + 1 + ( - + COUNT( * ) ) + + - 36 + - 60 DIV COUNT( * ) * COUNT( DISTINCT + 33 ) * - + SUM( DISTINCT + 96 )
----
5821

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL 97 + 1 + ( - + COUNT ( * ) ) + + - 36 + - 60 / COUNT ( * ) * COUNT ( DISTINCT + 33 ) * - + SUM ( DISTINCT + 96 )
----
5821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5859
SELECT + 2 - - 38 - 97 - - + 1 + + 73 DIV + 38 + + NULLIF ( + + 74, 68 + 52 + COALESCE ( - COUNT( * ), - COUNT( DISTINCT + 79 ) + 70 + - 55 + - COUNT( * ) + + 65 * - 3 DIV - 17 ) + + 86 * + ( + + ( + 0 ) ) + - - 5 ) * - 24 AS col1
----
-1831

skipif mysql # not compatible
query I rowsort label-5859
SELECT + 2 - - 38 - 97 - - + 1 + + 73 / + 38 + + NULLIF ( + + 74, 68 + 52 + COALESCE ( - COUNT ( * ), - COUNT ( DISTINCT + 79 ) + 70 + - 55 + - COUNT ( * ) + + 65 * - 3 / - 17 ) + + 86 * + ( + + ( + 0 ) ) + - - 5 ) * - 24 AS col1
----
-1831

onlyif mysql # aggregate syntax: 
query II rowsort label-5860
SELECT DISTINCT + COUNT( * ) AS col0, 72 * + COUNT( * ) AS col0
----
1
72

skipif mysql # not compatible
query II rowsort label-5860
SELECT DISTINCT + COUNT ( * ) AS col0, 72 * + COUNT ( * ) AS col0
----
1
72

query I rowsort
SELECT - 61 * - 26
----
1586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5862
SELECT ALL 16 DIV + COUNT( * ) + - 64
----
-48

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL 16 / + COUNT ( * ) + - 64
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT DISTINCT + SUM( - 2 ) * + + 64
----
-128

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT + SUM ( - 2 ) * + + 64
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5864
SELECT DISTINCT 22 / + CAST( NULL AS SIGNED ) + + 41 - + - NULLIF ( - 0, + - 22 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT 22 / + CAST ( NULL AS INTEGER ) + + 41 - + - NULLIF ( - 0, + - 22 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT + - 7 + - 78 * + - 24 + MAX( - - 99 ) * - COALESCE ( NULLIF ( + ( + + ( - 73 ) ), - 97 ), - 89 * - 12 ) * + 81 AS col2
----
587252

skipif mysql # not compatible
query I rowsort label-5865
SELECT + - 7 + - 78 * + - 24 + MAX ( - - 99 ) * - COALESCE ( NULLIF ( + ( + + ( - 73 ) ), - 97 ), - 89 * - 12 ) * + 81 AS col2
----
587252

query I rowsort
SELECT - - ( 60 ) * + - 47 AS col0
----
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT MIN( DISTINCT 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5867
SELECT MIN ( DISTINCT 23 ) AS col1
----
23

query I rowsort
SELECT + + 33 + + 42 * 17
----
747

query II rowsort
SELECT ALL + 68 AS col1, - 56 AS col0
----
68
-56

query I rowsort
SELECT ALL + + 73 col2
----
73

query I rowsort
SELECT - 88 * 58 + - 71
----
-5175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5872
SELECT - 12 - + - 89 + - + CASE + - 42 WHEN + - COUNT( + 79 ) / + - 98 THEN - 40 / + CAST( NULL AS SIGNED ) WHEN - MIN( - 38 ) THEN 16 END + + COUNT( * ) * + 59 * COALESCE ( + - 53, 4 ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5872
SELECT - 12 - + - 89 + - + CASE + - 42 WHEN + - COUNT ( + 79 ) / + - 98 THEN - 40 / + CAST ( NULL AS INTEGER ) WHEN - MIN ( - 38 ) THEN 16 END + + COUNT ( * ) * + 59 * COALESCE ( + - 53, 4 ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT - 65 * + NULLIF ( COUNT( * ), + 61 * + 45 * COUNT( * ) * - COUNT( * ) ) AS col1, + MAX( DISTINCT + 85 ) - - + 76 AS col1
----
-65
161

skipif mysql # not compatible
query II rowsort label-5873
SELECT - 65 * + NULLIF ( COUNT ( * ), + 61 * + 45 * COUNT ( * ) * - COUNT ( * ) ) AS col1, + MAX ( DISTINCT + 85 ) - - + 76 AS col1
----
-65
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5874
SELECT ALL - 11 - ( COUNT( * ) ) DIV - 91 + - + 1 * - + 30 * - 76 * - NULLIF ( 89, + - 13 * - + 9 * + + 70 + - - MIN( - 18 ) - + AVG ( - 52 ) ) AS col1
----
202909

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - 11 - ( COUNT ( * ) ) / - 91 + - + 1 * - + 30 * - 76 * - NULLIF ( 89, + - 13 * - + 9 * + + 70 + - - MIN ( - 18 ) - + AVG ( - 52 ) ) AS col1
----
202909

query I rowsort
SELECT 27 * 0 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5876
SELECT 42 * + COUNT( - 10 ) + + - COALESCE ( CASE + 65 WHEN 68 * + ( 72 ) THEN + CASE - 95 WHEN - COUNT( * ) THEN - + CASE + 25 WHEN - 24 THEN NULL WHEN - COUNT( * ) THEN - + 89 END + + 70 * - COUNT( * ) * + - ( + CASE WHEN SUM( ALL - - 74 ) NOT BETWEEN + 41 AND CAST( NULL AS SIGNED ) DIV + - COALESCE ( + ( + 88 ), 29 * 93 ) + 82 + 16 * + + 53 DIV 3 + - - 74 - + CASE + 31 WHEN - COUNT( * ) * 23 THEN + 5 * 66 + - - 90 WHEN 19 DIV + 69 THEN - 35 END + MAX( DISTINCT ( + 37 ) - 84 ) THEN NULL WHEN - 62 IS NOT NULL THEN 9 + + COALESCE ( + 57 + + CASE 7 WHEN + ( AVG ( - 51 ) ) * 6 THEN COUNT( * ) END DIV 72, + 44 ) ELSE NULL END ) - 5 WHEN - ( 58 ) * CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE NULL END ELSE 69 END, COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-5876
SELECT 42 * + COUNT ( - 10 ) + + - COALESCE ( CASE + 65 WHEN 68 * + ( 72 ) THEN + CASE - 95 WHEN - COUNT ( * ) THEN - + CASE + 25 WHEN - 24 THEN NULL WHEN - COUNT ( * ) THEN - + 89 END + + 70 * - COUNT ( * ) * + - ( + CASE WHEN SUM ( ALL - - 74 ) NOT BETWEEN + 41 AND CAST ( NULL AS INTEGER ) / + - COALESCE ( + ( + 88 ), 29 * 93 ) + 82 + 16 * + + 53 / 3 + - - 74 - + CASE + 31 WHEN - COUNT ( * ) * 23 THEN + 5 * 66 + - - 90 WHEN 19 / + 69 THEN - 35 END + MAX ( DISTINCT ( + 37 ) - 84 ) THEN NULL WHEN - 62 IS NOT NULL THEN 9 + + COALESCE ( + 57 + + CASE 7 WHEN + ( AVG ( - 51 ) ) * 6 THEN COUNT ( * ) END / 72, + 44 ) ELSE NULL END ) - 5 WHEN - ( 58 ) * CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END ELSE 69 END, COUNT ( * ) )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5877
SELECT ALL - SUM( + - 42 ), - COUNT( * ) col0
----
42
-1

skipif mysql # not compatible
query II rowsort label-5877
SELECT ALL - SUM ( + - 42 ), - COUNT ( * ) col0
----
42
-1

query II rowsort
SELECT 77 AS col0, - 15
----
77
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5879
SELECT COUNT( * ) * + 95 DIV COUNT( * ) - - COALESCE ( + 35, COUNT( * ) + - + 13 ) + + ( ( - + 72 ) )
----
58

skipif mysql # not compatible
query I rowsort label-5879
SELECT COUNT ( * ) * + 95 / COUNT ( * ) - - COALESCE ( + 35, COUNT ( * ) + - + 13 ) + + ( ( - + 72 ) )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5880
SELECT COUNT( * ) DIV 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5880
SELECT COUNT ( * ) / 49 AS col0
----
0

query I rowsort
SELECT ALL + ( - 67 ) * + 4 * + + 27
----
-7236

query II rowsort
SELECT 7 * - - 99 + + - 61 + + 24 col0, 58 + 26 + - 72 * - 58
----
656
4260

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT 86 + 70 + - MAX( + 92 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5883
SELECT 86 + 70 + - MAX ( + 92 ) AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT ALL + 65 * + 81 * - + COALESCE ( - - ( + 60 ), + 80 - - CAST( - 43 AS SIGNED ) )
----
-315900

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL + 65 * + 81 * - + COALESCE ( - - ( + 60 ), + 80 - - CAST ( - 43 AS INTEGER ) )
----
-315900

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT MAX( DISTINCT + 19 ) + - 22
----
-3

skipif mysql # not compatible
query I rowsort label-5885
SELECT MAX ( DISTINCT + 19 ) + - 22
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5886
SELECT DISTINCT + 20 DIV - 67, - 21 AS col0
----
0
-21

skipif mysql # not compatible
query II rowsort label-5886
SELECT DISTINCT + 20 / - 67, - 21 AS col0
----
0
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT 72 + MIN( ALL NULLIF ( + - 16, + 56 ) ) + - - 86
----
142

skipif mysql # not compatible
query I rowsort label-5887
SELECT 72 + MIN ( ALL NULLIF ( + - 16, + 56 ) ) + - - 86
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT 7 - + 9 DIV + 77
----
7

skipif mysql # not compatible
query I rowsort label-5888
SELECT 7 - + 9 / + 77
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL COUNT( * ) * - CASE + + 43 WHEN - 34 THEN - 17 ELSE - - 71 END AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL COUNT ( * ) * - CASE + + 43 WHEN - 34 THEN - 17 ELSE - - 71 END AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT MIN( ALL 21 ) + - + 23 col1
----
-2

skipif mysql # not compatible
query I rowsort label-5890
SELECT MIN ( ALL 21 ) + - + 23 col1
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5891
SELECT DISTINCT + 57 * - CAST( NULL AS DECIMAL ) * - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT + 57 * - CAST ( NULL AS REAL ) * - 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL COUNT( * ) + - 96 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL COUNT ( * ) + - 96 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT COUNT( * ) + 0
----
1

skipif mysql # not compatible
query I rowsort label-5893
SELECT COUNT ( * ) + 0
----
1

query I rowsort
SELECT DISTINCT + 84 + 18
----
102

query I rowsort
SELECT + ( - + 85 )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-5896
SELECT - 13 DIV - 58 * + 75
----
0

skipif mysql # not compatible
query I rowsort label-5896
SELECT - 13 / - 58 * + 75
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT - + 38 * + 70 * - 20 * + 68 + 75 DIV 76 col2
----
3617600

skipif mysql # not compatible
query I rowsort label-5897
SELECT - + 38 * + 70 * - 20 * + 68 + 75 / 76 col2
----
3617600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5898
SELECT DISTINCT + COUNT( * ) DIV - 14 AS col1, 15 * - 46
----
0
-690

skipif mysql # not compatible
query II rowsort label-5898
SELECT DISTINCT + COUNT ( * ) / - 14 AS col1, 15 * - 46
----
0
-690

query I rowsort
SELECT ALL 80 - + 93 col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL + 90 / CASE + COALESCE ( MAX( + 17 ), + 96 ) WHEN + - 20 THEN 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL + 90 / CASE + COALESCE ( MAX ( + 17 ), + 96 ) WHEN + - 20 THEN 23 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5901
SELECT - CAST( - - NULLIF ( 60, 88 + - - 17 * + 42 ) AS SIGNED ) * COUNT( * ) + - - COUNT( * ) DIV - 5
----
-60

skipif mysql # not compatible
query I rowsort label-5901
SELECT - CAST ( - - NULLIF ( 60, 88 + - - 17 * + 42 ) AS INTEGER ) * COUNT ( * ) + - - COUNT ( * ) / - 5
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT 42 * + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5902
SELECT 42 * + + COUNT ( * )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5903
SELECT ALL MIN( - - CAST( + 24 AS SIGNED ) ) * - - 19 + 35 DIV + 14 + + 78 + + 83 * + 2
----
702

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL MIN ( - - CAST ( + 24 AS INTEGER ) ) * - - 19 + 35 / + 14 + + 78 + + 83 * + 2
----
702

query I rowsort
SELECT ALL - ( + + 20 )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5905
SELECT - 52 DIV - COUNT( - 64 )
----
52

skipif mysql # not compatible
query I rowsort label-5905
SELECT - 52 / - COUNT ( - 64 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5906
SELECT DISTINCT 63, ( - CAST( NULL AS SIGNED ) ) AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-5906
SELECT DISTINCT 63, ( - CAST ( NULL AS INTEGER ) ) AS col1
----
63
NULL

query I rowsort
SELECT DISTINCT 86 + - 78
----
8

query I rowsort
SELECT ALL + 33 * + - 80 AS col2
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT 82 + + COUNT( * ) + - ( COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-5909
SELECT 82 + + COUNT ( * ) + - ( COUNT ( * ) )
----
82

query II rowsort
SELECT - 25 AS col0, 93 + 35 AS col1
----
-25
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5911
SELECT - 78 AS col0, 96 DIV COUNT( * ) + COUNT( * )
----
-78
97

skipif mysql # not compatible
query II rowsort label-5911
SELECT - 78 AS col0, 96 / COUNT ( * ) + COUNT ( * )
----
-78
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL + 34 + + + COUNT( * ) + - NULLIF ( ( - 52 ), + + 76 ) - + + 6 + + + 95 - - 19 * - 66 AS col2
----
-1078

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL + 34 + + + COUNT ( * ) + - NULLIF ( ( - 52 ), + + 76 ) - + + 6 + + + 95 - - 19 * - 66 AS col2
----
-1078

query I rowsort
SELECT 72 * + + COALESCE ( + + 58, + 58 ) AS col0
----
4176

query I rowsort
SELECT 75 + 13 AS col0
----
88

query II rowsort
SELECT - 36 AS col1, + 55 + 98 AS col2
----
-36
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL MIN( 9 )
----
9

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL MIN ( 9 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5917
SELECT ALL + 34 * - + CAST( - 47 AS SIGNED ) AS col1
----
1598

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL + 34 * - + CAST ( - 47 AS INTEGER ) AS col1
----
1598

query I rowsort
SELECT ALL - 43 + + 74 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5919
SELECT ALL 96 / + + CAST( NULL AS SIGNED ) * - COUNT( * ), 51 AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-5919
SELECT ALL 96 / + + CAST ( NULL AS INTEGER ) * - COUNT ( * ), 51 AS col1
----
NULL
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5920
SELECT DISTINCT CASE + + 42 WHEN + - CAST( NULL AS SIGNED ) THEN + MIN( ALL + - 83 ) + 53 * - + 35 * - SUM( DISTINCT - + 35 ) ELSE NULL END + + - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT CASE + + 42 WHEN + - CAST ( NULL AS INTEGER ) THEN + MIN ( ALL + - 83 ) + 53 * - + 35 * - SUM ( DISTINCT - + 35 ) ELSE NULL END + + - 72 AS col1
----
NULL

query I rowsort
SELECT 87 - + 74 AS col2
----
13

query II rowsort
SELECT 17 col0, + 62
----
17
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5923
SELECT 97 - + + 80 + + 45 / - MIN( DISTINCT 69 ) + + 48 + + + CASE 33 WHEN COALESCE ( 8, - 41 ) * CASE WHEN NULL IS NULL THEN + CAST( NULL AS SIGNED ) ELSE NULL END * + 39 * - 48 - - - 22 THEN 5 END AS col0, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5923
SELECT 97 - + + 80 + + 45 / - MIN ( DISTINCT 69 ) + + 48 + + + CASE 33 WHEN COALESCE ( 8, - 41 ) * CASE WHEN NULL IS NULL THEN + CAST ( NULL AS INTEGER ) ELSE NULL END * + 39 * - 48 - - - 22 THEN 5 END AS col0, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5924
SELECT ALL - + 5 DIV - - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL - + 5 / - - 33 AS col0
----
0

query II rowsort
SELECT DISTINCT 46 * + 18 + + + 56, - 84 AS col0
----
884
-84

query I rowsort
SELECT - + 99 * + - 3 - - ( 37 ) * + 35 AS col1
----
1592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT + - 66 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5927
SELECT + - 66 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 61 * - 31
----
-1891

query I rowsort
SELECT ALL + - 0 * + + 37 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5930
SELECT 75 * 79 + + 91 + - + 22 * - 69 - + ( 5 ) * + + MAX( + + 0 ) DIV - 62 + - + 73 AS col1
----
7461

skipif mysql # not compatible
query I rowsort label-5930
SELECT 75 * 79 + + 91 + - + 22 * - 69 - + ( 5 ) * + + MAX ( + + 0 ) / - 62 + - + 73 AS col1
----
7461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5931
SELECT DISTINCT - COUNT( * ) * - - CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT - COUNT ( * ) * - - CAST ( + COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - - 6 * + COALESCE ( + + NULLIF ( COUNT( * ), + 87 ), 89 )
----
6

skipif mysql # not compatible
query I rowsort label-5932
SELECT - - 6 * + COALESCE ( + + NULLIF ( COUNT ( * ), + 87 ), 89 )
----
6

query II rowsort
SELECT + - 80 AS col0, + 23
----
-80
23

query II rowsort
SELECT ALL + + 53 AS col1, + 66 + + 86 AS col1
----
53
152

query II rowsort
SELECT ALL + 69 AS col2, 64 AS col1
----
69
64

query I rowsort
SELECT + 27 + 88
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT + - NULLIF ( - - 7, 99 / - COUNT( * ) ) - 47 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-5937
SELECT + - NULLIF ( - - 7, 99 / - COUNT ( * ) ) - 47 AS col0
----
-54

query I rowsort
SELECT + - 4 * - - 61 - + + 73 + 95 col1
----
-222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5939
SELECT ALL - COUNT( * ) DIV + 34 + - - 0 + + 29 + 27 DIV 89
----
29

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL - COUNT ( * ) / + 34 + - - 0 + + 29 + 27 / 89
----
29

query II rowsort
SELECT DISTINCT + - 85 AS col2, - 45 + + 73 AS col0
----
-85
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5941
SELECT ALL - 39 * - CASE + 23 WHEN - 0 THEN NULL ELSE CASE 76 WHEN 1 * 10 + + NULLIF ( + 73, - 3 * - - 21 ) * 5 - + - SUM( DISTINCT + 66 ) * 93 * + 59 * - - 74 / + CAST( + 85 AS SIGNED ) / + 74 + ( + COUNT( * ) ) + - - 48 THEN NULL ELSE + + COUNT( * ) END END + + - 58 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL - 39 * - CASE + 23 WHEN - 0 THEN NULL ELSE CASE 76 WHEN 1 * 10 + + NULLIF ( + 73, - 3 * - - 21 ) * 5 - + - SUM ( DISTINCT + 66 ) * 93 * + 59 * - - 74 / + CAST ( + 85 AS INTEGER ) / + 74 + ( + COUNT ( * ) ) + - - 48 THEN NULL ELSE + + COUNT ( * ) END END + + - 58 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT 42 + - - COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT 42 + - - COUNT ( * ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT ALL 4 DIV - 13 col1
----
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL 4 / - 13 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5944
SELECT + 16 DIV - 83 * + NULLIF ( - + 8, + 81 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5944
SELECT + 16 / - 83 * + NULLIF ( - + 8, + 81 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5945
SELECT - MIN( ALL 57 ) AS col1, 45 * 42 + - 6
----
-57
1884

skipif mysql # not compatible
query II rowsort label-5945
SELECT - MIN ( ALL 57 ) AS col1, 45 * 42 + - 6
----
-57
1884

query I rowsort
SELECT + 62 * - 88 col2
----
-5456

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ( - + ( - 69 ) ) * - - 83 + - MAX( DISTINCT - - 30 ) AS col2
----
5697

skipif mysql # not compatible
query I rowsort label-5947
SELECT ( - + ( - 69 ) ) * - - 83 + - MAX ( DISTINCT - - 30 ) AS col2
----
5697

query I rowsort
SELECT - 62 * + CASE + - 53 WHEN + - 37 THEN 98 / 48 / + 99 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT - ( + + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5949
SELECT - ( + + COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT DISTINCT 97 + 69
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT - 26 + + - 82, + COUNT( + 34 ) col1
----
-108
1

skipif mysql # not compatible
query II rowsort label-5951
SELECT - 26 + + - 82, + COUNT ( + 34 ) col1
----
-108
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT + 90 + + + ( - 46 ) + + COUNT( * ) * + - MAX( ALL + 11 )
----
33

skipif mysql # not compatible
query I rowsort label-5952
SELECT + 90 + + + ( - 46 ) + + COUNT ( * ) * + - MAX ( ALL + 11 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5953
SELECT - 72 - - - ( + COUNT( * ) ) * - + COUNT( * ) AS col2, 24
----
-71
24

skipif mysql # not compatible
query II rowsort label-5953
SELECT - 72 - - - ( + COUNT ( * ) ) * - + COUNT ( * ) AS col2, 24
----
-71
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5954
SELECT - + COUNT( * ) + 5 * 22 + + CAST( + - 9 AS SIGNED ) + 84 * 86 * ( - 10 ) AS col2
----
-72140

skipif mysql # not compatible
query I rowsort label-5954
SELECT - + COUNT ( * ) + 5 * 22 + + CAST ( + - 9 AS INTEGER ) + 84 * 86 * ( - 10 ) AS col2
----
-72140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5955
SELECT ALL - 34 * + CAST( NULL AS SIGNED ) * - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL - 34 * + CAST ( NULL AS INTEGER ) * - + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT DISTINCT 74 * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT 74 * COUNT ( * )
----
74

query II rowsort
SELECT DISTINCT - - 11 * + + 30 AS col1, 47
----
330
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5958
SELECT - + 95 * + CAST( NULL AS SIGNED ) * - ( 75 ) AS col0, + 15 + 4
----
NULL
19

skipif mysql # not compatible
query II rowsort label-5958
SELECT - + 95 * + CAST ( NULL AS INTEGER ) * - ( 75 ) AS col0, + 15 + 4
----
NULL
19

query I rowsort
SELECT - 45 + - - 80 + - 71
----
-36

query II rowsort
SELECT DISTINCT + - ( 14 ) col1, 35 + - 86 + - 43
----
-14
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5961
SELECT - 89 DIV 1
----
-89

skipif mysql # not compatible
query I rowsort label-5961
SELECT - 89 / 1
----
-89

query I rowsort
SELECT - 59 + - 78 + 81 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5963
SELECT ALL - 24 / - + ( + 10 ) * - CAST( NULL AS SIGNED ) * MIN( ALL + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL - 24 / - + ( + 10 ) * - CAST ( NULL AS INTEGER ) * MIN ( ALL + 15 )
----
NULL

query I rowsort
SELECT + ( - 65 ) * 46 AS col2
----
-2990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5965
SELECT ALL 98 DIV 51 + + - MAX( DISTINCT + + 61 ) + 50 + + 85 * + 58 * ( + COUNT( * ) ) AS col1
----
4920

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL 98 / 51 + + - MAX ( DISTINCT + + 61 ) + 50 + + 85 * + 58 * ( + COUNT ( * ) ) AS col1
----
4920

query I rowsort
SELECT + - ( - + 81 ) col0
----
81

query I rowsort
SELECT ALL + 58 * - - 85 + + 15 AS col2
----
4945

query I rowsort
SELECT DISTINCT + 99 * 13
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT DISTINCT + 49 * - COUNT( * ) * - 57 - 89 + + COUNT( * ) AS col1
----
2705

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT + 49 * - COUNT ( * ) * - 57 - 89 + + COUNT ( * ) AS col1
----
2705

query I rowsort
SELECT DISTINCT - 39 * - 30 + 90
----
1260

query I rowsort
SELECT + 75 * 47 AS col1
----
3525

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT NULLIF ( - + COUNT( + 10 ), - 73 / 1 + + COUNT( DISTINCT 34 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5972
SELECT NULLIF ( - + COUNT ( + 10 ), - 73 / 1 + + COUNT ( DISTINCT 34 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5973
SELECT ALL 98 * 48 * + CAST( NULL AS SIGNED ) AS col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5973
SELECT ALL 98 * 48 * + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT COALESCE ( - + COUNT( * ), 86 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5974
SELECT COALESCE ( - + COUNT ( * ), 86 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT + 44 * - COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-5975
SELECT + 44 * - COUNT ( * ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5976
SELECT ALL + 46 AS col2, SUM( + 44 ) AS col2
----
46
44

skipif mysql # not compatible
query II rowsort label-5976
SELECT ALL + 46 AS col2, SUM ( + 44 ) AS col2
----
46
44

query I rowsort
SELECT + COALESCE ( + 89, + - 1 ) col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT + 62 + + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5978
SELECT + 62 + + COUNT ( * ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL SUM( + - 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL SUM ( + - 34 ) AS col1
----
-34

query I rowsort
SELECT ALL 20 * - 15 AS col1
----
-300

query I rowsort
SELECT + 26 + + 52
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT + 61 - + CAST( - 59 AS SIGNED )
----
120

skipif mysql # not compatible
query I rowsort label-5982
SELECT + 61 - + CAST ( - 59 AS INTEGER )
----
120

query I rowsort
SELECT + 78 * 90 AS col2
----
7020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5984
SELECT ALL 84 * + CAST( 51 AS SIGNED )
----
4284

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL 84 * + CAST ( 51 AS INTEGER )
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT MIN( DISTINCT 51 )
----
51

skipif mysql # not compatible
query I rowsort label-5985
SELECT MIN ( DISTINCT 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT DISTINCT SUM( + - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT SUM ( + - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT + 25 + 83 + - + COUNT( * ) - + - MAX( + ( - + 52 ) ) + 42 * + 51 AS col2
----
2197

skipif mysql # not compatible
query I rowsort label-5987
SELECT + 25 + 83 + - + COUNT ( * ) - + - MAX ( + ( - + 52 ) ) + 42 * + 51 AS col2
----
2197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5988
SELECT 45 DIV COUNT( * ) col1
----
45

skipif mysql # not compatible
query I rowsort label-5988
SELECT 45 / COUNT ( * ) col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT NULLIF ( - + ( - 39 ), 15 ) * MIN( + 91 ) * + - 52
----
-184548

skipif mysql # not compatible
query I rowsort label-5989
SELECT NULLIF ( - + ( - 39 ), 15 ) * MIN ( + 91 ) * + - 52
----
-184548

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL COUNT( * ) * - - 27 * - 21 col1
----
-567

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL COUNT ( * ) * - - 27 * - 21 col1
----
-567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT DISTINCT + ( + ( + 86 ) ) / + - CAST( NULL AS SIGNED ) * SUM( DISTINCT - + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT + ( + ( + 86 ) ) / + - CAST ( NULL AS INTEGER ) * SUM ( DISTINCT - + 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT 22 - - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5992
SELECT 22 - - COUNT ( * )
----
23

query I rowsort
SELECT ALL + ( - 17 ) + + 12 * - 14 AS col1
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ( COUNT( * ) ) - - NULLIF ( SUM( DISTINCT + 40 ), - 81 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5994
SELECT ( COUNT ( * ) ) - - NULLIF ( SUM ( DISTINCT + 40 ), - 81 ) AS col0
----
41

query I rowsort
SELECT ALL - 37 * 35 AS col0
----
-1295

onlyif mysql # DIV for integer division: 
query I rowsort label-5996
SELECT + 98 DIV + 62 + + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5996
SELECT + 98 / + 62 + + 52 AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT ALL CAST( NULL AS SIGNED ) + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL CAST ( NULL AS INTEGER ) + + 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5998
SELECT DISTINCT - 19 * - COALESCE ( COUNT( * ), CAST( - ( 20 ) AS SIGNED ) + + 6 * 67 )
----
19

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - 19 * - COALESCE ( COUNT ( * ), CAST ( - ( 20 ) AS INTEGER ) + + 6 * 67 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT 60 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-5999
SELECT 60 / 45
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL COUNT( * ) + + 66
----
67

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL COUNT ( * ) + + 66
----
67

query I rowsort
SELECT ALL - 10 + 58 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT 74 DIV ( - 85 ) - 31
----
-31

skipif mysql # not compatible
query I rowsort label-6002
SELECT 74 / ( - 85 ) - 31
----
-31

query I rowsort
SELECT ALL - 37 * + 1
----
-37

query I rowsort
SELECT 76 - 45
----
31

query I rowsort
SELECT ALL + 74 + - 52 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT DISTINCT - 65 + 49 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - 65 + 49 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 56 * + 53 AS col2
----
2968

query I rowsort
SELECT ALL - 47 + - ( + 75 + - 60 )
----
-62

query I rowsort
SELECT 66 + + 71 col1
----
137

query I rowsort
SELECT 75 + - 96 col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT COUNT( * ) - 95 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6011
SELECT COUNT ( * ) - 95 AS col1
----
-94

query I rowsort
SELECT ALL + 75 * 65 AS col1
----
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT 84 * + COUNT( * ) + ( 29 + - COUNT( * ) * COUNT( * ) ) * 92 col2
----
2660

skipif mysql # not compatible
query I rowsort label-6013
SELECT 84 * + COUNT ( * ) + ( 29 + - COUNT ( * ) * COUNT ( * ) ) * 92 col2
----
2660

query I rowsort
SELECT ALL - 47 - 86
----
-133

query I rowsort
SELECT DISTINCT 44 * 9 col2
----
396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6016
SELECT COUNT( * ) DIV 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6016
SELECT COUNT ( * ) / 36 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL 79 * - COALESCE ( ( COUNT( * ) ) * COUNT( * ), 5 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL 79 * - COALESCE ( ( COUNT ( * ) ) * COUNT ( * ), 5 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT 10 + SUM( - 56 ) * 17 AS col1
----
-942

skipif mysql # not compatible
query I rowsort label-6018
SELECT 10 + SUM ( - 56 ) * 17 AS col1
----
-942

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL - COUNT( * ) * + 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL - COUNT ( * ) * + 50 AS col0
----
-50

query I rowsort
SELECT DISTINCT - ( - 86 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT DISTINCT - 3 * - COALESCE ( 44, COUNT( * ) ) AS col1
----
132

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT - 3 * - COALESCE ( 44, COUNT ( * ) ) AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT 0 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6022
SELECT 0 * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 6 + 50 col2
----
56

query I rowsort
SELECT NULLIF ( ( 81 ), 67 + - 35 * 21 ) + + 99 AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT ALL NULLIF ( - COUNT( * ), 34 ) * - 77
----
77

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL NULLIF ( - COUNT ( * ), 34 ) * - 77
----
77

query I rowsort
SELECT 93 + + 62 AS col1
----
155

query I rowsort
SELECT ( COALESCE ( 77, - 6, - 16 * 92 ) ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT + COUNT( * ) + + 25
----
26

skipif mysql # not compatible
query I rowsort label-6028
SELECT + COUNT ( * ) + + 25
----
26

query I rowsort
SELECT ALL + ( - 45 ) + 23 * - 96 col1
----
-2253

query I rowsort
SELECT 73 + ( 0 ) * ( 49 ) AS col1
----
73

query I rowsort
SELECT 16 - + 23 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT DISTINCT COALESCE ( + COUNT( * ), + 66 ) * 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT COALESCE ( + COUNT ( * ), + 66 ) * 62 AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT ALL 19 + 29 DIV + 31 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL 19 + 29 / + 31 AS col0
----
19

query I rowsort
SELECT 65 * - 46 col2
----
-2990

query I rowsort
SELECT DISTINCT 68 + 88
----
156

query I rowsort
SELECT ALL - NULLIF ( - 55, 91 / 35 ) + 26
----
81

query I rowsort
SELECT 42 + 77
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT + 22 DIV - 90 + 7
----
7

skipif mysql # not compatible
query I rowsort label-6038
SELECT + 22 / - 90 + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT COUNT( * ) + 43 * + 5
----
216

skipif mysql # not compatible
query I rowsort label-6039
SELECT COUNT ( * ) + 43 * + 5
----
216

query I rowsort
SELECT ALL - 90 * 43 + + 38 * - 62
----
-6226

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT ALL 38 * - 96 + ( COUNT( * ) )
----
-3647

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL 38 * - 96 + ( COUNT ( * ) )
----
-3647

query I rowsort
SELECT - 96 * 96
----
-9216

query I rowsort
SELECT 11 * + 85 col1
----
935

query I rowsort
SELECT + 34 * + ( 97 ) + 99 AS col2
----
3397

query I rowsort
SELECT ALL + 88 * + 95
----
8360

query I rowsort
SELECT ALL 21 * 87 AS col2
----
1827

query I rowsort
SELECT 91 * 33 * 64 AS col0
----
192192

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT DISTINCT - CASE 89 WHEN - NULLIF ( NULLIF ( - 10, 96 ), - 20 ) THEN NULL WHEN ( + 47 ) * + 79 + COUNT( * ) THEN 26 - - 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT - CASE 89 WHEN - NULLIF ( NULLIF ( - 10, 96 ), - 20 ) THEN NULL WHEN ( + 47 ) * + 79 + COUNT ( * ) THEN 26 - - 60 END
----
NULL

query I rowsort
SELECT DISTINCT 56 - + 5 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT DISTINCT - MAX( 86 ) - + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT - MAX ( 86 ) - + COUNT ( * )
----
-87

query I rowsort
SELECT ALL - ( + - 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT - 11 * - COUNT( * ) + - 7
----
4

skipif mysql # not compatible
query I rowsort label-6052
SELECT - 11 * - COUNT ( * ) + - 7
----
4

query I rowsort
SELECT DISTINCT - CASE 90 WHEN - 26 THEN NULL WHEN + 40 THEN 1 WHEN 99 + - 94 THEN 58 / CASE - 62 * ( 21 / + 13 ) WHEN AVG ( 87 ) * - 36 THEN 64 WHEN + 4 THEN - 58 END ELSE NULL END col2
----
NULL

query I rowsort
SELECT 29 * - 70
----
-2030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6055
SELECT COUNT( * ) DIV + 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6055
SELECT COUNT ( * ) / + 37 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6056
SELECT ALL + NULLIF ( - COALESCE ( 96, + 64 ), 93 ) DIV 61
----
-1

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL + NULLIF ( - COALESCE ( 96, + 64 ), 93 ) / 61
----
-1

query I rowsort
SELECT - 67 * 15 AS col0
----
-1005

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT 53 * + COALESCE ( + COUNT( * ), - 23 ) - - 31
----
84

skipif mysql # not compatible
query I rowsort label-6058
SELECT 53 * + COALESCE ( + COUNT ( * ), - 23 ) - - 31
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT ALL + MAX( ALL - - 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL + MAX ( ALL - - 77 ) AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 65 * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 65 * + 18
----
NULL

query I rowsort
SELECT - 2 + + - ( 17 ) + - 29
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT ALL + 54 DIV - 17
----
-3

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL + 54 / - 17
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL + COUNT( * ) + - 90 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL + COUNT ( * ) + - 90 AS col2
----
-89

query I rowsort
SELECT DISTINCT NULLIF ( 73, 45 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT DISTINCT + MIN( - NULLIF ( + 89, 86 ) ) + + 18 * + 46 col0
----
739

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT + MIN ( - NULLIF ( + 89, 86 ) ) + + 18 * + 46 col0
----
739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT ALL - MIN( DISTINCT + 80 ) + CASE + CAST( NULL AS SIGNED ) + - ( 24 + COUNT( * ) ) WHEN - 31 THEN 50 WHEN - 79 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - MIN ( DISTINCT + 80 ) + CASE + CAST ( NULL AS INTEGER ) + - ( 24 + COUNT ( * ) ) WHEN - 31 THEN 50 WHEN - 79 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + + 91 * 17 * 38
----
58786

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL - COUNT( * ) + ( + 59 ) * - 52 AS col2
----
-3069

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL - COUNT ( * ) + ( + 59 ) * - 52 AS col2
----
-3069

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT + + 25 + - 92 + + NULLIF ( + SUM( ALL + 59 ), - AVG ( - 76 ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6069
SELECT + + 25 + - 92 + + NULLIF ( + SUM ( ALL + 59 ), - AVG ( - 76 ) ) AS col1
----
-8

query I rowsort
SELECT - NULLIF ( 57, + 77 )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6071
SELECT ALL - 45 + + 91 + - 59 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL - 45 + + 91 + - 59 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 70 + - + 85 * + 91
----
-7665

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT DISTINCT + COUNT( * ) + + 99 - - 57 AS col2
----
157

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT + COUNT ( * ) + + 99 - - 57 AS col2
----
157

query I rowsort
SELECT DISTINCT - ( 92 ) + 23 * + 24 AS col0
----
460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6075
SELECT DISTINCT 53 * + COUNT( * ) DIV + SUM( DISTINCT + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT 53 * + COUNT ( * ) / + SUM ( DISTINCT + 93 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6076
SELECT DISTINCT + MIN( DISTINCT 17 ) DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT + MIN ( DISTINCT 17 ) / + 92 AS col2
----
0

query I rowsort
SELECT ALL 97 - 92
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6078
SELECT - 67 - - 49 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6078
SELECT - 67 - - 49 + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 71 * + 38 * - 94
----
253612

query I rowsort
SELECT - 80 + - 93 AS col2
----
-173

query I rowsort
SELECT ALL 24 * - + 53 AS col1
----
-1272

query I rowsort
SELECT + - 49 * - - 61
----
-2989

query I rowsort
SELECT ALL + - COALESCE ( - 93, + 58 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT - 15 DIV - 58 + 64
----
64

skipif mysql # not compatible
query I rowsort label-6084
SELECT - 15 / - 58 + 64
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6085
SELECT ALL - ( - 63 ) * NULLIF ( 85, MAX( 43 ) + + CASE - 5 WHEN + 25 THEN - 15 ELSE + 14 * - CAST( 36 AS SIGNED ) END ) - COALESCE ( + 24 + MAX( 34 + 22 ), - 5 * + 66 + CASE 11 WHEN + 90 + - 60 * COALESCE ( - 12 * + COUNT( + 9 ), - 75, 69 * 24 ) THEN + NULLIF ( - 89, 54 ) WHEN - 54 * COALESCE ( 54, COUNT( * ) + 62, + 14 ) + 24 THEN - 92 ELSE NULL END ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL - ( - 63 ) * NULLIF ( 85, MAX ( 43 ) + + CASE - 5 WHEN + 25 THEN - 15 ELSE + 14 * - CAST ( 36 AS INTEGER ) END ) - COALESCE ( + 24 + MAX ( 34 + 22 ), - 5 * + 66 + CASE 11 WHEN + 90 + - 60 * COALESCE ( - 12 * + COUNT ( + 9 ), - 75, 69 * 24 ) THEN + NULLIF ( - 89, 54 ) WHEN - 54 * COALESCE ( 54, COUNT ( * ) + 62, + 14 ) + 24 THEN - 92 ELSE NULL END ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6086
SELECT + + 63 DIV + - COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6086
SELECT + + 63 / + - COUNT ( * ) AS col1
----
-63

query II rowsort
SELECT ALL + 65, + NULLIF ( 24, - ( 60 ) * 76 ) + + 16 AS col1
----
65
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT DISTINCT + MAX( ALL + 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT + MAX ( ALL + 66 ) AS col0
----
66

query I rowsort
SELECT + 86 + + - 29
----
57

query I rowsort
SELECT - 7 * + 64 + - 32 + 40 AS col0
----
-440

query I rowsort
SELECT + 79 * 59
----
4661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6092
SELECT 57 / - 78 * - + 97 * 15 + + ( - 80 + + CASE - 37 + - 12 WHEN CAST( NULL AS SIGNED ) * 91 THEN NULL ELSE + 66 / 3 END / CAST( NULL AS SIGNED ) ) / + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT 57 / - 78 * - + 97 * 15 + + ( - 80 + + CASE - 37 + - 12 WHEN CAST ( NULL AS INTEGER ) * 91 THEN NULL ELSE + 66 / 3 END / CAST ( NULL AS INTEGER ) ) / + 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT + 50 + NULLIF ( + 46, - NULLIF ( + 18, ( 41 ) + + ( 93 ) / + COALESCE ( 66, 95, + COUNT( * ) ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-6093
SELECT + 50 + NULLIF ( + 46, - NULLIF ( + 18, ( 41 ) + + ( 93 ) / + COALESCE ( 66, 95, + COUNT ( * ) ) ) )
----
96

query I rowsort
SELECT CASE + 84 WHEN + - 83 THEN - 19 / 5 END AS col2
----
NULL

query I rowsort
SELECT - 44 * + + ( + + 97 ) + - 76 * + 55 AS col0
----
-8448

query I rowsort
SELECT + 43 * - 68 AS col1
----
-2924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6097
SELECT + CAST( NULL AS SIGNED ), + 4 AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-6097
SELECT + CAST ( NULL AS INTEGER ), + 4 AS col2
----
NULL
4

query I rowsort
SELECT ALL 81 * + - 45 + - 13
----
-3658

query I rowsort
SELECT ALL ( ( + 77 ) ) * + 12 AS col2
----
924

query I rowsort
SELECT ALL 19 * 13 + 61
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT - COUNT( * ) * - COUNT( - 98 ) * 47
----
47

skipif mysql # not compatible
query I rowsort label-6101
SELECT - COUNT ( * ) * - COUNT ( - 98 ) * 47
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6102
SELECT DISTINCT - 50 * - ( - 34 ) + CAST( - 25 AS SIGNED )
----
-1725

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT - 50 * - ( - 34 ) + CAST ( - 25 AS INTEGER )
----
-1725

query I rowsort
SELECT + ( - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6104
SELECT COUNT( * ) AS col0, - 97 AS col1
----
1
-97

skipif mysql # not compatible
query II rowsort label-6104
SELECT COUNT ( * ) AS col0, - 97 AS col1
----
1
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL + COUNT( * ) * - 24 + - 65 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL + COUNT ( * ) * - 24 + - 65 AS col0
----
-89

query I rowsort
SELECT ALL + 17 * + 35 * 69 + 46
----
41101

query I rowsort
SELECT DISTINCT CASE + 62 WHEN + - 19 THEN 24 + 83 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT 77 * + 73 + - + MAX( DISTINCT 12 ) * - MAX( DISTINCT - ( - 25 ) * 6 ) AS col2
----
7421

skipif mysql # not compatible
query I rowsort label-6108
SELECT 77 * + 73 + - + MAX ( DISTINCT 12 ) * - MAX ( DISTINCT - ( - 25 ) * 6 ) AS col2
----
7421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT - - 60 + - - CAST( 3 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6110
SELECT - - 60 + - - CAST ( 3 AS INTEGER ) AS col2
----
63

query I rowsort
SELECT - 53 * + 18
----
-954

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT - - 96 + - COALESCE ( - ( COUNT( * ) ), 0 ) - - COUNT( * ) * 88 AS col1
----
185

skipif mysql # not compatible
query I rowsort label-6112
SELECT - - 96 + - COALESCE ( - ( COUNT ( * ) ), 0 ) - - COUNT ( * ) * 88 AS col1
----
185

query I rowsort
SELECT - + 85 + - + 89 + + + ( - 36 ) - - 89 AS col1
----
-121

query I rowsort
SELECT ALL - + 26 + - - 83
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6115
SELECT ALL COALESCE ( + 69, - 22 DIV CAST( + 11 + - 95 AS SIGNED ) + MIN( DISTINCT 69 + + 82 ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL COALESCE ( + 69, - 22 / CAST ( + 11 + - 95 AS INTEGER ) + MIN ( DISTINCT 69 + + 82 ) ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6116
SELECT - + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT - + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - - 59 * + + 61 AS col1
----
3599

query I rowsort
SELECT - 98 + 74 col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT - COUNT( * ) + ( + 79 )
----
78

skipif mysql # not compatible
query I rowsort label-6119
SELECT - COUNT ( * ) + ( + 79 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT ALL + - COUNT( * ) * + + 58 * - 82 col2
----
4756

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL + - COUNT ( * ) * + + 58 * - 82 col2
----
4756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6121
SELECT - + COUNT( * ) + CASE 20 WHEN 80 * 54 THEN NULL ELSE CAST( NULL AS SIGNED ) * - 96 END + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6121
SELECT - + COUNT ( * ) + CASE 20 WHEN 80 * 54 THEN NULL ELSE CAST ( NULL AS INTEGER ) * - 96 END + 89
----
NULL

query II rowsort
SELECT - 86 AS col2, 38
----
-86
38

query I rowsort
SELECT - - 58 + + 2 AS col1
----
60

query I rowsort
SELECT + - 53 + 13 AS col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT DISTINCT - AVG ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6126
SELECT + + CASE + - 56 WHEN + 31 THEN 49 WHEN COALESCE ( 19, 99 + - 45 / 97 ) - 25 * CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT + + CASE + - 56 WHEN + 31 THEN 49 WHEN COALESCE ( 19, 99 + - 45 / 97 ) - 25 * CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + 77 AS col0
----
NULL

query I rowsort
SELECT - + 34 * + 21 + + 36 AS col2
----
-678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT ALL + CAST( - + 96 AS SIGNED ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL + CAST ( - + 96 AS INTEGER ) AS col1
----
-96

query I rowsort
SELECT DISTINCT 21 * 90
----
1890

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT - COALESCE ( 14, - 63 + - + 2 - - 81, + 37 ) DIV 48 + 84 * 66
----
5544

skipif mysql # not compatible
query I rowsort label-6130
SELECT - COALESCE ( 14, - 63 + - + 2 - - 81, + 37 ) / 48 + 84 * 66
----
5544

query I rowsort
SELECT ALL + COALESCE ( - 97, - 62 * 45 * 78 ) AS col0
----
-97

query I rowsort
SELECT - 56 * + 34
----
-1904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6133
SELECT ALL - MIN( + 62 ) * 92 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL - MIN ( + 62 ) * 92 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6134
SELECT + 80 DIV + - 42 AS col0, 68 AS col1
----
-1
68

skipif mysql # not compatible
query II rowsort label-6134
SELECT + 80 / + - 42 AS col0, 68 AS col1
----
-1
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6135
SELECT ALL 20 + 52 AS col1, COUNT( * )
----
72
1

skipif mysql # not compatible
query II rowsort label-6135
SELECT ALL 20 + 52 AS col1, COUNT ( * )
----
72
1

query I rowsort
SELECT 10 * 80 AS col2
----
800

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT 53 * - 12 + 19 DIV - 97
----
-636

skipif mysql # not compatible
query I rowsort label-6137
SELECT 53 * - 12 + 19 / - 97
----
-636

query I rowsort
SELECT DISTINCT - ( 24 ) AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6139
SELECT DISTINCT 55 + + MIN( 15 ) + - 39 * + NULLIF ( CAST( NULL AS SIGNED ) + 52, - 39 + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT 55 + + MIN ( 15 ) + - 39 * + NULLIF ( CAST ( NULL AS INTEGER ) + 52, - 39 + 53 )
----
NULL

query II rowsort
SELECT ALL + 81 * - 88, 22 * 90 + + 44 AS col0
----
-7128
2024

query II rowsort
SELECT ALL 84 + 83 AS col1, 8
----
167
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6142
SELECT ALL 8 DIV - + COUNT( * ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL 8 / - + COUNT ( * ) col0
----
-8

query I rowsort
SELECT ALL 66 + + 57 + + 54 - + + 8 AS col1
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6144
SELECT NULLIF ( CAST( NULL AS SIGNED ), - 3 * - 63 + + 64 * COUNT( DISTINCT 57 ) ) + + CASE - 13 - MAX( ALL 82 ) WHEN 83 THEN 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT NULLIF ( CAST ( NULL AS INTEGER ), - 3 * - 63 + + 64 * COUNT ( DISTINCT 57 ) ) + + CASE - 13 - MAX ( ALL 82 ) WHEN 83 THEN 69 END
----
NULL

query I rowsort
SELECT DISTINCT 86 + + + 20 + + 88
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT ALL - + COUNT( * ) + ( - + 14 ) + + + 39 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL - + COUNT ( * ) + ( - + 14 ) + + + 39 AS col2
----
24

query I rowsort
SELECT DISTINCT NULLIF ( - 28, + + 68 - + 72 + - 51 / + 45 )
----
-28

query I rowsort
SELECT DISTINCT 48 * - 86 + - 90 AS col1
----
-4218

query I rowsort
SELECT DISTINCT + 43 - - 92 + 35 * + + ( 79 ) AS col0
----
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL CASE + - 57 WHEN - + CASE 49 WHEN + ( 25 ) * - 56 THEN 60 WHEN - 63 + COUNT( * ) THEN NULL END THEN NULL ELSE MAX( + 4 ) * - 83 END * + 39 AS col1
----
-12948

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL CASE + - 57 WHEN - + CASE 49 WHEN + ( 25 ) * - 56 THEN 60 WHEN - 63 + COUNT ( * ) THEN NULL END THEN NULL ELSE MAX ( + 4 ) * - 83 END * + 39 AS col1
----
-12948

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT - NULLIF ( - - MAX( ALL + 24 ), - - ( - 35 ) * COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-6151
SELECT - NULLIF ( - - MAX ( ALL + 24 ), - - ( - 35 ) * COUNT ( * ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT + COUNT( - - COALESCE ( 95, - - 53 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6152
SELECT + COUNT ( - - COALESCE ( 95, - - 53 ) ) AS col0
----
1

query I rowsort
SELECT ALL - COALESCE ( - + CASE + 59 WHEN 87 * + 23 THEN - 43 WHEN 70 * - 15 THEN NULL END, + 48 * - 45 ) AS col0
----
2160

query I rowsort
SELECT + 23 * + 71
----
1633

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ALL - ( + + 8 ) / COUNT( * ) * + ( 81 ) * CASE 37 WHEN 27 THEN + ( - COUNT( * ) ) END + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL - ( + + 8 ) / COUNT ( * ) * + ( 81 ) * CASE 37 WHEN 27 THEN + ( - COUNT ( * ) ) END + + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL - 2 - 92 - - COUNT( * ) * + 18
----
-76

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - 2 - 92 - - COUNT ( * ) * + 18
----
-76

query I rowsort
SELECT 96 - 45
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ALL - - COUNT( * ) * - ( + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - - COUNT ( * ) * - ( + 96 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6159
SELECT ALL + COUNT( * ) * + - 32 * + - COALESCE ( 45, + COUNT( * ) ) * ( - CAST( NULL AS SIGNED ) * + 79 + 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL + COUNT ( * ) * + - 32 * + - COALESCE ( 45, + COUNT ( * ) ) * ( - CAST ( NULL AS INTEGER ) * + 79 + 99 ) AS col0
----
NULL

query I rowsort
SELECT 94 * - 49
----
-4606

query I rowsort
SELECT 29 * 48
----
1392

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6162
SELECT ALL - COUNT( CAST( + + ( + COALESCE ( 11, 86 ) ) AS DECIMAL ) ) + + 51 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL - COUNT ( CAST ( + + ( + COALESCE ( 11, 86 ) ) AS REAL ) ) + + 51 AS col0
----
50

query I rowsort
SELECT 0 + - 27 + - 22 + - 88 AS col1
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT - 99 * - 76 + + 2 + - CAST( + 43 AS SIGNED )
----
7483

skipif mysql # not compatible
query I rowsort label-6164
SELECT - 99 * - 76 + + 2 + - CAST ( + 43 AS INTEGER )
----
7483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT DISTINCT - CASE - 58 WHEN 54 - + NULLIF ( - ( CAST( + 11 AS SIGNED ) ), - CAST( NULL AS SIGNED ) ) THEN - ( + 16 ) END * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT - CASE - 58 WHEN 54 - + NULLIF ( - ( CAST ( + 11 AS INTEGER ) ), - CAST ( NULL AS INTEGER ) ) THEN - ( + 16 ) END * 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT + 12 + + + SUM( + 63 )
----
75

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT + 12 + + + SUM ( + 63 )
----
75

query I rowsort
SELECT ALL - 22 + + 98 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT DISTINCT - CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT - CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT DISTINCT COUNT( * ) + + + 81 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT COUNT ( * ) + + + 81 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT DISTINCT - COUNT( * ) + + + 17
----
16

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT - COUNT ( * ) + + + 17
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6171
SELECT ALL 67 + - 92 - 68 + 92 * + - 73 / COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL 67 + - 92 - 68 + 92 * + - 73 / COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 4 * 9
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT MAX( - + COALESCE ( + 21, + 68 + + 79 ) ) + ( 32 )
----
11

skipif mysql # not compatible
query I rowsort label-6173
SELECT MAX ( - + COALESCE ( + 21, + 68 + + 79 ) ) + ( 32 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL - SUM( ALL - 7 ) + + + MIN( 12 )
----
19

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - SUM ( ALL - 7 ) + + + MIN ( 12 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT 35 + + NULLIF ( - + 44, - 81 + + 84 * + NULLIF ( - 17 - + 44 * - NULLIF ( 61 * - 18 + NULLIF ( + COUNT( * ), - 98 ), COUNT( * ) + - 24 ), - 44 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-6175
SELECT 35 + + NULLIF ( - + 44, - 81 + + 84 * + NULLIF ( - 17 - + 44 * - NULLIF ( 61 * - 18 + NULLIF ( + COUNT ( * ), - 98 ), COUNT ( * ) + - 24 ), - 44 ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT MIN( - 70 ) * - - 89 * + 12
----
-74760

skipif mysql # not compatible
query I rowsort label-6176
SELECT MIN ( - 70 ) * - - 89 * + 12
----
-74760

query I rowsort
SELECT DISTINCT + ( - 25 ) * + 60 * + 81
----
-121500

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT + COUNT( * ) * + + 28 + 74 - 30 col1
----
72

skipif mysql # not compatible
query I rowsort label-6178
SELECT + COUNT ( * ) * + + 28 + 74 - 30 col1
----
72

query I rowsort
SELECT ALL 75 - 44 + + ( + + 55 ) * - 96 * 84
----
-443489

query I rowsort
SELECT 86 * 17 + - 54 AS col2
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL - + MIN( ALL 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL - + MIN ( ALL 40 ) AS col2
----
-40

query I rowsort
SELECT ALL - + 97 col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + COALESCE ( + + 75, - - 66 + - 86, - SUM( ALL 48 ) )
----
75

skipif mysql # not compatible
query I rowsort label-6183
SELECT + COALESCE ( + + 75, - - 66 + - 86, - SUM ( ALL 48 ) )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT + 71 + + CAST( - - 43 AS SIGNED ) + + 3 * 96 AS col1
----
402

skipif mysql # not compatible
query I rowsort label-6184
SELECT + 71 + + CAST ( - - 43 AS INTEGER ) + + 3 * 96 AS col1
----
402

onlyif mysql # aggregate syntax: 
query II rowsort label-6185
SELECT + 24 * - 44 - COUNT( * ), 59 AS col1
----
-1057
59

skipif mysql # not compatible
query II rowsort label-6185
SELECT + 24 * - 44 - COUNT ( * ), 59 AS col1
----
-1057
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6186
SELECT ALL + 98 AS col2, COUNT( * ) + SUM( DISTINCT 31 ) - + - 76
----
98
108

skipif mysql # not compatible
query II rowsort label-6186
SELECT ALL + 98 AS col2, COUNT ( * ) + SUM ( DISTINCT 31 ) - + - 76
----
98
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT 17 * - 75 + - CASE - + CAST( + AVG ( DISTINCT - 74 ) AS SIGNED ) WHEN + 7 THEN - 79 WHEN COUNT( * ) / - 62 + + MIN( - ( + 75 ) ) THEN COUNT( * ) WHEN - 92 THEN 95 * COUNT( ALL - 72 ) - - COUNT( * ) / CAST( NULL AS SIGNED ) END / + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT 17 * - 75 + - CASE - + CAST ( + AVG ( DISTINCT - 74 ) AS INTEGER ) WHEN + 7 THEN - 79 WHEN COUNT ( * ) / - 62 + + MIN ( - ( + 75 ) ) THEN COUNT ( * ) WHEN - 92 THEN 95 * COUNT ( ALL - 72 ) - - COUNT ( * ) / CAST ( NULL AS INTEGER ) END / + 67 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6188
SELECT - CAST( NULL AS SIGNED ) + CASE + CAST( + + 96 AS DECIMAL ) WHEN 30 THEN + 43 ELSE CAST( NULL AS DECIMAL ) * + MIN( - 58 ) + 15 * - COALESCE ( + 34 / + 43, 28 * - 22 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT - CAST ( NULL AS INTEGER ) + CASE + CAST ( + + 96 AS REAL ) WHEN 30 THEN + 43 ELSE CAST ( NULL AS REAL ) * + MIN ( - 58 ) + 15 * - COALESCE ( + 34 / + 43, 28 * - 22 ) END AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 75 AS col2, + 31 AS col2
----
-75
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT 34 * + - 64 - + 58 + - - 94 + + 29 DIV 17 AS col1
----
-2139

skipif mysql # not compatible
query I rowsort label-6190
SELECT 34 * + - 64 - + 58 + - - 94 + + 29 / 17 AS col1
----
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT - + SUM( ALL + + 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-6191
SELECT - + SUM ( ALL + + 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT DISTINCT 48 * COALESCE ( - 6, - 23 - - 83 - 79 * - SUM( ALL - 77 ) ) + 50 * + 25
----
962

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT 48 * COALESCE ( - 6, - 23 - - 83 - 79 * - SUM ( ALL - 77 ) ) + 50 * + 25
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL + ( - - ( - - COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL + ( - - ( - - COUNT ( * ) ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT 75 * + 14
----
1050

onlyif mysql # DIV for integer division: 
query I rowsort label-6195
SELECT - + 51 DIV 50 + - 65 * 69
----
-4486

skipif mysql # not compatible
query I rowsort label-6195
SELECT - + 51 / 50 + - 65 * 69
----
-4486

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL COUNT( * ) + + 59 + 62
----
122

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL COUNT ( * ) + + 59 + 62
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT + 51 * - SUM( + 10 ) AS col0
----
-510

skipif mysql # not compatible
query I rowsort label-6197
SELECT + 51 * - SUM ( + 10 ) AS col0
----
-510

query I rowsort
SELECT - 56 + 8
----
-48

query I rowsort
SELECT DISTINCT + ( 6 ) + 31
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT ALL - MIN( DISTINCT - 82 ) + 42
----
124

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL - MIN ( DISTINCT - 82 ) + 42
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT ALL COUNT( * ) + + 28 + + 37 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL COUNT ( * ) + + 28 + + 37 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL - 26 + + 26 * CASE MIN( DISTINCT - 62 ) WHEN - COUNT( * ) THEN + ( 3 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL - 26 + + 26 * CASE MIN ( DISTINCT - 62 ) WHEN - COUNT ( * ) THEN + ( 3 ) END col2
----
NULL

query II rowsort
SELECT - 25, - 85 AS col0
----
-25
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6204
SELECT - MAX( ALL - 90 ) DIV + + 78
----
1

skipif mysql # not compatible
query I rowsort label-6204
SELECT - MAX ( ALL - 90 ) / + + 78
----
1

query I rowsort
SELECT + 85 * - ( + 96 )
----
-8160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT + NULLIF ( + + 91, - + CAST( NULL AS SIGNED ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6206
SELECT + NULLIF ( + + 91, - + CAST ( NULL AS INTEGER ) ) AS col1
----
91

query I rowsort
SELECT - 49 * + 18 AS col1
----
-882

query I rowsort
SELECT + NULLIF ( - + 46, + 1 ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6209
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - 51 * - ( 65 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - 51 * - ( 65 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6210
SELECT DISTINCT - ( CAST( - + 7 AS SIGNED ) ) * - - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT - ( CAST ( - + 7 AS INTEGER ) ) * - - COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL - 36 * - - COUNT( * ) + + - 96
----
-132

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - 36 * - - COUNT ( * ) + + - 96
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT DISTINCT 75 * - ( + + 1 ) * 24 + - - ( - 97 ) + ( CASE + COUNT( * ) WHEN 14 * - 64 THEN NULL ELSE + 24 * + ( COUNT( * ) ) END + 70 )
----
-1803

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT 75 * - ( + + 1 ) * 24 + - - ( - 97 ) + ( CASE + COUNT ( * ) WHEN 14 * - 64 THEN NULL ELSE + 24 * + ( COUNT ( * ) ) END + 70 )
----
-1803

query I rowsort
SELECT NULLIF ( - - 25, + 61 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6214
SELECT ALL + COUNT( * ), COUNT( + 18 ) / + COUNT( * ) * CASE - CAST( 95 AS SIGNED ) WHEN + COUNT( * ) + + COUNT( * ) THEN NULL WHEN 22 + - CAST( 30 AS SIGNED ) THEN 76 WHEN 17 * 27 THEN NULL ELSE NULL END + + ( + ( + 76 ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6214
SELECT ALL + COUNT ( * ), COUNT ( + 18 ) / + COUNT ( * ) * CASE - CAST ( 95 AS INTEGER ) WHEN + COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN 22 + - CAST ( 30 AS INTEGER ) THEN 76 WHEN 17 * 27 THEN NULL ELSE NULL END + + ( + ( + 76 ) ) AS col1
----
1
NULL

query I rowsort
SELECT NULLIF ( + 0, + 35 + - 43 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT NULLIF ( + 92, - - ( + + COALESCE ( + COUNT( * ), + + 3 * MIN( 82 ) ) ) - + COUNT( * ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6216
SELECT NULLIF ( + 92, - - ( + + COALESCE ( + COUNT ( * ), + + 3 * MIN ( 82 ) ) ) - + COUNT ( * ) ) AS col2
----
92

query II rowsort
SELECT ALL + 89 AS col1, 91 + + 93 AS col1
----
89
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6218
SELECT ALL + COALESCE ( - CAST( NULL AS SIGNED ), + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), + 19 ) AS col1
----
19

query I rowsort
SELECT - - 23 * 43 + 77
----
1066

query I rowsort
SELECT + + ( + 14 )
----
14

query II rowsort
SELECT + 4, 99 AS col2
----
4
99

query II rowsort
SELECT - 32 col2, 72 * - - 96 * + 98
----
-32
677376

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT - COALESCE ( - 97, + ( + ( + - 18 ) ), - 62 ) DIV 85 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6223
SELECT - COALESCE ( - 97, + ( + ( + - 18 ) ), - 62 ) / 85 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT + 78 * - 64 * - + MAX( DISTINCT + 25 )
----
124800

skipif mysql # not compatible
query I rowsort label-6224
SELECT + 78 * - 64 * - + MAX ( DISTINCT + 25 )
----
124800

query I rowsort
SELECT ALL + + 40 * 38
----
1520

query II rowsort
SELECT ALL + 82 col2, + 41 AS col1
----
82
41

query I rowsort
SELECT 88 * - - 61 - 55
----
5313

query I rowsort
SELECT + - 66 + ( - + 9 )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6229
SELECT DISTINCT + + 70 AS col2, COUNT( * ) AS col0
----
70
1

skipif mysql # not compatible
query II rowsort label-6229
SELECT DISTINCT + + 70 AS col2, COUNT ( * ) AS col0
----
70
1

query I rowsort
SELECT - + 96 * - + 99
----
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL + - 48 * - SUM( + + 10 )
----
480

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + - 48 * - SUM ( + + 10 )
----
480

query II rowsort
SELECT ALL + 62, + 10 AS col2
----
62
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT - - COUNT( * ) * - 24 * COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6233
SELECT - - COUNT ( * ) * - 24 * COUNT ( * ) AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6234
SELECT 5 col0, MAX( DISTINCT - 67 ) DIV + + 53 + + + 18 col0
----
5
17

skipif mysql # not compatible
query II rowsort label-6234
SELECT 5 col0, MAX ( DISTINCT - 67 ) / + + 53 + + + 18 col0
----
5
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT DISTINCT - - COUNT( * ) * 52 - + NULLIF ( + COUNT( * ), + - 29 + - - 2 )
----
51

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT - - COUNT ( * ) * 52 - + NULLIF ( + COUNT ( * ), + - 29 + - - 2 )
----
51

query I rowsort
SELECT + 81 * 73 AS col0
----
5913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6237
SELECT COUNT( + 5 ) * 81 - - CASE + 53 WHEN + - SUM( ALL 28 ) THEN NULL WHEN - 12 THEN NULL ELSE NULLIF ( + 39, - COUNT( * ) ) END DIV 85 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6237
SELECT COUNT ( + 5 ) * 81 - - CASE + 53 WHEN + - SUM ( ALL 28 ) THEN NULL WHEN - 12 THEN NULL ELSE NULLIF ( + 39, - COUNT ( * ) ) END / 85 AS col0
----
81

query I rowsort
SELECT + CASE - 38 WHEN + - 2 - + ( - - 83 ) THEN - - 85 ELSE NULL END * - 29
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6239
SELECT ALL 64 + + + CAST( - 90 AS SIGNED ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL 64 + + + CAST ( - 90 AS INTEGER ) col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - NULLIF ( + 80, - COUNT( * ) + 26 * - COUNT( * ) * COUNT( * ) ) - + 47 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-6240
SELECT - NULLIF ( + 80, - COUNT ( * ) + 26 * - COUNT ( * ) * COUNT ( * ) ) - + 47 AS col1
----
-127

query II rowsort
SELECT - 12 AS col2, 80 AS col2
----
-12
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6242
SELECT + 52 + + + CASE - ( - 66 ) WHEN + COUNT( ALL CAST( - 42 AS SIGNED ) ) THEN 11 WHEN 73 THEN NULL WHEN 21 - 29 THEN NULL END + - 53 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT + 52 + + + CASE - ( - 66 ) WHEN + COUNT ( ALL CAST ( - 42 AS INTEGER ) ) THEN 11 WHEN 73 THEN NULL WHEN 21 - 29 THEN NULL END + - 53 * + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT + 27 * + + NULLIF ( - 49, + 16 + 55 ) * + ( + + 56 ) + SUM( 60 )
----
-74028

skipif mysql # not compatible
query I rowsort label-6243
SELECT + 27 * + + NULLIF ( - 49, + 16 + 55 ) * + ( + + 56 ) + SUM ( 60 )
----
-74028

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL NULLIF ( - + COUNT( * ), + + 5 ) + - 2 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL NULLIF ( - + COUNT ( * ), + + 5 ) + - 2 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6245
SELECT ALL 91 + CAST( NULL AS SIGNED ) / + - ( + ( + 40 ) ) + - + 97 - - 33 - SUM( DISTINCT - 94 ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL 91 + CAST ( NULL AS INTEGER ) / + - ( + ( + 40 ) ) + - + 97 - - 33 - SUM ( DISTINCT - 94 ) * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT + 97 * - - COUNT( * ) col2
----
97

skipif mysql # not compatible
query I rowsort label-6246
SELECT + 97 * - - COUNT ( * ) col2
----
97

query II rowsort
SELECT ALL NULLIF ( + 52, 25 - 98 ) * 92 AS col2, + 96
----
4784
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT - NULLIF ( - - 94, NULLIF ( 63, - MAX( ALL + 26 ) * + - 61 + + 42 ) / - 38 )
----
-94

skipif mysql # not compatible
query I rowsort label-6248
SELECT - NULLIF ( - - 94, NULLIF ( 63, - MAX ( ALL + 26 ) * + - 61 + + 42 ) / - 38 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT - CAST( - + 14 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-6249
SELECT - CAST ( - + 14 AS INTEGER )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6250
SELECT ALL CAST( + + 14 AS SIGNED ) + 28 + 33 * 42
----
1428

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL CAST ( + + 14 AS INTEGER ) + 28 + 33 * 42
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT + 61 + + SUM( - + 97 ) + + 58 * 83
----
4778

skipif mysql # not compatible
query I rowsort label-6251
SELECT + 61 + + SUM ( - + 97 ) + + 58 * 83
----
4778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6252
SELECT + 37 + + 23 - 62 + 5 * - 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT + 37 + + 23 - 62 + 5 * - 18 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT - 43 - MIN( ALL - + 39 ) - 17 * + COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6253
SELECT - 43 - MIN ( ALL - + 39 ) - 17 * + COUNT ( * ) AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6254
SELECT - 52 DIV - 99 + + - COUNT( * ) + - COALESCE ( - - NULLIF ( 66, 56 + 60 ), + SUM( + 24 ) ) DIV 78
----
-1

skipif mysql # not compatible
query I rowsort label-6254
SELECT - 52 / - 99 + + - COUNT ( * ) + - COALESCE ( - - NULLIF ( 66, 56 + 60 ), + SUM ( + 24 ) ) / 78
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT DISTINCT + COUNT( * ) DIV + 70 * - 58 - - COUNT( * ) + + 45 col2
----
46

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT + COUNT ( * ) / + 70 * - 58 - - COUNT ( * ) + + 45 col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6256
SELECT ALL - 32 * + + COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) * 48
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-6256
SELECT ALL - 32 * + + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) * 48
----
-32
NULL

query I rowsort
SELECT - 83 + + - 13 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT + 8 * + COUNT( 98 ) + + COUNT( * ) + CASE - 72 WHEN 40 * - 18 THEN + 49 ELSE - 35 * + 9 + - 42 END col1
----
-348

skipif mysql # not compatible
query I rowsort label-6258
SELECT + 8 * + COUNT ( 98 ) + + COUNT ( * ) + CASE - 72 WHEN 40 * - 18 THEN + 49 ELSE - 35 * + 9 + - 42 END col1
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT + 79 * - + MIN( - - 8 ) + - 0 - COUNT( DISTINCT + 53 ) * - COUNT( * ) * + 57
----
-575

skipif mysql # not compatible
query I rowsort label-6259
SELECT + 79 * - + MIN ( - - 8 ) + - 0 - COUNT ( DISTINCT + 53 ) * - COUNT ( * ) * + 57
----
-575

query II rowsort
SELECT DISTINCT + + 88 * - 1 AS col1, + 87 + - + CASE + 52 WHEN 2 * + 82 * + AVG ( 60 ) THEN NULL ELSE - 55 END + + 29
----
-88
171

query I rowsort
SELECT ALL - - 25 * 42
----
1050

query I rowsort
SELECT ALL + 22 * + 22
----
484

query I rowsort
SELECT + ( + + 46 ) + + NULLIF ( + 92, - - 83 ) + + - 99
----
39

query II rowsort
SELECT + CASE + 38 WHEN - 29 THEN 19 + + 41 ELSE NULL END AS col2, 81 - + 44 * 28
----
NULL
-1151

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT - + 0 * - 46 DIV - ( ( + - 69 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6265
SELECT - + 0 * - 46 / - ( ( + - 69 ) )
----
0

query I rowsort
SELECT DISTINCT - ( - 14 ) * + + 65 + - + 14 AS col0
----
896

query I rowsort
SELECT ALL + + 47 * 8 + - 66
----
310

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT - SUM( + 3 ) + + 83
----
80

skipif mysql # not compatible
query I rowsort label-6268
SELECT - SUM ( + 3 ) + + 83
----
80

query II rowsort
SELECT - 69 + - 82 AS col0, 10
----
-151
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6270
SELECT - 78 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT - 78 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL + MAX( 13 ) + 50 + + ( 83 ) AS col2
----
146

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL + MAX ( 13 ) + 50 + + ( 83 ) AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL - + 58 + - + COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL - + 58 + - + COUNT ( * ) AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6273
SELECT 99 * - CAST( 28 AS SIGNED ) + + 52 * - 0 + 40 * - + COALESCE ( + 61, 77 - 9 )
----
-5212

skipif mysql # not compatible
query I rowsort label-6273
SELECT 99 * - CAST ( 28 AS INTEGER ) + + 52 * - 0 + 40 * - + COALESCE ( + 61, 77 - 9 )
----
-5212

query II rowsort
SELECT - 36 * + 31 AS col2, + 14 AS col2
----
-1116
14

query I rowsort
SELECT ALL - ( 10 ) * + + 69
----
-690

query I rowsort
SELECT + 45 + + + CASE + 43 WHEN + 84 THEN 50 END
----
NULL

query I rowsort
SELECT ALL - + 28 + - 91 + ( + - 41 ) AS col2
----
-160

query I rowsort
SELECT ALL - ( + - 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6279
SELECT ALL NULLIF ( ( ( - + NULLIF ( + + 23, - 6 * - 16 ) ) ), 52 * 75 ) + + CAST( ( ( - 43 ) ) + - 70 AS SIGNED ) * + 97
----
-10984

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL NULLIF ( ( ( - + NULLIF ( + + 23, - 6 * - 16 ) ) ), 52 * 75 ) + + CAST ( ( ( - 43 ) ) + - 70 AS INTEGER ) * + 97
----
-10984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6280
SELECT 26 + + 50 + + 39 AS col2, + ( - 69 ) + + CAST( NULL AS SIGNED ) + - 6 * - - COUNT( * ) * CAST( 70 AS DECIMAL )
----
115
NULL

skipif mysql # not compatible
query II rowsort label-6280
SELECT 26 + + 50 + + 39 AS col2, + ( - 69 ) + + CAST ( NULL AS INTEGER ) + - 6 * - - COUNT ( * ) * CAST ( 70 AS REAL )
----
115
NULL

query II rowsort
SELECT ALL 12, 74 AS col2
----
12
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6282
SELECT DISTINCT 9 DIV + 3 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT 9 / + 3 AS col0
----
3

query II rowsort
SELECT 26 AS col2, 21 AS col1
----
26
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT 54 + + CAST( + + ( + ( + 56 ) ) AS SIGNED ) * - 80
----
-4426

skipif mysql # not compatible
query I rowsort label-6284
SELECT 54 + + CAST ( + + ( + ( + 56 ) ) AS INTEGER ) * - 80
----
-4426

onlyif mysql # DIV for integer division: 
query I rowsort label-6285
SELECT 25 DIV - - 10
----
2

skipif mysql # not compatible
query I rowsort label-6285
SELECT 25 / - - 10
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6286
SELECT 61 DIV + - 78 col1
----
0

skipif mysql # not compatible
query I rowsort label-6286
SELECT 61 / + - 78 col1
----
0

query I rowsort
SELECT DISTINCT 90 - - - 99 - 20 * - 67 AS col2
----
1331

query II rowsort
SELECT ALL 80, 80 AS col0
----
80
80

query I rowsort
SELECT ALL 84 * + + 61 AS col1
----
5124

query II rowsort
SELECT - 87 AS col2, + 55 col2
----
-87
55

query I rowsort
SELECT ALL 2 * - - 51 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT COUNT( * ) * 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT COUNT ( * ) * 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT 80 AS col0, COUNT( ALL + + 58 ) AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-6293
SELECT 80 AS col0, COUNT ( ALL + + 58 ) AS col0
----
80
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6294
SELECT 50 * - ( + - 20 ) * + COUNT( * ) * + 17 * COUNT( * ) AS col0, 17 * - 70 AS col0
----
17000
-1190

skipif mysql # not compatible
query II rowsort label-6294
SELECT 50 * - ( + - 20 ) * + COUNT ( * ) * + 17 * COUNT ( * ) AS col0, 17 * - 70 AS col0
----
17000
-1190

query I rowsort
SELECT 86 * + + NULLIF ( + - 45, - + ( - 42 ) ) col2
----
-3870

onlyif mysql # aggregate syntax: 
query II rowsort label-6296
SELECT + 77 AS col2, - COALESCE ( - COUNT( * ), - 61, 35 )
----
77
1

skipif mysql # not compatible
query II rowsort label-6296
SELECT + 77 AS col2, - COALESCE ( - COUNT ( * ), - 61, 35 )
----
77
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6297
SELECT - CAST( + AVG ( - - 33 ) AS SIGNED ) * + COUNT( * ) + + 42
----
9

skipif mysql # not compatible
query I rowsort label-6297
SELECT - CAST ( + AVG ( - - 33 ) AS INTEGER ) * + COUNT ( * ) + + 42
----
9

query I rowsort
SELECT + NULLIF ( + 65, + 66 ) col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6299
SELECT - CASE + COUNT( + - 74 ) WHEN CAST( NULL AS SIGNED ) * 70 THEN NULL ELSE + 97 + + 23 + 72 + 37 END * 47
----
-10763

skipif mysql # not compatible
query I rowsort label-6299
SELECT - CASE + COUNT ( + - 74 ) WHEN CAST ( NULL AS INTEGER ) * 70 THEN NULL ELSE + 97 + + 23 + 72 + 37 END * 47
----
-10763

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT 69 + - - COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT 69 + - - COUNT ( * ) AS col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6301
SELECT ALL - ( - + CAST( - 85 AS SIGNED ) )
----
-85

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL - ( - + CAST ( - 85 AS INTEGER ) )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6302
SELECT DISTINCT - 2 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT - 2 / - 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT + 18 * - 31 * + 85 * - 23 - + 89 + - + 21 - + - CAST( 91 AS SIGNED )
----
1090871

skipif mysql # not compatible
query I rowsort label-6303
SELECT + 18 * - 31 * + 85 * - 23 - + 89 + - + 21 - + - CAST ( 91 AS INTEGER )
----
1090871

onlyif mysql # aggregate syntax: 
query II rowsort label-6304
SELECT ALL - 85 * + - CASE 73 WHEN + 66 THEN - 14 + COUNT( * ) END, 76 * - CASE COALESCE ( 59, - 18 * 93 + - 1, 59 ) WHEN 48 THEN NULL WHEN MAX( 23 ) - 26 THEN 0 ELSE 13 + - 23 * + 77 END * 65 AS col2
----
NULL
8684520

skipif mysql # not compatible
query II rowsort label-6304
SELECT ALL - 85 * + - CASE 73 WHEN + 66 THEN - 14 + COUNT ( * ) END, 76 * - CASE COALESCE ( 59, - 18 * 93 + - 1, 59 ) WHEN 48 THEN NULL WHEN MAX ( 23 ) - 26 THEN 0 ELSE 13 + - 23 * + 77 END * 65 AS col2
----
NULL
8684520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6305
SELECT ALL + + 10 + 11 + + COUNT( * ) - - COUNT( * ) + - 42 + - - 72 DIV CAST( - 54 AS SIGNED ) * - ( + 2 + + 12 * 33 ) AS col0
----
379

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + + 10 + 11 + + COUNT ( * ) - - COUNT ( * ) + - 42 + - - 72 / CAST ( - 54 AS INTEGER ) * - ( + 2 + + 12 * 33 ) AS col0
----
379

query I rowsort
SELECT DISTINCT - 52 * + ( 17 )
----
-884

query I rowsort
SELECT ALL + 94 * - + 5
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT - 83 + + 16 * - + SUM( 94 ) * + COUNT( * ) - - + SUM( DISTINCT - 80 )
----
-1667

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT - 83 + + 16 * - + SUM ( 94 ) * + COUNT ( * ) - - + SUM ( DISTINCT - 80 )
----
-1667

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6309
SELECT ALL - 50 + + + ( 2 ), 83 + + - 38 * SUM( - CAST( + 50 AS SIGNED ) ) DIV 64 AS col2
----
-48
112

skipif mysql # not compatible
query II rowsort label-6309
SELECT ALL - 50 + + + ( 2 ), 83 + + - 38 * SUM ( - CAST ( + 50 AS INTEGER ) ) / 64 AS col2
----
-48
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6310
SELECT - 16 * MAX( ALL - - 34 ), + COUNT( ALL - CAST( 76 AS SIGNED ) ) DIV ( + - 94 ) * - 90 + 86 col0
----
-544
86

skipif mysql # not compatible
query II rowsort label-6310
SELECT - 16 * MAX ( ALL - - 34 ), + COUNT ( ALL - CAST ( 76 AS INTEGER ) ) / ( + - 94 ) * - 90 + 86 col0
----
-544
86

query I rowsort
SELECT + 22 * - + 23 * - 80 + 17 AS col2
----
40497

onlyif mysql # aggregate syntax: 
query II rowsort label-6312
SELECT + 85, - COUNT( * ) * 20 AS col2
----
85
-20

skipif mysql # not compatible
query II rowsort label-6312
SELECT + 85, - COUNT ( * ) * 20 AS col2
----
85
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6313
SELECT ALL - + CASE + 55 WHEN + 73 / 90 * + 9 THEN NULL WHEN - + 77 * CASE + 33 WHEN - ( - 58 ) THEN NULL WHEN 52 THEN 41 + CASE 49 WHEN 63 * CAST( NULL AS SIGNED ) THEN NULL WHEN 41 THEN NULL ELSE + 62 * - ( CAST( CASE - ( - 5 ) WHEN COALESCE ( + 90, COUNT( * ) ) THEN 95 END AS SIGNED ) ) END WHEN 35 THEN NULL ELSE 52 END * - 71 THEN NULL WHEN 43 * + CASE 22 * COUNT( * ) WHEN 49 THEN + 90 WHEN + COUNT( * ) * + AVG ( 16 * 51 ) THEN 14 * 87 END THEN - 31 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL - + CASE + 55 WHEN + 73 / 90 * + 9 THEN NULL WHEN - + 77 * CASE + 33 WHEN - ( - 58 ) THEN NULL WHEN 52 THEN 41 + CASE 49 WHEN 63 * CAST ( NULL AS INTEGER ) THEN NULL WHEN 41 THEN NULL ELSE + 62 * - ( CAST ( CASE - ( - 5 ) WHEN COALESCE ( + 90, COUNT ( * ) ) THEN 95 END AS INTEGER ) ) END WHEN 35 THEN NULL ELSE 52 END * - 71 THEN NULL WHEN 43 * + CASE 22 * COUNT ( * ) WHEN 49 THEN + 90 WHEN + COUNT ( * ) * + AVG ( 16 * 51 ) THEN 14 * 87 END THEN - 31 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT ALL - 89 + COALESCE ( - COUNT( * ), + - COUNT( * ), - 40 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL - 89 + COALESCE ( - COUNT ( * ), + - COUNT ( * ), - 40 ) AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6315
SELECT DISTINCT - COALESCE ( + CAST( + - 67 AS SIGNED ), + + 70 ) col1
----
67

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT - COALESCE ( + CAST ( + - 67 AS INTEGER ), + + 70 ) col1
----
67

query I rowsort
SELECT ALL + - 30 + + - 7 + + - 53
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-6317
SELECT 21, - COUNT( * ) AS col0
----
21
-1

skipif mysql # not compatible
query II rowsort label-6317
SELECT 21, - COUNT ( * ) AS col0
----
21
-1

query II rowsort
SELECT DISTINCT - 76 - - + 72, - ( + - 89 ) AS col2
----
-4
89

query I rowsort
SELECT ALL - ( 94 ) - + + 90
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT 25 - - - 79 * COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6320
SELECT 25 - - - 79 * COUNT ( * ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT 28 * COUNT( ALL - - 22 )
----
28

skipif mysql # not compatible
query I rowsort label-6321
SELECT 28 * COUNT ( ALL - - 22 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6322
SELECT 70 DIV 30
----
2

skipif mysql # not compatible
query I rowsort label-6322
SELECT 70 / 30
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6323
SELECT DISTINCT - 50 * + 61 AS col0, COUNT( * ) * COALESCE ( - 32, + ( + - MIN( ( + 29 ) ) ) - COUNT( * ) * - 55 )
----
-3050
-32

skipif mysql # not compatible
query II rowsort label-6323
SELECT DISTINCT - 50 * + 61 AS col0, COUNT ( * ) * COALESCE ( - 32, + ( + - MIN ( ( + 29 ) ) ) - COUNT ( * ) * - 55 )
----
-3050
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT DISTINCT - ( COUNT( * ) ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT - ( COUNT ( * ) ) - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6325
SELECT 60 - - CASE - 51 WHEN - CAST( NULL AS SIGNED ) - + 26 THEN + + 32 * + - 13 + 87 WHEN 29 THEN NULL END + 97 * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT 60 - - CASE - 51 WHEN - CAST ( NULL AS INTEGER ) - + 26 THEN + + 32 * + - 13 + 87 WHEN 29 THEN NULL END + 97 * 70
----
NULL

query II rowsort
SELECT DISTINCT - 59 * + 1 AS col1, - 54 + 60 AS col2
----
-59
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT 79 * + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-6327
SELECT 79 * + COUNT ( * )
----
79

query II rowsort
SELECT 60 + - 11 + + 99 + - 70, 25 AS col0
----
78
25

query I rowsort
SELECT DISTINCT NULLIF ( - 9, 2 )
----
-9

query I rowsort
SELECT 69 + + 73 AS col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT COUNT( * ) - 71 + 70
----
0

skipif mysql # not compatible
query I rowsort label-6331
SELECT COUNT ( * ) - 71 + 70
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( + - 99, 89, - 46 - + 43 + 65 - + 78 * + 25 ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT DISTINCT 46 * + - 6 / 69 * - 67 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT 46 * + - 6 / 69 * - 67 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 24 + + - COALESCE ( 92, - 12 )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-6335
SELECT + + ( - 48 ) AS col1, 83 + + - COUNT( * ) AS col2
----
-48
82

skipif mysql # not compatible
query II rowsort label-6335
SELECT + + ( - 48 ) AS col1, 83 + + - COUNT ( * ) AS col2
----
-48
82

query I rowsort
SELECT DISTINCT - 35 * + 61 + - - 80 col0
----
-2055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6337
SELECT + + CAST( MIN( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * - - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6337
SELECT + + CAST ( MIN ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - - 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6338
SELECT + ( - NULLIF ( + - ( 58 ), - - 10 - 70 ) ) DIV + COUNT( * ) col0
----
58

skipif mysql # not compatible
query I rowsort label-6338
SELECT + ( - NULLIF ( + - ( 58 ), - - 10 - 70 ) ) / + COUNT ( * ) col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6339
SELECT ALL - ( - + ( + COUNT( * ) ) ) DIV CAST( - MAX( - 62 ) AS SIGNED ) + - 59
----
-59

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - ( - + ( + COUNT ( * ) ) ) / CAST ( - MAX ( - 62 ) AS INTEGER ) + - 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT DISTINCT 75 * - - COUNT( * ) + - 35 * + COUNT( ALL 94 ) + - - COUNT( DISTINCT - + 8 ) * - ( - 18 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT 75 * - - COUNT ( * ) + - 35 * + COUNT ( ALL 94 ) + - - COUNT ( DISTINCT - + 8 ) * - ( - 18 ) AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT DISTINCT 15 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT 15 / - 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6342
SELECT + - CASE + 97 WHEN + + 75 THEN NULL ELSE - CAST( + - 61 AS SIGNED ) - + 64 + + 20 + - - 25 + + ( CASE COALESCE ( 70, + 70 - MAX( + 48 ) / 36 ) WHEN AVG ( ALL 61 ) * - NULLIF ( 94, 67 ) THEN 10 * CAST( 94 * 63 AS SIGNED ) + - COUNT( * ) ELSE NULL END ) + ( ( + CAST( COUNT( * ) AS SIGNED ) ) ) END / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT + - CASE + 97 WHEN + + 75 THEN NULL ELSE - CAST ( + - 61 AS INTEGER ) - + 64 + + 20 + - - 25 + + ( CASE COALESCE ( 70, + 70 - MAX ( + 48 ) / 36 ) WHEN AVG ( ALL 61 ) * - NULLIF ( 94, 67 ) THEN 10 * CAST ( 94 * 63 AS INTEGER ) + - COUNT ( * ) ELSE NULL END ) + ( ( + CAST ( COUNT ( * ) AS INTEGER ) ) ) END / 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT + - CAST( NULL AS SIGNED ) * 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6343
SELECT + - CAST ( NULL AS INTEGER ) * 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT 63 * - NULLIF ( + 82, - CASE - 9 WHEN - + 75 * + 62 / 68 * + - 66 THEN + + 48 / COUNT( * ) ELSE - CASE - 27 WHEN AVG ( + 25 ) THEN ( 64 ) + AVG ( ALL 81 + - 56 ) ELSE AVG ( - NULLIF ( 22, - 27 ) ) END * 95 - 42 END ) + 16 col1
----
-5150

skipif mysql # not compatible
query I rowsort label-6344
SELECT 63 * - NULLIF ( + 82, - CASE - 9 WHEN - + 75 * + 62 / 68 * + - 66 THEN + + 48 / COUNT ( * ) ELSE - CASE - 27 WHEN AVG ( + 25 ) THEN ( 64 ) + AVG ( ALL 81 + - 56 ) ELSE AVG ( - NULLIF ( 22, - 27 ) ) END * 95 - 42 END ) + 16 col1
----
-5150

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT + 21 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-6345
SELECT + 21 / - 69
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6346
SELECT - COUNT( * ) * - 54 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-6346
SELECT - COUNT ( * ) * - 54 / - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT - 28 * - + 98 + - ( + 67 ) * COUNT( * ) AS col2
----
2677

skipif mysql # not compatible
query I rowsort label-6347
SELECT - 28 * - + 98 + - ( + 67 ) * COUNT ( * ) AS col2
----
2677

query I rowsort
SELECT - 3 * 5
----
-15

query I rowsort
SELECT DISTINCT 38 * + + 7
----
266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6350
SELECT - COALESCE ( - ( COALESCE ( + NULLIF ( 21, - - NULLIF ( 83, + 96 + + CAST( + 32 AS SIGNED ) * 65 ) + - 0 ), + ( - COUNT( * ) ), MIN( + 25 ) ) ), 95 ) + 1
----
22

skipif mysql # not compatible
query I rowsort label-6350
SELECT - COALESCE ( - ( COALESCE ( + NULLIF ( 21, - - NULLIF ( 83, + 96 + + CAST ( + 32 AS INTEGER ) * 65 ) + - 0 ), + ( - COUNT ( * ) ), MIN ( + 25 ) ) ), 95 ) + 1
----
22

query I rowsort
SELECT - 67 * - 82 AS col2
----
5494

query I rowsort
SELECT - 84 + + + 4
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT DISTINCT NULLIF ( 26, - 37 - + COUNT( * ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT NULLIF ( 26, - 37 - + COUNT ( * ) ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6354
SELECT 83 AS col2, - 77 * + - 20 * + + MAX( ALL + - 71 ) AS col0
----
83
-109340

skipif mysql # not compatible
query II rowsort label-6354
SELECT 83 AS col2, - 77 * + - 20 * + + MAX ( ALL + - 71 ) AS col0
----
83
-109340

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT - ( + NULLIF ( + - COUNT( * ), + COUNT( * ) ) ) + + 88 - + 48
----
41

skipif mysql # not compatible
query I rowsort label-6355
SELECT - ( + NULLIF ( + - COUNT ( * ), + COUNT ( * ) ) ) + + 88 - + 48
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT + 31 * - COALESCE ( - + 30, ( + 22 ) + - + COUNT( * ) + - - 80 * - 48 + 75 + - 42 * 87 ) AS col0
----
930

skipif mysql # not compatible
query I rowsort label-6356
SELECT + 31 * - COALESCE ( - + 30, ( + 22 ) + - + COUNT ( * ) + - - 80 * - 48 + 75 + - 42 * 87 ) AS col0
----
930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6357
SELECT - COUNT( * ) + - 69 DIV - 12 + - - 6 * + MIN( ALL - + COALESCE ( + + 67, + 82 ) )
----
-398

skipif mysql # not compatible
query I rowsort label-6357
SELECT - COUNT ( * ) + - 69 / - 12 + - - 6 * + MIN ( ALL - + COALESCE ( + + 67, + 82 ) )
----
-398

query I rowsort
SELECT - ( + 21 ) AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6359
SELECT 32, 42 * + - CAST( NULL AS SIGNED ) - - - 91 - + 2 col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-6359
SELECT 32, 42 * + - CAST ( NULL AS INTEGER ) - - - 91 - + 2 col0
----
32
NULL

query I rowsort
SELECT ALL + 74 + + - ( 53 ) AS col2
----
21

query I rowsort
SELECT - 30 + 93 AS col1
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-6362
SELECT DISTINCT - 56 + + + 70 DIV 94, + 52 - - 35 AS col1
----
-56
87

skipif mysql # not compatible
query II rowsort label-6362
SELECT DISTINCT - 56 + + + 70 / 94, + 52 - - 35 AS col1
----
-56
87

query I rowsort
SELECT ALL + 2 + 27
----
29

query I rowsort
SELECT DISTINCT + 7 * + - 25
----
-175

query I rowsort
SELECT ALL - + 18 + + 0 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6366
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT - CAST ( NULL AS REAL ) + + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 35 AS col0, - 43 * - 51 AS col2
----
35
2193

query I rowsort
SELECT DISTINCT + + ( + 53 ) col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6369
SELECT + 30 * + + 95 * + + 28 * + + 12 + + 49 - COUNT( * ) * 48 + ( + COALESCE ( COUNT( * ), ( 27 ) ) ) - 23 * + NULLIF ( + COUNT( + 58 ) + 17, 5 * NULLIF ( + 7, + CAST( NULL AS DECIMAL ) * 68 ) ) - 43 col2
----
957145

skipif mysql # not compatible
query I rowsort label-6369
SELECT + 30 * + + 95 * + + 28 * + + 12 + + 49 - COUNT ( * ) * 48 + ( + COALESCE ( COUNT ( * ), ( 27 ) ) ) - 23 * + NULLIF ( + COUNT ( + 58 ) + 17, 5 * NULLIF ( + 7, + CAST ( NULL AS REAL ) * 68 ) ) - 43 col2
----
957145

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT + COALESCE ( COALESCE ( 37, - + SUM( - + ( - + 57 ) ) * - - 0 * 78 * - 77 + + 55 ), 65 * 1 ) * MIN( DISTINCT 35 * - 86 + 28 ) AS col0
----
-110334

skipif mysql # not compatible
query I rowsort label-6370
SELECT + COALESCE ( COALESCE ( 37, - + SUM ( - + ( - + 57 ) ) * - - 0 * 78 * - 77 + + 55 ), 65 * 1 ) * MIN ( DISTINCT 35 * - 86 + 28 ) AS col0
----
-110334

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT ALL + - 14 DIV + 10
----
-1

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL + - 14 / + 10
----
-1

query I rowsort
SELECT DISTINCT - 87 / - CASE - 67 WHEN + 25 THEN NULL WHEN 72 THEN AVG ( - + 53 ) END - - 56 + - 27 * ( - 39 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6373
SELECT ALL + + 67 * - 36 + + NULLIF ( CAST( NULL AS SIGNED ), + + 40 + 81 ) / + COALESCE ( + 10, - 82 ) - + + 24 + 44 - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL + + 67 * - 36 + + NULLIF ( CAST ( NULL AS INTEGER ), + + 40 + 81 ) / + COALESCE ( + 10, - 82 ) - + + 24 + 44 - 35
----
NULL

query I rowsort
SELECT ALL 64 * - + 60
----
-3840

onlyif mysql # aggregate syntax: 
query II rowsort label-6375
SELECT DISTINCT - 58 * - 13 - - - 62, MAX( - - 25 ) AS col1
----
692
25

skipif mysql # not compatible
query II rowsort label-6375
SELECT DISTINCT - 58 * - 13 - - - 62, MAX ( - - 25 ) AS col1
----
692
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT - - 8 * + NULLIF ( 53, + 66 ) * + 62 + - - COUNT( * ) + - 31 + 95 + - 9 AS col2
----
26344

skipif mysql # not compatible
query I rowsort label-6376
SELECT - - 8 * + NULLIF ( 53, + 66 ) * + 62 + - - COUNT ( * ) + - 31 + 95 + - 9 AS col2
----
26344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * - 18 / 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 18 / 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT + 61 * - MIN( DISTINCT - - 78 )
----
-4758

skipif mysql # not compatible
query I rowsort label-6378
SELECT + 61 * - MIN ( DISTINCT - - 78 )
----
-4758

query I rowsort
SELECT ALL + 77 * 10 * - 26
----
-20020

query II rowsort
SELECT DISTINCT + 15, + 58 AS col2
----
15
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT CASE - + NULLIF ( - ( - 52 ), 81 ) WHEN - 66 / NULLIF ( 27, - - CAST( 44 AS SIGNED ) - + AVG ( + 98 ) ) THEN + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT CASE - + NULLIF ( - ( - 52 ), 81 ) WHEN - 66 / NULLIF ( 27, - - CAST ( 44 AS INTEGER ) - + AVG ( + 98 ) ) THEN + 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT + CASE + 19 WHEN + COUNT( * ) - 99 THEN COUNT( * ) ELSE NULL END * - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT + CASE + 19 WHEN + COUNT ( * ) - 99 THEN COUNT ( * ) ELSE NULL END * - 56 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT ALL 90 DIV - 31 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL 90 / - 31 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT MAX( ( - 33 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-6384
SELECT MAX ( ( - 33 ) )
----
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6385
SELECT + COALESCE ( + ( + 80 ), ( 69 ) + + ( CASE + CAST( NULL AS SIGNED ) WHEN - + ( 58 ) THEN - - 65 * 36 WHEN 97 * 65 THEN NULL ELSE - 11 * - NULLIF ( + 61 DIV 4, 89 ) END ) + 63 ) - + 39
----
41

skipif mysql # not compatible
query I rowsort label-6385
SELECT + COALESCE ( + ( + 80 ), ( 69 ) + + ( CASE + CAST ( NULL AS INTEGER ) WHEN - + ( 58 ) THEN - - 65 * 36 WHEN 97 * 65 THEN NULL ELSE - 11 * - NULLIF ( + 61 / 4, 89 ) END ) + 63 ) - + 39
----
41

query I rowsort
SELECT ALL 19 + - - 52
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT DISTINCT COUNT( - + ( - 26 ) ) + ( - 21 ) + - - 99 col1
----
79

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT COUNT ( - + ( - 26 ) ) + ( - 21 ) + - - 99 col1
----
79

query I rowsort
SELECT ALL + 70 + - 88 * + 8
----
-634

query I rowsort
SELECT ALL COALESCE ( + 31, - + 54, - 29 ) AS col0
----
31

query II rowsort
SELECT 90 col2, + 78 - + 34
----
90
44

query I rowsort
SELECT ALL - + 91 + + 13 col1
----
-78

query I rowsort
SELECT ALL ( - - 49 ) + + 98 col1
----
147

query I rowsort
SELECT - 37 + 97
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6394
SELECT 84 * CAST( 58 AS SIGNED )
----
4872

skipif mysql # not compatible
query I rowsort label-6394
SELECT 84 * CAST ( 58 AS INTEGER )
----
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT - COUNT( * ) * 97 col0
----
-97

skipif mysql # not compatible
query I rowsort label-6395
SELECT - COUNT ( * ) * 97 col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6396
SELECT - 58 AS col0, - CASE + MIN( ALL + 50 ) WHEN - COALESCE ( + CAST( NULL AS SIGNED ), + + 70, ( + ( COUNT( * ) ) ) ) THEN NULL WHEN - 46 + 66 THEN 23 ELSE NULL END AS col2
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-6396
SELECT - 58 AS col0, - CASE + MIN ( ALL + 50 ) WHEN - COALESCE ( + CAST ( NULL AS INTEGER ), + + 70, ( + ( COUNT ( * ) ) ) ) THEN NULL WHEN - 46 + 66 THEN 23 ELSE NULL END AS col2
----
-58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6397
SELECT - COUNT( * ) AS col2, - 69 / - 8 / - - 27 * + 78 / + CASE + 49 WHEN 29 THEN NULL ELSE + + 25 * - + 44 + - - CASE CASE 8 WHEN + 6 THEN 14 + + 25 * 79 ELSE NULL END WHEN 39 THEN + COUNT( * ) + 20 * - 86 WHEN - AVG ( DISTINCT + CAST( - 61 AS SIGNED ) ) * ( + 81 * - 15 ) THEN CAST( NULL AS DECIMAL ) ELSE NULL END END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6397
SELECT - COUNT ( * ) AS col2, - 69 / - 8 / - - 27 * + 78 / + CASE + 49 WHEN 29 THEN NULL ELSE + + 25 * - + 44 + - - CASE CASE 8 WHEN + 6 THEN 14 + + 25 * 79 ELSE NULL END WHEN 39 THEN + COUNT ( * ) + 20 * - 86 WHEN - AVG ( DISTINCT + CAST ( - 61 AS INTEGER ) ) * ( + 81 * - 15 ) THEN CAST ( NULL AS REAL ) ELSE NULL END END
----
-1
NULL

query II rowsort
SELECT 28, - 87 AS col1
----
28
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT 64 + 58 * + CASE 42 WHEN + 28 * 92 THEN - 33 + + COUNT( * ) + - + 40 + + 99 ELSE NULL END * + + COUNT( DISTINCT + 15 ) * + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT 64 + 58 * + CASE 42 WHEN + 28 * 92 THEN - 33 + + COUNT ( * ) + - + 40 + + 99 ELSE NULL END * + + COUNT ( DISTINCT + 15 ) * + 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT COUNT( * ) - + + COUNT( * ) + + 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6400
SELECT COUNT ( * ) - + + COUNT ( * ) + + 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT + 86 + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-6401
SELECT + 86 + COUNT ( * )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT ALL - 71 - - 79 DIV - + 82 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL - 71 - - 79 / - + 82 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT + ( COALESCE ( - 55, + 22, + - COALESCE ( + CASE MIN( ALL + - 8 ) WHEN 48 THEN + NULLIF ( + 17, 96 * 49 ) WHEN COUNT( * ) * - COUNT( * ) THEN NULL END, - 5 ) * + 34 ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6403
SELECT + ( COALESCE ( - 55, + 22, + - COALESCE ( + CASE MIN ( ALL + - 8 ) WHEN 48 THEN + NULLIF ( + 17, 96 * 49 ) WHEN COUNT ( * ) * - COUNT ( * ) THEN NULL END, - 5 ) * + 34 ) ) AS col2
----
-55

query II rowsort
SELECT ALL - 84 AS col2, + 36 * 61 + - 28 AS col0
----
-84
2168

query I rowsort
SELECT ALL + ( 81 ) * - - ( 37 ) * ( + 8 ) - - + 21
----
23997

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT 87 DIV + 10 col0
----
8

skipif mysql # not compatible
query I rowsort label-6406
SELECT 87 / + 10 col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6407
SELECT DISTINCT + CASE 98 WHEN 0 / 58 + - CAST( NULL AS SIGNED ) THEN NULL ELSE + 50 END * + - 9 * - + 14 * CAST( - 36 AS SIGNED ) AS col2
----
-226800

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT + CASE 98 WHEN 0 / 58 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 50 END * + - 9 * - + 14 * CAST ( - 36 AS INTEGER ) AS col2
----
-226800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT ALL - ( + CAST( + 69 AS SIGNED ) ) * - + 44
----
3036

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - ( + CAST ( + 69 AS INTEGER ) ) * - + 44
----
3036

query II rowsort
SELECT 46 AS col2, 96
----
46
96

query I rowsort
SELECT + 45 * 41 * - - 10 * + ( + 71 )
----
1309950

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT 66 DIV - 35 + - + 83 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6411
SELECT 66 / - 35 + - + 83 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT MIN( ALL 42 ) * 64 col0
----
2688

skipif mysql # not compatible
query I rowsort label-6412
SELECT MIN ( ALL 42 ) * 64 col0
----
2688

query II rowsort
SELECT 54 * - - 36 AS col0, - 93 * + - 74
----
1944
6882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6414
SELECT ALL 79 + + CAST( NULL AS SIGNED ) col1, COUNT( ALL - + ( 56 ) ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6414
SELECT ALL 79 + + CAST ( NULL AS INTEGER ) col1, COUNT ( ALL - + ( 56 ) ) AS col1
----
NULL
1

query I rowsort
SELECT ALL + 46 * 11 col2
----
506

query I rowsort
SELECT 44 * - 10 col1
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT COUNT( * ) * + ( 47 ) + + 55 * + COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-6417
SELECT COUNT ( * ) * + ( 47 ) + + 55 * + COUNT ( * )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ( + + COUNT( * ) ) - - + 67
----
68

skipif mysql # not compatible
query I rowsort label-6418
SELECT ( + + COUNT ( * ) ) - - + 67
----
68

query I rowsort
SELECT DISTINCT + 29 * + 64 AS col2
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT - 56 + - 50 - 3 * - 29 + - CASE + - 66 WHEN 73 THEN NULL WHEN MIN( + 74 ) THEN - + 83 * - 50 * + - 16 ELSE NULL END - 3 * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT - 56 + - 50 - 3 * - 29 + - CASE + - 66 WHEN 73 THEN NULL WHEN MIN ( + 74 ) THEN - + 83 * - 50 * + - 16 ELSE NULL END - 3 * - 2
----
NULL

query I rowsort
SELECT DISTINCT ( NULLIF ( + 48, 72 ) ) * 62 AS col0
----
2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6422
SELECT ALL 36 DIV - - COALESCE ( - COALESCE ( CAST( NULL AS SIGNED ), - + 37 * + 53 * 29 * + 13 * - 64 * - NULLIF ( - 37, 33 ), MIN( DISTINCT 60 ) * - SUM( 31 * + 4 ) ), + 7 * + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL 36 / - - COALESCE ( - COALESCE ( CAST ( NULL AS INTEGER ), - + 37 * + 53 * 29 * + 13 * - 64 * - NULLIF ( - 37, 33 ), MIN ( DISTINCT 60 ) * - SUM ( 31 * + 4 ) ), + 7 * + 90 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6423
SELECT ( - 57 ) * - CAST( - ( + 19 ) AS SIGNED ) col0, CAST( NULL AS SIGNED ) AS col1
----
-1083
NULL

skipif mysql # not compatible
query II rowsort label-6423
SELECT ( - 57 ) * - CAST ( - ( + 19 ) AS INTEGER ) col0, CAST ( NULL AS INTEGER ) AS col1
----
-1083
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT + COUNT( * ) * + COUNT( * ) + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-6424
SELECT + COUNT ( * ) * + COUNT ( * ) + - 89
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6425
SELECT DISTINCT 36 * - + CASE + - 59 WHEN + 55 THEN NULL WHEN CAST( - + 21 AS SIGNED ) THEN 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT 36 * - + CASE + - 59 WHEN + 55 THEN NULL WHEN CAST ( - + 21 AS INTEGER ) THEN 79 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT ALL + COALESCE ( + - 89, - 9 DIV ( + + NULLIF ( 58, - 77 + + - 33 ) ), 52 )
----
-89

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL + COALESCE ( + - 89, - 9 / ( + + NULLIF ( 58, - 77 + + - 33 ) ), 52 )
----
-89

query I rowsort
SELECT 88 * + 23 * + + 4 AS col2
----
8096

query I rowsort
SELECT 32 + - 31 + 61 AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6429
SELECT + SUM( 23 ) AS col0, 55 - + + 96 AS col2
----
23
-41

skipif mysql # not compatible
query II rowsort label-6429
SELECT + SUM ( 23 ) AS col0, 55 - + + 96 AS col2
----
23
-41

query II rowsort
SELECT ALL - ( - 94 ), + 59 AS col0
----
94
59

query I rowsort
SELECT ALL - ( - + 93 ) AS col0
----
93

query I rowsort
SELECT + 87 - + COALESCE ( - 59, - - 41 ) AS col0
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-6433
SELECT COUNT( * ), + 43 AS col0
----
1
43

skipif mysql # not compatible
query II rowsort label-6433
SELECT COUNT ( * ), + 43 AS col0
----
1
43

query I rowsort
SELECT 70 + - - 23 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT MAX( - + 74 ) * + MAX( + 15 ) - - 91
----
-1019

skipif mysql # not compatible
query I rowsort label-6435
SELECT MAX ( - + 74 ) * + MAX ( + 15 ) - - 91
----
-1019

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT ALL - 14 * MIN( ALL + - 12 )
----
168

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL - 14 * MIN ( ALL + - 12 )
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT 79 DIV - + 24
----
-3

skipif mysql # not compatible
query I rowsort label-6437
SELECT 79 / - + 24
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6438
SELECT COUNT( * ) AS col2, 61 AS col0
----
1
61

skipif mysql # not compatible
query II rowsort label-6438
SELECT COUNT ( * ) AS col2, 61 AS col0
----
1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT SUM( ALL - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-6439
SELECT SUM ( ALL - 93 )
----
-93

query I rowsort
SELECT ALL + 42 + 29
----
71

query I rowsort
SELECT ALL - 87 + 80 AS col2
----
-7

query I rowsort
SELECT 51 * + 44 + 36 * + 53 + - + 73 + 12
----
4091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6443
SELECT 69 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT 69 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6444
SELECT 73 + 33 DIV 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-6444
SELECT 73 + 33 / 73 AS col2
----
73

query I rowsort
SELECT ALL + 42 + + 76
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6446
SELECT DISTINCT - COUNT( * ), SUM( ALL - 47 ) DIV MIN( DISTINCT - 20 ) * + 93 AS col2
----
-1
186

skipif mysql # not compatible
query II rowsort label-6446
SELECT DISTINCT - COUNT ( * ), SUM ( ALL - 47 ) / MIN ( DISTINCT - 20 ) * + 93 AS col2
----
-1
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6447
SELECT - 71 * ( - 1 ) * - - COALESCE ( - + 97, - 66 * + + 64, - COALESCE ( - 28, + CAST( NULL AS SIGNED ) ) + NULLIF ( 22, 60 ) ) * + 7
----
-48209

skipif mysql # not compatible
query I rowsort label-6447
SELECT - 71 * ( - 1 ) * - - COALESCE ( - + 97, - 66 * + + 64, - COALESCE ( - 28, + CAST ( NULL AS INTEGER ) ) + NULLIF ( 22, 60 ) ) * + 7
----
-48209

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6448
SELECT 15, CAST( NULL AS SIGNED ) AS col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-6448
SELECT 15, CAST ( NULL AS INTEGER ) AS col2
----
15
NULL

query II rowsort
SELECT - 49, ( 59 ) AS col0
----
-49
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL - - COALESCE ( - CAST( NULL AS SIGNED ), + 0 ) * + 38
----
0

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - - COALESCE ( - CAST ( NULL AS INTEGER ), + 0 ) * + 38
----
0

query I rowsort
SELECT - 28 - 47
----
-75

query I rowsort
SELECT + 97 * - + 55 * - 74 AS col1
----
394790

query I rowsort
SELECT - 41 + - 29
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6454
SELECT ALL + 3 AS col1, CAST( NULL AS DECIMAL ) * 88
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6454
SELECT ALL + 3 AS col1, CAST ( NULL AS REAL ) * 88
----
3
NULL

query I rowsort
SELECT ALL - 35 * - 37 AS col1
----
1295

onlyif mysql # aggregate syntax: 
query II rowsort label-6456
SELECT COUNT( * ) col1, + 26
----
1
26

skipif mysql # not compatible
query II rowsort label-6456
SELECT COUNT ( * ) col1, + 26
----
1
26

query I rowsort
SELECT + + 49 - 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT + - ( - SUM( + - 87 ) ) - - + 65 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6458
SELECT + - ( - SUM ( + - 87 ) ) - - + 65 AS col0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6459
SELECT - + 63 DIV - 14
----
4

skipif mysql # not compatible
query I rowsort label-6459
SELECT - + 63 / - 14
----
4

query II rowsort
SELECT 57 AS col0, - 16
----
57
-16

query I rowsort
SELECT + 14 * - 69 + 5 + - + 3 * + 16 AS col0
----
-1009

query I rowsort
SELECT + - 25 * - 17 AS col2
----
425

query I rowsort
SELECT ALL - 19 * - 46 AS col2
----
874

query I rowsort
SELECT ALL 10 * 63
----
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6465
SELECT DISTINCT + COUNT( * ) + + + NULLIF ( + CAST( - NULLIF ( + + CAST( + - 32 AS DECIMAL ), - - 40 ) AS SIGNED ), 51 * - 92 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT + COUNT ( * ) + + + NULLIF ( + CAST ( - NULLIF ( + + CAST ( + - 32 AS REAL ), - - 40 ) AS INTEGER ), 51 * - 92 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6466
SELECT ALL + + 97 * + - 75 + + 75 + + - 62 + COUNT( * ) * 38 + COUNT( * ) + 47 * 39 + + - ( - 30 ) AS col1, + 50 + - + 58 * 85
----
-5360
-4880

skipif mysql # not compatible
query II rowsort label-6466
SELECT ALL + + 97 * + - 75 + + 75 + + - 62 + COUNT ( * ) * 38 + COUNT ( * ) + 47 * 39 + + - ( - 30 ) AS col1, + 50 + - + 58 * 85
----
-5360
-4880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6467
SELECT + - CASE - 51 WHEN + 70 * - 67 THEN NULL ELSE + 84 * + 66 * + COALESCE ( MIN( 99 ), 95 * + - 49 DIV + 42, + - 56 * 44 + 5 ) * + 42 END AS col0
----
-23051952

skipif mysql # not compatible
query I rowsort label-6467
SELECT + - CASE - 51 WHEN + 70 * - 67 THEN NULL ELSE + 84 * + 66 * + COALESCE ( MIN ( 99 ), 95 * + - 49 / + 42, + - 56 * 44 + 5 ) * + 42 END AS col0
----
-23051952

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL 74 * COUNT( * ) * + 20
----
1480

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL 74 * COUNT ( * ) * + 20
----
1480

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT + MIN( ALL + - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-6469
SELECT + MIN ( ALL + - 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT + COALESCE ( - 76, - 28, + COALESCE ( - + 88, - - 45, - 16 ) + + COUNT( * ) + + 35 )
----
-76

skipif mysql # not compatible
query I rowsort label-6470
SELECT + COALESCE ( - 76, - 28, + COALESCE ( - + 88, - - 45, - 16 ) + + COUNT ( * ) + + 35 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT + NULLIF ( + 90, + 33 * 65 ) + - COUNT( * ) * + - COUNT( * ) + + 81 * + + MAX( ALL + NULLIF ( + 42, + - 70 - 40 / + - 68 - NULLIF ( + 54, 92 / 4 ) ) ) AS col2
----
3493

skipif mysql # not compatible
query I rowsort label-6471
SELECT + NULLIF ( + 90, + 33 * 65 ) + - COUNT ( * ) * + - COUNT ( * ) + + 81 * + + MAX ( ALL + NULLIF ( + 42, + - 70 - 40 / + - 68 - NULLIF ( + 54, 92 / 4 ) ) ) AS col2
----
3493

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6472
SELECT DISTINCT 49 * - 85 + - - COALESCE ( + COUNT( * ), 93 * - 2 + - CASE + + 66 WHEN - 54 THEN CASE - 41 WHEN + - 66 THEN + + 20 * CASE + 16 WHEN 10 - + 81 * + NULLIF ( + 2 + - 44, 55 ) THEN 77 WHEN ( CASE ( - 34 ) WHEN - 61 THEN + 82 WHEN 82 * - COALESCE ( + 2, + 17 + + MIN( 93 ) / - COUNT( * ), - 9 + + CAST( NULL AS DECIMAL ) * + 99 ) - 17 THEN 6 END ) / + 13 THEN NULL WHEN 10 THEN 11 ELSE NULL END * 46 WHEN 64 THEN + 94 ELSE - 35 END ELSE NULL END + - 87 * 36 + 77, 68 * 12 - - ( 43 ) ) AS col2
----
-4164

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT 49 * - 85 + - - COALESCE ( + COUNT ( * ), 93 * - 2 + - CASE + + 66 WHEN - 54 THEN CASE - 41 WHEN + - 66 THEN + + 20 * CASE + 16 WHEN 10 - + 81 * + NULLIF ( + 2 + - 44, 55 ) THEN 77 WHEN ( CASE ( - 34 ) WHEN - 61 THEN + 82 WHEN 82 * - COALESCE ( + 2, + 17 + + MIN ( 93 ) / - COUNT ( * ), - 9 + + CAST ( NULL AS REAL ) * + 99 ) - 17 THEN 6 END ) / + 13 THEN NULL WHEN 10 THEN 11 ELSE NULL END * 46 WHEN 64 THEN + 94 ELSE - 35 END ELSE NULL END + - 87 * 36 + 77, 68 * 12 - - ( 43 ) ) AS col2
----
-4164

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT ALL - MAX( DISTINCT + 94 ) * + CASE 91 WHEN + 29 + + 51 THEN + 71 WHEN + + 56 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL - MAX ( DISTINCT + 94 ) * + CASE 91 WHEN + 29 + + 51 THEN + 71 WHEN + + 56 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT CASE 79 WHEN - 58 THEN NULL ELSE + 40 * 55 END
----
2200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6475
SELECT + CAST( - + NULLIF ( - + 23, - + COUNT( * ) + + COUNT( * ) + + 93 ) AS SIGNED ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6475
SELECT + CAST ( - + NULLIF ( - + 23, - + COUNT ( * ) + + COUNT ( * ) + + 93 ) AS INTEGER ) AS col0
----
23

query I rowsort
SELECT ALL + ( + + ( NULLIF ( + 78, + 16 ) ) ) AS col2
----
78

query I rowsort
SELECT ALL - 91 * + + 64 - - 37 + - + 69 AS col1
----
-5856

query I rowsort
SELECT ALL 60 * + - 10
----
-600

query I rowsort
SELECT 11 * - + 62 * - 17 + - 29 AS col1
----
11565

onlyif mysql # aggregate syntax: 
query II rowsort label-6480
SELECT COALESCE ( + + 48, COUNT( * ) * 48, + 90 ) AS col1, 28
----
48
28

skipif mysql # not compatible
query II rowsort label-6480
SELECT COALESCE ( + + 48, COUNT ( * ) * 48, + 90 ) AS col1, 28
----
48
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6481
SELECT + CAST( + - ( 22 ) AS SIGNED ) + 68 + - + 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6481
SELECT + CAST ( + - ( 22 ) AS INTEGER ) + 68 + - + 47 AS col1
----
-1

query I rowsort
SELECT - 24 * - + ( - + 85 )
----
-2040

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT COUNT( * ) * + 1 + + 67 * - - 11
----
738

skipif mysql # not compatible
query I rowsort label-6483
SELECT COUNT ( * ) * + 1 + + 67 * - - 11
----
738

query II rowsort
SELECT - 42 - + + 43 col1, + 36 * 17
----
-85
612

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT DISTINCT + MIN( + 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT + MIN ( + 96 ) AS col1
----
96

query I rowsort
SELECT - 26 + 38 * - 19 AS col1
----
-748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6487
SELECT ALL + CASE - 39 WHEN 46 * + - NULLIF ( - 86, + 53 ) * + COALESCE ( + 51, + 31 - + 9 ) - + + 23 * - 8 + - 37 THEN + 15 - - 19 * 31 WHEN - 28 + ( + MAX( - COALESCE ( 27, - 81 ) ) ) THEN 29 + + 10 * NULLIF ( + MAX( 83 ) + CAST( NULL AS SIGNED ), + 24 / 87 - 47 ) ELSE NULL END / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL + CASE - 39 WHEN 46 * + - NULLIF ( - 86, + 53 ) * + COALESCE ( + 51, + 31 - + 9 ) - + + 23 * - 8 + - 37 THEN + 15 - - 19 * 31 WHEN - 28 + ( + MAX ( - COALESCE ( 27, - 81 ) ) ) THEN 29 + + 10 * NULLIF ( + MAX ( 83 ) + CAST ( NULL AS INTEGER ), + 24 / 87 - 47 ) ELSE NULL END / 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6488
SELECT - 39 * + - COALESCE ( 39, - COUNT( * ) + + 75 + - 13 - - 98 * - COUNT( * ) + - 99 + + 14 + 45 DIV + COALESCE ( - - AVG ( DISTINCT COALESCE ( + 90, + ( - 14 ), + 59 ) ), + NULLIF ( 75, 98 ) ) DIV ( 59 ) ) + + 52
----
1573

skipif mysql # not compatible
query I rowsort label-6488
SELECT - 39 * + - COALESCE ( 39, - COUNT ( * ) + + 75 + - 13 - - 98 * - COUNT ( * ) + - 99 + + 14 + 45 / + COALESCE ( - - AVG ( DISTINCT COALESCE ( + 90, + ( - 14 ), + 59 ) ), + NULLIF ( 75, 98 ) ) / ( 59 ) ) + + 52
----
1573

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT - + 53 DIV + + 90 * - ( + ( + ( 36 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6489
SELECT - + 53 / + + 90 * - ( + ( + ( 36 ) ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6490
SELECT - 53 * - 29 + + 96 - - 91, - CAST( - 62 AS SIGNED ) AS col1
----
1724
62

skipif mysql # not compatible
query II rowsort label-6490
SELECT - 53 * - 29 + + 96 - - 91, - CAST ( - 62 AS INTEGER ) AS col1
----
1724
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL + NULLIF ( - + COUNT( * ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL + NULLIF ( - + COUNT ( * ), - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - + COUNT( * ) + 48 + + - COUNT( * ) * + - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6492
SELECT - + COUNT ( * ) + 48 + + - COUNT ( * ) * + - COUNT ( * ) AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT - - CAST( NULL AS SIGNED ) + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT - - CAST ( NULL AS INTEGER ) + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT - CASE + 42 WHEN COUNT( * ) / 38 * + - 78 THEN NULL ELSE + + 81 + + 1 * + COUNT( DISTINCT 63 ) END
----
-82

skipif mysql # not compatible
query I rowsort label-6494
SELECT - CASE + 42 WHEN COUNT ( * ) / 38 * + - 78 THEN NULL ELSE + + 81 + + 1 * + COUNT ( DISTINCT 63 ) END
----
-82

query I rowsort
SELECT DISTINCT - ( 8 ) * - NULLIF ( 98, - - 44 + + 12 + - + 77 + - - 44 * 9 * 16 ) - + 65 AS col0
----
719

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT + COUNT( * ) * - 97 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-6496
SELECT + COUNT ( * ) * - 97 AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6497
SELECT DISTINCT + + 71 + CAST( - COUNT( * ) AS SIGNED ) + 87
----
157

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT + + 71 + CAST ( - COUNT ( * ) AS INTEGER ) + 87
----
157

query II rowsort
SELECT - COALESCE ( - 66, + + 23 * - 69 ), 96 * - - 93 AS col2
----
66
8928

query I rowsort
SELECT DISTINCT - 40 + - 46 AS col0
----
-86

query I rowsort
SELECT ALL + 7 + 20 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6501
SELECT + - CAST( NULL AS SIGNED ) * + + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6501
SELECT + - CAST ( NULL AS INTEGER ) * + + 40 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6502
SELECT - CAST( 88 AS SIGNED ), 25 - + 64 + + + COUNT( * ) AS col0
----
-88
-38

skipif mysql # not compatible
query II rowsort label-6502
SELECT - CAST ( 88 AS INTEGER ), 25 - + 64 + + + COUNT ( * ) AS col0
----
-88
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-6503
SELECT + 62 + + + ( - ( + COALESCE ( - + COUNT( * ), - 60 * - + 8 + - 69 ) ) ) AS col1, - 19 - - - 73
----
63
-92

skipif mysql # not compatible
query II rowsort label-6503
SELECT + 62 + + + ( - ( + COALESCE ( - + COUNT ( * ), - 60 * - + 8 + - 69 ) ) ) AS col1, - 19 - - - 73
----
63
-92

query I rowsort
SELECT DISTINCT 68 + - - 58
----
126

query I rowsort
SELECT + COALESCE ( + ( 12 ), + - 48 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6506
SELECT DISTINCT 76 DIV - MAX( ALL 60 ) + + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT 76 / - MAX ( ALL 60 ) + + COUNT ( * ) col2
----
0

query I rowsort
SELECT DISTINCT 55 * - - ( + 2 )
----
110

query I rowsort
SELECT DISTINCT 26 * - 42 * - + 26 col2
----
28392

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT 25 DIV - 56 - + 36 * + ( - 67 ) * - 36 AS col2
----
-86832

skipif mysql # not compatible
query I rowsort label-6509
SELECT 25 / - 56 - + 36 * + ( - 67 ) * - 36 AS col2
----
-86832

query I rowsort
SELECT ALL NULLIF ( - 13, + 72 ) - + 34
----
-47

query I rowsort
SELECT 33 * + 22
----
726

query II rowsort
SELECT ALL - 43 AS col2, + 33
----
-43
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT DISTINCT + COUNT( * ) * 70 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT + COUNT ( * ) * 70 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT + 37 * + COUNT( ALL + - 51 ) + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-6514
SELECT + 37 * + COUNT ( ALL + - 51 ) + + COUNT ( * )
----
38

query I rowsort
SELECT DISTINCT - + 81 AS col0
----
-81

query I rowsort
SELECT ( + 51 ) * 9 + 89 + 92
----
640

query I rowsort
SELECT - 73 * + 63
----
-4599

query I rowsort
SELECT ALL 43 + - 85 + + - ( - 71 ) + 30 * - 28
----
-811

query I rowsort
SELECT - 12 - + 54 col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6520
SELECT - CASE + COUNT( * ) WHEN COUNT( * ) * + COALESCE ( + 62, + - 98, 30 + - + 63 + - 84 + - + CAST( - 24 AS SIGNED ) + - 62 * - 67 * + + 93 ) THEN NULL WHEN + 13 - + 69 THEN 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT - CASE + COUNT ( * ) WHEN COUNT ( * ) * + COALESCE ( + 62, + - 98, 30 + - + 63 + - 84 + - + CAST ( - 24 AS INTEGER ) + - 62 * - 67 * + + 93 ) THEN NULL WHEN + 13 - + 69 THEN 68 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT ALL + ( 59 ) + + 7 + CAST( + - 10 AS SIGNED ) - 40
----
16

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + ( 59 ) + + 7 + CAST ( + - 10 AS INTEGER ) - 40
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-6522
SELECT + 39 + - 68 DIV 29, 62 - + 66 AS col2
----
37
-4

skipif mysql # not compatible
query II rowsort label-6522
SELECT + 39 + - 68 / 29, 62 - + 66 AS col2
----
37
-4

query I rowsort
SELECT ALL - 91 + + 53 AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT ALL - + 72 + + NULLIF ( + 30, - + 10 ) + + COALESCE ( 68, 82, + 84 * - CAST( + 10 AS SIGNED ) + - 20 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL - + 72 + + NULLIF ( + 30, - + 10 ) + + COALESCE ( 68, 82, + 84 * - CAST ( + 10 AS INTEGER ) + - 20 ) AS col1
----
26

query I rowsort
SELECT 56 - + 86
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6526
SELECT - COALESCE ( - COUNT( * ), + - 81 ) + - + 87 * + 81 col0, 27 + + NULLIF ( - 96, COUNT( * ) * + + 25 ) + - + 93
----
-7046
-162

skipif mysql # not compatible
query II rowsort label-6526
SELECT - COALESCE ( - COUNT ( * ), + - 81 ) + - + 87 * + 81 col0, 27 + + NULLIF ( - 96, COUNT ( * ) * + + 25 ) + - + 93
----
-7046
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT - 89 - + + MAX( ALL - + 94 ) + + 44 * - - 97
----
4273

skipif mysql # not compatible
query I rowsort label-6527
SELECT - 89 - + + MAX ( ALL - + 94 ) + + 44 * - - 97
----
4273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6528
SELECT - 3 + - 40 + + + ( 62 ) * - COUNT( * ) - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT - 3 + - 40 + + + ( 62 ) * - COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT COUNT( * ) + + + 75
----
76

skipif mysql # not compatible
query I rowsort label-6529
SELECT COUNT ( * ) + + + 75
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6530
SELECT - 2 AS col1, 34 * + COALESCE ( + + 54, NULLIF ( - CASE - 17 WHEN + ( COALESCE ( - CASE - - ( + 18 ) WHEN - NULLIF ( + ( - + 22 ), + 81 ) + MAX( ALL NULLIF ( 50, 66 * NULLIF ( + 12, - 73 ) ) ) THEN NULL WHEN CAST( NULL AS SIGNED ) DIV 14 THEN 68 + + 48 DIV 81 END, - MAX( 98 ), - 87 ) ) * 76 + + 62 THEN 59 DIV 53 END, + 67 ), 85 ) AS col1
----
-2
1836

skipif mysql # not compatible
query II rowsort label-6530
SELECT - 2 AS col1, 34 * + COALESCE ( + + 54, NULLIF ( - CASE - 17 WHEN + ( COALESCE ( - CASE - - ( + 18 ) WHEN - NULLIF ( + ( - + 22 ), + 81 ) + MAX ( ALL NULLIF ( 50, 66 * NULLIF ( + 12, - 73 ) ) ) THEN NULL WHEN CAST ( NULL AS INTEGER ) / 14 THEN 68 + + 48 / 81 END, - MAX ( 98 ), - 87 ) ) * 76 + + 62 THEN 59 / 53 END, + 67 ), 85 ) AS col1
----
-2
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT 63 + - 49 + + 69 + COUNT( * ) * + + 62 - + + 75 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6531
SELECT 63 + - 49 + + 69 + COUNT ( * ) * + + 62 - + + 75 AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6532
SELECT ALL + 83 * + ( COUNT( DISTINCT 99 ) ) DIV + - 92 * 58 AS col1, MIN( DISTINCT + + 88 ) - - - ( - 68 )
----
0
156

skipif mysql # not compatible
query II rowsort label-6532
SELECT ALL + 83 * + ( COUNT ( DISTINCT 99 ) ) / + - 92 * 58 AS col1, MIN ( DISTINCT + + 88 ) - - - ( - 68 )
----
0
156

query II rowsort
SELECT 21 AS col1, - 73 + + 46
----
21
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT DISTINCT + 10 * - COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT + 10 * - COUNT ( * ) AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6535
SELECT 82 + - CAST( - 2 AS SIGNED ) + + 61 - 12 + - - 1
----
134

skipif mysql # not compatible
query I rowsort label-6535
SELECT 82 + - CAST ( - 2 AS INTEGER ) + + 61 - 12 + - - 1
----
134

query I rowsort
SELECT 89 * - ( 96 ) AS col0
----
-8544

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6537
SELECT DISTINCT NULLIF ( + + ( - 92 ), - COUNT( * ) ) DIV - - ( MIN( - - 21 ) ), 7 * + - 52 col1
----
-4
-364

skipif mysql # not compatible
query II rowsort label-6537
SELECT DISTINCT NULLIF ( + + ( - 92 ), - COUNT ( * ) ) / - - ( MIN ( - - 21 ) ), 7 * + - 52 col1
----
-4
-364

query II rowsort
SELECT + 76 AS col0, - 59 * - + 38 AS col2
----
76
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - COUNT( * ) * + - 30 + 43 * + NULLIF ( 13, - AVG ( ALL 32 ) ) * + 71 AS col2
----
39719

skipif mysql # not compatible
query I rowsort label-6539
SELECT - COUNT ( * ) * + - 30 + 43 * + NULLIF ( 13, - AVG ( ALL 32 ) ) * + 71 AS col2
----
39719

onlyif mysql # DIV for integer division: 
query I rowsort label-6540
SELECT 79 * 52 DIV - 9 AS col0
----
-456

skipif mysql # not compatible
query I rowsort label-6540
SELECT 79 * 52 / - 9 AS col0
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT 29 * COUNT( * ) + 93
----
122

skipif mysql # not compatible
query I rowsort label-6541
SELECT 29 * COUNT ( * ) + 93
----
122

query II rowsort
SELECT 39 col2, + 32 AS col1
----
39
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL ( - 81 ) * + COUNT( * ) col0
----
-81

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL ( - 81 ) * + COUNT ( * ) col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT COUNT( * ) + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-6544
SELECT COUNT ( * ) + - 67
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6545
SELECT ALL + 48 DIV COUNT( * ) * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL + 48 / COUNT ( * ) * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT ALL - COUNT( * ) col1, - 24
----
-1
-24

skipif mysql # not compatible
query II rowsort label-6546
SELECT ALL - COUNT ( * ) col1, - 24
----
-1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT DISTINCT + 39 * - 28 * + COUNT( * )
----
-1092

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT + 39 * - 28 * + COUNT ( * )
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT ALL COUNT( * ) * 2
----
2

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL COUNT ( * ) * 2
----
2

query II rowsort
SELECT ALL - 88 col0, 56
----
-88
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL - COUNT( * ) * 14 * + 35 * 82 AS col1
----
-40180

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - COUNT ( * ) * 14 * + 35 * 82 AS col1
----
-40180

query I rowsort
SELECT - 4 * + - 91 + - ( - 74 ) AS col1
----
438

query II rowsort
SELECT DISTINCT - + 70, - 46 col0
----
-70
-46

query I rowsort
SELECT DISTINCT - 14 + - ( + 58 )
----
-72

query I rowsort
SELECT ALL - 56 + - 54
----
-110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6555
SELECT COUNT( * ) + + - 4 * CAST( NULL AS DECIMAL ) * 4 + + ( - ( 68 ) ) + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6555
SELECT COUNT ( * ) + + - 4 * CAST ( NULL AS REAL ) * 4 + + ( - ( 68 ) ) + 88
----
NULL

query II rowsort
SELECT 45 AS col0, - 9 * 44 + - 63
----
45
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT - - 26 * - COUNT( * ) + - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-6557
SELECT - - 26 * - COUNT ( * ) + - COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-6558
SELECT COUNT( ALL - ( - 26 ) ) - + 62 + + 46 + - COUNT( * ) * + 3 + - + COALESCE ( - ( 89 ), + 46 ) AS col1, - 83 * 26 col1
----
71
-2158

skipif mysql # not compatible
query II rowsort label-6558
SELECT COUNT ( ALL - ( - 26 ) ) - + 62 + + 46 + - COUNT ( * ) * + 3 + - + COALESCE ( - ( 89 ), + 46 ) AS col1, - 83 * 26 col1
----
71
-2158

query I rowsort
SELECT ( - - 94 ) + - 86 col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ALL MAX( - 73 ) + 84
----
11

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL MAX ( - 73 ) + 84
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6561
SELECT DISTINCT COUNT( * ) AS col0, - 23 * 58
----
1
-1334

skipif mysql # not compatible
query II rowsort label-6561
SELECT DISTINCT COUNT ( * ) AS col0, - 23 * 58
----
1
-1334

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6562
SELECT ALL 77 + + - COALESCE ( ( - - CASE + 75 WHEN 32 THEN - COUNT( * ) DIV - 30 ELSE + 10 END ), - 88 ) + - 79 col1
----
-12

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL 77 + + - COALESCE ( ( - - CASE + 75 WHEN 32 THEN - COUNT ( * ) / - 30 ELSE + 10 END ), - 88 ) + - 79 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT - NULLIF ( + 8, 11 * COUNT( * ) * 10 * - - ( - 35 ) * + 83 + 12 + 36 ) + 39 + + ( 90 ) * - COUNT( * ) + - - COUNT( * ) - - 3 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6563
SELECT - NULLIF ( + 8, 11 * COUNT ( * ) * 10 * - - ( - 35 ) * + 83 + 12 + 36 ) + 39 + + ( 90 ) * - COUNT ( * ) + - - COUNT ( * ) - - 3 AS col0
----
-55

query I rowsort
SELECT DISTINCT - 13 + 33
----
20

query II rowsort
SELECT 32 AS col2, + 9 + - 6 + ( 8 ) * 35
----
32
283

query II rowsort
SELECT 70 + ( + + 16 ) * - 85, 10 AS col1
----
-1290
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL + 80 + - COUNT( + ( 22 ) )
----
79

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL + 80 + - COUNT ( + ( 22 ) )
----
79

query I rowsort
SELECT + 87 + 39
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6569
SELECT ( CAST( + COUNT( * ) AS SIGNED ) ) DIV - 58 - + 69 + + ( - 53 ) col0
----
-122

skipif mysql # not compatible
query I rowsort label-6569
SELECT ( CAST ( + COUNT ( * ) AS INTEGER ) ) / - 58 - + 69 + + ( - 53 ) col0
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-6570
SELECT ALL 91 - 21, COUNT( * ) * - 34 AS col1
----
70
-34

skipif mysql # not compatible
query II rowsort label-6570
SELECT ALL 91 - 21, COUNT ( * ) * - 34 AS col1
----
70
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL - COUNT( * ) - 98 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL - COUNT ( * ) - 98 AS col2
----
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-6572
SELECT DISTINCT 2 DIV 52 AS col2, 5 AS col2
----
0
5

skipif mysql # not compatible
query II rowsort label-6572
SELECT DISTINCT 2 / 52 AS col2, 5 AS col2
----
0
5

query II rowsort
SELECT + 26 + - 3, - NULLIF ( - 71, - - 92 ) AS col1
----
23
71

query I rowsort
SELECT ALL - 25 - + 55
----
-80

query I rowsort
SELECT - 25 * + - 12 AS col0
----
300

query I rowsort
SELECT NULLIF ( - 26, - 4 )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6577
SELECT - 72 - + + 68 DIV + 1
----
-140

skipif mysql # not compatible
query I rowsort label-6577
SELECT - 72 - + + 68 / + 1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL + COUNT( - - 28 ) * - 52 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL + COUNT ( - - 28 ) * - 52 AS col1
----
-52

query I rowsort
SELECT NULLIF ( - 96, + COALESCE ( 93, - - 20 / - - 92 + - - 81 ) )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6580
SELECT ALL + SUM( ALL - 19 ), NULLIF ( - 70, - 38 / 59 / - + 52 ) * - 53 AS col0
----
-19
3710

skipif mysql # not compatible
query II rowsort label-6580
SELECT ALL + SUM ( ALL - 19 ), NULLIF ( - 70, - 38 / 59 / - + 52 ) * - 53 AS col0
----
-19
3710

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT - 5 * - COUNT( * ) + - 11 * + 84
----
-919

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT - 5 * - COUNT ( * ) + - 11 * + 84
----
-919

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT - 53 DIV + ( + - 86 ) * 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6582
SELECT - 53 / + ( + - 86 ) * 51 AS col2
----
0

query I rowsort
SELECT - 59 * + - 3 AS col1
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6584
SELECT ALL - COUNT( * ) * 25 * + ( 21 ) + - - 67 * + - CASE - COUNT( * ) WHEN - + 55 * - 18 * + 94 THEN 5 DIV - 19 WHEN + 54 - - - ( - 33 ) + + + 90 THEN - - 59 * 35 + + 57 ELSE 54 END AS col2
----
-4143

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - COUNT ( * ) * 25 * + ( 21 ) + - - 67 * + - CASE - COUNT ( * ) WHEN - + 55 * - 18 * + 94 THEN 5 / - 19 WHEN + 54 - - - ( - 33 ) + + + 90 THEN - - 59 * 35 + + 57 ELSE 54 END AS col2
----
-4143

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT - 94 * COUNT( * ) + ( + ( COUNT( * ) ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6585
SELECT - 94 * COUNT ( * ) + ( + ( COUNT ( * ) ) ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-6586
SELECT + ( + + 18 ) + - COUNT( * ) * - - 5 * - + 43 AS col1, 7 * + COUNT( * ) * + 65
----
233
455

skipif mysql # not compatible
query II rowsort label-6586
SELECT + ( + + 18 ) + - COUNT ( * ) * - - 5 * - + 43 AS col1, 7 * + COUNT ( * ) * + 65
----
233
455

query I rowsort
SELECT - 8 * + 90 + - - 76 + + - 17
----
-661

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL - SUM( + 37 ) * - - ( - 8 ) + 69 AS col2
----
365

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - SUM ( + 37 ) * - - ( - 8 ) + 69 AS col2
----
365

query I rowsort
SELECT ALL + + 88 * - 15 + 95 col1
----
-1225

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT DISTINCT - 57 * - 70 + + - COUNT( * ) + + 93 + ( 25 ) * 18 * + - 29 * 63
----
-818068

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT - 57 * - 70 + + - COUNT ( * ) + + 93 + ( 25 ) * 18 * + - 29 * 63
----
-818068

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT ALL - 9 - + - 19 - + 78 + - + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - 9 - + - 19 - + 78 + - + COUNT ( * )
----
-69

query I rowsort
SELECT + 80 * - 31 - - 5 AS col0
----
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT + NULLIF ( - COUNT( - 99 ), + 60 * 27 / + + 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6593
SELECT + NULLIF ( - COUNT ( - 99 ), + 60 * 27 / + + 18 ) AS col0
----
-1

query I rowsort
SELECT + 24 + + 28 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL - ( - + MIN( DISTINCT + 67 ) )
----
67

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL - ( - + MIN ( DISTINCT + 67 ) )
----
67

query I rowsort
SELECT + ( + 83 ) + + 48
----
131

query I rowsort
SELECT ALL 77 - + 81
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6598
SELECT DISTINCT 32 * CASE - + CASE 82 WHEN - + 12 THEN NULL WHEN + 93 THEN + + CAST( NULL AS SIGNED ) WHEN + - 23 THEN CASE + + 34 WHEN - 19 * + 78 * - 43 * - MIN( ALL - 42 ) THEN NULL WHEN + 90 THEN 40 * + 97 + - 97 END * - 79 + 75 ELSE NULL END WHEN - 7 THEN NULL WHEN 64 THEN - 38 + - CAST( + CAST( + SUM( ALL - CAST( + 79 AS SIGNED ) ) AS SIGNED ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT 32 * CASE - + CASE 82 WHEN - + 12 THEN NULL WHEN + 93 THEN + + CAST ( NULL AS INTEGER ) WHEN + - 23 THEN CASE + + 34 WHEN - 19 * + 78 * - 43 * - MIN ( ALL - 42 ) THEN NULL WHEN + 90 THEN 40 * + 97 + - 97 END * - 79 + 75 ELSE NULL END WHEN - 7 THEN NULL WHEN 64 THEN - 38 + - CAST ( + CAST ( + SUM ( ALL - CAST ( + 79 AS INTEGER ) ) AS INTEGER ) AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT + 38 * MIN( + 2 ) * - 42 AS col1
----
-3192

skipif mysql # not compatible
query I rowsort label-6599
SELECT + 38 * MIN ( + 2 ) * - 42 AS col1
----
-3192

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT ALL 44 DIV - 35 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL 44 / - 35 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT + 56 - - NULLIF ( + 54, - + 68 * + - 29 ) * - + CASE + 33 WHEN - + 8 THEN - NULLIF ( - COALESCE ( COUNT( * ), - 13 + - - 58 * + 4 / 17, 24 ), 18 ) WHEN - 64 * 5 THEN + 47 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT + 56 - - NULLIF ( + 54, - + 68 * + - 29 ) * - + CASE + 33 WHEN - + 8 THEN - NULLIF ( - COALESCE ( COUNT ( * ), - 13 + - - 58 * + 4 / 17, 24 ), 18 ) WHEN - 64 * 5 THEN + 47 END col2
----
NULL

query I rowsort
SELECT ALL 61 * + 38 AS col1
----
2318

query I rowsort
SELECT + 67 * 97
----
6499

query I rowsort
SELECT + 32 + - 79 + 16 + + 86 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6605
SELECT ALL 65, 18 + CAST( - COALESCE ( - 29, 66, - 81, 60 + - 72 ) AS SIGNED ) + COUNT( * ) * + + 58 * + 9 * - 99 AS col1
----
65
-51631

skipif mysql # not compatible
query II rowsort label-6605
SELECT ALL 65, 18 + CAST ( - COALESCE ( - 29, 66, - 81, 60 + - 72 ) AS INTEGER ) + COUNT ( * ) * + + 58 * + 9 * - 99 AS col1
----
65
-51631

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT + 2 * + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6606
SELECT + 2 * + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT - 8 + - COUNT( DISTINCT - 7 ) + - 9 + + COUNT( * ) * + 54 * - + 38 col2
----
-2070

skipif mysql # not compatible
query I rowsort label-6607
SELECT - 8 + - COUNT ( DISTINCT - 7 ) + - 9 + + COUNT ( * ) * + 54 * - + 38 col2
----
-2070

query I rowsort
SELECT + 20 + 72 AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6609
SELECT ALL COUNT( * ) AS col0, - NULLIF ( + + 58, COUNT( * ) ) * + MIN( 5 )
----
1
-290

skipif mysql # not compatible
query II rowsort label-6609
SELECT ALL COUNT ( * ) AS col0, - NULLIF ( + + 58, COUNT ( * ) ) * + MIN ( 5 )
----
1
-290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6610
SELECT + CAST( + 16 AS SIGNED ) + 7 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6610
SELECT + CAST ( + 16 AS INTEGER ) + 7 AS col2
----
23

query I rowsort
SELECT DISTINCT 60 * 23 col2
----
1380

query I rowsort
SELECT + 72 + + 65
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT ALL - ( - - 35 ) DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL - ( - - 35 ) / - 84
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6614
SELECT ALL 95 + - + 72 + CAST( - 88 AS SIGNED ) DIV + 5 col1
----
6

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL 95 + - + 72 + CAST ( - 88 AS INTEGER ) / + 5 col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT DISTINCT - 76 DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT - 76 / - 83 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6616
SELECT ALL + 56 DIV COALESCE ( + + ( MAX( ALL + + NULLIF ( - ( 67 ), 19 ) ) ), 47 DIV - AVG ( ALL + 96 ) ) + + MIN( DISTINCT - 46 ) + - 58 + ( + 10 ) * COUNT( * ) * - - 50 * + COUNT( * ) + + ( 37 + 44 ) * + 8 AS col2
----
1044

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL + 56 / COALESCE ( + + ( MAX ( ALL + + NULLIF ( - ( 67 ), 19 ) ) ), 47 / - AVG ( ALL + 96 ) ) + + MIN ( DISTINCT - 46 ) + - 58 + ( + 10 ) * COUNT ( * ) * - - 50 * + COUNT ( * ) + + ( 37 + 44 ) * + 8 AS col2
----
1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6617
SELECT DISTINCT + 78 DIV COUNT( * ) + - ( 27 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT + 78 / COUNT ( * ) + - ( 27 ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6618
SELECT ALL COUNT( * ) DIV + + ( - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL COUNT ( * ) / + + ( - 57 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6619
SELECT CAST( SUM( DISTINCT + 16 ) AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-6619
SELECT CAST ( SUM ( DISTINCT + 16 ) AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT - 69 * 9 * - 9 + ( + COUNT( * ) ) * 58
----
5647

skipif mysql # not compatible
query I rowsort label-6620
SELECT - 69 * 9 * - 9 + ( + COUNT ( * ) ) * 58
----
5647

onlyif mysql # aggregate syntax: 
query II rowsort label-6621
SELECT DISTINCT + 81 AS col1, + COUNT( * )
----
81
1

skipif mysql # not compatible
query II rowsort label-6621
SELECT DISTINCT + 81 AS col1, + COUNT ( * )
----
81
1

query I rowsort
SELECT - 83 * - 70 - - 69
----
5879

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT + + ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT + + ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6624
SELECT DISTINCT 41 DIV + + ( + 94 ) + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT 41 / + + ( + 94 ) + 71 AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6625
SELECT 18 * - COUNT( * ) DIV - CAST( + 48 AS SIGNED ) - + - 42 + + - 44 * - 85
----
3782

skipif mysql # not compatible
query I rowsort label-6625
SELECT 18 * - COUNT ( * ) / - CAST ( + 48 AS INTEGER ) - + - 42 + + - 44 * - 85
----
3782

onlyif mysql # aggregate syntax: 
query II rowsort label-6626
SELECT ALL + COUNT( * ), + 9 + - 3 + - - COUNT( DISTINCT - - 74 ) * + COALESCE ( - + 45, - + 24 * - ( + - 14 ) ) AS col1
----
1
-39

skipif mysql # not compatible
query II rowsort label-6626
SELECT ALL + COUNT ( * ), + 9 + - 3 + - - COUNT ( DISTINCT - - 74 ) * + COALESCE ( - + 45, - + 24 * - ( + - 14 ) ) AS col1
----
1
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT SUM( DISTINCT 24 )
----
24

skipif mysql # not compatible
query I rowsort label-6627
SELECT SUM ( DISTINCT 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT - + 43 + + COUNT( + 44 ) + + ( - 34 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-6628
SELECT - + 43 + + COUNT ( + 44 ) + + ( - 34 ) AS col2
----
-76

query II rowsort
SELECT ALL + + 16 AS col0, - 58
----
16
-58

query I rowsort
SELECT - - 74 * + + 26
----
1924

query I rowsort
SELECT - 55 + - 19 * - NULLIF ( - 9, + 57 + 60 )
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT SUM( DISTINCT + + 52 ) * + 15 + + 72 + - - 3 AS col0
----
855

skipif mysql # not compatible
query I rowsort label-6632
SELECT SUM ( DISTINCT + + 52 ) * + 15 + + 72 + - - 3 AS col0
----
855

query I rowsort
SELECT + ( - - 45 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6634
SELECT ALL + - COUNT( * ) AS col2, - 84
----
-1
-84

skipif mysql # not compatible
query II rowsort label-6634
SELECT ALL + - COUNT ( * ) AS col2, - 84
----
-1
-84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6635
SELECT + 98 AS col2, 69 * - + 63 * CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL )
----
98
NULL

skipif mysql # not compatible
query II rowsort label-6635
SELECT + 98 AS col2, 69 * - + 63 * CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL )
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL - + 60 * + COUNT( * ) - + 3 * - COUNT( * ) col1
----
-57

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL - + 60 * + COUNT ( * ) - + 3 * - COUNT ( * ) col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT - 69 * + 21 - - SUM( + 43 ) AS col1
----
-1406

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - 69 * + 21 - - SUM ( + 43 ) AS col1
----
-1406

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT 92 DIV 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6638
SELECT 92 / 66 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6639
SELECT DISTINCT - 79 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT - 79 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 24 * - 62 AS col2
----
-1488

query I rowsort
SELECT 8 + - - 9
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6642
SELECT 27 * + - COALESCE ( + + 27, 8 * + - 77, + NULLIF ( CAST( NULL AS SIGNED ), + + 17 ) * + 5 + - COUNT( * ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT 27 * + - COALESCE ( + + 27, 8 * + - 77, + NULLIF ( CAST ( NULL AS INTEGER ), + + 17 ) * + 5 + - COUNT ( * ) ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 90 + 18
----
108

query I rowsort
SELECT ALL - 61 * 63 AS col0
----
-3843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6645
SELECT 4 * CAST( - ( - SUM( 28 ) ) AS SIGNED ) col0
----
112

skipif mysql # not compatible
query I rowsort label-6645
SELECT 4 * CAST ( - ( - SUM ( 28 ) ) AS INTEGER ) col0
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6646
SELECT DISTINCT - 52 + - 20 + - - CAST( - - 27 AS SIGNED ), 68 AS col1
----
-45
68

skipif mysql # not compatible
query II rowsort label-6646
SELECT DISTINCT - 52 + - 20 + - - CAST ( - - 27 AS INTEGER ), 68 AS col1
----
-45
68

query I rowsort
SELECT DISTINCT 43 * - 35 AS col0
----
-1505

query I rowsort
SELECT 17 * 3 * 59 AS col0
----
3009

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL - COUNT( * ) + - 30 * - - 46 * COUNT( * ) * 10
----
-13801

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - COUNT ( * ) + - 30 * - - 46 * COUNT ( * ) * 10
----
-13801

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6650
SELECT DISTINCT COALESCE ( + - MIN( 66 ), + 65, + - COUNT( ALL 22 ) ) + + CASE + 67 WHEN 86 * 10 + - 77 - + CAST( NULL AS DECIMAL ) THEN NULL ELSE + - 9 END
----
-75

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT COALESCE ( + - MIN ( 66 ), + 65, + - COUNT ( ALL 22 ) ) + + CASE + 67 WHEN 86 * 10 + - 77 - + CAST ( NULL AS REAL ) THEN NULL ELSE + - 9 END
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6651
SELECT DISTINCT 7 * COUNT( * ) AS col1, + COUNT( * ) * 57 col2
----
7
57

skipif mysql # not compatible
query II rowsort label-6651
SELECT DISTINCT 7 * COUNT ( * ) AS col1, + COUNT ( * ) * 57 col2
----
7
57

query I rowsort
SELECT 7 + + 49
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6653
SELECT COUNT( * ) * COALESCE ( - + COUNT( * ), - 9, - - 37 + - 41 ) DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6653
SELECT COUNT ( * ) * COALESCE ( - + COUNT ( * ), - 9, - - 37 + - 41 ) / 57 AS col1
----
0

query I rowsort
SELECT - 27 * - + 69 - - 28
----
1891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6655
SELECT - + 28 DIV + MAX( - 75 ) * - + 9 - + - 37 col2, - CAST( - 20 AS SIGNED )
----
37
20

skipif mysql # not compatible
query II rowsort label-6655
SELECT - + 28 / + MAX ( - 75 ) * - + 9 - + - 37 col2, - CAST ( - 20 AS INTEGER )
----
37
20

query I rowsort
SELECT ALL + 8 + - 90 AS col1
----
-82

query II rowsort
SELECT ALL - NULLIF ( + + 15, - 43 * - 39 ) AS col0, 92
----
-15
92

query I rowsort
SELECT ALL - 75 - 31 * - 88 col0
----
2653

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6659
SELECT AVG ( ALL + CAST( NULL AS DECIMAL ) ) * - ( 78 ) col1, 8 DIV + - 64 * + + 37 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6659
SELECT AVG ( ALL + CAST ( NULL AS REAL ) ) * - ( 78 ) col1, 8 / + - 64 * + + 37 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6660
SELECT ALL + + 26 * - 96 AS col0, 37 * + COUNT( * ) * - + 55
----
-2496
-2035

skipif mysql # not compatible
query II rowsort label-6660
SELECT ALL + + 26 * - 96 AS col0, 37 * + COUNT ( * ) * - + 55
----
-2496
-2035

query I rowsort
SELECT + 47 + 95 * - 95
----
-8978

query II rowsort
SELECT - 55 * 52 * 30 - + - 2, - 94 + 69 - + + 44 + + 83 AS col2
----
-85798
14

query I rowsort
SELECT - NULLIF ( 44, - - 96 + 73 )
----
-44

query II rowsort
SELECT 25 * - + 37 AS col0, 93 AS col0
----
-925
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6665
SELECT 69 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT 69 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6666
SELECT DISTINCT COUNT( + 93 ) * 7 * + 42 AS col0, - 30
----
294
-30

skipif mysql # not compatible
query II rowsort label-6666
SELECT DISTINCT COUNT ( + 93 ) * 7 * + 42 AS col0, - 30
----
294
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT COUNT( * ) * 57 + - - COALESCE ( - 11, 59 - - NULLIF ( + - 59, - 48 ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6667
SELECT COUNT ( * ) * 57 + - - COALESCE ( - 11, 59 - - NULLIF ( + - 59, - 48 ) ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT DISTINCT 98 * + 4 * + + COUNT( * )
----
392

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT 98 * + 4 * + + COUNT ( * )
----
392

query I rowsort
SELECT ALL - 66 + - 20 col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT 88 + + SUM( ALL 24 )
----
112

skipif mysql # not compatible
query I rowsort label-6670
SELECT 88 + + SUM ( ALL 24 )
----
112

query I rowsort
SELECT 98 + - - 63 * + 46 AS col1
----
2996

query I rowsort
SELECT ALL + 93 * - - 19 AS col1
----
1767

query I rowsort
SELECT DISTINCT + 21 + 20
----
41

query II rowsort
SELECT - 19, 14 AS col0
----
-19
14

query I rowsort
SELECT 17 + - - 23
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL + COUNT( * ) + - 61 - ( - 55 ) * + + 95
----
5165

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL + COUNT ( * ) + - 61 - ( - 55 ) * + + 95
----
5165

query I rowsort
SELECT DISTINCT - 48 + + 57 col2
----
9

query I rowsort
SELECT ALL 37 + + 77
----
114

query I rowsort
SELECT 33 + - 84 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL - COUNT( * ) * 78 * 37 AS col0
----
-2886

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - COUNT ( * ) * 78 * 37 AS col0
----
-2886

onlyif mysql # DIV for integer division: 
query I rowsort label-6681
SELECT 7 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-6681
SELECT 7 / 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT COUNT( * ) + + + 36
----
37

skipif mysql # not compatible
query I rowsort label-6682
SELECT COUNT ( * ) + + + 36
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT SUM( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT SUM ( 43 )
----
43

query I rowsort
SELECT ALL - 79 - - - 70 col1
----
-149

query I rowsort
SELECT - - 22 col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6686
SELECT DISTINCT - - COUNT( * ) * 63 DIV - CASE + NULLIF ( - + 90, - 39 ) WHEN - 28 * - + ( 68 ) + 74 THEN NULL WHEN - 34 THEN + 93 ELSE - 27 END - - 6 + - 30 - 73 - - 72 + + 54 * - 7 * - + 45 * - 96 + + 70 * 4
----
-1632703

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - - COUNT ( * ) * 63 / - CASE + NULLIF ( - + 90, - 39 ) WHEN - 28 * - + ( 68 ) + 74 THEN NULL WHEN - 34 THEN + 93 ELSE - 27 END - - 6 + - 30 - 73 - - 72 + + 54 * - 7 * - + 45 * - 96 + + 70 * 4
----
-1632703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT DISTINCT - CAST( MAX( DISTINCT - + 95 ) AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT - CAST ( MAX ( DISTINCT - + 95 ) AS INTEGER )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL SUM( - 16 ) * + 98 + 56
----
-1512

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL SUM ( - 16 ) * + 98 + 56
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL 60 * - 2 * COUNT( - 6 )
----
-120

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL 60 * - 2 * COUNT ( - 6 )
----
-120

query I rowsort
SELECT ALL + 2 * 29 * - - 46
----
2668

onlyif mysql # DIV for integer division: 
query I rowsort label-6691
SELECT + 4 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-6691
SELECT + 4 / - 87
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6692
SELECT ALL 43 DIV - 69 + - COUNT( * ) + + - 23 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL 43 / - 69 + - COUNT ( * ) + + - 23 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT + 98 * + SUM( DISTINCT - 89 ) + + 75 - + + SUM( ALL - - 91 ) + - 7 AS col2
----
-8745

skipif mysql # not compatible
query I rowsort label-6693
SELECT + 98 * + SUM ( DISTINCT - 89 ) + + 75 - + + SUM ( ALL - - 91 ) + - 7 AS col2
----
-8745

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT DISTINCT + COUNT( DISTINCT + + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT + COUNT ( DISTINCT + + 14 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT ALL 1 DIV 94 + - 63 * - - 36 AS col2
----
-2268

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL 1 / 94 + - 63 * - - 36 AS col2
----
-2268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6696
SELECT + MAX( - 20 ) DIV + 4 + - 91
----
-96

skipif mysql # not compatible
query I rowsort label-6696
SELECT + MAX ( - 20 ) / + 4 + - 91
----
-96

query I rowsort
SELECT - - 25 + - 81
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6698
SELECT ALL - 22 * + 38 + - 79 + + CASE + - NULLIF ( + 99, + + 19 * 56 + + COUNT( * ) ) WHEN - + COUNT( * ) * + - COALESCE ( - 21, 97 + + 76 / + + CAST( NULL AS SIGNED ), - 24 + - + 69 ) + 24 * COUNT( * ) THEN NULL WHEN + + 51 - 76 * + CAST( NULL AS SIGNED ) THEN - SUM( DISTINCT 54 ) END + - 77 / ( 31 * - 54 ) / MIN( - 97 * + 71 ) * COALESCE ( 54 + 93, 1, 21 * - MIN( DISTINCT - ( + 70 ) ), - COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL - 22 * + 38 + - 79 + + CASE + - NULLIF ( + 99, + + 19 * 56 + + COUNT ( * ) ) WHEN - + COUNT ( * ) * + - COALESCE ( - 21, 97 + + 76 / + + CAST ( NULL AS INTEGER ), - 24 + - + 69 ) + 24 * COUNT ( * ) THEN NULL WHEN + + 51 - 76 * + CAST ( NULL AS INTEGER ) THEN - SUM ( DISTINCT 54 ) END + - 77 / ( 31 * - 54 ) / MIN ( - 97 * + 71 ) * COALESCE ( 54 + 93, 1, 21 * - MIN ( DISTINCT - ( + 70 ) ), - COUNT ( * ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6699
SELECT - 9 + + + 90 * CASE + SUM( DISTINCT + 94 ) WHEN - 51 + 8 + + 31 * - 84 + 38 * 48 * + 90 THEN + + AVG ( + 41 ) ELSE NULL END AS col1, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-6699
SELECT - 9 + + + 90 * CASE + SUM ( DISTINCT + 94 ) WHEN - 51 + 8 + + 31 * - 84 + 38 * 48 * + 90 THEN + + AVG ( + 41 ) ELSE NULL END AS col1, 10
----
NULL
10

query I rowsort
SELECT ALL 15 + ( + + 43 ) AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6701
SELECT COUNT( * ) AS col1, COALESCE ( 79, 15 DIV - + 66, - COUNT( * ) ) AS col0
----
1
79

skipif mysql # not compatible
query II rowsort label-6701
SELECT COUNT ( * ) AS col1, COALESCE ( 79, 15 / - + 66, - COUNT ( * ) ) AS col0
----
1
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT DISTINCT COUNT( * ) * 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT COUNT ( * ) * 46 AS col2
----
46

query I rowsort
SELECT DISTINCT 44 + - 71 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT ALL + COALESCE ( COUNT( * ), 51 * + COUNT( * ) * + 36 + - 29 + 63 * 51 ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL + COALESCE ( COUNT ( * ), 51 * + COUNT ( * ) * + 36 + - 29 + 63 * 51 ) * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL 79 + + 74 AS col2
----
153

query I rowsort
SELECT DISTINCT + 89 + - + 96 * + CASE - 43 WHEN + ( + 14 ) THEN - 67 WHEN + + COALESCE ( - 83, - 86 ) THEN - 77 END AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 90, + - 52 ) + - 66 * - + NULLIF ( + 9, - 60 ) * + 69
----
40896

query II rowsort
SELECT - 18, - COALESCE ( 15, + + 85 ) AS col2
----
-18
-15

query I rowsort
SELECT - 43 * - CASE - 93 WHEN + 59 THEN NULL ELSE 22 END * + 1 AS col0
----
946

onlyif mysql # aggregate syntax: 
query II rowsort label-6710
SELECT 86 AS col1, COUNT( * )
----
86
1

skipif mysql # not compatible
query II rowsort label-6710
SELECT 86 AS col1, COUNT ( * )
----
86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT - NULLIF ( 39, + + CASE - 8 WHEN + - MAX( ALL + 79 ) THEN NULL ELSE - 49 END + 12 / + 98 + - + COUNT( * ) + + - 59 - + 29 )
----
-39

skipif mysql # not compatible
query I rowsort label-6711
SELECT - NULLIF ( 39, + + CASE - 8 WHEN + - MAX ( ALL + 79 ) THEN NULL ELSE - 49 END + 12 / + 98 + - + COUNT ( * ) + + - 59 - + 29 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL - 35 + - MIN( + 62 )
----
-97

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - 35 + - MIN ( + 62 )
----
-97

query II rowsort
SELECT 32 col0, + 11 * - + 65 * - 89 + + - 74 AS col2
----
32
63561

query I rowsort
SELECT ALL + 72 + + - 90 * 77 col1
----
-6858

query II rowsort
SELECT - 7 * + 8, - 68 AS col1
----
-56
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6716
SELECT - COALESCE ( + 48, - CASE - + 20 WHEN + NULLIF ( - MAX( + - 3 ), + ( 79 ) * - 80 + + - 63 * + 29 ) * - 12 THEN ( 81 ) WHEN 71 + + - 37 + + + 1 + + 17 * + 78 + 49 - - 33 THEN - ( + 1 ) * 86 ELSE NULL END + - 85 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT - COALESCE ( + 48, - CASE - + 20 WHEN + NULLIF ( - MAX ( + - 3 ), + ( 79 ) * - 80 + + - 63 * + 29 ) * - 12 THEN ( 81 ) WHEN 71 + + - 37 + + + 1 + + 17 * + 78 + 49 - - 33 THEN - ( + 1 ) * 86 ELSE NULL END + - 85 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT ALL + 63 DIV 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL + 63 / 43 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6718
SELECT ALL + 45 * + - 91 AS col1, - COUNT( * ) + 34
----
-4095
33

skipif mysql # not compatible
query II rowsort label-6718
SELECT ALL + 45 * + - 91 AS col1, - COUNT ( * ) + 34
----
-4095
33

query II rowsort
SELECT 18 AS col0, ( + 79 )
----
18
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT DISTINCT + 27 * - COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT + 27 * - COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT ALL - 28 - 92 * - - 22 AS col2
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT ALL - MIN( + 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL - MIN ( + 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT - - 36 * - COUNT( * ) + COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6723
SELECT - - 36 * - COUNT ( * ) + COUNT ( * ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT - - 31 + - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-6724
SELECT - - 31 + - - COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT - CASE 93 WHEN + 38 THEN 87 ELSE + ( - COUNT( * ) ) + - + SUM( 55 ) * - 73 END AS col2
----
-4014

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT - CASE 93 WHEN + 38 THEN 87 ELSE + ( - COUNT ( * ) ) + - + SUM ( 55 ) * - 73 END AS col2
----
-4014

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT - - COUNT( DISTINCT - + 10 ) - - + 19 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6726
SELECT - - COUNT ( DISTINCT - + 10 ) - - + 19 AS col0
----
20

query I rowsort
SELECT - 75 * + - 14 AS col2
----
1050

onlyif mysql # aggregate syntax: 
query II rowsort label-6728
SELECT ALL + - 44 AS col0, CASE 54 WHEN AVG ( + - 73 ) THEN 99 * - COUNT( * ) * - 98 * + - 46 + + 13 + + 39 WHEN + 63 THEN + 90 / + 73 - MAX( DISTINCT + 48 ) / - 56 - 89 ELSE - 27 END / + + 47 + CASE + COUNT( DISTINCT 92 ) WHEN + SUM( DISTINCT 74 ) THEN NULL WHEN 31 THEN - 24 WHEN 89 THEN NULL END
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-6728
SELECT ALL + - 44 AS col0, CASE 54 WHEN AVG ( + - 73 ) THEN 99 * - COUNT ( * ) * - 98 * + - 46 + + 13 + + 39 WHEN + 63 THEN + 90 / + 73 - MAX ( DISTINCT + 48 ) / - 56 - 89 ELSE - 27 END / + + 47 + CASE + COUNT ( DISTINCT 92 ) WHEN + SUM ( DISTINCT 74 ) THEN NULL WHEN 31 THEN - 24 WHEN 89 THEN NULL END
----
-44
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT ALL + 96 DIV + 45 + 49 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + 96 / + 45 + 49 AS col1
----
51

query I rowsort
SELECT ALL 32 * - + NULLIF ( 50, + 57 * - 83 )
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT - - 35 * + SUM( DISTINCT + 51 ) * - 70 - 93
----
-125043

skipif mysql # not compatible
query I rowsort label-6731
SELECT - - 35 * + SUM ( DISTINCT + 51 ) * - 70 - 93
----
-125043

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT + + 29 * - SUM( - 33 )
----
957

skipif mysql # not compatible
query I rowsort label-6732
SELECT + + 29 * - SUM ( - 33 )
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL + AVG ( ALL - 45 ) * + 81 + - 69 + - CASE - MIN( - + 91 ) WHEN + - 25 THEN NULL WHEN ( - 68 ) THEN - 31 ELSE NULL END + + COUNT( * ) + + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + AVG ( ALL - 45 ) * + 81 + - 69 + - CASE - MIN ( - + 91 ) WHEN + - 25 THEN NULL WHEN ( - 68 ) THEN - 31 ELSE NULL END + + COUNT ( * ) + + 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6734
SELECT ALL - ( + 22 ) * - - 16 + - 59 AS col1, COUNT( * ) AS col2
----
-411
1

skipif mysql # not compatible
query II rowsort label-6734
SELECT ALL - ( + 22 ) * - - 16 + - 59 AS col1, COUNT ( * ) AS col2
----
-411
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6735
SELECT - SUM( ALL + 61 ) * 55 DIV ( - SUM( DISTINCT - ( + 99 ) ) )
----
-33

skipif mysql # not compatible
query I rowsort label-6735
SELECT - SUM ( ALL + 61 ) * 55 / ( - SUM ( DISTINCT - ( + 99 ) ) )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6736
SELECT + - CAST( + 40 AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-6736
SELECT + - CAST ( + 40 AS INTEGER ) AS col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT + 73 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-6737
SELECT + 73 / 93
----
0

query I rowsort
SELECT ALL 35 * + - 19 + + - 47 AS col2
----
-712

query I rowsort
SELECT DISTINCT 4 * - 28 + + - 8 + + + 68 * - 88 * - - 55
----
-329240

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL + 46 * + 41 * - ( 24 ) + COUNT( * ) AS col1
----
-45263

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + 46 * + 41 * - ( 24 ) + COUNT ( * ) AS col1
----
-45263

query I rowsort
SELECT + 67 - 15 * + - 20 AS col1
----
367

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT COUNT( * ) * + + 83 + 20
----
103

skipif mysql # not compatible
query I rowsort label-6742
SELECT COUNT ( * ) * + + 83 + 20
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT + 13 + + 67 * - 43 * + + COUNT( * ) + + 12
----
-2856

skipif mysql # not compatible
query I rowsort label-6743
SELECT + 13 + + 67 * - 43 * + + COUNT ( * ) + + 12
----
-2856

query I rowsort
SELECT + 90 * 75 AS col2
----
6750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT + 7 + - CAST( - + 13 AS SIGNED ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6745
SELECT + 7 + - CAST ( - + 13 AS INTEGER ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6746
SELECT ALL CAST( - 7 AS SIGNED ) * + ( - - ( + 90 ) ) AS col1, NULLIF ( + 82, + + 53 ) - - - COUNT( * ) + + MAX( DISTINCT 29 )
----
-630
110

skipif mysql # not compatible
query II rowsort label-6746
SELECT ALL CAST ( - 7 AS INTEGER ) * + ( - - ( + 90 ) ) AS col1, NULLIF ( + 82, + + 53 ) - - - COUNT ( * ) + + MAX ( DISTINCT 29 )
----
-630
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT + 83 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT + 83 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6748
SELECT COUNT( + 34 ) col1, - 6 + - 39 * 48 AS col0, + 59 * 84 + + + 90 + - 51 + - ( + COUNT( * ) )
----
1
-1878
4994

skipif mysql # not compatible
query III rowsort label-6748
SELECT COUNT ( + 34 ) col1, - 6 + - 39 * 48 AS col0, + 59 * 84 + + + 90 + - 51 + - ( + COUNT ( * ) )
----
1
-1878
4994

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT + 60 + - ( + SUM( DISTINCT 29 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6749
SELECT + 60 + - ( + SUM ( DISTINCT 29 ) ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 54 * - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 54 * - + 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6751
SELECT - ( - COUNT( * ) ) AS col2, 7 / - + 21 - + + CASE + + 31 WHEN CAST( 31 AS SIGNED ) * + + 73 - 73 * MIN( 88 ) THEN + 65 ELSE - ( + CASE + 44 WHEN + + 59 * - - 68 * 99 THEN + + 19 END ) END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6751
SELECT - ( - COUNT ( * ) ) AS col2, 7 / - + 21 - + + CASE + + 31 WHEN CAST ( 31 AS INTEGER ) * + + 73 - 73 * MIN ( 88 ) THEN + 65 ELSE - ( + CASE + 44 WHEN + + 59 * - - 68 * 99 THEN + + 19 END ) END
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT - COUNT( * ) + + 13 + - 91 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6752
SELECT - COUNT ( * ) + + 13 + - 91 AS col0
----
-79

query I rowsort
SELECT - ( + + ( - - 61 ) )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT - - CAST( NULL AS SIGNED ) + ( + - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT - - CAST ( NULL AS INTEGER ) + ( + - 76 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6755
SELECT + COUNT( * ) DIV - 67 + + 90 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6755
SELECT + COUNT ( * ) / - 67 + + 90 AS col0
----
90

query I rowsort
SELECT - 92 * - + 0 * + 76 - + + 28 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT - + COALESCE ( - + 94, - 58 + 95 - - 19 ) + MAX( ALL - - 95 ) * 85
----
8169

skipif mysql # not compatible
query I rowsort label-6757
SELECT - + COALESCE ( - + 94, - 58 + 95 - - 19 ) + MAX ( ALL - - 95 ) * 85
----
8169

query I rowsort
SELECT + 59 * - 87 * - + 14 AS col0
----
71862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6759
SELECT DISTINCT - + 15 * - + 95 - - + 48 + CASE 88 WHEN - 94 * - SUM( 19 ) THEN + + 98 WHEN + 58 THEN NULL END * 6 * + CAST( - ( + 99 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT - + 15 * - + 95 - - + 48 + CASE 88 WHEN - 94 * - SUM ( 19 ) THEN + + 98 WHEN + 58 THEN NULL END * 6 * + CAST ( - ( + 99 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6760
SELECT ALL + COUNT( * ) + - - 10 col0, - CAST( + 73 AS SIGNED ) / - - MAX( DISTINCT 69 ) + - - CAST( NULL AS SIGNED ) + - 72 - + 68 * 76
----
11
NULL

skipif mysql # not compatible
query II rowsort label-6760
SELECT ALL + COUNT ( * ) + - - 10 col0, - CAST ( + 73 AS INTEGER ) / - - MAX ( DISTINCT 69 ) + - - CAST ( NULL AS INTEGER ) + - 72 - + 68 * 76
----
11
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6761
SELECT + CAST( NULL AS SIGNED ) + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT + CAST ( NULL AS INTEGER ) + + 6
----
NULL

query I rowsort
SELECT 31 * + + 87 AS col0
----
2697

query I rowsort
SELECT DISTINCT - CASE 93 WHEN + 10 + + - 42 THEN NULL WHEN - - 39 + - + 55 THEN + + 82 ELSE NULL END + 59 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL + - ( - 50 ) + 15 * + NULLIF ( + COUNT( * ), 67 * 70 * + COUNT( * ) + 20 + + 71 * + + 43 + - COUNT( * ) ) + 86
----
151

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL + - ( - 50 ) + 15 * + NULLIF ( + COUNT ( * ), 67 * 70 * + COUNT ( * ) + 20 + + 71 * + + 43 + - COUNT ( * ) ) + 86
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT ALL - - 73 + - COUNT( DISTINCT - + 72 ) * - COALESCE ( - + COALESCE ( 14, + 93 * - 60 ), + - 78, 17 + - 12 ) + + + 9 * - 78 col1, + 0 AS col0
----
-643
0

skipif mysql # not compatible
query II rowsort label-6765
SELECT ALL - - 73 + - COUNT ( DISTINCT - + 72 ) * - COALESCE ( - + COALESCE ( 14, + 93 * - 60 ), + - 78, 17 + - 12 ) + + + 9 * - 78 col1, + 0 AS col0
----
-643
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT + CASE - 32 WHEN + 84 THEN NULL WHEN 54 THEN - + 31 END * + 93 * + COUNT( * ) + - 45 / 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT + CASE - 32 WHEN + 84 THEN NULL WHEN 54 THEN - + 31 END * + 93 * + COUNT ( * ) + - 45 / 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT 98 DIV + ( + 72 ) + ( - 25 ) + - 98 AS col2
----
-122

skipif mysql # not compatible
query I rowsort label-6767
SELECT 98 / + ( + 72 ) + ( - 25 ) + - 98 AS col2
----
-122

query I rowsort
SELECT DISTINCT - + COALESCE ( + - 95, - - 17, + ( + - 70 ) * - - 68, - 71 ) col1
----
95

query I rowsort
SELECT + - 72 col0
----
-72

query I rowsort
SELECT 7 + - 95 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-6771
SELECT DISTINCT - COUNT( * ) AS col2, + 50
----
-1
50

skipif mysql # not compatible
query II rowsort label-6771
SELECT DISTINCT - COUNT ( * ) AS col2, + 50
----
-1
50

query I rowsort
SELECT 34 * - + 34 + - 27 col0
----
-1183

query I rowsort
SELECT DISTINCT 79 * - 54
----
-4266

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6774
SELECT ALL + COUNT( * ) - + - 11 + - - 1 + 53 + 30 * - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL + COUNT ( * ) - + - 11 + - - 1 + 53 + 30 * - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 42 + - 41
----
1

query I rowsort
SELECT ALL - 71 - + 89 col2
----
-160

query I rowsort
SELECT 13 * + 64 AS col1
----
832

query II rowsort
SELECT 57 AS col1, - 6 * + 76 - + 5 AS col0
----
57
-461

query I rowsort
SELECT 51 * 97 AS col1
----
4947

query II rowsort
SELECT ALL 34 AS col2, + 40 col1
----
34
40

query II rowsort
SELECT - 36 AS col2, 11 AS col2
----
-36
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6782
SELECT NULLIF ( + 95, 91 * + 16 + + - CASE + + 14 WHEN - - SUM( ALL ( + 8 ) ) THEN 82 END + + 49 ) * - - 96 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT NULLIF ( + 95, 91 * + 16 + + - CASE + + 14 WHEN - - SUM ( ALL ( + 8 ) ) THEN 82 END + + 49 ) * - - 96 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 41 * - 49
----
-2009

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT ALL 12 DIV 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL 12 / 27 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT 97 DIV - + 96 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6785
SELECT 97 / - + 96 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT - MIN( ALL + 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6786
SELECT - MIN ( ALL + 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6787
SELECT ALL 66 AS col2, NULLIF ( - + ( 15 ), 43 ) DIV - COUNT( * ) - + + 30
----
66
-15

skipif mysql # not compatible
query II rowsort label-6787
SELECT ALL 66 AS col2, NULLIF ( - + ( 15 ), 43 ) / - COUNT ( * ) - + + 30
----
66
-15

query I rowsort
SELECT ALL 64 + + 82 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT - COUNT( * ) * - 25 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6789
SELECT - COUNT ( * ) * - 25 AS col0
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6790
SELECT ALL - + CAST( NULL AS DECIMAL ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL - + CAST ( NULL AS REAL ) * + 20
----
NULL

query I rowsort
SELECT + ( 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL + 73 + NULLIF ( - CASE - - CASE + 67 WHEN + COALESCE ( - COUNT( * ), - 28 ) / + ( + - 93 ) THEN NULL WHEN 47 THEN + - COUNT( * ) END WHEN + 69 - 1 * + + 28 THEN NULL WHEN - - 21 THEN - - 36 ELSE NULL END, 44 * + 54 ) * + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL + 73 + NULLIF ( - CASE - - CASE + 67 WHEN + COALESCE ( - COUNT ( * ), - 28 ) / + ( + - 93 ) THEN NULL WHEN 47 THEN + - COUNT ( * ) END WHEN + 69 - 1 * + + 28 THEN NULL WHEN - - 21 THEN - - 36 ELSE NULL END, 44 * + 54 ) * + 66 AS col1
----
NULL

query I rowsort
SELECT ALL - 15 + 17 col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT - 28 AS col0, - 53 * + COUNT( * ) * + COUNT( * ) + 92 + + + 20
----
-28
59

skipif mysql # not compatible
query II rowsort label-6794
SELECT - 28 AS col0, - 53 * + COUNT ( * ) * + COUNT ( * ) + 92 + + + 20
----
-28
59

query I rowsort
SELECT DISTINCT + 40 + 0 AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6796
SELECT CAST( NULL AS SIGNED ) * - 13 - - - 28 col1, 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-6796
SELECT CAST ( NULL AS INTEGER ) * - 13 - - - 28 col1, 91
----
NULL
91

query I rowsort
SELECT 45 + 0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6798
SELECT CAST( NULL AS SIGNED ) AS col2, - 42
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-6798
SELECT CAST ( NULL AS INTEGER ) AS col2, - 42
----
NULL
-42

query I rowsort
SELECT ALL 67 + - 38 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL + - 8 + - 92 + - + SUM( 0 )
----
-100

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL + - 8 + - 92 + - + SUM ( 0 )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL - MAX( ALL - - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL - MAX ( ALL - - 39 )
----
-39

query I rowsort
SELECT + + ( + 17 )
----
17

query I rowsort
SELECT ALL + 66 + 13
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6804
SELECT DISTINCT NULLIF ( + 28, + - COUNT( ALL + + 60 ) ) - MAX( - 70 ) - + + 4 + + NULLIF ( + - CAST( NULL AS SIGNED ), - CAST( + COALESCE ( + COUNT( * ), + 57 + 74 ) AS SIGNED ) + 88 ) * - COUNT( * ) * + 52 * + + 25 + - ( + AVG ( - - 22 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT NULLIF ( + 28, + - COUNT ( ALL + + 60 ) ) - MAX ( - 70 ) - + + 4 + + NULLIF ( + - CAST ( NULL AS INTEGER ), - CAST ( + COALESCE ( + COUNT ( * ), + 57 + 74 ) AS INTEGER ) + 88 ) * - COUNT ( * ) * + 52 * + + 25 + - ( + AVG ( - - 22 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL - COUNT( * ) - + ( - 83 )
----
82

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL - COUNT ( * ) - + ( - 83 )
----
82

query I rowsort
SELECT ALL + 48 * COALESCE ( + + 88, 11, + + 26 ) * 77 * + 60 + - 55 AS col0
----
19514825

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT 13 - + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-6807
SELECT 13 - + + COUNT ( * )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT 23 - - CAST( - SUM( DISTINCT + 5 ) AS SIGNED ) + - + 94 + + 49
----
-27

skipif mysql # not compatible
query I rowsort label-6808
SELECT 23 - - CAST ( - SUM ( DISTINCT + 5 ) AS INTEGER ) + - + 94 + + 49
----
-27

query I rowsort
SELECT 58 * 8 AS col2
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL - CASE - COUNT( * ) WHEN SUM( - 40 ) + 82 THEN + 14 / 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL - CASE - COUNT ( * ) WHEN SUM ( - 40 ) + 82 THEN + 14 / 6 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 4 - + 85
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT MIN( + 21 ) - + + 63 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6812
SELECT MIN ( + 21 ) - + + 63 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT 61 * COUNT( * ) AS col0, MIN( + - 30 ) AS col2
----
61
-30

skipif mysql # not compatible
query II rowsort label-6813
SELECT 61 * COUNT ( * ) AS col0, MIN ( + - 30 ) AS col2
----
61
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT 13 * - ( + + COUNT( * ) ) + 75 * + 99 + + 96 + 83
----
7591

skipif mysql # not compatible
query I rowsort label-6814
SELECT 13 * - ( + + COUNT ( * ) ) + 75 * + 99 + + 96 + 83
----
7591

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT 38 * 96 DIV - - 94
----
38

skipif mysql # not compatible
query I rowsort label-6815
SELECT 38 * 96 / - - 94
----
38

query I rowsort
SELECT 41 + - ( + 12 ) AS col2
----
29

query I rowsort
SELECT 48 + + 53 AS col0
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6818
SELECT ALL - COUNT( * ) + + 16 DIV + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL - COUNT ( * ) + + 16 / + COUNT ( * )
----
15

query I rowsort
SELECT - + 99 + + 57
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6820
SELECT ALL - + CAST( + - 85 AS SIGNED ) + ( - 38 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL - + CAST ( + - 85 AS INTEGER ) + ( - 38 ) AS col2
----
47

query I rowsort
SELECT ALL - ( 72 ) col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6822
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + - - NULLIF ( + 35, - 48 + + CASE ( - - 92 ) WHEN - 68 + COUNT( * ) THEN 48 WHEN - CASE + 47 WHEN 0 THEN NULL WHEN + COUNT( * ) THEN - + 53 END THEN - - 38 * + 65 ELSE NULL END ) * 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT - + CAST ( NULL AS REAL ) + - - NULLIF ( + 35, - 48 + + CASE ( - - 92 ) WHEN - 68 + COUNT ( * ) THEN 48 WHEN - CASE + 47 WHEN 0 THEN NULL WHEN + COUNT ( * ) THEN - + 53 END THEN - - 38 * + 65 ELSE NULL END ) * 58 AS col1
----
NULL

query I rowsort
SELECT ALL 71 + ( + 2 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6824
SELECT DISTINCT CASE - - 23 WHEN - ( + - 97 ) THEN - 73 DIV - - 33 + + + 4 * + 4 * COUNT( * ) ELSE + + 85 * COUNT( * ) DIV - 94 END + 93
----
93

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT CASE - - 23 WHEN - ( + - 97 ) THEN - 73 / - - 33 + + + 4 * + 4 * COUNT ( * ) ELSE + + 85 * COUNT ( * ) / - 94 END + 93
----
93

query I rowsort
SELECT DISTINCT + + 31 + - + NULLIF ( - - 70, - - 88 ) col1
----
-39

query I rowsort
SELECT - 98 / + CASE + 43 WHEN - - 43 + - ( - 85 ) THEN + 51 + 57 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6827
SELECT + 82 + + 88 AS col0, 52 DIV + 28 + + - 56 AS col0
----
170
-55

skipif mysql # not compatible
query II rowsort label-6827
SELECT + 82 + + 88 AS col0, 52 / + 28 + + - 56 AS col0
----
170
-55

query I rowsort
SELECT - NULLIF ( - + 22, 96 ) AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT ALL + - 89 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL + - 89 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6830
SELECT ALL - CAST( NULL AS DECIMAL ) * - AVG ( DISTINCT + 57 ) / + - 84 + + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL - CAST ( NULL AS REAL ) * - AVG ( DISTINCT + 57 ) / + - 84 + + 67 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 79 * + 62
----
4898

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT DISTINCT - 68 * - 50 * + COUNT( * ) AS col1
----
3400

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT - 68 * - 50 * + COUNT ( * ) AS col1
----
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT DISTINCT - COUNT( * ) - - + 73 + 89 + + ( + 15 ) * - 6 * - + 66 + - 98 AS col1
----
6003

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT - COUNT ( * ) - - + 73 + 89 + + ( + 15 ) * - 6 * - + 66 + - 98 AS col1
----
6003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6834
SELECT 7 / + - CAST( NULL AS SIGNED ) * - COALESCE ( + COUNT( * ), - ( + COUNT( * ) ), + - 6 ) * - 59 + + ( ( + 96 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT 7 / + - CAST ( NULL AS INTEGER ) * - COALESCE ( + COUNT ( * ), - ( + COUNT ( * ) ), + - 6 ) * - 59 + + ( ( + 96 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT DISTINCT + CASE + + 66 WHEN - ( + MAX( 27 ) ) * 64 * - - COUNT( * ) THEN NULL ELSE - 69 END * + + 62 * + 52 - 12
----
-222468

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT + CASE + + 66 WHEN - ( + MAX ( 27 ) ) * 64 * - - COUNT ( * ) THEN NULL ELSE - 69 END * + + 62 * + 52 - 12
----
-222468

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT + 91 * - COUNT( * ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-6836
SELECT + 91 * - COUNT ( * ) col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT - COUNT( DISTINCT 64 ) * ( - 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6837
SELECT - COUNT ( DISTINCT 64 ) * ( - 19 ) AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT - 91 DIV - 98 + + COALESCE ( + 28, 22 * + 94 ) * 10 AS col0
----
280

skipif mysql # not compatible
query I rowsort label-6838
SELECT - 91 / - 98 + + COALESCE ( + 28, 22 * + 94 ) * 10 AS col0
----
280

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT ALL + 17 DIV + - 3
----
-5

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL + 17 / + - 3
----
-5

query I rowsort
SELECT + 60 * - 30
----
-1800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6841
SELECT ALL + 16, ( - CAST( NULL AS SIGNED ) ) col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-6841
SELECT ALL + 16, ( - CAST ( NULL AS INTEGER ) ) col2
----
16
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6842
SELECT DISTINCT ( + 64 ) DIV 77 + SUM( ALL 36 ) + + COUNT( * ) DIV CAST( - ( - + 3 ) AS SIGNED ) DIV 21 + - + 96 * - 51 AS col1
----
4932

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT ( + 64 ) / 77 + SUM ( ALL 36 ) + + COUNT ( * ) / CAST ( - ( - + 3 ) AS INTEGER ) / 21 + - + 96 * - 51 AS col1
----
4932

query I rowsort
SELECT + 25 * - + 72 * - - 96 AS col2
----
-172800

query I rowsort
SELECT ALL + 9 * - + 10 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT + 1 * + MIN( 12 ) * - 15 - + 8
----
-188

skipif mysql # not compatible
query I rowsort label-6845
SELECT + 1 * + MIN ( 12 ) * - 15 - + 8
----
-188

query I rowsort
SELECT - 7 + NULLIF ( 88, 27 ) * - + ( 53 )
----
-4671

query I rowsort
SELECT DISTINCT - 37 * + 4 AS col2
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6848
SELECT ALL CAST( 83 AS SIGNED ) * + 86 + NULLIF ( + ( + COUNT( * ) ), ( - 56 ) / - NULLIF ( - 57, + 85 ) ) + 69
----
7208

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL CAST ( 83 AS INTEGER ) * + 86 + NULLIF ( + ( + COUNT ( * ) ), ( - 56 ) / - NULLIF ( - 57, + 85 ) ) + 69
----
7208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6849
SELECT - CASE + - 85 WHEN - 36 + - COUNT( * ) THEN NULL WHEN 29 THEN + 35 - - 36 WHEN - COUNT( * ) * MAX( 13 ) * CAST( NULL AS DECIMAL ) / + 86 * - MAX( ALL - CAST( 53 AS SIGNED ) ) - + CASE - 17 WHEN - - 39 THEN 47 END * - MAX( - - 81 ) + + COUNT( * ) THEN NULL ELSE - 12 * + CASE - + 57 WHEN SUM( + 87 ) THEN COUNT( * ) + - 69 WHEN 77 * 43 THEN - ( 31 ) ELSE 55 END - - 41 * + 87 + COUNT( * ) END * CASE 98 WHEN 99 - + 45 THEN NULL WHEN + COALESCE ( - 68, - 38 * + 86 ) + 0 THEN - 66 WHEN 0 + 50 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT - CASE + - 85 WHEN - 36 + - COUNT ( * ) THEN NULL WHEN 29 THEN + 35 - - 36 WHEN - COUNT ( * ) * MAX ( 13 ) * CAST ( NULL AS REAL ) / + 86 * - MAX ( ALL - CAST ( 53 AS INTEGER ) ) - + CASE - 17 WHEN - - 39 THEN 47 END * - MAX ( - - 81 ) + + COUNT ( * ) THEN NULL ELSE - 12 * + CASE - + 57 WHEN SUM ( + 87 ) THEN COUNT ( * ) + - 69 WHEN 77 * 43 THEN - ( 31 ) ELSE 55 END - - 41 * + 87 + COUNT ( * ) END * CASE 98 WHEN 99 - + 45 THEN NULL WHEN + COALESCE ( - 68, - 38 * + 86 ) + 0 THEN - 66 WHEN 0 + 50 THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT ALL CAST( NULL AS SIGNED ) * + + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL CAST ( NULL AS INTEGER ) * + + 65 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 45 * 77 + - 93 col1, + 58 AS col1
----
3372
58

query I rowsort
SELECT ALL + 9 * + 55 + 10 + - 5 AS col1
----
500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6853
SELECT ALL - + 44 * - MIN( + 56 ) + + + CAST( NULL AS SIGNED ) + + 97, 19 + + - 87 AS col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-6853
SELECT ALL - + 44 * - MIN ( + 56 ) + + + CAST ( NULL AS INTEGER ) + + 97, 19 + + - 87 AS col2
----
NULL
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ALL - 82 + - 3 + - 53 + - MIN( - - 1 ) * + COUNT( * ) + 76 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL - 82 + - 3 + - 53 + - MIN ( - - 1 ) * + COUNT ( * ) + 76 AS col1
----
-63

query I rowsort
SELECT - ( - 95 ) col2
----
95

query II rowsort
SELECT - - ( 42 ) * - 88 - - 12 * + 33, - 73 col0
----
-3300
-73

query I rowsort
SELECT - + 2 * + 60 AS col1
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6858
SELECT ALL + + COUNT( * ) * - 75 - 90 - - COALESCE ( + 50, - 26 + 98 ) DIV - 53 * 75 + - COUNT( * ) + COUNT( * ) AS col2
----
-165

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL + + COUNT ( * ) * - 75 - 90 - - COALESCE ( + 50, - 26 + 98 ) / - 53 * 75 + - COUNT ( * ) + COUNT ( * ) AS col2
----
-165

query I rowsort
SELECT ALL - COALESCE ( - 43, + + 99 ) + - + 82 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6860
SELECT - - 27 - 46 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT - - 27 - 46 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6861
SELECT DISTINCT + CAST( - 26 AS SIGNED ) DIV - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT + CAST ( - 26 AS INTEGER ) / - COUNT ( * ) AS col0
----
26

query II rowsort
SELECT ALL - 65 AS col0, 69 AS col2
----
-65
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6863
SELECT - 41 * COUNT( * ) * 13 * + + CAST( + - 13 AS SIGNED ) * + COUNT( * ) + + - 15
----
6914

skipif mysql # not compatible
query I rowsort label-6863
SELECT - 41 * COUNT ( * ) * 13 * + + CAST ( + - 13 AS INTEGER ) * + COUNT ( * ) + + - 15
----
6914

query I rowsort
SELECT ALL + 30 * + ( 74 ) AS col2
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT DISTINCT MAX( ALL - + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT MAX ( ALL - + 71 )
----
-71

query I rowsort
SELECT ALL + COALESCE ( 61, + NULLIF ( - - 4, - 38 ) + + - 20 * 14 )
----
61

query I rowsort
SELECT DISTINCT - - 24 - 20 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT + - 69 + + 55 + + COUNT( * ) * - + 43 + + 73 + - - 60
----
76

skipif mysql # not compatible
query I rowsort label-6868
SELECT + - 69 + + 55 + + COUNT ( * ) * - + 43 + + 73 + - - 60
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL CASE - 44 WHEN - - 80 THEN NULL WHEN + + 87 - COALESCE ( + NULLIF ( + 38, - + 63 - + ( - 62 ) / 24 ), + 8, + ( + 21 ) - ( - 5 ) + + SUM( DISTINCT - ( 9 ) ) + - + 87 + 61 ) THEN 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL CASE - 44 WHEN - - 80 THEN NULL WHEN + + 87 - COALESCE ( + NULLIF ( + 38, - + 63 - + ( - 62 ) / 24 ), + 8, + ( + 21 ) - ( - 5 ) + + SUM ( DISTINCT - ( 9 ) ) + - + 87 + 61 ) THEN 72 END AS col1
----
NULL

query II rowsort
SELECT 73 AS col1, - 30 + 53 AS col1
----
73
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6871
SELECT - 91 DIV + - ( - 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6871
SELECT - 91 / + - ( - 95 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6872
SELECT ALL 3 DIV 27 * - COUNT( ALL 61 )
----
0

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL 3 / 27 * - COUNT ( ALL 61 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6873
SELECT ALL 51 AS col2, CAST( NULL AS SIGNED ) - - + AVG ( - + 5 ) col2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-6873
SELECT ALL 51 AS col2, CAST ( NULL AS INTEGER ) - - + AVG ( - + 5 ) col2
----
51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6874
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6875
SELECT DISTINCT - 31 DIV + ( - 60 )
----
0

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - 31 / + ( - 60 )
----
0

query I rowsort
SELECT + 43 + + 78 * - + 49
----
-3779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6877
SELECT + COUNT( * ) * - 58 DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-6877
SELECT + COUNT ( * ) * - 58 / 47
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6878
SELECT ALL 62 / CASE + 10 WHEN - COUNT( * ) + 53 * 86 THEN + COALESCE ( + 17, + - 72 / ( + 95 ) * 93 + - - ( + - 7 ) * + 4, + CAST( + 18 AS SIGNED ) * 48 ) WHEN - COUNT( * ) THEN NULL WHEN 94 THEN NULL END * 17 * - + AVG ( ( - + 71 ) ) + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL 62 / CASE + 10 WHEN - COUNT ( * ) + 53 * 86 THEN + COALESCE ( + 17, + - 72 / ( + 95 ) * 93 + - - ( + - 7 ) * + 4, + CAST ( + 18 AS INTEGER ) * 48 ) WHEN - COUNT ( * ) THEN NULL WHEN 94 THEN NULL END * 17 * - + AVG ( ( - + 71 ) ) + 90 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + COALESCE ( - + 62, + 55 ) ) * - 18
----
1116

query II rowsort
SELECT + NULLIF ( + 20, 72 + + + 56 ) AS col1, + 55 * - 64
----
20
-3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6881
SELECT + CAST( NULL AS SIGNED ), CASE 25 WHEN - 87 + 67 THEN + NULLIF ( 41, + - CAST( + COUNT( * ) AS SIGNED ) ) ELSE COUNT( * ) END - CASE - 24 WHEN + - 56 THEN - 51 + - + ( 25 ) ELSE NULL END / 47 - COUNT( * ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6881
SELECT + CAST ( NULL AS INTEGER ), CASE 25 WHEN - 87 + 67 THEN + NULLIF ( 41, + - CAST ( + COUNT ( * ) AS INTEGER ) ) ELSE COUNT ( * ) END - CASE - 24 WHEN + - 56 THEN - 51 + - + ( 25 ) ELSE NULL END / 47 - COUNT ( * ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT + COUNT( * ) * + - 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-6882
SELECT + COUNT ( * ) * + - 44 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT + COUNT( * ) - + + 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6883
SELECT + COUNT ( * ) - + + 93 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT 57 - - NULLIF ( 94, COUNT( * ) + - 7 ) col1
----
151

skipif mysql # not compatible
query I rowsort label-6884
SELECT 57 - - NULLIF ( 94, COUNT ( * ) + - 7 ) col1
----
151

query II rowsort
SELECT ALL - 96 AS col1, - 26
----
-96
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-6886
SELECT DISTINCT COUNT( * ) + - 19 + + 65 * + COUNT( * ), + COUNT( + 57 ) + - COUNT( * ) * - - 3 + - COUNT( * ) AS col0
----
47
-3

skipif mysql # not compatible
query II rowsort label-6886
SELECT DISTINCT COUNT ( * ) + - 19 + + 65 * + COUNT ( * ), + COUNT ( + 57 ) + - COUNT ( * ) * - - 3 + - COUNT ( * ) AS col0
----
47
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT ALL + MIN( ALL - 13 ) + 39 + 96 * - + 88
----
-8422

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL + MIN ( ALL - 13 ) + 39 + 96 * - + 88
----
-8422

query II rowsort
SELECT 88, 68 AS col0
----
88
68

query I rowsort
SELECT ALL 53 + + 24 AS col2
----
77

query I rowsort
SELECT DISTINCT - ( - 17 )
----
17

query II rowsort
SELECT ALL - 33 AS col1, 63
----
-33
63

query I rowsort
SELECT + 37 - 16 + - ( 29 ) * - 66
----
1935

query III rowsort
SELECT + 85, + 73 AS col2, 17 AS col2
----
85
73
17

query I rowsort
SELECT ALL - 36 - 43 AS col0
----
-79

query I rowsort
SELECT 54 + - 51
----
3

query II rowsort
SELECT ALL + + 26 * - - 86 AS col1, 41 * + 60 * + + 63 AS col0
----
2236
154980

query I rowsort
SELECT - 3 + - - 43 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT DISTINCT + CASE 27 WHEN - - 49 * + 50 THEN - 16 + + 83 WHEN - COUNT( * ) * + MIN( - 65 ) * - 49 + - 66 + - SUM( DISTINCT + 2 ) + COUNT( * ) * - 50 + + 27 * - 24 - + - 24 THEN NULL END * - 54 + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT + CASE 27 WHEN - - 49 * + 50 THEN - 16 + + 83 WHEN - COUNT ( * ) * + MIN ( - 65 ) * - 49 + - 66 + - SUM ( DISTINCT + 2 ) + COUNT ( * ) * - 50 + + 27 * - 24 - + - 24 THEN NULL END * - 54 + 29 AS col0
----
NULL

query I rowsort
SELECT - 16 + - - 49 AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6900
SELECT - NULLIF ( + 49, + + COUNT( * ) * 35 * COUNT( CAST( + - 91 AS SIGNED ) ) * + - COUNT( 84 ) * + 43 + - AVG ( - + 83 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-6900
SELECT - NULLIF ( + 49, + + COUNT ( * ) * 35 * COUNT ( CAST ( + - 91 AS INTEGER ) ) * + - COUNT ( 84 ) * + 43 + - AVG ( - + 83 ) )
----
-49

query I rowsort
SELECT + 66 + - 96
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT - 75 * SUM( 65 )
----
-4875

skipif mysql # not compatible
query I rowsort label-6902
SELECT - 75 * SUM ( 65 )
----
-4875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6903
SELECT COALESCE ( + MIN( - 65 ), - 64, - 95, - + 84 + - - 27 * - 99 + - CASE - 95 WHEN - CAST( NULL AS SIGNED ) THEN + 57 + + 79 DIV - ( 89 ) END )
----
-65

skipif mysql # not compatible
query I rowsort label-6903
SELECT COALESCE ( + MIN ( - 65 ), - 64, - 95, - + 84 + - - 27 * - 99 + - CASE - 95 WHEN - CAST ( NULL AS INTEGER ) THEN + 57 + + 79 / - ( 89 ) END )
----
-65

query II rowsort
SELECT - - 92 AS col0, 27
----
92
27

query I rowsort
SELECT ALL + NULLIF ( 31, 85 ) * - 34 col0
----
-1054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6906
SELECT DISTINCT 73 + + - COUNT( - 9 ) * + 34 - 26 + - 17 + + + 67 * 51 DIV - 23 - 18 AS col2
----
-170

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT 73 + + - COUNT ( - 9 ) * + 34 - 26 + - 17 + + + 67 * 51 / - 23 - 18 AS col2
----
-170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT ALL 49 + COUNT( * ) DIV + 29 * + + COUNT( * ) + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL 49 + COUNT ( * ) / + 29 * + + COUNT ( * ) + COUNT ( * ) AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6908
SELECT DISTINCT - 0 + 40 + ( + - 9 ) + + 34 * - + SUM( - NULLIF ( - CAST( NULL AS SIGNED ), - 34 * 36 ) ) * - 69 + - 37 + - - 65 - - 8 + + 77 * + CASE + + 18 WHEN 20 THEN + + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT - 0 + 40 + ( + - 9 ) + + 34 * - + SUM ( - NULLIF ( - CAST ( NULL AS INTEGER ), - 34 * 36 ) ) * - 69 + - 37 + - - 65 - - 8 + + 77 * + CASE + + 18 WHEN 20 THEN + + 92 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6909
SELECT 71 * - + SUM( DISTINCT ( - CAST( 81 AS SIGNED ) ) ) AS col1
----
5751

skipif mysql # not compatible
query I rowsort label-6909
SELECT 71 * - + SUM ( DISTINCT ( - CAST ( 81 AS INTEGER ) ) ) AS col1
----
5751

query I rowsort
SELECT DISTINCT + 36 + - 56 * - + 8 + - 79 + - - 84
----
489

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL - 82 + + + ( + COUNT( * ) )
----
-81

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL - 82 + + + ( + COUNT ( * ) )
----
-81

query I rowsort
SELECT 45 * 36 + - 61
----
1559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6913
SELECT + CAST( NULL AS DECIMAL ) / + 71 + - 24 + + MAX( - 61 ) + - 37 * - COUNT( * ) + - 4 + + 94 / + 87 * + + 79 + + 76 * + 2 / - NULLIF ( 81, - + 14 + + + NULLIF ( + + 93, + + 43 * - 9 ) + - + 78 + + + 64 + - 7 * + 64 + 32 * - 11 * - 36 * 55 + ( CAST( NULL AS SIGNED ) ) * 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT + CAST ( NULL AS REAL ) / + 71 + - 24 + + MAX ( - 61 ) + - 37 * - COUNT ( * ) + - 4 + + 94 / + 87 * + + 79 + + 76 * + 2 / - NULLIF ( 81, - + 14 + + + NULLIF ( + + 93, + + 43 * - 9 ) + - + 78 + + + 64 + - 7 * + 64 + 32 * - 11 * - 36 * 55 + ( CAST ( NULL AS INTEGER ) ) * 31 )
----
NULL

query I rowsort
SELECT ALL 65 * - - 65 AS col1
----
4225

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL COUNT( * ) * - - 50
----
50

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL COUNT ( * ) * - - 50
----
50

query I rowsort
SELECT ALL + 19 + 15 * + + 89 AS col0
----
1354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6917
SELECT AVG ( ALL + 21 ) * + CASE 46 WHEN + ( + NULLIF ( - CAST( NULL AS SIGNED ), + 88 + + 28 * 3 ) ) THEN NULL WHEN - 74 * 1 THEN + + 71 + - 36 * + 22 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT AVG ( ALL + 21 ) * + CASE 46 WHEN + ( + NULLIF ( - CAST ( NULL AS INTEGER ), + 88 + + 28 * 3 ) ) THEN NULL WHEN - 74 * 1 THEN + + 71 + - 36 * + 22 ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT - CASE - 91 WHEN + COUNT( * ) THEN - 69 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6918
SELECT - CASE - 91 WHEN + COUNT ( * ) THEN - 69 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 89 + + - 8 + - ( 95 ) AS col1
----
-14

query I rowsort
SELECT 76 * - 62 * + - 76 col0
----
358112

query I rowsort
SELECT DISTINCT - ( - + 78 ) * 95 AS col0
----
7410

query I rowsort
SELECT ALL COALESCE ( - 97, ( 72 ) ) - - 87 + NULLIF ( 3, - 13 / COALESCE ( - 17, - 59 ) ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT + MAX( DISTINCT - - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-6923
SELECT + MAX ( DISTINCT - - 33 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6924
SELECT DISTINCT - 32 - ( + ( COUNT( - 93 ) ) ), + 25 AS col1
----
-33
25

skipif mysql # not compatible
query II rowsort label-6924
SELECT DISTINCT - 32 - ( + ( COUNT ( - 93 ) ) ), + 25 AS col1
----
-33
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6925
SELECT ALL - MAX( DISTINCT - CAST( 94 AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL - MAX ( DISTINCT - CAST ( 94 AS INTEGER ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT ALL - - NULLIF ( + NULLIF ( SUM( - + 22 ), - + 77 + + + 56 ), + - 70 + - MIN( - 31 ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL - - NULLIF ( + NULLIF ( SUM ( - + 22 ), - + 77 + + + 56 ), + - 70 + - MIN ( - 31 ) ) AS col2
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6927
SELECT ALL - CASE - COALESCE ( + NULLIF ( - 28, + 15 ), - 20 ) WHEN - CAST( 29 AS DECIMAL ) * - - 58 THEN + 20 + 69 WHEN 31 + - 82 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - CASE - COALESCE ( + NULLIF ( - 28, + 15 ), - 20 ) WHEN - CAST ( 29 AS REAL ) * - - 58 THEN + 20 + 69 WHEN 31 + - 82 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6928
SELECT + COALESCE ( 90, - + 19, + - COALESCE ( - - COALESCE ( 76, + 19 DIV 7 * + MAX( + 95 ) ), 27 ) + + 46 ) col2, 59 DIV - 49 AS col0
----
90
-1

skipif mysql # not compatible
query II rowsort label-6928
SELECT + COALESCE ( 90, - + 19, + - COALESCE ( - - COALESCE ( 76, + 19 / 7 * + MAX ( + 95 ) ), 27 ) + + 46 ) col2, 59 / - 49 AS col0
----
90
-1

query I rowsort
SELECT + 81 * - 46 + - 34 AS col2
----
-3760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6930
SELECT - ( + - CAST( NULL AS SIGNED ) ) / - + CASE + + 75 WHEN - 36 THEN - 62 ELSE + 78 + - 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6930
SELECT - ( + - CAST ( NULL AS INTEGER ) ) / - + CASE + + 75 WHEN - 36 THEN - 62 ELSE + 78 + - 49 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT COUNT( * ) * + 44 * - - 94 + 66 + - + COUNT( * ) AS col0
----
4201

skipif mysql # not compatible
query I rowsort label-6931
SELECT COUNT ( * ) * + 44 * - - 94 + 66 + - + COUNT ( * ) AS col0
----
4201

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT - 47 * - COUNT( * ) - + 85
----
-38

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT - 47 * - COUNT ( * ) - + 85
----
-38

query I rowsort
SELECT 76 * - + 20 col1
----
-1520

query I rowsort
SELECT - NULLIF ( - 67, + 62 + + 36 + - - 82 ) - - 17 AS col1
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-6935
SELECT 94 DIV - 38 - - 30 AS col1, - 26 AS col1
----
28
-26

skipif mysql # not compatible
query II rowsort label-6935
SELECT 94 / - 38 - - 30 AS col1, - 26 AS col1
----
28
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT DISTINCT - SUM( DISTINCT 55 ) + - - 29
----
-26

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT - SUM ( DISTINCT 55 ) + - - 29
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-6937
SELECT 42 * + SUM( 78 ), 94 - 64 + + 92 * - 77 + + 36 * 81 + + 92 AS col2
----
3276
-4046

skipif mysql # not compatible
query II rowsort label-6937
SELECT 42 * + SUM ( 78 ), 94 - 64 + + 92 * - 77 + + 36 * 81 + + 92 AS col2
----
3276
-4046

query I rowsort
SELECT DISTINCT + 13 + - 14
----
-1

query I rowsort
SELECT 61 - + ( + - 80 ) AS col0
----
141

query II rowsort
SELECT ALL 7 AS col0, 11 AS col1
----
7
11

query I rowsort
SELECT 32 * 5 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL + 50 + - 93 + 76 + - - 23 * 28 * COUNT( * ) * 42 AS col1
----
27081

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL + 50 + - 93 + 76 + - - 23 * 28 * COUNT ( * ) * 42 AS col1
----
27081

query I rowsort
SELECT ALL - 95 + + 51
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6944
SELECT DISTINCT ( - CASE + + CAST( - - AVG ( + 23 ) AS DECIMAL ) WHEN - 18 - - 11 THEN - 3 WHEN + 69 THEN NULL WHEN + NULLIF ( + COUNT( * ), + 98 ) THEN + COUNT( * ) ELSE + CAST( NULL AS DECIMAL ) * - 50 * + 36 * + 23 + + COALESCE ( + COUNT( * ), + 65, ( ( 2 ) ) ) * - 15 * CAST( + MAX( + 64 ) AS SIGNED ) * + - 39 + 67 END ) + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT ( - CASE + + CAST ( - - AVG ( + 23 ) AS REAL ) WHEN - 18 - - 11 THEN - 3 WHEN + 69 THEN NULL WHEN + NULLIF ( + COUNT ( * ), + 98 ) THEN + COUNT ( * ) ELSE + CAST ( NULL AS REAL ) * - 50 * + 36 * + 23 + + COALESCE ( + COUNT ( * ), + 65, ( ( 2 ) ) ) * - 15 * CAST ( + MAX ( + 64 ) AS INTEGER ) * + - 39 + 67 END ) + 76 AS col2
----
NULL

query II rowsort
SELECT + 74 col2, + ( - - 4 ) AS col2
----
74
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT ALL COUNT( * ) * - 31 + - 63 * - 39 + - 36 AS col0
----
2390

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL COUNT ( * ) * - 31 + - 63 * - 39 + - 36 AS col0
----
2390

query II rowsort
SELECT ALL + 51, 82 AS col2
----
51
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6948
SELECT ALL + ( CAST( - + 21 AS SIGNED ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL + ( CAST ( - + 21 AS INTEGER ) ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT + COUNT( * ) * + 83 + + 31 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-6949
SELECT + COUNT ( * ) * + 83 + + 31 AS col2
----
114

query I rowsort
SELECT COALESCE ( 84, 38 * + + ( 43 ), - 5 + + - 77 ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6951
SELECT - COUNT( * ) * + 35 DIV + COUNT( * ) AS col2, + COUNT( * ) AS col1
----
-35
1

skipif mysql # not compatible
query II rowsort label-6951
SELECT - COUNT ( * ) * + 35 / + COUNT ( * ) AS col2, + COUNT ( * ) AS col1
----
-35
1

query I rowsort
SELECT ALL 46 * - - 37 - 89 AS col2
----
1613

query I rowsort
SELECT - 62 * - 26 + - 58
----
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT + COUNT( * ) * 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6954
SELECT + COUNT ( * ) * 61 AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6955
SELECT DISTINCT - 3 DIV - COUNT( * ) + + - 9 AS col1, - 27
----
-6
-27

skipif mysql # not compatible
query II rowsort label-6955
SELECT DISTINCT - 3 / - COUNT ( * ) + + - 9 AS col1, - 27
----
-6
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6956
SELECT CAST( NULL AS SIGNED ) * + 76 / - COALESCE ( + COUNT( * ), + CAST( - COUNT( * ) AS DECIMAL ), - + 10 * - + 33 + - 72, + - 50 ) + - 37 - - ( 63 ) - 35 / 63 + + 78 + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT CAST ( NULL AS INTEGER ) * + 76 / - COALESCE ( + COUNT ( * ), + CAST ( - COUNT ( * ) AS REAL ), - + 10 * - + 33 + - 72, + - 50 ) + - 37 - - ( 63 ) - 35 / 63 + + 78 + + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT + + SUM( DISTINCT + + 54 ) * - - 4
----
216

skipif mysql # not compatible
query I rowsort label-6957
SELECT + + SUM ( DISTINCT + + 54 ) * - - 4
----
216

query I rowsort
SELECT DISTINCT - 95 * - 27
----
2565

onlyif mysql # aggregate syntax: 
query II rowsort label-6959
SELECT + - 90 * + 21 * ( 81 ) - + COUNT( * ) * + 94 - - 1 * COUNT( * ) AS col0, - COUNT( * ) AS col2
----
-153183
-1

skipif mysql # not compatible
query II rowsort label-6959
SELECT + - 90 * + 21 * ( 81 ) - + COUNT ( * ) * + 94 - - 1 * COUNT ( * ) AS col0, - COUNT ( * ) AS col2
----
-153183
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT + MIN( ALL 94 ) * 39 + 42
----
3708

skipif mysql # not compatible
query I rowsort label-6960
SELECT + MIN ( ALL 94 ) * 39 + 42
----
3708

query I rowsort
SELECT + 21 - - 10 * + 68 + 29 * - - 6
----
875

query I rowsort
SELECT - + ( - - 84 ) * + 4
----
-336

query I rowsort
SELECT + 35 - + 97 * - 48 + - - 21
----
4712

onlyif mysql # DIV for integer division: 
query II rowsort label-6964
SELECT 70, - 79 DIV + 73 AS col0
----
70
-1

skipif mysql # not compatible
query II rowsort label-6964
SELECT 70, - 79 / + 73 AS col0
----
70
-1

query I rowsort
SELECT + ( + 84 ) * + 36 AS col0
----
3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6966
SELECT + + CAST( NULL AS SIGNED ) + - 8 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT + + CAST ( NULL AS INTEGER ) + - 8 col1
----
NULL

query II rowsort
SELECT 7 AS col0, - 91 * - 99
----
7
9009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6968
SELECT ALL - 58 + + CAST( NULL AS SIGNED ) / - AVG ( ALL + CAST( + ( - + 28 ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL - 58 + + CAST ( NULL AS INTEGER ) / - AVG ( ALL + CAST ( + ( - + 28 ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6969
SELECT DISTINCT COUNT( * ), 45 AS col0
----
1
45

skipif mysql # not compatible
query II rowsort label-6969
SELECT DISTINCT COUNT ( * ), 45 AS col0
----
1
45

query I rowsort
SELECT + - 88 + + - ( - + 60 ) * - + 23
----
-1468

onlyif mysql # aggregate syntax: 
query II rowsort label-6971
SELECT + 50 + - COUNT( * ) + - + ( + 68 ) AS col0, 58
----
-19
58

skipif mysql # not compatible
query II rowsort label-6971
SELECT + 50 + - COUNT ( * ) + - + ( + 68 ) AS col0, 58
----
-19
58

query I rowsort
SELECT + 8 * - - 40
----
320

onlyif mysql # aggregate syntax: 
query II rowsort label-6973
SELECT + COUNT( * ) + - COUNT( * ), - 46 AS col0
----
0
-46

skipif mysql # not compatible
query II rowsort label-6973
SELECT + COUNT ( * ) + - COUNT ( * ), - 46 AS col0
----
0
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6974
SELECT + COUNT( * ) DIV + ( 30 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT + COUNT ( * ) / + ( 30 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 37 + 63 + 38 * 19 * + + 72 * + 77 AS col1
----
4002868

query I rowsort
SELECT ALL 96 + + - ( + 56 ) AS col1
----
40

query II rowsort
SELECT - NULLIF ( - 53, - 56 * - - 31 ), - 10 col2
----
53
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT - CASE - + 37 WHEN - 16 THEN - + 83 WHEN - - 15 THEN + 89 ELSE NULL END + 85 * - ( + ( + 78 ) ) + COUNT( ALL - + ( + 99 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6978
SELECT - CASE - + 37 WHEN - 16 THEN - + 83 WHEN - - 15 THEN + 89 ELSE NULL END + 85 * - ( + ( + 78 ) ) + COUNT ( ALL - + ( + 99 ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 90 * + - 60, 29 col0
----
-5400
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6980
SELECT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + + 97 - + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6980
SELECT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 97 - + 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT DISTINCT ( - 11 ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT ( - 11 ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 72 + + 80
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-6983
SELECT + NULLIF ( 56, 82 ) DIV + - 7 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6983
SELECT + NULLIF ( 56, 82 ) / + - 7 AS col1
----
-8

query I rowsort
SELECT ALL 36 + - 57 * + 69
----
-3897

query I rowsort
SELECT DISTINCT 95 * 12 col2
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL + COUNT( * ) - + 47 + 30
----
-16

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL + COUNT ( * ) - + 47 + 30
----
-16

query I rowsort
SELECT DISTINCT ( - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT DISTINCT MAX( ALL 39 )
----
39

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT MAX ( ALL 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT - 18 + - COUNT( 17 ) + - 69 * + MAX( - 96 ) - + + 88 + - 17 - - + 95
----
6595

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 18 + - COUNT ( 17 ) + - 69 * + MAX ( - 96 ) - + + 88 + - 17 - - + 95
----
6595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT ALL + NULLIF ( + 49, + 74 + + CAST( 64 AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + NULLIF ( + 49, + 74 + + CAST ( 64 AS INTEGER ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6991
SELECT CAST( 62 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6991
SELECT CAST ( 62 AS INTEGER ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT + MAX( ALL 95 )
----
95

skipif mysql # not compatible
query I rowsort label-6992
SELECT + MAX ( ALL 95 )
----
95

query I rowsort
SELECT - - 43 + - 66 * 72 AS col0
----
-4709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6994
SELECT - COALESCE ( + + 29, 10, + + CASE + 62 WHEN - + COUNT( * ) * CAST( NULL AS DECIMAL ) * - + COALESCE ( + 81, + 53, + ( + 24 ) ) THEN 13 - - 64 + + 82 + + + 4 * + CAST( NULL AS SIGNED ) DIV + 77 WHEN 96 THEN NULL END ) * 8 + + 48 - - - ( ( - - 72 ) ) AS col1
----
-256

skipif mysql # not compatible
query I rowsort label-6994
SELECT - COALESCE ( + + 29, 10, + + CASE + 62 WHEN - + COUNT ( * ) * CAST ( NULL AS REAL ) * - + COALESCE ( + 81, + 53, + ( + 24 ) ) THEN 13 - - 64 + + 82 + + + 4 * + CAST ( NULL AS INTEGER ) / + 77 WHEN 96 THEN NULL END ) * 8 + + 48 - - - ( ( - - 72 ) ) AS col1
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT - CASE - MIN( DISTINCT 39 ) WHEN - 55 THEN 27 WHEN + ( - COUNT( * ) ) THEN NULL END + + 41 * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT - CASE - MIN ( DISTINCT 39 ) WHEN - 55 THEN 27 WHEN + ( - COUNT ( * ) ) THEN NULL END + + 41 * 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL + 58 * - - CASE 73 WHEN + COALESCE ( + + AVG ( ALL - 35 ), - 37 ) + - COUNT( * ) - 49 + - 0 + + 91 * 36 THEN NULL ELSE 15 * + 71 END - + + 82 AS col0
----
61688

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL + 58 * - - CASE 73 WHEN + COALESCE ( + + AVG ( ALL - 35 ), - 37 ) + - COUNT ( * ) - 49 + - 0 + + 91 * 36 THEN NULL ELSE 15 * + 71 END - + + 82 AS col0
----
61688

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT ALL + - COALESCE ( + - ( + 67 ), - + 85 * + 1 + + COUNT( * ) * ( + 57 ) + - + ( - + 30 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL + - COALESCE ( + - ( + 67 ), - + 85 * + 1 + + COUNT ( * ) * ( + 57 ) + - + ( - + 30 ) ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT ALL + + 27 * + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL + + 27 * + + COUNT ( * )
----
27

query I rowsort
SELECT + 36 * - NULLIF ( + 40, - ( - 69 ) ) AS col2
----
-1440

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT - - 41 * + 36 + + 89 + - + 98 DIV 31
----
1562

skipif mysql # not compatible
query I rowsort label-7000
SELECT - - 41 * + 36 + + 89 + - + 98 / 31
----
1562

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT + - MIN( - - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7001
SELECT + - MIN ( - - 61 ) AS col2
----
-61

query I rowsort
SELECT - + 28 + + 96 + 38
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7003
SELECT ALL + + CASE - 28 WHEN - CAST( 69 AS SIGNED ) THEN 72 WHEN - ( - AVG ( + 3 ) ) THEN NULL ELSE - + COUNT( * ) * + 67 END AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL + + CASE - 28 WHEN - CAST ( 69 AS INTEGER ) THEN 72 WHEN - ( - AVG ( + 3 ) ) THEN NULL ELSE - + COUNT ( * ) * + 67 END AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT + - 53 + + + COUNT( * ) AS col1, 51
----
-52
51

skipif mysql # not compatible
query II rowsort label-7004
SELECT + - 53 + + + COUNT ( * ) AS col1, 51
----
-52
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT + + SUM( + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7005
SELECT + + SUM ( + 82 ) AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7006
SELECT DISTINCT + - 2 DIV - 44 + + + 69 + - + 11 * + 4 * - 57 col1
----
2577

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT + - 2 / - 44 + + + 69 + - + 11 * + 4 * - 57 col1
----
2577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT ALL + SUM( CAST( + 35 AS SIGNED ) ) * COUNT( * ) * 84 * CAST( + 89 AS SIGNED ) + 80 - - 34 + 32 + - 10 * - 15 - - + 12 AS col0
----
261968

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + SUM ( CAST ( + 35 AS INTEGER ) ) * COUNT ( * ) * 84 * CAST ( + 89 AS INTEGER ) + 80 - - 34 + 32 + - 10 * - 15 - - + 12 AS col0
----
261968

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT - 99 DIV - 20 + + - 3
----
1

skipif mysql # not compatible
query I rowsort label-7008
SELECT - 99 / - 20 + + - 3
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ALL COUNT( * ) * - - ( - 47 ) + + + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL COUNT ( * ) * - - ( - 47 ) + + + COUNT ( * )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT ALL - - 51 * - CAST( NULL AS SIGNED ) * COUNT( * ) + ( + MAX( DISTINCT - 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL - - 51 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) + ( + MAX ( DISTINCT - 76 ) )
----
NULL

query II rowsort
SELECT - 65 + - - 2 AS col1, 49 AS col2
----
-63
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT + MAX( ALL - 65 ) * - + 68
----
4420

skipif mysql # not compatible
query I rowsort label-7012
SELECT + MAX ( ALL - 65 ) * - + 68
----
4420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7013
SELECT 74, 22 * - + 30 + + + 23 + - 72 + - + CAST( NULL AS SIGNED ) * + 48 AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-7013
SELECT 74, 22 * - + 30 + + + 23 + - 72 + - + CAST ( NULL AS INTEGER ) * + 48 AS col2
----
74
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT 51 - ( + - 48 ) DIV 46
----
52

skipif mysql # not compatible
query I rowsort label-7014
SELECT 51 - ( + - 48 ) / 46
----
52

query I rowsort
SELECT ALL 49 + + 33 - + 15 * + 13 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT MIN( + 62 ) - COUNT( * ) * + 59 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7016
SELECT MIN ( + 62 ) - COUNT ( * ) * + 59 AS col2
----
3

query I rowsort
SELECT ALL + ( + + 91 ) * 52 + + 32 AS col0
----
4764

query I rowsort
SELECT 70 - + 61
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7019
SELECT DISTINCT 66, - MIN( - 38 ) AS col2
----
66
38

skipif mysql # not compatible
query II rowsort label-7019
SELECT DISTINCT 66, - MIN ( - 38 ) AS col2
----
66
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL COUNT( * ) - + - 85 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL COUNT ( * ) - + - 85 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT CASE + 10 WHEN + + CASE + MAX( DISTINCT + 71 ) WHEN 80 THEN 92 * + 96 ELSE - 92 END + + COUNT( * ) THEN 12 WHEN 0 THEN + + 33 ELSE NULL END * + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT CASE + 10 WHEN + + CASE + MAX ( DISTINCT + 71 ) WHEN 80 THEN 92 * + 96 ELSE - 92 END + + COUNT ( * ) THEN 12 WHEN 0 THEN + + 33 ELSE NULL END * + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT 60 + - SUM( ALL 91 ) + - + SUM( ALL - 58 ) * 5
----
259

skipif mysql # not compatible
query I rowsort label-7022
SELECT 60 + - SUM ( ALL 91 ) + - + SUM ( ALL - 58 ) * 5
----
259

query I rowsort
SELECT 96 - - - 83 + + + 46
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT ALL MAX( DISTINCT + 46 ) * + + COUNT( + 27 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL MAX ( DISTINCT + 46 ) * + + COUNT ( + 27 ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7025
SELECT CAST( NULL AS DECIMAL ) * - + CAST( NULL AS SIGNED ) * + + CAST( - COUNT( * ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT CAST ( NULL AS REAL ) * - + CAST ( NULL AS INTEGER ) * + + CAST ( - COUNT ( * ) AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 74, - 8 ) * - 76 AS col0
----
5624

query I rowsort
SELECT ALL 76 * - 48 * 45 * - - 86 col2
----
-14117760

query II rowsort
SELECT - 39 AS col0, - ( + 52 ) + 66 - 60 AS col1
----
-39
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7029
SELECT ALL 47 * CAST( + MAX( - 66 ) AS SIGNED ) AS col2
----
-3102

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL 47 * CAST ( + MAX ( - 66 ) AS INTEGER ) AS col2
----
-3102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7030
SELECT DISTINCT - CASE + - NULLIF ( 23, + 25 ) WHEN - + CAST( - - 50 AS SIGNED ) - 23 * - ( - 42 ) * - - 20 + + 7 THEN - + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT - CASE + - NULLIF ( 23, + 25 ) WHEN - + CAST ( - - 50 AS INTEGER ) - 23 * - ( - 42 ) * - - 20 + + 7 THEN - + 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7031
SELECT ALL - + 93 AS col0, COUNT( * )
----
-93
1

skipif mysql # not compatible
query II rowsort label-7031
SELECT ALL - + 93 AS col0, COUNT ( * )
----
-93
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT ALL - 17 * - + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL - 17 * - + COUNT ( * ) AS col1
----
17

query II rowsort
SELECT - 79 * 96 + + + 24 AS col2, - 0 AS col0
----
-7560
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7034
SELECT ALL - + CAST( - 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL - + CAST ( - 61 AS INTEGER ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT + 33 * + 52 * COUNT( * ) * + 44 * - 93 * - - 2
----
-14043744

skipif mysql # not compatible
query I rowsort label-7035
SELECT + 33 * + 52 * COUNT ( * ) * + 44 * - 93 * - - 2
----
-14043744

query I rowsort
SELECT + 3 * + 37 * + 8
----
888

query I rowsort
SELECT ALL - 51 + - - 58
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7038
SELECT - - SUM( ALL 26 ) DIV + COUNT( * ) - + CAST( 89 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-7038
SELECT - - SUM ( ALL 26 ) / + COUNT ( * ) - + CAST ( 89 AS INTEGER ) AS col2
----
-63

query I rowsort
SELECT ALL - 10 + - + 44 AS col1
----
-54

query I rowsort
SELECT ALL 66 + + - 73
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7041
SELECT CASE 49 WHEN - - CAST( NULL AS DECIMAL ) THEN 79 * - 75 WHEN 61 + + + 39 + ( + 86 ) + COUNT( * ) - + 26 * + + COUNT( * ) * - 46 THEN + + 31 * 35 * + 97 DIV 23 ELSE - 68 * + 45 END * + + 89 * + 53 + 46 + - 56 AS col1
----
-14434030

skipif mysql # not compatible
query I rowsort label-7041
SELECT CASE 49 WHEN - - CAST ( NULL AS REAL ) THEN 79 * - 75 WHEN 61 + + + 39 + ( + 86 ) + COUNT ( * ) - + 26 * + + COUNT ( * ) * - 46 THEN + + 31 * 35 * + 97 / 23 ELSE - 68 * + 45 END * + + 89 * + 53 + 46 + - 56 AS col1
----
-14434030

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT + 19 - + + MAX( - 2 )
----
21

skipif mysql # not compatible
query I rowsort label-7042
SELECT + 19 - + + MAX ( - 2 )
----
21

query I rowsort
SELECT ALL + - 8 + + - 91 * - 62 + + 92 AS col0
----
5726

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT 42 * + COUNT( * ), 84 + + - 43 AS col0
----
42
41

skipif mysql # not compatible
query II rowsort label-7044
SELECT 42 * + COUNT ( * ), 84 + + - 43 AS col0
----
42
41

query II rowsort
SELECT 8, ( + 66 ) AS col0
----
8
66

query I rowsort
SELECT 51 + - 53 - 16 * - 31
----
494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7047
SELECT ALL - 36 DIV MAX( ALL + 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL - 36 / MAX ( ALL + 94 ) AS col1
----
0

query I rowsort
SELECT 61 + 55 col2
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-7049
SELECT ALL - ( + 53 ) - - - 51 * + 77 AS col0, + MIN( - 58 ) + + 90 * 87 * 75
----
-3980
587192

skipif mysql # not compatible
query II rowsort label-7049
SELECT ALL - ( + 53 ) - - - 51 * + 77 AS col0, + MIN ( - 58 ) + + 90 * 87 * 75
----
-3980
587192

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT + 29 * - COUNT( * ) + 87
----
58

skipif mysql # not compatible
query I rowsort label-7050
SELECT + 29 * - COUNT ( * ) + 87
----
58

query II rowsort
SELECT - 60 AS col1, 21 AS col0
----
-60
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT 86 DIV 65 * 77 * ( - 91 )
----
-7007

skipif mysql # not compatible
query I rowsort label-7052
SELECT 86 / 65 * 77 * ( - 91 )
----
-7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT 57 + + CAST( NULL AS SIGNED ) * + + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT 57 + + CAST ( NULL AS INTEGER ) * + + 28 AS col2
----
NULL

query I rowsort
SELECT ALL + 65 * - + 44
----
-2860

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7055
SELECT 5 + - + NULLIF ( + 8, + - ( + 76 ) ) + 78 + CAST( NULL AS DECIMAL ) + - COALESCE ( 31, + + 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT 5 + - + NULLIF ( + 8, + - ( + 76 ) ) + 78 + CAST ( NULL AS REAL ) + - COALESCE ( 31, + + 77 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7056
SELECT ALL - COUNT( * ) - - COUNT( ALL - + 46 ) + - 60 * 20 DIV - + 77 AS col0, + 59 * + + 51 col0
----
15
3009

skipif mysql # not compatible
query II rowsort label-7056
SELECT ALL - COUNT ( * ) - - COUNT ( ALL - + 46 ) + - 60 * 20 / - + 77 AS col0, + 59 * + + 51 col0
----
15
3009

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT - 25 col0, + MAX( 8 )
----
-25
8

skipif mysql # not compatible
query II rowsort label-7057
SELECT - 25 col0, + MAX ( 8 )
----
-25
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7058
SELECT ALL 82 AS col1, SUM( ALL - + 30 )
----
82
-30

skipif mysql # not compatible
query II rowsort label-7058
SELECT ALL 82 AS col1, SUM ( ALL - + 30 )
----
82
-30

query II rowsort
SELECT - 34 AS col0, 82 + - + 83
----
-34
-1

query I rowsort
SELECT DISTINCT + 47 * + 53 col2
----
2491

onlyif mysql # aggregate syntax: 
query II rowsort label-7061
SELECT ALL 90 AS col1, 70 * + MAX( + 34 ) + + 51 AS col1
----
90
2431

skipif mysql # not compatible
query II rowsort label-7061
SELECT ALL 90 AS col1, 70 * + MAX ( + 34 ) + + 51 AS col1
----
90
2431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7062
SELECT NULLIF ( - + 49, + 3 ) * + - SUM( + 12 ) * CAST( NULL AS SIGNED ) / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7062
SELECT NULLIF ( - + 49, + 3 ) * + - SUM ( + 12 ) * CAST ( NULL AS INTEGER ) / + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT COUNT( + 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT COUNT ( + 45 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - 74 + COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-7064
SELECT - 74 + COUNT ( * ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT MIN( 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7065
SELECT MIN ( 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7066
SELECT - 18 DIV + + CASE + 80 WHEN - 19 THEN + 10 DIV - COUNT( * ) ELSE + - 61 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7066
SELECT - 18 / + + CASE + 80 WHEN - 19 THEN + 10 / - COUNT ( * ) ELSE + - 61 END AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT 58 + + ( - 53 ) DIV + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7067
SELECT 58 + + ( - 53 ) / + COUNT ( * )
----
5

query I rowsort
SELECT DISTINCT - 64 * 9 * 87 - + 82 + - + 83 + + 75 + 68 * 1
----
-50134

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ALL + - COUNT( * ) * NULLIF ( - MIN( + 10 ), - 69 ) * - - 28 + - ( 70 )
----
210

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL + - COUNT ( * ) * NULLIF ( - MIN ( + 10 ), - 69 ) * - - 28 + - ( 70 )
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7070
SELECT - - 3 DIV COUNT( * ) + NULLIF ( + 84, + 96 ) + + 41
----
128

skipif mysql # not compatible
query I rowsort label-7070
SELECT - - 3 / COUNT ( * ) + NULLIF ( + 84, + 96 ) + + 41
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-7071
SELECT DISTINCT + COUNT( * ) * - 88 + + COALESCE ( + 17, + MIN( + 22 ) ) AS col0, - 2
----
-71
-2

skipif mysql # not compatible
query II rowsort label-7071
SELECT DISTINCT + COUNT ( * ) * - 88 + + COALESCE ( + 17, + MIN ( + 22 ) ) AS col0, - 2
----
-71
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7072
SELECT ALL + - COUNT( * ) * + ( - 14 ) * - 71 * - - 5 * + 16 + 4 * 84 - - - 94 + + CAST( - 90 AS SIGNED ) * - + CAST( + + 83 AS SIGNED ) + + CAST( + 23 AS SIGNED ) + - ( + COALESCE ( + 63, + 29 ) ) * + + 39 + 80
----
-74162

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL + - COUNT ( * ) * + ( - 14 ) * - 71 * - - 5 * + 16 + 4 * 84 - - - 94 + + CAST ( - 90 AS INTEGER ) * - + CAST ( + + 83 AS INTEGER ) + + CAST ( + 23 AS INTEGER ) + - ( + COALESCE ( + 63, + 29 ) ) * + + 39 + 80
----
-74162

query I rowsort
SELECT DISTINCT 33 * 62 AS col1
----
2046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7074
SELECT ALL - + 95 * - COALESCE ( - 83, 2 ) - + + 36 / + CAST( NULL AS SIGNED ) + 55 + - 22 * 17 / COUNT( ALL CASE + + 73 WHEN - 82 THEN - 89 + 37 WHEN - - 91 THEN - 51 ELSE 14 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL - + 95 * - COALESCE ( - 83, 2 ) - + + 36 / + CAST ( NULL AS INTEGER ) + 55 + - 22 * 17 / COUNT ( ALL CASE + + 73 WHEN - 82 THEN - 89 + 37 WHEN - - 91 THEN - 51 ELSE 14 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT + 64 * - 52 + ( + COUNT( * ) ) + - 17
----
-3344

skipif mysql # not compatible
query I rowsort label-7075
SELECT + 64 * - 52 + ( + COUNT ( * ) ) + - 17
----
-3344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT ALL - + 63 * + + NULLIF ( - 23, - 9 ) + 94 - + CAST( + 5 AS SIGNED ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL - + 63 * + + NULLIF ( - 23, - 9 ) + 94 - + CAST ( + 5 AS INTEGER ) + + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 66 AS col0, 26
----
-66
26

query I rowsort
SELECT - 17 + + + 34
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT 38 AS col2, - CASE COUNT( * ) WHEN NULLIF ( + - SUM( ALL - + 82 ), - 69 + COUNT( * ) ) * + 51 THEN + 68 END - COUNT( * )
----
38
NULL

skipif mysql # not compatible
query II rowsort label-7079
SELECT 38 AS col2, - CASE COUNT ( * ) WHEN NULLIF ( + - SUM ( ALL - + 82 ), - 69 + COUNT ( * ) ) * + 51 THEN + 68 END - COUNT ( * )
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT - COUNT( 64 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7080
SELECT - COUNT ( 64 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + COALESCE ( 72, - ( - + 9 ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT MIN( DISTINCT + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-7082
SELECT MIN ( DISTINCT + 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT DISTINCT + MAX( ALL + - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT + MAX ( ALL + - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT DISTINCT - COUNT( * ) * + 92
----
-92

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT - COUNT ( * ) * + 92
----
-92

query II rowsort
SELECT DISTINCT 72 - + - 43 AS col0, 94
----
115
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT + 96 + + MIN( 60 ) + + 33 * + 36
----
1344

skipif mysql # not compatible
query I rowsort label-7086
SELECT + 96 + + MIN ( 60 ) + + 33 * + 36
----
1344

query I rowsort
SELECT ALL - 33 * - 33
----
1089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7088
SELECT + 13 * - COALESCE ( 59, + 94, 82 * 3 + 37 * 30 * + 74 - - 86 * + + CASE + + 47 WHEN - + COALESCE ( + 92, 92, + MAX( 2 ) ) THEN + - 86 + + CAST( NULL AS SIGNED ) WHEN + - 48 THEN + 12 + + + COUNT( * ) + + 53 + - - COUNT( * ) * - 56 * + 5 * + 1 * + COUNT( * ) ELSE - 0 END * 77 ) DIV + COUNT( * )
----
-767

skipif mysql # not compatible
query I rowsort label-7088
SELECT + 13 * - COALESCE ( 59, + 94, 82 * 3 + 37 * 30 * + 74 - - 86 * + + CASE + + 47 WHEN - + COALESCE ( + 92, 92, + MAX ( 2 ) ) THEN + - 86 + + CAST ( NULL AS INTEGER ) WHEN + - 48 THEN + 12 + + + COUNT ( * ) + + 53 + - - COUNT ( * ) * - 56 * + 5 * + 1 * + COUNT ( * ) ELSE - 0 END * 77 ) / + COUNT ( * )
----
-767

query I rowsort
SELECT - 19 + - - 23 + + + 71 * - 11
----
-777

query I rowsort
SELECT ALL COALESCE ( 58, - 91 ) AS col2
----
58

query I rowsort
SELECT - 83 * + + ( - + ( 30 ) ) col0
----
2490

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7092
SELECT - CAST( NULL AS SIGNED ) - - 27 AS col2, + 71 + 71 AS col0
----
NULL
142

skipif mysql # not compatible
query II rowsort label-7092
SELECT - CAST ( NULL AS INTEGER ) - - 27 AS col2, + 71 + 71 AS col0
----
NULL
142

query I rowsort
SELECT ALL + 61 + + 25 * + 58 col0
----
1511

query I rowsort
SELECT ALL - 70 * + 64 AS col2
----
-4480

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7095
SELECT - CAST( NULL AS SIGNED ) + - 96 col0, 88 AS col2
----
NULL
88

skipif mysql # not compatible
query II rowsort label-7095
SELECT - CAST ( NULL AS INTEGER ) + - 96 col0, 88 AS col2
----
NULL
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT - CAST( NULL AS SIGNED ) * - - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT - CAST ( NULL AS INTEGER ) * - - 47 AS col1
----
NULL

query I rowsort
SELECT - + NULLIF ( 8, 26 ) + 93 AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7098
SELECT + 76 - - COUNT( * ) col2, 28 * - 26 * + COUNT( * )
----
77
-728

skipif mysql # not compatible
query II rowsort label-7098
SELECT + 76 - - COUNT ( * ) col2, 28 * - 26 * + COUNT ( * )
----
77
-728

query I rowsort
SELECT ALL - 35 + + 60 + - 71
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT - - 29 * NULLIF ( - - 28, + + 30 + + + COUNT( * ) - + 10 + - - 14 + + 87 ) AS col0
----
812

skipif mysql # not compatible
query I rowsort label-7100
SELECT - - 29 * NULLIF ( - - 28, + + 30 + + + COUNT ( * ) - + 10 + - - 14 + + 87 ) AS col0
----
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7101
SELECT DISTINCT - 24 + - 44 DIV - 33, 56 * + 17 * - COUNT( * ) AS col2
----
-23
-952

skipif mysql # not compatible
query II rowsort label-7101
SELECT DISTINCT - 24 + - 44 / - 33, 56 * + 17 * - COUNT ( * ) AS col2
----
-23
-952

query I rowsort
SELECT - + NULLIF ( + ( - 68 ), - - 90 - + 0 )
----
68

query I rowsort
SELECT - 43 + + 56 * 12
----
629

onlyif mysql # DIV for integer division: 
query I rowsort label-7104
SELECT ALL + 77 DIV 10 + + + 58
----
65

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + 77 / 10 + + + 58
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT DISTINCT + - COALESCE ( + 15, - NULLIF ( + 69, + ( - 7 ) * - 21 * + 99 ) * - 89 + 43 - - - COUNT( * ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT + - COALESCE ( + 15, - NULLIF ( + 69, + ( - 7 ) * - 21 * + 99 ) * - 89 + 43 - - - COUNT ( * ) ) AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7106
SELECT ALL - 13 DIV - 99 + 25
----
25

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL - 13 / - 99 + 25
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7107
SELECT 19 / CASE + ( 19 ) WHEN 85 - + NULLIF ( - + SUM( ALL + 59 ), - 63 ) THEN + 85 - - CAST( NULL AS SIGNED ) - + 47 / 9 * COUNT( * ) WHEN - - ( - 98 ) THEN NULL ELSE NULL END + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT 19 / CASE + ( 19 ) WHEN 85 - + NULLIF ( - + SUM ( ALL + 59 ), - 63 ) THEN + 85 - - CAST ( NULL AS INTEGER ) - + 47 / 9 * COUNT ( * ) WHEN - - ( - 98 ) THEN NULL ELSE NULL END + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT - ( + 58 ) + - MAX( + 59 )
----
-117

skipif mysql # not compatible
query I rowsort label-7108
SELECT - ( + 58 ) + - MAX ( + 59 )
----
-117

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7109
SELECT - 20 DIV CAST( - - 36 AS SIGNED ) * + - ( 0 ) - 79 * 88 - - 50 AS col2, + 51 DIV - - 76 AS col2
----
-6902
0

skipif mysql # not compatible
query II rowsort label-7109
SELECT - 20 / CAST ( - - 36 AS INTEGER ) * + - ( 0 ) - 79 * 88 - - 50 AS col2, + 51 / - - 76 AS col2
----
-6902
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT - 45 * + SUM( + 86 )
----
-3870

skipif mysql # not compatible
query I rowsort label-7110
SELECT - 45 * + SUM ( + 86 )
----
-3870

query I rowsort
SELECT ALL + 58 * 96 - - 8
----
5576

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT + + MAX( + 18 ) + - + 14 * - 93
----
1320

skipif mysql # not compatible
query I rowsort label-7112
SELECT + + MAX ( + 18 ) + - + 14 * - 93
----
1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7113
SELECT ALL + NULLIF ( + + MIN( DISTINCT - - 50 ), 21 * + MAX( CASE 13 WHEN - + CAST( NULL AS SIGNED ) * 52 THEN + COALESCE ( - 71, - 42, - 62 * 20 + + 92 ) ELSE NULL END ) * COUNT( * ) + - 99 ) AS col1, COUNT( * ) / - - 79 * MAX( 8 ) + - CAST( NULL AS SIGNED ) - + COUNT( * ) * COUNT( * ) * CAST( NULL AS SIGNED ) col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-7113
SELECT ALL + NULLIF ( + + MIN ( DISTINCT - - 50 ), 21 * + MAX ( CASE 13 WHEN - + CAST ( NULL AS INTEGER ) * 52 THEN + COALESCE ( - 71, - 42, - 62 * 20 + + 92 ) ELSE NULL END ) * COUNT ( * ) + - 99 ) AS col1, COUNT ( * ) / - - 79 * MAX ( 8 ) + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) * COUNT ( * ) * CAST ( NULL AS INTEGER ) col2
----
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT + NULLIF ( + 43, + COUNT( * ) ) * 45 + - 98 + + + 88 AS col0
----
1925

skipif mysql # not compatible
query I rowsort label-7114
SELECT + NULLIF ( + 43, + COUNT ( * ) ) * 45 + - 98 + + + 88 AS col0
----
1925

onlyif mysql # aggregate syntax: 
query II rowsort label-7115
SELECT DISTINCT + 3 AS col1, COUNT( * ) * - 73
----
3
-73

skipif mysql # not compatible
query II rowsort label-7115
SELECT DISTINCT + 3 AS col1, COUNT ( * ) * - 73
----
3
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT - 20 + + SUM( DISTINCT - 15 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7116
SELECT - 20 + + SUM ( DISTINCT - 15 ) AS col2
----
-35

query I rowsort
SELECT + 25 - - 97
----
122

query I rowsort
SELECT ALL 31 * - 89
----
-2759

query I rowsort
SELECT + CASE + 36 WHEN - + 92 THEN NULL WHEN - - 60 THEN 82 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7120
SELECT 74 * - 78 + + 56 + - 73 DIV 46 * + + ( + 21 ) DIV - + 38 AS col1, COUNT( * ) AS col0
----
-5716
1

skipif mysql # not compatible
query II rowsort label-7120
SELECT 74 * - 78 + + 56 + - 73 / 46 * + + ( + 21 ) / - + 38 AS col1, COUNT ( * ) AS col0
----
-5716
1

query I rowsort
SELECT - 95 * + 32 AS col2
----
-3040

query I rowsort
SELECT - 54 + 64 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT + ( + NULLIF ( - 11, - COUNT( * ) * 6 ) ) + 8 + 33 + 61 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7123
SELECT + ( + NULLIF ( - 11, - COUNT ( * ) * 6 ) ) + 8 + 33 + 61 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT ALL - COUNT( * ) * 9 * - 48 col0
----
432

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL - COUNT ( * ) * 9 * - 48 col0
----
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7125
SELECT + 59 * - - CAST( 85 AS SIGNED ) col0
----
5015

skipif mysql # not compatible
query I rowsort label-7125
SELECT + 59 * - - CAST ( 85 AS INTEGER ) col0
----
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT DISTINCT 26 * 1 * + - 76 + + SUM( + 6 ) - - MAX( DISTINCT - + 42 )
----
-2012

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT 26 * 1 * + - 76 + + SUM ( + 6 ) - - MAX ( DISTINCT - + 42 )
----
-2012

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT ALL 94 * 24 + + CASE - 79 WHEN - COUNT( * ) * - 60 * + 33 + - 11 THEN - - COUNT( * ) END * - - 50 + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL 94 * 24 + + CASE - 79 WHEN - COUNT ( * ) * - 60 * + 33 + - 11 THEN - - COUNT ( * ) END * - - 50 + 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT MAX( ALL 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7128
SELECT MAX ( ALL 54 ) AS col1
----
54

query I rowsort
SELECT ALL 18 * 89
----
1602

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT + COUNT( * ) + - 70 + + 14 + + 91 + 92 * + - 28 * + 62 * + 88 + - 25
----
-14054645

skipif mysql # not compatible
query I rowsort label-7130
SELECT + COUNT ( * ) + - 70 + + 14 + + 91 + 92 * + - 28 * + 62 * + 88 + - 25
----
-14054645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7131
SELECT - CAST( 66 AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7131
SELECT - CAST ( 66 AS INTEGER ) AS col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7132
SELECT - CAST( + 85 AS SIGNED ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-7132
SELECT - CAST ( + 85 AS INTEGER ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-7133
SELECT 19 AS col1, - COUNT( * )
----
19
-1

skipif mysql # not compatible
query II rowsort label-7133
SELECT 19 AS col1, - COUNT ( * )
----
19
-1

query I rowsort
SELECT DISTINCT + 39 + + 33 * + + 82 * NULLIF ( - - 26, 31 * + + COALESCE ( 53, + 79 ) ) AS col2
----
70395

onlyif mysql # aggregate syntax: 
query II rowsort label-7135
SELECT - - COUNT( * ) col0, 4
----
1
4

skipif mysql # not compatible
query II rowsort label-7135
SELECT - - COUNT ( * ) col0, 4
----
1
4

query I rowsort
SELECT + 9 + - 33 * - 13 + - + 75 AS col2
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT COUNT( - 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7137
SELECT COUNT ( - 95 ) AS col0
----
1

query II rowsort
SELECT - - 25 * + 42 + 2 AS col1, - 72 AS col1
----
1052
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7139
SELECT ALL + + 93 DIV COUNT( + ( - 39 ) ) + - + 5
----
88

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + + 93 / COUNT ( + ( - 39 ) ) + - + 5
----
88

query I rowsort
SELECT - 36 + + 60
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT ALL - + 14 + - + 22 + - COUNT( * ) * + ( ( - ( COUNT( * ) ) ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL - + 14 + - + 22 + - COUNT ( * ) * + ( ( - ( COUNT ( * ) ) ) ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7142
SELECT DISTINCT ( CAST( 47 AS SIGNED ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT ( CAST ( 47 AS INTEGER ) ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7143
SELECT ALL + + 1 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL + + 1 / 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT - - COUNT( * ) + CAST( NULL AS SIGNED ) / 32 * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7144
SELECT - - COUNT ( * ) + CAST ( NULL AS INTEGER ) / 32 * 15
----
NULL

query I rowsort
SELECT 59 * + 20 AS col0
----
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL - - MAX( + 48 ) * 89 * + + ( - 26 ) + 88
----
-110984

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - - MAX ( + 48 ) * 89 * + + ( - 26 ) + 88
----
-110984

query I rowsort
SELECT ( + + 9 ) * + - 75
----
-675

query II rowsort
SELECT + + 23, 96 + ( 9 ) AS col0
----
23
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT COUNT( * ) * - CAST( + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-7149
SELECT COUNT ( * ) * - CAST ( + 65 AS INTEGER )
----
-65

query I rowsort
SELECT ALL - + 22 * - - 9 + - 18 - - 31 * - 68 AS col0
----
-2324

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL - COUNT( DISTINCT - + 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL - COUNT ( DISTINCT - + 40 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7152
SELECT DISTINCT - + 46 * - 40 / 21 / - 81 * + + CAST( NULL AS DECIMAL ) * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - + 46 * - 40 / 21 / - 81 * + + CAST ( NULL AS REAL ) * - 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7153
SELECT 80 * 98 * 96 DIV - - 33, COUNT( * ) AS col1
----
22807
1

skipif mysql # not compatible
query II rowsort label-7153
SELECT 80 * 98 * 96 / - - 33, COUNT ( * ) AS col1
----
22807
1

query I rowsort
SELECT 69 * - + 99 + - 61
----
-6892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7155
SELECT 5 DIV + + 52 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7155
SELECT 5 / + + 52 + + COUNT ( * )
----
1

query I rowsort
SELECT 70 * + - 40
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT COUNT( * ) + - 50 * - 71 AS col2
----
3551

skipif mysql # not compatible
query I rowsort label-7157
SELECT COUNT ( * ) + - 50 * - 71 AS col2
----
3551

onlyif mysql # DIV for integer division: 
query I rowsort label-7158
SELECT ALL 84 DIV - 75 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL 84 / - 75 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT COUNT( * ) DIV - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7159
SELECT COUNT ( * ) / - - COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7160
SELECT DISTINCT COUNT( * ) * + + CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT COUNT ( * ) * + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7161
SELECT ALL + 15 DIV - 39, - 32 AS col1
----
0
-32

skipif mysql # not compatible
query II rowsort label-7161
SELECT ALL + 15 / - 39, - 32 AS col1
----
0
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7162
SELECT ALL CASE COALESCE ( - CAST( 1 AS SIGNED ), 39 ) WHEN + - 1 + + 52 - + + COALESCE ( + + 40, CAST( NULL AS SIGNED ) - AVG ( + - COALESCE ( - 46, + 82 ) ) ) / + COUNT( * ) THEN NULL ELSE CAST( 73 AS SIGNED ) END * + + 68 + 0
----
4964

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL CASE COALESCE ( - CAST ( 1 AS INTEGER ), 39 ) WHEN + - 1 + + 52 - + + COALESCE ( + + 40, CAST ( NULL AS INTEGER ) - AVG ( + - COALESCE ( - 46, + 82 ) ) ) / + COUNT ( * ) THEN NULL ELSE CAST ( 73 AS INTEGER ) END * + + 68 + 0
----
4964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7163
SELECT COALESCE ( + CASE 99 WHEN - 13 - - 21 * 84 THEN - COUNT( * ) WHEN - + 68 * - + CASE - 15 WHEN + + 38 * - + 20 + 9 + + + 81 * 30 THEN NULL WHEN + + 84 * + 66 THEN NULL ELSE - 87 END + + 74 THEN 10 ELSE NULL END, + MIN( - 50 ) ) DIV 47 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7163
SELECT COALESCE ( + CASE 99 WHEN - 13 - - 21 * 84 THEN - COUNT ( * ) WHEN - + 68 * - + CASE - 15 WHEN + + 38 * - + 20 + 9 + + + 81 * 30 THEN NULL WHEN + + 84 * + 66 THEN NULL ELSE - 87 END + + 74 THEN 10 ELSE NULL END, + MIN ( - 50 ) ) / 47 AS col0
----
-1

query I rowsort
SELECT ( - + 36 ) * 14
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT 95 + + + ( + - ( 97 ) ) + COUNT( * ) + 13 * ( ( + 69 ) ) * - 48
----
-43057

skipif mysql # not compatible
query I rowsort label-7165
SELECT 95 + + + ( + - ( 97 ) ) + COUNT ( * ) + 13 * ( ( + 69 ) ) * - 48
----
-43057

query I rowsort
SELECT 34 * + + 72 + + 37
----
2485

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7167
SELECT ALL ( 63 ) + + ( - + CAST( + 72 AS SIGNED ) ) AS col0, - 44 DIV + 5 AS col1
----
-9
-8

skipif mysql # not compatible
query II rowsort label-7167
SELECT ALL ( 63 ) + + ( - + CAST ( + 72 AS INTEGER ) ) AS col0, - 44 / + 5 AS col1
----
-9
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT COUNT( * ) - - + 58 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7168
SELECT COUNT ( * ) - - + 58 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT + COUNT( + 71 ) * - ( - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT + COUNT ( + 71 ) * - ( - 41 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7170
SELECT - 78 + + 99 DIV - 7 + 46, CAST( NULL AS SIGNED ) + + COUNT( * ) * 31 + + - 30 AS col2
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-7170
SELECT - 78 + + 99 / - 7 + 46, CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 31 + + - 30 AS col2
----
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT - COALESCE ( + - 63, 11 - + - 8 + - + 71 - 86 * 89 - + 65, - - 30 * - 81 + MIN( ALL + 60 ) )
----
63

skipif mysql # not compatible
query I rowsort label-7171
SELECT - COALESCE ( + - 63, 11 - + - 8 + - + 71 - 86 * 89 - + 65, - - 30 * - 81 + MIN ( ALL + 60 ) )
----
63

query I rowsort
SELECT + 61 - + 44 AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7173
SELECT CAST( NULL AS SIGNED ) * + 80 * COUNT( - - 8 ) / - ( 48 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT CAST ( NULL AS INTEGER ) * + 80 * COUNT ( - - 8 ) / - ( 48 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7174
SELECT ALL - 33 - 89 * + 4 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL - 33 - 89 * + 4 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7175
SELECT + 27 DIV + CAST( 28 AS SIGNED ) * - 47 - + NULLIF ( - 89, 38 ) * + 45 + + + 26 * - - 35 - + - 5 AS col0
----
4920

skipif mysql # not compatible
query I rowsort label-7175
SELECT + 27 / + CAST ( 28 AS INTEGER ) * - 47 - + NULLIF ( - 89, 38 ) * + 45 + + + 26 * - - 35 - + - 5 AS col0
----
4920

query I rowsort
SELECT + 73 * - + 90 + 52 * + 53
----
-3814

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - SUM( DISTINCT - 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7177
SELECT - SUM ( DISTINCT - 20 ) AS col1
----
20

query I rowsort
SELECT 90 * + - ( + 42 ) * - 77 AS col1
----
291060

onlyif mysql # DIV for integer division: 
query I rowsort label-7179
SELECT ( NULLIF ( + + 33, - 52 ) ) DIV + 49 + - - 11
----
11

skipif mysql # not compatible
query I rowsort label-7179
SELECT ( NULLIF ( + + 33, - 52 ) ) / + 49 + - - 11
----
11

query I rowsort
SELECT 70 + 7 * - + 85
----
-525

query I rowsort
SELECT 15 * - 97 AS col2
----
-1455

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7182
SELECT 86 + + 10 * CAST( NULL AS DECIMAL ) + + ( + - 55 ) - + 68 DIV - - 85 + + 11 * ( - COUNT( * ) ) col2, - 87 + - COUNT( * ) * MIN( + 19 ) - - COUNT( * ) * 53 DIV + + 22 AS col2
----
NULL
-104

skipif mysql # not compatible
query II rowsort label-7182
SELECT 86 + + 10 * CAST ( NULL AS REAL ) + + ( + - 55 ) - + 68 / - - 85 + + 11 * ( - COUNT ( * ) ) col2, - 87 + - COUNT ( * ) * MIN ( + 19 ) - - COUNT ( * ) * 53 / + + 22 AS col2
----
NULL
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-7183
SELECT ALL + NULLIF ( + + 95, - 63 + + 8 ) * ( COUNT( + - CASE + 25 WHEN - 75 / - 74 THEN NULL WHEN - 56 * 61 THEN - 49 ELSE NULL END ) ) AS col1, + 57 AS col1
----
0
57

skipif mysql # not compatible
query II rowsort label-7183
SELECT ALL + NULLIF ( + + 95, - 63 + + 8 ) * ( COUNT ( + - CASE + 25 WHEN - 75 / - 74 THEN NULL WHEN - 56 * 61 THEN - 49 ELSE NULL END ) ) AS col1, + 57 AS col1
----
0
57

query I rowsort
SELECT ALL - 47 + + + 76
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT COUNT( * ) * - 85 * + 43 * + - 79 + + 38 + - 77 DIV + + 40
----
288782

skipif mysql # not compatible
query I rowsort label-7185
SELECT COUNT ( * ) * - 85 * + 43 * + - 79 + + 38 + - 77 / + + 40
----
288782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7186
SELECT ALL - 74 + - 63 + CASE + - AVG ( + 66 ) WHEN + 18 * - 71 * + COALESCE ( + 82, + 32 ) + - 1 + + 65 * + + ( 55 ) + + 41 + COUNT( * ) THEN NULL WHEN + + COALESCE ( - 92, 82 ) THEN + 15 * + - 29 + + 14 + - - 39 + 68 + + + COALESCE ( - 86, + 99 DIV + 84 ) + + 57 * + CAST( NULL AS SIGNED ) ELSE - COUNT( * ) DIV - + COALESCE ( + COUNT( * ), - 43 ) * + - ( COUNT( * ) ) + 48 END + 69 * 12 col0
----
738

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL - 74 + - 63 + CASE + - AVG ( + 66 ) WHEN + 18 * - 71 * + COALESCE ( + 82, + 32 ) + - 1 + + 65 * + + ( 55 ) + + 41 + COUNT ( * ) THEN NULL WHEN + + COALESCE ( - 92, 82 ) THEN + 15 * + - 29 + + 14 + - - 39 + 68 + + + COALESCE ( - 86, + 99 / + 84 ) + + 57 * + CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) / - + COALESCE ( + COUNT ( * ), - 43 ) * + - ( COUNT ( * ) ) + 48 END + 69 * 12 col0
----
738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7187
SELECT - 37 DIV + 66 + 64 + 30 * - 64 + + 80 * + CASE + 46 WHEN - 22 THEN NULL ELSE + COALESCE ( - 53, + - SUM( DISTINCT - + 90 ) ) - + 70 END AS col0
----
-11696

skipif mysql # not compatible
query I rowsort label-7187
SELECT - 37 / + 66 + 64 + 30 * - 64 + + 80 * + CASE + 46 WHEN - 22 THEN NULL ELSE + COALESCE ( - 53, + - SUM ( DISTINCT - + 90 ) ) - + 70 END AS col0
----
-11696

query I rowsort
SELECT ALL - NULLIF ( + - 43, + - ( + 58 ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT 11 * - COUNT( * ) + - - ( - 78 ) + + ( + 29 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7189
SELECT 11 * - COUNT ( * ) + - - ( - 78 ) + + ( + 29 ) AS col0
----
-60

query I rowsort
SELECT 21 + - - 20
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT ALL - ( - CASE + - 87 WHEN - 77 THEN NULL WHEN 15 * + MAX( 60 ) + - 9 THEN NULL ELSE - ( + 94 ) END ) AS col1, + 17
----
-94
17

skipif mysql # not compatible
query II rowsort label-7191
SELECT ALL - ( - CASE + - 87 WHEN - 77 THEN NULL WHEN 15 * + MAX ( 60 ) + - 9 THEN NULL ELSE - ( + 94 ) END ) AS col1, + 17
----
-94
17

query I rowsort
SELECT 95 * - 58 AS col0
----
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT COUNT( * ) + + - 73 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7193
SELECT COUNT ( * ) + + - 73 AS col2
----
-72

query I rowsort
SELECT 48 * - - 25 + 7
----
1207

query I rowsort
SELECT ALL - NULLIF ( 85, - - 51 * - 43 / - + 67 ) + + + 31 AS col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7196
SELECT ALL - + COALESCE ( 18, 88, + - 48 ) - 7 - - SUM( 47 ) + 55 DIV 93 col2
----
22

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - + COALESCE ( 18, 88, + - 48 ) - 7 - - SUM ( 47 ) + 55 / 93 col2
----
22

query II rowsort
SELECT - 80 AS col0, + 85 * + - 61
----
-80
-5185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7198
SELECT ALL - MAX( + + CAST( - + 81 AS SIGNED ) ) - 65
----
16

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - MAX ( + + CAST ( - + 81 AS INTEGER ) ) - 65
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7199
SELECT + 18 * - 46 DIV + 2 + + 22 AS col1
----
-392

skipif mysql # not compatible
query I rowsort label-7199
SELECT + 18 * - 46 / + 2 + + 22 AS col1
----
-392

onlyif mysql # DIV for integer division: 
query I rowsort label-7200
SELECT COALESCE ( - 23, 63 DIV 92 ) * 15 * - 97 * 39
----
1305135

skipif mysql # not compatible
query I rowsort label-7200
SELECT COALESCE ( - 23, 63 / 92 ) * 15 * - 97 * 39
----
1305135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7201
SELECT - 71 + - CAST( 50 AS SIGNED ) col2
----
-121

skipif mysql # not compatible
query I rowsort label-7201
SELECT - 71 + - CAST ( 50 AS INTEGER ) col2
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-7202
SELECT - 14 AS col0, COUNT( DISTINCT + + 33 )
----
-14
1

skipif mysql # not compatible
query II rowsort label-7202
SELECT - 14 AS col0, COUNT ( DISTINCT + + 33 )
----
-14
1

query I rowsort
SELECT + 54 * + 88 AS col1
----
4752

query I rowsort
SELECT + 98 * - 52
----
-5096

onlyif mysql # aggregate syntax: 
query II rowsort label-7205
SELECT + 68 * - + 78 + - 53 + + + 16 + + COUNT( * ) AS col1, - 7 col1
----
-5340
-7

skipif mysql # not compatible
query II rowsort label-7205
SELECT + 68 * - + 78 + - 53 + + + 16 + + COUNT ( * ) AS col1, - 7 col1
----
-5340
-7

query I rowsort
SELECT + - 40 + 86 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL + MIN( ALL 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL + MIN ( ALL 42 ) AS col0
----
42

query I rowsort
SELECT + + 65 + + 98
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT ALL - CAST( 55 AS SIGNED ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL - CAST ( 55 AS INTEGER ) col2
----
-55

query I rowsort
SELECT + - 91 + ( + ( - 8 ) ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL + MAX( - 48 ) * + + 37 - + 23
----
-1799

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL + MAX ( - 48 ) * + + 37 - + 23
----
-1799

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL MIN( ALL 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL MIN ( ALL 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT + 57 + - + 68 + + 83 + - + COUNT( * ) * - 9 + + COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7213
SELECT + 57 + - + 68 + + 83 + - + COUNT ( * ) * - 9 + + COUNT ( * ) AS col1
----
82

query I rowsort
SELECT + 0 * 5 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT ALL 40 * + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL 40 * + COUNT ( * ) AS col0
----
40

query I rowsort
SELECT + COALESCE ( 99, + 1 )
----
99

query I rowsort
SELECT ( + 5 ) AS col1
----
5

query I rowsort
SELECT ALL 27 * + 63 + + - 98
----
1603

query I rowsort
SELECT DISTINCT 96 * + + 43 + + 90
----
4218

query I rowsort
SELECT ALL - 34 * + 87 + 21 AS col0
----
-2937

query I rowsort
SELECT - 36 * 55 * - - 80 AS col2
----
-158400

query II rowsort
SELECT + 61, 97 - + 19 AS col1
----
61
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7223
SELECT ALL - 57 * - 59 * + 14 + + + CAST( - ( + COUNT( ALL + 19 ) ) AS SIGNED ) + - 64
----
47017

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL - 57 * - 59 * + 14 + + + CAST ( - ( + COUNT ( ALL + 19 ) ) AS INTEGER ) + - 64
----
47017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7224
SELECT CASE + ( + - NULLIF ( + + 81, - 65 ) ) WHEN - 0 THEN - + COUNT( * ) WHEN + - 97 / 78 * 88 * - + CAST( NULL AS SIGNED ) * - 96 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT CASE + ( + - NULLIF ( + + 81, - 65 ) ) WHEN - 0 THEN - + COUNT ( * ) WHEN + - 97 / 78 * 88 * - + CAST ( NULL AS INTEGER ) * - 96 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 1 * 48 col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7226
SELECT COALESCE ( - 29, + COUNT( ALL + 33 ), + + 0 * + - 49 DIV - + 29 + 81 + - - 68 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-7226
SELECT COALESCE ( - 29, + COUNT ( ALL + 33 ), + + 0 * + - 49 / - + 29 + 81 + - - 68 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT - COUNT( * ) * + 20 * - 43 - + - 41 * - - 2
----
942

skipif mysql # not compatible
query I rowsort label-7227
SELECT - COUNT ( * ) * + 20 * - 43 - + - 41 * - - 2
----
942

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7228
SELECT COALESCE ( 30, - CAST( NULL AS SIGNED ) DIV ( 34 ), 65 + + + 45 * - 8 )
----
30

skipif mysql # not compatible
query I rowsort label-7228
SELECT COALESCE ( 30, - CAST ( NULL AS INTEGER ) / ( 34 ), 65 + + + 45 * - 8 )
----
30

query I rowsort
SELECT ALL + ( - - 15 )
----
15

query I rowsort
SELECT COALESCE ( + - 40, - 90 )
----
-40

query I rowsort
SELECT DISTINCT + NULLIF ( - - 58, 4 + - 90 ) AS col2
----
58

query I rowsort
SELECT - 16 * 33 AS col0
----
-528

query I rowsort
SELECT - 55 * + 1 + 92
----
37

query I rowsort
SELECT - 60 + - - 78
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7235
SELECT COUNT( * ), - 53 AS col2
----
1
-53

skipif mysql # not compatible
query II rowsort label-7235
SELECT COUNT ( * ), - 53 AS col2
----
1
-53

query II rowsort
SELECT - - 96, + 90 + 38 AS col0
----
96
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7237
SELECT + 37, CAST( NULL AS SIGNED ) * 65 / + COUNT( * ) AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-7237
SELECT + 37, CAST ( NULL AS INTEGER ) * 65 / + COUNT ( * ) AS col2
----
37
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7238
SELECT - ( - SUM( - 73 ) ) DIV + 4
----
-18

skipif mysql # not compatible
query I rowsort label-7238
SELECT - ( - SUM ( - 73 ) ) / + 4
----
-18

query I rowsort
SELECT ALL - + 82 * + - COALESCE ( COALESCE ( + 54, 83, - 29 ), + + 32 + + - CASE + 22 WHEN - - 55 THEN + 81 END ) + 80
----
4508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7240
SELECT - + 36 + COALESCE ( - 45, 1 * + + 92 - + 26 - - COUNT( * ) + - + NULLIF ( - 32, - 74 ) DIV - - MIN( + 3 ) * - - 31 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7240
SELECT - + 36 + COALESCE ( - 45, 1 * + + 92 - + 26 - - COUNT ( * ) + - + NULLIF ( - 32, - 74 ) / - - MIN ( + 3 ) * - - 31 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT - + CASE - 57 WHEN AVG ( ( + 8 ) ) - - - 37 THEN 43 WHEN - SUM( 45 ) THEN NULL ELSE NULL END + 69 * + COUNT( * ) / ( + - 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7241
SELECT - + CASE - 57 WHEN AVG ( ( + 8 ) ) - - - 37 THEN 43 WHEN - SUM ( 45 ) THEN NULL ELSE NULL END + 69 * + COUNT ( * ) / ( + - 56 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7242
SELECT - 85 DIV - - 1
----
-85

skipif mysql # not compatible
query I rowsort label-7242
SELECT - 85 / - - 1
----
-85

query I rowsort
SELECT + 54 * + + 30
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT ALL - 48 + + + MAX( DISTINCT - 27 ) * + + 39 - + + 20 AS col2
----
-1121

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL - 48 + + + MAX ( DISTINCT - 27 ) * + + 39 - + + 20 AS col2
----
-1121

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT + MIN( DISTINCT 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7245
SELECT + MIN ( DISTINCT 40 ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7246
SELECT + CAST( 34 AS SIGNED ) * 29 - COUNT( * ) col2
----
985

skipif mysql # not compatible
query I rowsort label-7246
SELECT + CAST ( 34 AS INTEGER ) * 29 - COUNT ( * ) col2
----
985

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT - - 68 - + 16 / 58 * MIN( + 2 ) * 69 - + COUNT( * ) * - MAX( - + 78 ) + 38 / + - 72 + + 37 - - - ( + + COUNT( * ) ) * - 82 + 47 + ( - + ( AVG ( ALL 19 ) ) ) + 33 / - 83 * - 75 * - + ( CASE + - 12 WHEN + - NULLIF ( + 33, NULLIF ( + - 13, + ( 60 ) ) * - + 69 ) THEN MAX( DISTINCT 89 ) + - 79 WHEN 67 + 28 * COUNT( * ) THEN NULL END ) + 17 * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT - - 68 - + 16 / 58 * MIN ( + 2 ) * 69 - + COUNT ( * ) * - MAX ( - + 78 ) + 38 / + - 72 + + 37 - - - ( + + COUNT ( * ) ) * - 82 + 47 + ( - + ( AVG ( ALL 19 ) ) ) + 33 / - 83 * - 75 * - + ( CASE + - 12 WHEN + - NULLIF ( + 33, NULLIF ( + - 13, + ( 60 ) ) * - + 69 ) THEN MAX ( DISTINCT 89 ) + - 79 WHEN 67 + 28 * COUNT ( * ) THEN NULL END ) + 17 * - 15
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7248
SELECT ALL 61 + MAX( + + NULLIF ( + - 40, - 78 ) ) + - 67 DIV + - 34 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL 61 + MAX ( + + NULLIF ( + - 40, - 78 ) ) + - 67 / + - 34 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT + ( - + MIN( + 15 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-7249
SELECT + ( - + MIN ( + 15 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT 47 * 28 + + CASE - 50 WHEN + 70 * - ( - + 78 ) + COUNT( DISTINCT 12 ) + - 65 THEN ( - ( + - 4 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT 47 * 28 + + CASE - 50 WHEN + 70 * - ( - + 78 ) + COUNT ( DISTINCT 12 ) + - 65 THEN ( - ( + - 4 ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7251
SELECT + CAST( 77 AS SIGNED ) col2, 32
----
77
32

skipif mysql # not compatible
query II rowsort label-7251
SELECT + CAST ( 77 AS INTEGER ) col2, 32
----
77
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7252
SELECT + ( + COUNT( * ) ) DIV 8 + 7 + + 96 * - 15 * + + 70 * + 77
----
-7761593

skipif mysql # not compatible
query I rowsort label-7252
SELECT + ( + COUNT ( * ) ) / 8 + 7 + + 96 * - 15 * + + 70 * + 77
----
-7761593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT + CAST( + 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7253
SELECT + CAST ( + 18 AS INTEGER ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7254
SELECT ALL 54 * - + 42, 51 DIV + 51 * COUNT( * ) AS col2
----
-2268
1

skipif mysql # not compatible
query II rowsort label-7254
SELECT ALL 54 * - + 42, 51 / + 51 * COUNT ( * ) AS col2
----
-2268
1

query I rowsort
SELECT + 60 + 72
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-7256
SELECT + 77 + + - 28 + - + 9 DIV 26 - - + 39 + + 8 * + - 22
----
-88

skipif mysql # not compatible
query I rowsort label-7256
SELECT + 77 + + - 28 + - + 9 / 26 - - + 39 + + 8 * + - 22
----
-88

query I rowsort
SELECT - 83 * + ( 73 )
----
-6059

onlyif mysql # aggregate syntax: 
query II rowsort label-7258
SELECT ALL + MIN( DISTINCT 48 ) AS col0, + 4 * + - 84 * - 26 col0
----
48
8736

skipif mysql # not compatible
query II rowsort label-7258
SELECT ALL + MIN ( DISTINCT 48 ) AS col0, + 4 * + - 84 * - 26 col0
----
48
8736

onlyif mysql # aggregate syntax: 
query II rowsort label-7259
SELECT 85 * + COUNT( * ) + + - 46, - 78 AS col0
----
39
-78

skipif mysql # not compatible
query II rowsort label-7259
SELECT 85 * + COUNT ( * ) + + - 46, - 78 AS col0
----
39
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT ALL - 12 DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL - 12 / 80 AS col1
----
0

query I rowsort
SELECT + 47 * - 48
----
-2256

query I rowsort
SELECT - 82 + + 17 * - + 79
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT + 75 * 67 + - COUNT( * ) col2
----
5024

skipif mysql # not compatible
query I rowsort label-7263
SELECT + 75 * 67 + - COUNT ( * ) col2
----
5024

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7264
SELECT ALL - + 79 * - + CAST( NULL AS SIGNED ) AS col0, - 63 AS col1
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-7264
SELECT ALL - + 79 * - + CAST ( NULL AS INTEGER ) AS col0, - 63 AS col1
----
NULL
-63

query I rowsort
SELECT - ( 5 ) col1
----
-5

query I rowsort
SELECT ALL - + CASE + 97 WHEN - 29 * + 65 + 63 THEN + ( + - ( - 50 ) ) * + ( + 98 ) * - 29 END AS col2
----
NULL

query I rowsort
SELECT - 89 * - 51 AS col2
----
4539

query I rowsort
SELECT DISTINCT - 2 * ( + 46 ) col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT ALL + - SUM( DISTINCT - 42 ) + - 45
----
-3

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL + - SUM ( DISTINCT - 42 ) + - 45
----
-3

query I rowsort
SELECT DISTINCT - 52 + - 33 * - - 57 AS col1
----
-1933

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7271
SELECT 28 + - 15 AS col2, COUNT( * ) DIV + 75 AS col0
----
13
0

skipif mysql # not compatible
query II rowsort label-7271
SELECT 28 + - 15 AS col2, COUNT ( * ) / + 75 AS col0
----
13
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7272
SELECT 59 DIV - 5
----
-11

skipif mysql # not compatible
query I rowsort label-7272
SELECT 59 / - 5
----
-11

query III rowsort
SELECT - 5 + 40 col0, 4 AS col2, + 30
----
35
4
30

query I rowsort
SELECT DISTINCT 55 + - 23 AS col2
----
32

query II rowsort
SELECT ALL 93 AS col0, - 58 + + 69
----
93
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7276
SELECT 17 AS col0, 39 - + + COUNT( ALL - 41 ) * COUNT( * )
----
17
38

skipif mysql # not compatible
query II rowsort label-7276
SELECT 17 AS col0, 39 - + + COUNT ( ALL - 41 ) * COUNT ( * )
----
17
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7277
SELECT 21 + + - 67 + + ( 88 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT 21 + + - 67 + + ( 88 ) * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 25, + 77 AS col0
----
25
77

query I rowsort
SELECT 30 + - 7 AS col1
----
23

query II rowsort
SELECT ALL 58 AS col1, 38 col2
----
58
38

query I rowsort
SELECT 4 * + 27
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7282
SELECT COUNT( * ) + + + 87 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT COUNT ( * ) + + + 87 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7283
SELECT 11 / + CAST( + CASE - 46 WHEN - SUM( - 28 ) + 56 THEN + 21 * 6 END AS SIGNED ) AS col1, - 49 AS col2
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-7283
SELECT 11 / + CAST ( + CASE - 46 WHEN - SUM ( - 28 ) + 56 THEN + 21 * 6 END AS INTEGER ) AS col1, - 49 AS col2
----
NULL
-49

query I rowsort
SELECT ALL - ( NULLIF ( - + 17, ( 82 ) ) )
----
17

query I rowsort
SELECT ALL 41 - + COALESCE ( - ( 4 ), 80 )
----
45

query I rowsort
SELECT ALL 0 * 78 * - + ( + 52 ) col1
----
0

query I rowsort
SELECT 46 * + 65
----
2990

onlyif mysql # aggregate syntax: 
query II rowsort label-7288
SELECT DISTINCT COUNT( * ) * - 97 * 74 col2, + COUNT( * ) AS col2
----
-7178
1

skipif mysql # not compatible
query II rowsort label-7288
SELECT DISTINCT COUNT ( * ) * - 97 * 74 col2, + COUNT ( * ) AS col2
----
-7178
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7289
SELECT ALL - 91, 73 + + COALESCE ( + 96, + NULLIF ( 79, ( - 25 ) + + 41 + - - 29 ) DIV - - 86, 78, + - 62 ) AS col0
----
-91
169

skipif mysql # not compatible
query II rowsort label-7289
SELECT ALL - 91, 73 + + COALESCE ( + 96, + NULLIF ( 79, ( - 25 ) + + 41 + - - 29 ) / - - 86, 78, + - 62 ) AS col0
----
-91
169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7290
SELECT 47 AS col1, CAST( 57 AS SIGNED ) - 12
----
47
45

skipif mysql # not compatible
query II rowsort label-7290
SELECT 47 AS col1, CAST ( 57 AS INTEGER ) - 12
----
47
45

query I rowsort
SELECT 29 * + 78 AS col2
----
2262

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7292
SELECT 84, ( - CAST( 21 AS SIGNED ) ) AS col0
----
84
-21

skipif mysql # not compatible
query II rowsort label-7292
SELECT 84, ( - CAST ( 21 AS INTEGER ) ) AS col0
----
84
-21

query I rowsort
SELECT 33 * 17 col1
----
561

onlyif mysql # aggregate syntax: 
query II rowsort label-7294
SELECT - 19 * - 37 - COUNT( * ) AS col0, ( - 48 ) - - 11
----
702
-37

skipif mysql # not compatible
query II rowsort label-7294
SELECT - 19 * - 37 - COUNT ( * ) AS col0, ( - 48 ) - - 11
----
702
-37

query I rowsort
SELECT ALL - - ( - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT ALL - MIN( - 78 ) + - 39
----
39

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL - MIN ( - 78 ) + - 39
----
39

query I rowsort
SELECT ALL 34 * - 45
----
-1530

query I rowsort
SELECT DISTINCT + 25 + - - 56
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT 74 * - + CASE - NULLIF ( + 63, - 92 * + - 29 ) WHEN + 73 THEN NULL WHEN - 28 THEN - 50 + - 63 - + COUNT( * ) END * - 23 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT 74 * - + CASE - NULLIF ( + 63, - 92 * + - 29 ) WHEN + 73 THEN NULL WHEN - 28 THEN - 50 + - 63 - + COUNT ( * ) END * - 23 + 21
----
NULL

query I rowsort
SELECT ALL 61 + - 70
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7301
SELECT ( - - 5 ) DIV + 11 - - COUNT( * ) + - COUNT( * ) + - + COUNT( * ) * - 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7301
SELECT ( - - 5 ) / + 11 - - COUNT ( * ) + - COUNT ( * ) + - + COUNT ( * ) * - 83 AS col0
----
83

query I rowsort
SELECT - 44 + - 37 AS col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7303
SELECT 28 * 23 * 29 DIV 97 - + COUNT( * ) + + + COUNT( * ) + - 80 * - + 0 * + 1
----
192

skipif mysql # not compatible
query I rowsort label-7303
SELECT 28 * 23 * 29 / 97 - + COUNT ( * ) + + + COUNT ( * ) + - 80 * - + 0 * + 1
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT MAX( + - 33 ) + - ( - COUNT( * ) ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7304
SELECT MAX ( + - 33 ) + - ( - COUNT ( * ) ) AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7305
SELECT + COALESCE ( 28, COUNT( DISTINCT - 46 ) * + 35, + CAST( NULL AS SIGNED ) ) * + 46 * - NULLIF ( MIN( ALL 82 ), + 56 ) col0
----
-105616

skipif mysql # not compatible
query I rowsort label-7305
SELECT + COALESCE ( 28, COUNT ( DISTINCT - 46 ) * + 35, + CAST ( NULL AS INTEGER ) ) * + 46 * - NULLIF ( MIN ( ALL 82 ), + 56 ) col0
----
-105616

onlyif mysql # aggregate syntax: 
query II rowsort label-7306
SELECT + 79 AS col1, + COUNT( * ) AS col1
----
79
1

skipif mysql # not compatible
query II rowsort label-7306
SELECT + 79 AS col1, + COUNT ( * ) AS col1
----
79
1

query I rowsort
SELECT DISTINCT 45 + - 15 AS col0
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7308
SELECT 61 * + + CASE - 7 WHEN 11 * - 21 THEN 57 ELSE - 99 - CAST( NULL AS DECIMAL ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT 61 * + + CASE - 7 WHEN 11 * - 21 THEN 57 ELSE - 99 - CAST ( NULL AS REAL ) END col2
----
NULL

query I rowsort
SELECT + + ( + - ( + 25 ) ) * - + 4 + + 16 AS col2
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-7310
SELECT ALL - MAX( + 12 ) + 30 AS col1, - 14
----
18
-14

skipif mysql # not compatible
query II rowsort label-7310
SELECT ALL - MAX ( + 12 ) + 30 AS col1, - 14
----
18
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL MAX( + 91 ) - - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL MAX ( + 91 ) - - COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT - SUM( DISTINCT - 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7312
SELECT - SUM ( DISTINCT - 44 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT - COUNT( - 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-7313
SELECT - COUNT ( - 70 )
----
-1

query I rowsort
SELECT 34 + - + 71 + - ( 77 ) * + + 68 AS col0
----
-5273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7315
SELECT 11 - COUNT( * ) * 27 - + + NULLIF ( + 48, - COUNT( ALL + + 92 ) + - COUNT( * ) ) - + 88 * - CAST( NULL AS SIGNED ) * COUNT( * ) * 97 * + 2 * 93 + - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7315
SELECT 11 - COUNT ( * ) * 27 - + + NULLIF ( + 48, - COUNT ( ALL + + 92 ) + - COUNT ( * ) ) - + 88 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) * 97 * + 2 * 93 + - 93 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT 14 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT 14 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 94 * + 68 AS col0
----
6392

query I rowsort
SELECT 39 * 20
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT NULLIF ( + COUNT( * ), - 95 * + 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7319
SELECT NULLIF ( + COUNT ( * ), - 95 * + 92 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7320
SELECT - 0 - - + 74 / - 63 * + ( + ( + CAST( NULL AS DECIMAL ) ) ) / - 81 * + 90 / ( + 98 ) AS col1, + 89 AS col0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-7320
SELECT - 0 - - + 74 / - 63 * + ( + ( + CAST ( NULL AS REAL ) ) ) / - 81 * + 90 / ( + 98 ) AS col1, + 89 AS col0
----
NULL
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL - 49 * + ( + COUNT( * ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - 49 * + ( + COUNT ( * ) ) AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7322
SELECT - 70 + 38 + - 29 * - 62 + CAST( - CASE 69 WHEN - 9 THEN - + COUNT( * ) + + COUNT( * ) + - + CAST( NULL AS SIGNED ) - - 58 * - 19 WHEN CAST( NULL AS SIGNED ) * + 71 * 91 THEN NULL ELSE NULL END AS SIGNED ) - - 69 AS col2, + 64 + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7322
SELECT - 70 + 38 + - 29 * - 62 + CAST ( - CASE 69 WHEN - 9 THEN - + COUNT ( * ) + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) - - 58 * - 19 WHEN CAST ( NULL AS INTEGER ) * + 71 * 91 THEN NULL ELSE NULL END AS INTEGER ) - - 69 AS col2, + 64 + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7323
SELECT + CASE + COUNT( * ) WHEN - - CASE + 47 WHEN - CASE - COUNT( * ) WHEN + ( - + 56 ) THEN - CASE + CASE - 24 WHEN - ( + 95 ) * + - NULLIF ( - 64, + COUNT( * ) ) / 84 * + 98 + - 75 + - - 40 + 87 / + NULLIF ( + - 42, - 61 + - - 8 * + ( + - 42 ) * - 89 * ( COUNT( * ) ) * 3 ) THEN + COALESCE ( + COUNT( * ), + 32 + + 4 ) + + 71 + 89 END WHEN - 63 * - 22 THEN + ( 75 ) * AVG ( DISTINCT 84 + ( - 94 ) ) + - MAX( ALL - 74 ) * - CAST( ( COALESCE ( AVG ( DISTINCT 11 ), 58 ) ) - 85 AS SIGNED ) WHEN + COUNT( * ) + CASE - CAST( NULL AS SIGNED ) WHEN 47 * + COUNT( * ) THEN + 60 + - 38 ELSE NULL END THEN NULL ELSE - 66 END / + COUNT( * ) ELSE + ( - 89 ) * 16 END THEN NULL WHEN + 73 * COUNT( ALL ( + 68 ) ) + - 8 THEN - 54 END THEN + 41 END * + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT + CASE + COUNT ( * ) WHEN - - CASE + 47 WHEN - CASE - COUNT ( * ) WHEN + ( - + 56 ) THEN - CASE + CASE - 24 WHEN - ( + 95 ) * + - NULLIF ( - 64, + COUNT ( * ) ) / 84 * + 98 + - 75 + - - 40 + 87 / + NULLIF ( + - 42, - 61 + - - 8 * + ( + - 42 ) * - 89 * ( COUNT ( * ) ) * 3 ) THEN + COALESCE ( + COUNT ( * ), + 32 + + 4 ) + + 71 + 89 END WHEN - 63 * - 22 THEN + ( 75 ) * AVG ( DISTINCT 84 + ( - 94 ) ) + - MAX ( ALL - 74 ) * - CAST ( ( COALESCE ( AVG ( DISTINCT 11 ), 58 ) ) - 85 AS INTEGER ) WHEN + COUNT ( * ) + CASE - CAST ( NULL AS INTEGER ) WHEN 47 * + COUNT ( * ) THEN + 60 + - 38 ELSE NULL END THEN NULL ELSE - 66 END / + COUNT ( * ) ELSE + ( - 89 ) * 16 END THEN NULL WHEN + 73 * COUNT ( ALL ( + 68 ) ) + - 8 THEN - 54 END THEN + 41 END * + 52 AS col0
----
NULL

query I rowsort
SELECT - 47 * + 52
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT - 64 + COUNT( * ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-7325
SELECT - 64 + COUNT ( * ) col2
----
-63

query I rowsort
SELECT ALL - 19 * - + 35 * 92 + - - 35
----
61215

query I rowsort
SELECT ALL 96 * 97 + - 73
----
9239

onlyif mysql # aggregate syntax: 
query II rowsort label-7328
SELECT + MAX( ALL - 54 ), + 3 AS col1
----
-54
3

skipif mysql # not compatible
query II rowsort label-7328
SELECT + MAX ( ALL - 54 ), + 3 AS col1
----
-54
3

query I rowsort
SELECT DISTINCT COALESCE ( + 69, - 13 ) * 79 + - 22 AS col1
----
5429

query I rowsort
SELECT - + 63 * - ( - + 7 ) + 71
----
-370

query I rowsort
SELECT + + 58 + + 55
----
113

query I rowsort
SELECT DISTINCT + ( - 47 ) col2
----
-47

query I rowsort
SELECT 83 * 43 + - 95 * - + 32 * + + 35 * - + 98 col0
----
-10423631

query I rowsort
SELECT - 29 * - 23 + 24 + - 42 * + 44
----
-1157

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL + 39 * 84 * - COUNT( * ) + + 80
----
-3196

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL + 39 * 84 * - COUNT ( * ) + + 80
----
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT + CAST( + + 5 AS SIGNED ) * + 21 col0
----
105

skipif mysql # not compatible
query I rowsort label-7336
SELECT + CAST ( + + 5 AS INTEGER ) * + 21 col0
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7337
SELECT ALL + - COUNT( * ) * + COUNT( * ) DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) / - 57
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7338
SELECT - SUM( ALL 51 ) AS col0, 30 * + 45
----
-51
1350

skipif mysql # not compatible
query II rowsort label-7338
SELECT - SUM ( ALL 51 ) AS col0, 30 * + 45
----
-51
1350

query I rowsort
SELECT DISTINCT - ( + 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL MIN( - - 95 ) - 55 col0
----
40

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL MIN ( - - 95 ) - 55 col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT + - 31 * - ( + 30 ) * 87 * - 42 - + COUNT( DISTINCT 23 ) * - 38 AS col1
----
-3398182

skipif mysql # not compatible
query I rowsort label-7341
SELECT + - 31 * - ( + 30 ) * 87 * - 42 - + COUNT ( DISTINCT 23 ) * - 38 AS col1
----
-3398182

query I rowsort
SELECT + + 61 - 70 + - 19
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT + COUNT( * ) + + + 74 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-7343
SELECT + COUNT ( * ) + + + 74 AS col1
----
75

query I rowsort
SELECT + 14 - 2
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7345
SELECT + 73 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT + 73 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - NULLIF ( + 78, + 34 / + 60 * + 5 + + - 12 - - CASE + 85 WHEN - 16 + 98 THEN CASE - ( - 61 ) WHEN 27 THEN + 24 WHEN + 60 * - COUNT( * ) THEN COUNT( - 15 ) + - - COALESCE ( + + 76, - - ( - + 24 ) - COUNT( * ) ) + - 39 * 82 ELSE 87 * - + 60 END * - 80 END * + COUNT( * ) ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-7346
SELECT - NULLIF ( + 78, + 34 / + 60 * + 5 + + - 12 - - CASE + 85 WHEN - 16 + 98 THEN CASE - ( - 61 ) WHEN 27 THEN + 24 WHEN + 60 * - COUNT ( * ) THEN COUNT ( - 15 ) + - - COALESCE ( + + 76, - - ( - + 24 ) - COUNT ( * ) ) + - 39 * 82 ELSE 87 * - + 60 END * - 80 END * + COUNT ( * ) ) col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7347
SELECT DISTINCT 84 - + - COALESCE ( - NULLIF ( + - CAST( ( 62 ) AS SIGNED ), - ( + 83 ) ), 93, 16 ) * - + 80
----
-4876

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT 84 - + - COALESCE ( - NULLIF ( + - CAST ( ( 62 ) AS INTEGER ), - ( + 83 ) ), 93, 16 ) * - + 80
----
-4876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7348
SELECT ALL 43 DIV MIN( DISTINCT + 1 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL 43 / MIN ( DISTINCT + 1 ) AS col0
----
43

query I rowsort
SELECT + 54 + - 93 AS col1
----
-39

query I rowsort
SELECT ALL + 25 * - 73
----
-1825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7351
SELECT + 30 + - 71 * - ( - ( + 6 ) ) + - CASE CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) THEN + CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT + 30 + - 71 * - ( - ( + 6 ) ) + - CASE CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) THEN + CAST ( NULL AS REAL ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT - 24 + - ( + SUM( - - 14 ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-7352
SELECT - 24 + - ( + SUM ( - - 14 ) ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT - SUM( ALL + 95 ) * - 28
----
2660

skipif mysql # not compatible
query I rowsort label-7353
SELECT - SUM ( ALL + 95 ) * - 28
----
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT + 94 * - 52 * 27 * - COUNT( * ) * 19 AS col1
----
2507544

skipif mysql # not compatible
query I rowsort label-7354
SELECT + 94 * - 52 * 27 * - COUNT ( * ) * 19 AS col1
----
2507544

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT - COUNT( * ) + + + COALESCE ( + + 83, COUNT( * ), + 90 ) + + 18 - - + 42 + - + 66 * + 35
----
-2168

skipif mysql # not compatible
query I rowsort label-7355
SELECT - COUNT ( * ) + + + COALESCE ( + + 83, COUNT ( * ), + 90 ) + + 18 - - + 42 + - + 66 * + 35
----
-2168

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT + COUNT( * ) * - - 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7356
SELECT + COUNT ( * ) * - - 5 AS col1
----
5

query I rowsort
SELECT - ( - 84 ) + 83 AS col0
----
167

query I rowsort
SELECT ALL + 90 + CASE + 16 WHEN - ( + 23 ) * - 62 + + 27 THEN + 1 WHEN - 0 * - ( - + 7 ) + 63 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT ALL + SUM( - 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL + SUM ( - 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7360
SELECT DISTINCT + 28 DIV 61 + - MIN( ALL - 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT + 28 / 61 + - MIN ( ALL - 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - + SUM( + 14 ) * + 43
----
-602

skipif mysql # not compatible
query I rowsort label-7361
SELECT - + SUM ( + 14 ) * + 43
----
-602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7362
SELECT + ( 81 ) / - ( 32 ) * - 91 * + COUNT( * ) * - 24 - - 61 - + 24 + - 48 * - + ( - 97 ) / + COUNT( * ) + - + 38 + + COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT + ( 81 ) / - ( 32 ) * - 91 * + COUNT ( * ) * - 24 - - 61 - + 24 + - 48 * - + ( - 97 ) / + COUNT ( * ) + - + 38 + + COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - ( - 18 )
----
18

query I rowsort
SELECT - 82 * + 93 + + 35 + - 13 AS col2
----
-7604

query I rowsort
SELECT ALL + 23 * + + 5 AS col2
----
115

query I rowsort
SELECT DISTINCT + 28 * 61 * 91 + 89 AS col0
----
155517

query I rowsort
SELECT ALL - - 64 * - - 40 + + 99 AS col1
----
2659

query I rowsort
SELECT + 98 * + 95 AS col0
----
9310

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT ALL + - COUNT( DISTINCT - 46 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL + - COUNT ( DISTINCT - 46 ) AS col2
----
-1

query I rowsort
SELECT - 42 + - 29 col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT DISTINCT - COUNT( * ) * 23 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT - COUNT ( * ) * 23 AS col1
----
-23

query I rowsort
SELECT - 61 * - - NULLIF ( 20, ( + 37 ) )
----
-1220

onlyif mysql # aggregate syntax: 
query II rowsort label-7373
SELECT + MIN( DISTINCT - 89 ) * 89 * - - 40 col1, 27 AS col1
----
-316840
27

skipif mysql # not compatible
query II rowsort label-7373
SELECT + MIN ( DISTINCT - 89 ) * 89 * - - 40 col1, 27 AS col1
----
-316840
27

query I rowsort
SELECT - NULLIF ( + ( + ( - + 27 ) ), + + 88 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT + 31 * + - MIN( - 24 ) AS col0
----
744

skipif mysql # not compatible
query I rowsort label-7375
SELECT + 31 * + - MIN ( - 24 ) AS col0
----
744

query I rowsort
SELECT ALL - 21 * - 80 * - ( + 17 )
----
-28560

onlyif mysql # aggregate syntax: 
query III rowsort label-7377
SELECT 71 AS col2, + 88 AS col0, + + MAX( + 23 )
----
71
88
23

skipif mysql # not compatible
query III rowsort label-7377
SELECT 71 AS col2, + 88 AS col0, + + MAX ( + 23 )
----
71
88
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT 10 + COUNT( * ) + + 30 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-7378
SELECT 10 + COUNT ( * ) + + 30 AS col0
----
41

query II rowsort
SELECT ALL 12 col0, + 99
----
12
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT 20 * + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-7380
SELECT 20 * + - COUNT ( * )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT 55 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT 55 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 65 AS col0, 64 * 43 AS col0
----
-65
2752

onlyif mysql # DIV for integer division: 
query I rowsort label-7383
SELECT DISTINCT 24 + + 87 + 95 - + 58 DIV - - 87 col2
----
206

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT 24 + + 87 + 95 - + 58 / - - 87 col2
----
206

query I rowsort
SELECT 45 - - 85 AS col1
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7385
SELECT DISTINCT 76 * CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT 76 * CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-76

query I rowsort
SELECT DISTINCT 88 + - + 66 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT ALL CAST( NULL AS SIGNED ) + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL CAST ( NULL AS INTEGER ) + + 75
----
NULL

query I rowsort
SELECT DISTINCT + 77 + + 1 AS col1
----
78

query I rowsort
SELECT - + 68 * + CASE 40 WHEN 80 THEN - - AVG ( - + 50 ) END + - - 28 AS col2
----
NULL

query I rowsort
SELECT 11 - - 17 * - - ( 40 ) + + 92
----
783

query I rowsort
SELECT ALL 23 * - + 74 + + - 62
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT + 24 * 99 - + - COUNT( * )
----
2377

skipif mysql # not compatible
query I rowsort label-7392
SELECT + 24 * 99 - + - COUNT ( * )
----
2377

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT + + ( + + MIN( ALL CASE ( + + 26 ) WHEN 65 + - + 43 THEN + 69 / + 21 + + + ( - 78 ) WHEN - 3 * - + 99 THEN NULL END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT + + ( + + MIN ( ALL CASE ( + + 26 ) WHEN 65 + - + 43 THEN + 69 / + 21 + + + ( - 78 ) WHEN - 3 * - + 99 THEN NULL END ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 35 - - 87 AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7395
SELECT ALL - COUNT( * ) AS col2, 7 * + NULLIF ( 80, + 56 ) AS col2
----
-1
560

skipif mysql # not compatible
query II rowsort label-7395
SELECT ALL - COUNT ( * ) AS col2, 7 * + NULLIF ( 80, + 56 ) AS col2
----
-1
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7396
SELECT ALL - + 7 col2, - NULLIF ( + 46, + - 55 ) + + + COALESCE ( + - 21, 68 + 49 + + - 67 DIV 2 * - COUNT( * ) + - - CAST( NULL AS SIGNED ) * + - 63 * + - 45 * - 30 ) * 17
----
-7
-403

skipif mysql # not compatible
query II rowsort label-7396
SELECT ALL - + 7 col2, - NULLIF ( + 46, + - 55 ) + + + COALESCE ( + - 21, 68 + 49 + + - 67 / 2 * - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * + - 63 * + - 45 * - 30 ) * 17
----
-7
-403

query II rowsort
SELECT DISTINCT - 10, + 78 AS col0
----
-10
78

query I rowsort
SELECT ALL + 75 - - 13
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT + MAX( DISTINCT + - 46 ) + NULLIF ( 54, + 10 * - MAX( ALL - 39 ) - - 63 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7399
SELECT + MAX ( DISTINCT + - 46 ) + NULLIF ( 54, + 10 * - MAX ( ALL - 39 ) - - 63 ) AS col1
----
8

query I rowsort
SELECT ALL - - 36 * 76 AS col1
----
2736

query I rowsort
SELECT + 22 + - + 54
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT - 96 + - 18 - - NULLIF ( - - 48, - 72 + - COUNT( * ) * - 72 ) + - 69 * + + 81 * - + 82 AS col0
----
458232

skipif mysql # not compatible
query I rowsort label-7402
SELECT - 96 + - 18 - - NULLIF ( - - 48, - 72 + - COUNT ( * ) * - 72 ) + - 69 * + + 81 * - + 82 AS col0
----
458232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7403
SELECT + 49 DIV + COALESCE ( + - 18, COALESCE ( + - ( - 22 ), - NULLIF ( 3, 15 ) + - ( 99 ) DIV - MIN( + 17 ) * 2 ) + - 39 - - 82 + + 49, - 5 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7403
SELECT + 49 / + COALESCE ( + - 18, COALESCE ( + - ( - 22 ), - NULLIF ( 3, 15 ) + - ( 99 ) / - MIN ( + 17 ) * 2 ) + - 39 - - 82 + + 49, - 5 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT DISTINCT - COUNT( ALL + 27 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - COUNT ( ALL + 27 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7405
SELECT ALL - CAST( + NULLIF ( + CAST( + AVG ( + 75 ) AS DECIMAL ), - 20 ) AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL - CAST ( + NULLIF ( + CAST ( + AVG ( + 75 ) AS REAL ), - 20 ) AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT + MAX( ALL + 41 ) * - 65 * 57 * - - 8
----
-1215240

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT + MAX ( ALL + 41 ) * - 65 * 57 * - - 8
----
-1215240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT 40 * + AVG ( ALL CAST( NULL AS SIGNED ) ) * 31 * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT 40 * + AVG ( ALL CAST ( NULL AS INTEGER ) ) * 31 * - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 26 + + 18 AS col2
----
-8

query I rowsort
SELECT 14 - - 25 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT 20 + + - MIN( - NULLIF ( + + ( + 50 ), + 34 ) ) + - 73 + 23 * + 66
----
1515

skipif mysql # not compatible
query I rowsort label-7410
SELECT 20 + + - MIN ( - NULLIF ( + + ( + 50 ), + 34 ) ) + - 73 + 23 * + 66
----
1515

query I rowsort
SELECT + 70 * - 79 * + 40 + 42 * + 33 AS col0
----
-219814

query I rowsort
SELECT 65 + - + 11 AS col1
----
54

query I rowsort
SELECT ALL - 90 + 11 AS col2
----
-79

query I rowsort
SELECT DISTINCT - 8 + 86 * - 52 * + 88
----
-393544

query I rowsort
SELECT ALL - CASE ( + - 33 ) WHEN + + ( CASE + 90 WHEN 67 THEN + 7 ELSE NULL END ) * 3 + + 41 THEN ( - 91 ) ELSE NULL END + 21 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7416
SELECT ALL COUNT( * ) + - COUNT( * ) * - + 43 DIV - ( + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL COUNT ( * ) + - COUNT ( * ) * - + 43 / - ( + 77 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7417
SELECT 45 DIV - 19
----
-2

skipif mysql # not compatible
query I rowsort label-7417
SELECT 45 / - 19
----
-2

query II rowsort
SELECT 80 + + - 24 AS col0, 84 + 61
----
56
145

query I rowsort
SELECT DISTINCT 16 - - 27 * 8
----
232

onlyif mysql # DIV for integer division: 
query I rowsort label-7420
SELECT ALL + 65 - 76 DIV + 17
----
61

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL + 65 - 76 / + 17
----
61

query I rowsort
SELECT - 4 * + CASE 31 WHEN 20 THEN + 60 WHEN - 49 * + 40 + 90 THEN + - 54 + 74 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7422
SELECT DISTINCT + 37 DIV - 6 + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT + 37 / - 6 + - COUNT ( * )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT ALL + 15 * - ( 74 ) DIV ( ( - 36 ) )
----
30

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL + 15 * - ( 74 ) / ( ( - 36 ) )
----
30

query I rowsort
SELECT ALL - - 70 * + 0 * - 8 - - ( - 30 ) * + ( - + 0 ) AS col0
----
0

query I rowsort
SELECT ALL 41 * - + 61
----
-2501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7426
SELECT ALL - CAST( - 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - CAST ( - 52 AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT + 20 * - - ( + - COUNT( * ) ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-7427
SELECT + 20 * - - ( + - COUNT ( * ) ) col0
----
-20

query I rowsort
SELECT ALL + 19 * + 80
----
1520

query I rowsort
SELECT DISTINCT - - 12 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL + - COUNT( * ) + 57
----
56

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + - COUNT ( * ) + 57
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT CAST( NULL AS SIGNED ) - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT CAST ( NULL AS INTEGER ) - 53 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7432
SELECT - 90 * - 5 / + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) / - - 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT - 90 * - 5 / + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) / - - 3 col2
----
NULL

query I rowsort
SELECT ALL - 66 * 53
----
-3498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7434
SELECT ALL CAST( + + 8 AS SIGNED ) + 98 AS col1, + COUNT( * ) DIV - - 4 AS col1
----
106
0

skipif mysql # not compatible
query II rowsort label-7434
SELECT ALL CAST ( + + 8 AS INTEGER ) + 98 AS col1, + COUNT ( * ) / - - 4 AS col1
----
106
0

query I rowsort
SELECT - 48 * - 59 + 67
----
2899

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7436
SELECT + 98, 95 - - CAST( NULL AS SIGNED ) AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-7436
SELECT + 98, 95 - - CAST ( NULL AS INTEGER ) AS col2
----
98
NULL

query I rowsort
SELECT + NULLIF ( - 13, - 58 ) AS col2
----
-13

query I rowsort
SELECT DISTINCT - 21 + + 16 + - 88 * + - 13 AS col0
----
1139

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL + ( - 43 ) * + + CASE - 19 WHEN - ( - COUNT( * ) ) THEN + COALESCE ( 2, - + 24 ) END * 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL + ( - 43 ) * + + CASE - 19 WHEN - ( - COUNT ( * ) ) THEN + COALESCE ( 2, - + 24 ) END * 37 AS col1
----
NULL

query I rowsort
SELECT - 36 - + 65
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-7441
SELECT ALL - 4 + CASE + 78 WHEN 98 - + 38 + 8 * - + 22 * - - 92 THEN - COALESCE ( - COUNT( * ), - 59 ) / - - 61 + - NULLIF ( + - 42, - ( + - 14 ) + ( + 19 ) ) - - 59 * - 56 + + 69 ELSE NULL END AS col1, + 95 + + + 51 - - 91
----
NULL
237

skipif mysql # not compatible
query II rowsort label-7441
SELECT ALL - 4 + CASE + 78 WHEN 98 - + 38 + 8 * - + 22 * - - 92 THEN - COALESCE ( - COUNT ( * ), - 59 ) / - - 61 + - NULLIF ( + - 42, - ( + - 14 ) + ( + 19 ) ) - - 59 * - 56 + + 69 ELSE NULL END AS col1, + 95 + + + 51 - - 91
----
NULL
237

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT DISTINCT COALESCE ( + COUNT( * ), + 19, - + COUNT( * ) ) + + 95
----
96

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT COALESCE ( + COUNT ( * ), + 19, - + COUNT ( * ) ) + + 95
----
96

query I rowsort
SELECT DISTINCT 71 + - + 17 + - 41
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - COUNT( * ) / - CASE 35 WHEN 69 * - 99 * MIN( - - 45 ) + + - 74 THEN 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT - COUNT ( * ) / - CASE 35 WHEN 69 * - 99 * MIN ( - - 45 ) + + - 74 THEN 60 END
----
NULL

query I rowsort
SELECT ALL ( + - 12 ) AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7446
SELECT - COUNT( * ) + + - SUM( 6 ) DIV - 3 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7446
SELECT - COUNT ( * ) + + - SUM ( 6 ) / - 3 AS col2
----
1

query I rowsort
SELECT - 64 * + 16 col0
----
-1024

query II rowsort
SELECT - 30 AS col1, 95 + + + 51 + 46 - + 7 col2
----
-30
185

query I rowsort
SELECT - 82 + + + ( + 38 ) + - 61 * - 69 AS col0
----
4165

query I rowsort
SELECT ALL - 59 - 80 AS col0
----
-139

query I rowsort
SELECT + ( 33 ) AS col0
----
33

query II rowsort
SELECT - - 40, + 13 * + - ( 55 ) - + 48 * - 78 * + - 67 * COALESCE ( 8, + 89 ) AS col1
----
40
-2007499

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT - + COUNT( * ) * - 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7453
SELECT - + COUNT ( * ) * - 14 AS col2
----
14

query II rowsort
SELECT DISTINCT - 2 AS col1, - 42
----
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL - 8 * 19 * - + COUNT( * )
----
152

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL - 8 * 19 * - + COUNT ( * )
----
152

query I rowsort
SELECT - 15 + - NULLIF ( + + 69, 97 * - 8 )
----
-84

query I rowsort
SELECT ALL + + ( - 36 ) * + 26 AS col2
----
-936

query I rowsort
SELECT ALL ( + 69 )
----
69

query I rowsort
SELECT DISTINCT + - 44 * - 39 AS col0
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT + - COUNT( * ) * + 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-7460
SELECT + - COUNT ( * ) * + 23 AS col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT + 86 DIV + 62 - + 18 + - 78 DIV - 86 + - 62 + - + 44
----
-123

skipif mysql # not compatible
query I rowsort label-7461
SELECT + 86 / + 62 - + 18 + - 78 / - 86 + - 62 + - + 44
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT - COALESCE ( - ( + - 76 ), - 88 ) DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7462
SELECT - COALESCE ( - ( + - 76 ), - 88 ) / + 96 AS col1
----
0

query I rowsort
SELECT - + 28 + + 65
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ( - - CASE 90 WHEN 26 - - 77 * ( + ( 54 ) ) * - 29 * + ( + 83 ) * - 68 + + - 34 - + 55 THEN NULL WHEN + 49 * - 99 - - 23 THEN + COUNT( - + 3 ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT ( - - CASE 90 WHEN 26 - - 77 * ( + ( 54 ) ) * - 29 * + ( + 83 ) * - 68 + + - 34 - + 55 THEN NULL WHEN + 49 * - 99 - - 23 THEN + COUNT ( - + 3 ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7465
SELECT ALL + 50 * + ( COALESCE ( + - CAST( 81 AS SIGNED ), 98 DIV + + 1, - + 12 ) ) + + 17 - - COUNT( * ) - + - ( - 84 )
----
-4116

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL + 50 * + ( COALESCE ( + - CAST ( 81 AS INTEGER ), 98 / + + 1, - + 12 ) ) + + 17 - - COUNT ( * ) - + - ( - 84 )
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + 35 + + - 46 + - 67 * 59 * + 5 * - COUNT( * ) - + + COUNT( * )
----
19754

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + 35 + + - 46 + - 67 * 59 * + 5 * - COUNT ( * ) - + + COUNT ( * )
----
19754

onlyif mysql # DIV for integer division: 
query I rowsort label-7467
SELECT ALL + - 77 DIV + + 99 col0
----
0

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + - 77 / + + 99 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT 62 * - - 48 + 49 + - COUNT( * )
----
3024

skipif mysql # not compatible
query I rowsort label-7468
SELECT 62 * - - 48 + 49 + - COUNT ( * )
----
3024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7469
SELECT DISTINCT COUNT( * ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT COUNT ( * ) / - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7470
SELECT DISTINCT - 0 * ( + 30 ) + + - CAST( - - COUNT( * ) AS SIGNED ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT - 0 * ( + 30 ) + + - CAST ( - - COUNT ( * ) AS INTEGER ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7471
SELECT + ( - COALESCE ( - - 79, 65, - 15 DIV + 32 + + CAST( NULL AS SIGNED ) + COUNT( * ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-7471
SELECT + ( - COALESCE ( - - 79, 65, - 15 / + 32 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ALL + 28 * - + 73 + - + COUNT( * ) col0
----
-2045

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL + 28 * - + 73 + - + COUNT ( * ) col0
----
-2045

onlyif mysql # DIV for integer division: 
query I rowsort label-7473
SELECT DISTINCT - 45 * - + 59 + + 7 * 0 DIV + + 59
----
2655

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT - 45 * - + 59 + + 7 * 0 / + + 59
----
2655

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT + 96 + - COUNT( ALL + + 4 )
----
95

skipif mysql # not compatible
query I rowsort label-7474
SELECT + 96 + - COUNT ( ALL + + 4 )
----
95

query I rowsort
SELECT + ( - 81 ) + + 55
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ALL + SUM( 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL + SUM ( 74 ) AS col1
----
74

query I rowsort
SELECT COALESCE ( 17, + 59 ) col1
----
17

query I rowsort
SELECT + 0 * - 67 + + CASE 48 WHEN 25 + 46 THEN 93 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7479
SELECT CASE COALESCE ( + CASE + + COUNT( * ) WHEN - 64 + + CASE + + 25 WHEN - 57 THEN + 39 WHEN NULLIF ( - COUNT( - + NULLIF ( - + 45, + 21 ) ), - 9 + - 24 ) THEN CAST( 96 AS SIGNED ) ELSE NULL END - 88 THEN COALESCE ( - 75, + - 70 * - 35 + + 73, 8 * - 72, 97 ) END, - 30 ) WHEN + 68 * - 12 THEN + 77 * - - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT CASE COALESCE ( + CASE + + COUNT ( * ) WHEN - 64 + + CASE + + 25 WHEN - 57 THEN + 39 WHEN NULLIF ( - COUNT ( - + NULLIF ( - + 45, + 21 ) ), - 9 + - 24 ) THEN CAST ( 96 AS INTEGER ) ELSE NULL END - 88 THEN COALESCE ( - 75, + - 70 * - 35 + + 73, 8 * - 72, 97 ) END, - 30 ) WHEN + 68 * - 12 THEN + 77 * - - 42 END
----
NULL

query I rowsort
SELECT DISTINCT - 2 * - 82 + - 62 AS col1
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-7481
SELECT + COUNT( * ) * - 52, 95 AS col0
----
-52
95

skipif mysql # not compatible
query II rowsort label-7481
SELECT + COUNT ( * ) * - 52, 95 AS col0
----
-52
95

query I rowsort
SELECT + 6 + + + 58 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT - ( + 3 ) * + + SUM( - + COALESCE ( - 54, - 63 ) ) * - - 64 + + 70 AS col0
----
-10298

skipif mysql # not compatible
query I rowsort label-7483
SELECT - ( + 3 ) * + + SUM ( - + COALESCE ( - 54, - 63 ) ) * - - 64 + + 70 AS col0
----
-10298

onlyif mysql # aggregate syntax: 
query II rowsort label-7484
SELECT SUM( DISTINCT + 96 ), - 76 + - 94 AS col2
----
96
-170

skipif mysql # not compatible
query II rowsort label-7484
SELECT SUM ( DISTINCT + 96 ), - 76 + - 94 AS col2
----
96
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT DISTINCT + 28 - NULLIF ( 37, + 89 / COUNT( * ) - - COUNT( * ) * 48 ) - 73 * 98
----
-7163

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT + 28 - NULLIF ( 37, + 89 / COUNT ( * ) - - COUNT ( * ) * 48 ) - 73 * 98
----
-7163

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL NULLIF ( - 87, + 39 + SUM( - 4 ) + + NULLIF ( NULLIF ( - - 67, 85 / 53 ), 91 * COUNT( * ) * 98 ) + 57 * - ( COUNT( * ) ) * - NULLIF ( + COUNT( * ), 69 + - + 62 ) ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL NULLIF ( - 87, + 39 + SUM ( - 4 ) + + NULLIF ( NULLIF ( - - 67, 85 / 53 ), 91 * COUNT ( * ) * 98 ) + 57 * - ( COUNT ( * ) ) * - NULLIF ( + COUNT ( * ), 69 + - + 62 ) ) col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7487
SELECT + ( + CAST( 12 AS SIGNED ) ) * COALESCE ( 27, CAST( NULL AS SIGNED ) + + 40 ) + - 25 DIV 24 AS col2
----
323

skipif mysql # not compatible
query I rowsort label-7487
SELECT + ( + CAST ( 12 AS INTEGER ) ) * COALESCE ( 27, CAST ( NULL AS INTEGER ) + + 40 ) + - 25 / 24 AS col2
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT - + COUNT( * ) + 69 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-7488
SELECT - + COUNT ( * ) + 69 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7489
SELECT DISTINCT + NULLIF ( 46, CAST( NULL AS SIGNED ) + + COUNT( * ) - CASE 54 WHEN + - COUNT( * ) THEN + 11 + COUNT( * ) ELSE NULL END - - - ( - 26 ) * NULLIF ( COUNT( * ), - 98 ) ) - - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT + NULLIF ( 46, CAST ( NULL AS INTEGER ) + + COUNT ( * ) - CASE 54 WHEN + - COUNT ( * ) THEN + 11 + COUNT ( * ) ELSE NULL END - - - ( - 26 ) * NULLIF ( COUNT ( * ), - 98 ) ) - - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT - + 93 * + 66 + 52 - + 7 * CAST( NULL AS SIGNED ) + + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT - + 93 * + 66 + 52 - + 7 * CAST ( NULL AS INTEGER ) + + - 64
----
NULL

query I rowsort
SELECT + - 24 * - 5
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT - - 18 * + - 85 * - NULLIF ( + 38, - COUNT( * ) ) AS col2
----
58140

skipif mysql # not compatible
query I rowsort label-7492
SELECT - - 18 * + - 85 * - NULLIF ( + 38, - COUNT ( * ) ) AS col2
----
58140

query I rowsort
SELECT - ( 49 ) + - 73 col1
----
-122

query I rowsort
SELECT - 93 * + + ( + 33 )
----
-3069

onlyif mysql # DIV for integer division: 
query II rowsort label-7495
SELECT DISTINCT + + 17 + + - 11 * 67 DIV - 77 AS col2, 69 AS col1
----
26
69

skipif mysql # not compatible
query II rowsort label-7495
SELECT DISTINCT + + 17 + + - 11 * 67 / - 77 AS col2, 69 AS col1
----
26
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7496
SELECT ALL - CASE - 88 WHEN + 50 THEN - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL END + + - COALESCE ( COUNT( * ), - 92 / - 47 + - - ( + - 70 ), - 29, - 57 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - CASE - 88 WHEN + 50 THEN - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL END + + - COALESCE ( COUNT ( * ), - 92 / - 47 + - - ( + - 70 ), - 29, - 57 ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 85 AS col2
----
85

query I rowsort
SELECT ALL + + 75 * - 58 * 61 AS col0
----
-265350

query II rowsort
SELECT ALL - + ( 97 ) AS col1, + 76 col1
----
-97
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT DISTINCT + 69 + 7 + - COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT + 69 + 7 + - COUNT ( * ) AS col2
----
75

query I rowsort
SELECT ALL - 11 + - - 69 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL + - 75 + COUNT( * ) + - 73 + - + MIN( - - 25 ) AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL + - 75 + COUNT ( * ) + - 73 + - + MIN ( - - 25 ) AS col2
----
-172

query I rowsort
SELECT 14 - - ( 53 ) + + + 3 AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7504
SELECT COALESCE ( 79, - COUNT( - - 98 ) DIV - 46 + - 32 + + ( - - 0 ) * - 76 ) * 10 AS col0
----
790

skipif mysql # not compatible
query I rowsort label-7504
SELECT COALESCE ( 79, - COUNT ( - - 98 ) / - 46 + - 32 + + ( - - 0 ) * - 76 ) * 10 AS col0
----
790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7505
SELECT 23 + - 36 * + CAST( + + ( 54 ) AS SIGNED ) AS col0
----
-1921

skipif mysql # not compatible
query I rowsort label-7505
SELECT 23 + - 36 * + CAST ( + + ( 54 ) AS INTEGER ) AS col0
----
-1921

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT ALL - SUM( - + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL - SUM ( - + 60 )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7507
SELECT DISTINCT 84 + - 37 DIV - 63
----
84

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT 84 + - 37 / - 63
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT ALL 60 / 17 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL 60 / 17 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - CASE + 78 WHEN - - 10 + + 38 THEN NULL ELSE 88 END AS col0
----
-88

query I rowsort
SELECT 65 * + NULLIF ( 62, + 66 )
----
4030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7511
SELECT ALL 83 - MAX( DISTINCT - 82 ) + - - CAST( 31 AS SIGNED ) * 79 + - 8 * + MIN( ALL + 91 )
----
1886

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL 83 - MAX ( DISTINCT - 82 ) + - - CAST ( 31 AS INTEGER ) * 79 + - 8 * + MIN ( ALL + 91 )
----
1886

query I rowsort
SELECT 39 * - 20 AS col1
----
-780

query I rowsort
SELECT 48 + - - 48 + ( - 12 ) * + 48 col1
----
-480

query II rowsort
SELECT + 19 col1, - 84 / CASE - 28 WHEN - 85 THEN + + 90 * 82 ELSE NULL END
----
19
NULL

query I rowsort
SELECT DISTINCT + 60 * + 53
----
3180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7516
SELECT DISTINCT 32, - CAST( NULL AS SIGNED ) * - + 23 AS col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-7516
SELECT DISTINCT 32, - CAST ( NULL AS INTEGER ) * - + 23 AS col2
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT - ( + - CASE + 92 WHEN 10 / 99 THEN - 79 WHEN + 48 * + 96 THEN 74 WHEN + COUNT( * ) * - 91 + - ( 34 ) + 31 + - - 70 THEN NULL WHEN - 31 THEN - - 33 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT - ( + - CASE + 92 WHEN 10 / 99 THEN - 79 WHEN + 48 * + 96 THEN 74 WHEN + COUNT ( * ) * - 91 + - ( 34 ) + 31 + - - 70 THEN NULL WHEN - 31 THEN - - 33 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7518
SELECT CASE + 95 WHEN 9 THEN - COALESCE ( + 86, + 66 ) END + + + CAST( COUNT( * ) AS SIGNED ) * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT CASE + 95 WHEN 9 THEN - COALESCE ( + 86, + 66 ) END + + + CAST ( COUNT ( * ) AS INTEGER ) * + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT - SUM( ALL + 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT - SUM ( ALL + 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT - + ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7520
SELECT - + ( - + COUNT ( * ) )
----
1

query I rowsort
SELECT 49 * + 82 AS col0
----
4018

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7522
SELECT - MAX( ALL 33 ) + + 27 DIV + + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-7522
SELECT - MAX ( ALL 33 ) + + 27 / + + COUNT ( * )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7523
SELECT DISTINCT - 25 * - - COUNT( * ) * - 70, - CAST( + + 57 AS SIGNED ) AS col0
----
1750
-57

skipif mysql # not compatible
query II rowsort label-7523
SELECT DISTINCT - 25 * - - COUNT ( * ) * - 70, - CAST ( + + 57 AS INTEGER ) AS col0
----
1750
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7524
SELECT 82 + - 27 * + 88 + - 84 - + - 96 * - 68 AS col0, COUNT( * ) + COALESCE ( CAST( NULL AS SIGNED ), - COUNT( ALL - 47 ) DIV + 76 * 56 + - 68 * + ( + - 92 ) ) AS col1
----
-8906
6257

skipif mysql # not compatible
query II rowsort label-7524
SELECT 82 + - 27 * + 88 + - 84 - + - 96 * - 68 AS col0, COUNT ( * ) + COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( ALL - 47 ) / + 76 * 56 + - 68 * + ( + - 92 ) ) AS col1
----
-8906
6257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7525
SELECT - + 26, COUNT( + 78 ) col1, + + ( - CAST( COALESCE ( - 71, + SUM( DISTINCT 97 ) + - - 53 ) AS SIGNED ) ) AS col1
----
-26
1
71

skipif mysql # not compatible
query III rowsort label-7525
SELECT - + 26, COUNT ( + 78 ) col1, + + ( - CAST ( COALESCE ( - 71, + SUM ( DISTINCT 97 ) + - - 53 ) AS INTEGER ) ) AS col1
----
-26
1
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT ALL CAST( NULL AS SIGNED ) * + 94 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL CAST ( NULL AS INTEGER ) * + 94 + 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7527
SELECT COUNT( * ) DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-7527
SELECT COUNT ( * ) / + + 96
----
0

query I rowsort
SELECT 72 * 84 AS col2
----
6048

query I rowsort
SELECT ALL - 76 + 18 + - + 36 - + 13
----
-107

query I rowsort
SELECT 59 - 27 + 59 * - - 76
----
4516

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT - 65 * + - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT - 65 * + - COUNT ( * ) AS col2
----
65

query I rowsort
SELECT ALL + + 15 + - - 78
----
93

query I rowsort
SELECT + 0 + + 25
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT ALL + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) + - 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 50 AS col0
----
-50

query I rowsort
SELECT DISTINCT 78 + 38 * 85 AS col0
----
3308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL MIN( - + 36 ) + + + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL MIN ( - + 36 ) + + + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 66 + + - 37
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT NULLIF ( + COUNT( * ), + 76 + - 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT NULLIF ( + COUNT ( * ), + 76 + - 75 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7539
SELECT 31 + + COUNT( * ) + - 74 * - + COALESCE ( - - ( - - 64 ), 78 * 77 * - COUNT( * ), + - 74 * - COUNT( * ) ) * - + CAST( NULL AS SIGNED ) * 36 / + SUM( ALL + 28 ) * - 24 * - COUNT( * ) + + 78 - - ( + - 11 ), 88 * 86 AS col2
----
NULL
7568

skipif mysql # not compatible
query II rowsort label-7539
SELECT 31 + + COUNT ( * ) + - 74 * - + COALESCE ( - - ( - - 64 ), 78 * 77 * - COUNT ( * ), + - 74 * - COUNT ( * ) ) * - + CAST ( NULL AS INTEGER ) * 36 / + SUM ( ALL + 28 ) * - 24 * - COUNT ( * ) + + 78 - - ( + - 11 ), 88 * 86 AS col2
----
NULL
7568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7540
SELECT - COALESCE ( + COUNT( * ), - ( - 49 ), + 10 * + - CASE ( 96 ) WHEN - CAST( + AVG ( ALL 31 ) AS SIGNED ) + + 69 + - COALESCE ( + 19, 52 ) * - 89 * - 28 + 67 THEN + CASE - COUNT( * ) WHEN + 55 * + + 26 * + + 87 + - 92 + + 44 + - + CASE 93 WHEN + 2 THEN - + 14 ELSE NULL END - 25 + + + COUNT( * ) + COUNT( * ) * - - 60 * - 21 * - 64 + + + COUNT( * ) + + 56 * + - 67 * 47 - - + 70 THEN NULL WHEN + + 61 THEN 70 + 72 ELSE NULL END * + 35 DIV - 55 + - 52 WHEN - 13 THEN 28 - 84 END - + 39 DIV - 20 + - 79 * COUNT( * ) ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7540
SELECT - COALESCE ( + COUNT ( * ), - ( - 49 ), + 10 * + - CASE ( 96 ) WHEN - CAST ( + AVG ( ALL 31 ) AS INTEGER ) + + 69 + - COALESCE ( + 19, 52 ) * - 89 * - 28 + 67 THEN + CASE - COUNT ( * ) WHEN + 55 * + + 26 * + + 87 + - 92 + + 44 + - + CASE 93 WHEN + 2 THEN - + 14 ELSE NULL END - 25 + + + COUNT ( * ) + COUNT ( * ) * - - 60 * - 21 * - 64 + + + COUNT ( * ) + + 56 * + - 67 * 47 - - + 70 THEN NULL WHEN + + 61 THEN 70 + 72 ELSE NULL END * + 35 / - 55 + - 52 WHEN - 13 THEN 28 - 84 END - + 39 / - 20 + - 79 * COUNT ( * ) ) - + COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT - ( - 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL - 8 - - - 70 + + - 51 * - MIN( ALL 27 ) + + - 11 * + + 74 * - 3
----
3741

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL - 8 - - - 70 + + - 51 * - MIN ( ALL 27 ) + + - 11 * + + 74 * - 3
----
3741

query I rowsort
SELECT ALL + 45 * - + 26 AS col0
----
-1170

query I rowsort
SELECT - 85 * + 27 + 51 AS col0
----
-2244

onlyif mysql # aggregate syntax: 
query II rowsort label-7545
SELECT DISTINCT - 32 AS col0, + 90 * + COUNT( * ) * + 51 AS col0
----
-32
4590

skipif mysql # not compatible
query II rowsort label-7545
SELECT DISTINCT - 32 AS col0, + 90 * + COUNT ( * ) * + 51 AS col0
----
-32
4590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT 68 + + ( + CASE - 63 WHEN 57 THEN - + CASE - 61 WHEN - 41 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 2 THEN NULL WHEN - 86 + - + 85 * - + 84 - 45 - CASE + 53 WHEN - 38 + - 36 + - - 46 THEN NULL WHEN - + 95 THEN + 26 + - - COUNT( * ) WHEN + - 43 * 79 + 26 THEN NULL WHEN + 3 THEN NULL ELSE - 40 * - COUNT( ALL + - 54 ) * CAST( NULL AS SIGNED ) * + 58 + - - 84 END * - COUNT( * ) * 60 / - - 89 THEN - COALESCE ( + COUNT( * ), + 35 ) * + 50 END * + CAST( NULL AS SIGNED ) WHEN - + NULLIF ( - 0, CAST( - COUNT( * ) AS SIGNED ) ) THEN NULL ELSE NULL END ) + - + 47 - - 38 * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT 68 + + ( + CASE - 63 WHEN 57 THEN - + CASE - 61 WHEN - 41 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 2 THEN NULL WHEN - 86 + - + 85 * - + 84 - 45 - CASE + 53 WHEN - 38 + - 36 + - - 46 THEN NULL WHEN - + 95 THEN + 26 + - - COUNT ( * ) WHEN + - 43 * 79 + 26 THEN NULL WHEN + 3 THEN NULL ELSE - 40 * - COUNT ( ALL + - 54 ) * CAST ( NULL AS INTEGER ) * + 58 + - - 84 END * - COUNT ( * ) * 60 / - - 89 THEN - COALESCE ( + COUNT ( * ), + 35 ) * + 50 END * + CAST ( NULL AS INTEGER ) WHEN - + NULLIF ( - 0, CAST ( - COUNT ( * ) AS INTEGER ) ) THEN NULL ELSE NULL END ) + - + 47 - - 38 * + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL - 45 * - NULLIF ( 58, - + MIN( DISTINCT 98 ) ) col1
----
2610

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL - 45 * - NULLIF ( 58, - + MIN ( DISTINCT 98 ) ) col1
----
2610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7548
SELECT 39 * - - COUNT( * ) DIV 58 * - 33
----
0

skipif mysql # not compatible
query I rowsort label-7548
SELECT 39 * - - COUNT ( * ) / 58 * - 33
----
0

query I rowsort
SELECT 74 * + - 16 AS col1
----
-1184

query I rowsort
SELECT ALL - COALESCE ( - + 98, 18 )
----
98

query I rowsort
SELECT 55 + - - 87 AS col0
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-7552
SELECT + 14 AS col1, + 46 + - 82 + - ( - + 38 ) * COUNT( * )
----
14
2

skipif mysql # not compatible
query II rowsort label-7552
SELECT + 14 AS col1, + 46 + - 82 + - ( - + 38 ) * COUNT ( * )
----
14
2

query I rowsort
SELECT 64 * + - 58
----
-3712

query I rowsort
SELECT 0 * - - 26 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT ALL - 35 AS col0, + CASE - NULLIF ( COUNT( * ), + 66 * + 86 + + - 47 / - - 60 + + 48 ) WHEN - 75 / - - COUNT( * ) + + - 24 + 47 THEN - 56 END + + NULLIF ( - - MAX( DISTINCT - 70 ), - + 7 ) AS col2
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL - 35 AS col0, + CASE - NULLIF ( COUNT ( * ), + 66 * + 86 + + - 47 / - - 60 + + 48 ) WHEN - 75 / - - COUNT ( * ) + + - 24 + 47 THEN - 56 END + + NULLIF ( - - MAX ( DISTINCT - 70 ), - + 7 ) AS col2
----
-35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL - NULLIF ( ( + + 96 ), COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - NULLIF ( ( + + 96 ), COUNT ( * ) )
----
-96

query II rowsort
SELECT DISTINCT - 51 AS col2, 9 + + + 76 * 15 + - 23 AS col1
----
-51
1126

query I rowsort
SELECT ALL 23 * - + 54
----
-1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT 90 + CAST( - 18 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-7559
SELECT 90 + CAST ( - 18 AS INTEGER )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT ALL - 1 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL - 1 / 36
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7561
SELECT ALL + - 50 + + CAST( - 81 AS SIGNED ) AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + - 50 + + CAST ( - 81 AS INTEGER ) AS col2
----
-131

query I rowsort
SELECT ALL - 87 * + + 22 * - - 19 * 49 col1
----
-1781934

query II rowsort
SELECT + 16 AS col2, - 63 AS col0
----
16
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT 18 DIV + 16 + + - 97 + + MIN( ALL 93 ) + + 20 * COUNT( * ) + + 71 * 5 * 87 * - + 49 + + 3 AS col0
----
-1513345

skipif mysql # not compatible
query I rowsort label-7564
SELECT 18 / + 16 + + - 97 + + MIN ( ALL 93 ) + + 20 * COUNT ( * ) + + 71 * 5 * 87 * - + 49 + + 3 AS col0
----
-1513345

query I rowsort
SELECT - 46 * - 63 + 45 + + 51
----
2994

onlyif mysql # DIV for integer division: 
query II rowsort label-7566
SELECT DISTINCT + ( + NULLIF ( - 90, + + ( 12 ) ) ) * - 76 AS col0, - 92 DIV + COALESCE ( - NULLIF ( - + 58, 75 ), - 68 - - 17 * - 60 ) col1
----
6840
-1

skipif mysql # not compatible
query II rowsort label-7566
SELECT DISTINCT + ( + NULLIF ( - 90, + + ( 12 ) ) ) * - 76 AS col0, - 92 / + COALESCE ( - NULLIF ( - + 58, 75 ), - 68 - - 17 * - 60 ) col1
----
6840
-1

query I rowsort
SELECT ALL + 96 * - 4 + 11
----
-373

query II rowsort
SELECT + 48 * + 40 + - 28 + - + 22, + 49 AS col0
----
1870
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT + 31 + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-7569
SELECT + 31 + + COUNT ( * )
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7570
SELECT 28 + + 38 DIV - CAST( - 97 AS SIGNED ) * 92 + + 17
----
45

skipif mysql # not compatible
query I rowsort label-7570
SELECT 28 + + 38 / - CAST ( - 97 AS INTEGER ) * 92 + + 17
----
45

query II rowsort
SELECT DISTINCT + 71, 62 AS col1
----
71
62

query I rowsort
SELECT 74 + + 3 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT DISTINCT + COUNT( * ) + + 73 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT + COUNT ( * ) + + 73 AS col1
----
74

query I rowsort
SELECT ALL 41 * - 11
----
-451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT ALL 81 + + - 25 * CAST( MIN( + 49 ) AS SIGNED ) AS col1
----
-1144

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL 81 + + - 25 * CAST ( MIN ( + 49 ) AS INTEGER ) AS col1
----
-1144

query I rowsort
SELECT + + 64 * - 22 AS col0
----
-1408

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT DISTINCT CASE - + 70 WHEN COALESCE ( - 71, + 35, + 22 ) THEN NULL WHEN + - 15 * - + 9 THEN SUM( 87 ) WHEN - + COALESCE ( 54, - - ( - + 78 ), 30 + + 41 ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT CASE - + 70 WHEN COALESCE ( - 71, + 35, + 22 ) THEN NULL WHEN + - 15 * - + 9 THEN SUM ( 87 ) WHEN - + COALESCE ( 54, - - ( - + 78 ), 30 + + 41 ) THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT ( - + 78 ) AS col0
----
-78

query I rowsort
SELECT + - 83 + 14 + - 39 * + 13 * + - 25 + - + 1 * + + 11
----
12595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7580
SELECT ALL - 87, COALESCE ( + NULLIF ( - - 9, COUNT( * ) ), + CAST( NULL AS SIGNED ) * + 37 * 63 ) col2
----
-87
9

skipif mysql # not compatible
query II rowsort label-7580
SELECT ALL - 87, COALESCE ( + NULLIF ( - - 9, COUNT ( * ) ), + CAST ( NULL AS INTEGER ) * + 37 * 63 ) col2
----
-87
9

query I rowsort
SELECT ALL - 20 * 12 AS col2
----
-240

onlyif mysql # aggregate syntax: 
query II rowsort label-7582
SELECT 63 AS col0, CASE + COUNT( * ) WHEN 70 THEN NULL WHEN 83 THEN - 90 ELSE NULL END AS col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-7582
SELECT 63 AS col0, CASE + COUNT ( * ) WHEN 70 THEN NULL WHEN 83 THEN - 90 ELSE NULL END AS col0
----
63
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7583
SELECT - + COUNT( * ) + - 36 DIV + 92 + 59 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7583
SELECT - + COUNT ( * ) + - 36 / + 92 + 59 AS col0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7584
SELECT DISTINCT 26 * + COUNT( * ), - 89 DIV 85 * - 58 AS col0
----
26
58

skipif mysql # not compatible
query II rowsort label-7584
SELECT DISTINCT 26 * + COUNT ( * ), - 89 / 85 * - 58 AS col0
----
26
58

query I rowsort
SELECT ALL - 28 - - 5
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT - CASE 63 WHEN + 2 * + 58 THEN + COUNT( ALL + 74 ) * 84 ELSE 95 + - 74 + - 50 - + 76 END AS col0
----
105

skipif mysql # not compatible
query I rowsort label-7586
SELECT - CASE 63 WHEN + 2 * + 58 THEN + COUNT ( ALL + 74 ) * 84 ELSE 95 + - 74 + - 50 - + 76 END AS col0
----
105

query I rowsort
SELECT + 8 * + 82
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL COUNT( * ) * - COUNT( * ) * + + 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + + 36 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT + 25 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT + 25 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7590
SELECT ALL + ( + ( + CASE 89 WHEN + SUM( - 76 ) * + CASE 38 WHEN - - 25 + - 66 THEN 26 * - 85 + 82 WHEN - 26 THEN NULL ELSE NULL END THEN NULL WHEN - COUNT( * ) THEN - 25 ELSE 46 END ) ) AS col1, 8 AS col0
----
46
8

skipif mysql # not compatible
query II rowsort label-7590
SELECT ALL + ( + ( + CASE 89 WHEN + SUM ( - 76 ) * + CASE 38 WHEN - - 25 + - 66 THEN 26 * - 85 + 82 WHEN - 26 THEN NULL ELSE NULL END THEN NULL WHEN - COUNT ( * ) THEN - 25 ELSE 46 END ) ) AS col1, 8 AS col0
----
46
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL - 53 * + - 41 * MIN( + 81 ) - 23 * 52 AS col0
----
174817

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - 53 * + - 41 * MIN ( + 81 ) - 23 * 52 AS col0
----
174817

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT - MIN( 92 ) * + 44 + - 56 AS col1
----
-4104

skipif mysql # not compatible
query I rowsort label-7592
SELECT - MIN ( 92 ) * + 44 + - 56 AS col1
----
-4104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7593
SELECT - MIN( ALL + + 1 ) DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7593
SELECT - MIN ( ALL + + 1 ) / + 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT + 65 + + - COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7594
SELECT + 65 + + - COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT + 62 * 24 + + 51 AS col2, 26 * + COUNT( * ) + + - 69 col1
----
1539
-43

skipif mysql # not compatible
query II rowsort label-7595
SELECT + 62 * 24 + + 51 AS col2, 26 * + COUNT ( * ) + + - 69 col1
----
1539
-43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7596
SELECT COALESCE ( + 77, - CAST( NULL AS SIGNED ) + + - 54 + ( 31 ), 54 DIV - + 83 )
----
77

skipif mysql # not compatible
query I rowsort label-7596
SELECT COALESCE ( + 77, - CAST ( NULL AS INTEGER ) + + - 54 + ( 31 ), 54 / - + 83 )
----
77

query II rowsort
SELECT - 12 / - 9 / - CASE WHEN 63 BETWEEN - 33 AND 38 THEN - 47 ELSE NULL END + - + ( + + 42 ), 13 AS col1
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT + COALESCE ( - 8, - - COUNT( * ), - 64 * ( - COUNT( * ) ), + 23 + - - 65 )
----
-8

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT + COALESCE ( - 8, - - COUNT ( * ), - 64 * ( - COUNT ( * ) ), + 23 + - - 65 )
----
-8

query I rowsort
SELECT DISTINCT + COALESCE ( + 63, - 22 ) col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7600
SELECT + 11 DIV 84 - + 86, COUNT( + 82 ) * - 58 * - COUNT( * ) AS col2
----
-86
58

skipif mysql # not compatible
query II rowsort label-7600
SELECT + 11 / 84 - + 86, COUNT ( + 82 ) * - 58 * - COUNT ( * ) AS col2
----
-86
58

query I rowsort
SELECT DISTINCT + 88 * + - 40 + 37 AS col2
----
-3483

query I rowsort
SELECT - 88 - 70
----
-158

query I rowsort
SELECT ALL - 15 * 15
----
-225

query I rowsort
SELECT - 5 * - 50 AS col1
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL COUNT( * ) * + 53 + SUM( - 0 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL COUNT ( * ) * + 53 + SUM ( - 0 ) AS col0
----
53

query I rowsort
SELECT DISTINCT - 97 * - 80
----
7760

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL COUNT( - 73 ) * + + 94 * + 99 + - 85 * - COUNT( * )
----
9391

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL COUNT ( - 73 ) * + + 94 * + 99 + - 85 * - COUNT ( * )
----
9391

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT ALL + + MAX( 29 ), + 48 AS col0
----
29
48

skipif mysql # not compatible
query II rowsort label-7608
SELECT ALL + + MAX ( 29 ), + 48 AS col0
----
29
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7609
SELECT - + 20 DIV COUNT( ALL 76 ) DIV - + 93
----
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT - + 20 / COUNT ( ALL 76 ) / - + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT - NULLIF ( + 54, + - 88 ) * 52 * 61 + + 62 * COUNT( * ) * ( - 13 )
----
-172094

skipif mysql # not compatible
query I rowsort label-7610
SELECT - NULLIF ( + 54, + - 88 ) * 52 * 61 + + 62 * COUNT ( * ) * ( - 13 )
----
-172094

query I rowsort
SELECT DISTINCT + - 64 * 23 * + - 53 + + - 34 AS col0
----
77982

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT ALL + - 65 * + 71 + + COUNT( * ) AS col2, 59
----
-4614
59

skipif mysql # not compatible
query II rowsort label-7612
SELECT ALL + - 65 * + 71 + + COUNT ( * ) AS col2, 59
----
-4614
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT ALL - + MAX( + 37 ) * + 62 + 64 * + + 75 * + 99 + - CAST( ( - 73 ) AS SIGNED )
----
472979

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL - + MAX ( + 37 ) * + 62 + 64 * + + 75 * + 99 + - CAST ( ( - 73 ) AS INTEGER )
----
472979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7614
SELECT SUM( DISTINCT 81 ) * + NULLIF ( + NULLIF ( 90, - 26 ), CAST( NULL AS SIGNED ) ) + + 64
----
7354

skipif mysql # not compatible
query I rowsort label-7614
SELECT SUM ( DISTINCT 81 ) * + NULLIF ( + NULLIF ( 90, - 26 ), CAST ( NULL AS INTEGER ) ) + + 64
----
7354

onlyif mysql # DIV for integer division: 
query I rowsort label-7615
SELECT DISTINCT + 32 DIV + + 35
----
0

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT + 32 / + + 35
----
0

query I rowsort
SELECT DISTINCT 17 + 39
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT CAST( - COUNT( + - ( 9 ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7617
SELECT CAST ( - COUNT ( + - ( 9 ) ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT - - 93 + 57 + - COUNT( * )
----
149

skipif mysql # not compatible
query I rowsort label-7618
SELECT - - 93 + 57 + - COUNT ( * )
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7619
SELECT DISTINCT + 82 * 1 * SUM( DISTINCT + - NULLIF ( + 93, - 27 ) ) * - - CAST( - CASE + 98 WHEN + - 3 / + 52 THEN 80 + 21 END AS SIGNED ) + - + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT + 82 * 1 * SUM ( DISTINCT + - NULLIF ( + 93, - 27 ) ) * - - CAST ( - CASE + 98 WHEN + - 3 / + 52 THEN 80 + 21 END AS INTEGER ) + - + 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT + + 13 * - COALESCE ( + 38, SUM( + + ( + + 65 ) ) * + - MIN( + + 16 ) ) AS col0
----
-494

skipif mysql # not compatible
query I rowsort label-7620
SELECT + + 13 * - COALESCE ( + 38, SUM ( + + ( + + 65 ) ) * + - MIN ( + + 16 ) ) AS col0
----
-494

query I rowsort
SELECT + + 54 * + 16
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL - ( 22 ) * - + 81 + - ( - COUNT( * ) )
----
1783

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - ( 22 ) * - + 81 + - ( - COUNT ( * ) )
----
1783

onlyif mysql # DIV for integer division: 
query II rowsort label-7623
SELECT - - 43 + - - 43 * + 90, + 35 DIV - ( - 50 ) * + 57 + + - ( 94 ) AS col0
----
3913
-94

skipif mysql # not compatible
query II rowsort label-7623
SELECT - - 43 + - - 43 * + 90, + 35 / - ( - 50 ) * + 57 + + - ( 94 ) AS col0
----
3913
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL 1 - - MAX( - 60 ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL 1 - - MAX ( - 60 ) col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7625
SELECT - + CASE 38 WHEN 57 * - 85 / - ( + + 56 ) + - ( + COUNT( * ) ) THEN 7 WHEN - COUNT( * ) + - 72 THEN NULL WHEN ( - 61 ) THEN - 5 + 84 END + + 9 / - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT - + CASE 38 WHEN 57 * - 85 / - ( + + 56 ) + - ( + COUNT ( * ) ) THEN 7 WHEN - COUNT ( * ) + - 72 THEN NULL WHEN ( - 61 ) THEN - 5 + 84 END + + 9 / - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL - 46 * - 12 * + + 52 * + + 90 + + MAX( ( - 24 ) ) AS col2
----
2583336

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - 46 * - 12 * + + 52 * + + 90 + + MAX ( ( - 24 ) ) AS col2
----
2583336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT DISTINCT CAST( - 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT CAST ( - 3 AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT DISTINCT MAX( DISTINCT 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT MAX ( DISTINCT 73 ) AS col2
----
73

query I rowsort
SELECT + 19 * + 69 AS col0
----
1311

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT - ( + + SUM( - 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-7630
SELECT - ( + + SUM ( - 81 ) )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT + 66 + - 22 + + 41 + + 17 DIV - 52
----
85

skipif mysql # not compatible
query I rowsort label-7631
SELECT + 66 + - 22 + + 41 + + 17 / - 52
----
85

query I rowsort
SELECT + 83 * - + 19 col0
----
-1577

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7633
SELECT 18 DIV + 79 * - ( + 5 ) * - ( - 17 ) + 67 + + COUNT( * ) + - + ( + COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-7633
SELECT 18 / + 79 * - ( + 5 ) * - ( - 17 ) + 67 + + COUNT ( * ) + - + ( + COUNT ( * ) )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7634
SELECT CAST( NULL AS SIGNED ) AS col0, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-7634
SELECT CAST ( NULL AS INTEGER ) AS col0, 21
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL 30 * - + ( + 92 ) * - 31 * + 52 + + + 7 * - 57 * + NULLIF ( - ( 52 ), + COUNT( * ) ) * - ( + - 45 ) AS col2
----
5382780

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL 30 * - + ( + 92 ) * - 31 * + 52 + + + 7 * - 57 * + NULLIF ( - ( 52 ), + COUNT ( * ) ) * - ( + - 45 ) AS col2
----
5382780

query I rowsort
SELECT ALL 41 * + 86
----
3526

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT ALL 47 * + 99 * + COUNT( * ) col0, + 53
----
4653
53

skipif mysql # not compatible
query II rowsort label-7637
SELECT ALL 47 * + 99 * + COUNT ( * ) col0, + 53
----
4653
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7638
SELECT DISTINCT 82 DIV 10 + + 79 + 2 - MAX( ALL - 94 ) AS col1
----
183

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT 82 / 10 + + 79 + 2 - MAX ( ALL - 94 ) AS col1
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT CAST( - 52 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-7639
SELECT CAST ( - 52 AS INTEGER )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7640
SELECT DISTINCT - 61 DIV + - 85 + + 52 + - + 74 * MAX( + 82 ) AS col2
----
-6016

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT - 61 / + - 85 + + 52 + - + 74 * MAX ( + 82 ) AS col2
----
-6016

query I rowsort
SELECT + 64 + 45 col0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT CAST( 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-7642
SELECT CAST ( 5 AS INTEGER )
----
5

query I rowsort
SELECT + 93 + - ( 6 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT - 86 DIV 67 - + 69 + + 84 DIV + 14 + + 43 DIV ( - + 53 ) + + + 8 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7644
SELECT - 86 / 67 - + 69 + + 84 / + 14 + + 43 / ( - + 53 ) + + + 8 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT DISTINCT + - 87 * CAST( NULL AS SIGNED ) + 19 + + 56 + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT + - 87 * CAST ( NULL AS INTEGER ) + 19 + + 56 + + 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7646
SELECT 31, + CAST( NULL AS SIGNED ) * 99 AS col0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-7646
SELECT 31, + CAST ( NULL AS INTEGER ) * 99 AS col0
----
31
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7647
SELECT + 52 + - - 78 DIV + + COUNT( * ) AS col0
----
130

skipif mysql # not compatible
query I rowsort label-7647
SELECT + 52 + - - 78 / + + COUNT ( * ) AS col0
----
130

query I rowsort
SELECT DISTINCT + 77 + - 70
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-7649
SELECT ALL - - 8 * - 71 DIV - - 34 AS col0, ( - 51 ) + - 14 * + + 68
----
-16
-1003

skipif mysql # not compatible
query II rowsort label-7649
SELECT ALL - - 8 * - 71 / - - 34 AS col0, ( - 51 ) + - 14 * + + 68
----
-16
-1003

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT ALL - 2 + + + COUNT( * ) + 5 - + 59
----
-55

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL - 2 + + + COUNT ( * ) + 5 - + 59
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7651
SELECT ( - + CAST( NULL AS SIGNED ) ) * MIN( 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT ( - + CAST ( NULL AS INTEGER ) ) * MIN ( 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT + CASE - + 57 WHEN - 65 * - COALESCE ( + 88, - ( + + 91 ) ) * COUNT( * ) THEN NULL WHEN + 55 + + 95 THEN - 87 ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT + CASE - + 57 WHEN - 65 * - COALESCE ( + 88, - ( + + 91 ) ) * COUNT ( * ) THEN NULL WHEN + 55 + + 95 THEN - 87 ELSE NULL END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - - MIN( DISTINCT - 22 ) * - - 66 + + ( - NULLIF ( + ( - COUNT( * ) ), - 22 * + + 65 ) ) AS col0
----
-1451

skipif mysql # not compatible
query I rowsort label-7653
SELECT - - MIN ( DISTINCT - 22 ) * - - 66 + + ( - NULLIF ( + ( - COUNT ( * ) ), - 22 * + + 65 ) ) AS col0
----
-1451

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT 26 + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7654
SELECT 26 + COUNT ( * ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT ALL 9 AS col1, MIN( + 6 ) * - COUNT( * ) AS col0
----
9
-6

skipif mysql # not compatible
query II rowsort label-7655
SELECT ALL 9 AS col1, MIN ( + 6 ) * - COUNT ( * ) AS col0
----
9
-6

query I rowsort
SELECT - 60 * - + 46
----
2760

query I rowsort
SELECT ALL 29 * - - 75 AS col2
----
2175

onlyif mysql # aggregate syntax: 
query II rowsort label-7658
SELECT ALL 92 AS col0, + COUNT( * ) AS col0
----
92
1

skipif mysql # not compatible
query II rowsort label-7658
SELECT ALL 92 AS col0, + COUNT ( * ) AS col0
----
92
1

query I rowsort
SELECT ALL ( - - 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT ALL - 37 * + MAX( ALL 87 ) + - 41 AS col2
----
-3260

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL - 37 * + MAX ( ALL 87 ) + - 41 AS col2
----
-3260

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT ALL + + 24 DIV - 51 * - + 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + + 24 / - 51 * - + 30 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL + 20 * 4 * + - 33 * - COUNT( * ) AS col2
----
2640

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL + 20 * 4 * + - 33 * - COUNT ( * ) AS col2
----
2640

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT DISTINCT + 4 DIV + 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT + 4 / + 9 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7664
SELECT ALL + 86 * + CAST( NULL AS SIGNED ) * + + ( + - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL + 86 * + CAST ( NULL AS INTEGER ) * + + ( + - COUNT ( * ) ) AS col1
----
NULL

query II rowsort
SELECT 48 * + - 87, + 29 AS col2
----
-4176
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT CASE - 43 WHEN - 47 * + 65 - + + 26 THEN 59 * 3 / 90 * + CASE + + 66 WHEN - NULLIF ( - - COUNT( * ), + ( + - ( + COUNT( * ) ) ) ) * - 14 THEN - - 7 ELSE NULL END ELSE NULL END + + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT CASE - 43 WHEN - 47 * + 65 - + + 26 THEN 59 * 3 / 90 * + CASE + + 66 WHEN - NULLIF ( - - COUNT ( * ), + ( + - ( + COUNT ( * ) ) ) ) * - 14 THEN - - 7 ELSE NULL END ELSE NULL END + + 71 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 68 + - ( + 66 ) col1
----
2

query I rowsort
SELECT ALL - 87 + + - 12 AS col1
----
-99

query I rowsort
SELECT ALL + 23 + 52 AS col2
----
75

query I rowsort
SELECT ALL 6 + 14 * + + 83
----
1168

query I rowsort
SELECT ALL + 14 * + CASE + 25 WHEN ( 80 ) THEN 39 * + + 95 END
----
NULL

query I rowsort
SELECT ALL 82 + + 5 AS col2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7673
SELECT DISTINCT COUNT( * ) + 15 AS col2, MAX( DISTINCT + 97 ) AS col0
----
16
97

skipif mysql # not compatible
query II rowsort label-7673
SELECT DISTINCT COUNT ( * ) + 15 AS col2, MAX ( DISTINCT + 97 ) AS col0
----
16
97

query I rowsort
SELECT ALL 47 + ( - 25 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7675
SELECT ( - ( + + 45 ) ) * - CAST( NULL AS SIGNED ) col1, ( ( + COUNT( * ) ) )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7675
SELECT ( - ( + + 45 ) ) * - CAST ( NULL AS INTEGER ) col1, ( ( + COUNT ( * ) ) )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT + MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT + MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT ALL - COUNT( + 35 ) + 34 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL - COUNT ( + 35 ) + 34 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT + 41 - - + ( SUM( 2 ) ) * - 66 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-7678
SELECT + 41 - - + ( SUM ( 2 ) ) * - 66 AS col1
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7679
SELECT ALL - 48 * - CAST( NULL AS DECIMAL ) * + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL - 48 * - CAST ( NULL AS REAL ) * + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7680
SELECT DISTINCT - + ( + SUM( - COALESCE ( - 40, + 70 * 42 * 87 DIV - - 6 ) ) )
----
-40

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT - + ( + SUM ( - COALESCE ( - 40, + 70 * 42 * 87 / - - 6 ) ) )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT COALESCE ( + ( 62 ), COUNT( * ) ) + + NULLIF ( + + COUNT( * ), + ( - - NULLIF ( 55, - 90 ) ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7681
SELECT COALESCE ( + ( 62 ), COUNT ( * ) ) + + NULLIF ( + + COUNT ( * ), + ( - - NULLIF ( 55, - 90 ) ) ) AS col1
----
63

query I rowsort
SELECT - 77 * + - 67 * - ( 6 ) * + 60 AS col0
----
-1857240

query I rowsort
SELECT DISTINCT - + ( - 51 ) AS col2
----
51

query I rowsort
SELECT 10 - - 80 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT ALL - NULLIF ( - COUNT( * ), + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL - NULLIF ( - COUNT ( * ), + 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT + 57 * - 31 + - - MAX( DISTINCT + ( + + 90 ) ) AS col1
----
-1677

skipif mysql # not compatible
query I rowsort label-7686
SELECT + 57 * - 31 + - - MAX ( DISTINCT + ( + + 90 ) ) AS col1
----
-1677

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL + COUNT( * ) * - 14 + - + 30 - - 56 + + 36 * 19 * CASE 80 WHEN MIN( ALL 18 ) THEN - 53 WHEN - - NULLIF ( - + ( COUNT( * ) ), - 10 ) THEN 39 + - + 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL + COUNT ( * ) * - 14 + - + 30 - - 56 + + 36 * 19 * CASE 80 WHEN MIN ( ALL 18 ) THEN - 53 WHEN - - NULLIF ( - + ( COUNT ( * ) ), - 10 ) THEN 39 + - + 73 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7688
SELECT + NULLIF ( + ( 29 ), + - 0 * - + CAST( COALESCE ( 7, NULLIF ( NULLIF ( - 72, + - 35 ), + 93 ) * 55 + - COALESCE ( - 56, + 97 * + - 73 ) ) AS SIGNED ) + - + 60 ) * + + 69 + - + CASE WHEN 55 NOT BETWEEN + 8 + + 5 * - - 59 AND CAST( NULL AS SIGNED ) + 30 + + 66 * ( + 49 ) / 81 * 98 * - 77 THEN COUNT( + 21 ) ELSE 29 END AS col0
----
2000

skipif mysql # not compatible
query I rowsort label-7688
SELECT + NULLIF ( + ( 29 ), + - 0 * - + CAST ( COALESCE ( 7, NULLIF ( NULLIF ( - 72, + - 35 ), + 93 ) * 55 + - COALESCE ( - 56, + 97 * + - 73 ) ) AS INTEGER ) + - + 60 ) * + + 69 + - + CASE WHEN 55 NOT BETWEEN + 8 + + 5 * - - 59 AND CAST ( NULL AS INTEGER ) + 30 + + 66 * ( + 49 ) / 81 * 98 * - 77 THEN COUNT ( + 21 ) ELSE 29 END AS col0
----
2000

query I rowsort
SELECT ALL + ( + - ( - 59 ) )
----
59

query I rowsort
SELECT ALL + 91 * ( + 14 )
----
1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7691
SELECT ALL 63 * + 37 DIV 57 DIV - MIN( ALL - 50 ) AS col0, + 27 + - + 72 * + - CASE WHEN NOT 71 BETWEEN + COALESCE ( - NULLIF ( - 83, ( 5 ) ), + 79 ) AND CAST( NULL AS SIGNED ) + - 29 THEN + - COALESCE ( COUNT( * ), + NULLIF ( SUM( DISTINCT - 51 ), - - 8 * + 31 ) + + 11 ) WHEN NOT NULL IS NOT NULL THEN NULL END + 75 * + 21 + - - 78 + - 69 DIV + 35 col0, - 77 AS col1
----
0
1607
-77

skipif mysql # not compatible
query III rowsort label-7691
SELECT ALL 63 * + 37 / 57 / - MIN ( ALL - 50 ) AS col0, + 27 + - + 72 * + - CASE WHEN NOT 71 BETWEEN + COALESCE ( - NULLIF ( - 83, ( 5 ) ), + 79 ) AND CAST ( NULL AS INTEGER ) + - 29 THEN + - COALESCE ( COUNT ( * ), + NULLIF ( SUM ( DISTINCT - 51 ), - - 8 * + 31 ) + + 11 ) WHEN NOT NULL IS NOT NULL THEN NULL END + 75 * + 21 + - - 78 + - 69 / + 35 col0, - 77 AS col1
----
0
1607
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT COUNT( * ) + 66
----
67

skipif mysql # not compatible
query I rowsort label-7692
SELECT COUNT ( * ) + 66
----
67

query II rowsort
SELECT 27, + 40 AS col1
----
27
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT MIN( + 14 ) * + + ( - ( + + 32 ) ) + - - 3
----
-445

skipif mysql # not compatible
query I rowsort label-7694
SELECT MIN ( + 14 ) * + + ( - ( + + 32 ) ) + - - 3
----
-445

query I rowsort
SELECT ALL + 82 + 51
----
133

query I rowsort
SELECT ALL - 55 + 56 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ALL - 82 + + 47 + + 90 * + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - 82 + + 47 + + 90 * + + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7698
SELECT 93 + COUNT( * ) * 23 AS col2, 92 AS col1
----
116
92

skipif mysql # not compatible
query II rowsort label-7698
SELECT 93 + COUNT ( * ) * 23 AS col2, 92 AS col1
----
116
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT MAX( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT MAX ( + 85 )
----
85

query I rowsort
SELECT 73 + 22 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL MIN( 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL MIN ( 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT 83 + - 84 - - COALESCE ( + 10, COUNT( * ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7702
SELECT 83 + - 84 - - COALESCE ( + 10, COUNT ( * ) ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT COUNT( * ) + CASE - - 82 WHEN + 57 THEN MIN( DISTINCT + 33 ) WHEN + + MAX( 65 ) + + 27 + + 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT COUNT ( * ) + CASE - - 82 WHEN + 57 THEN MIN ( DISTINCT + 33 ) WHEN + + MAX ( 65 ) + + 27 + + 58 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT NULLIF ( - SUM( ALL + 13 ), 48 )
----
-13

skipif mysql # not compatible
query I rowsort label-7704
SELECT NULLIF ( - SUM ( ALL + 13 ), 48 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT 56 * + + CAST( - 69 AS SIGNED ) + - 89 AS col2
----
-3953

skipif mysql # not compatible
query I rowsort label-7705
SELECT 56 * + + CAST ( - 69 AS INTEGER ) + - 89 AS col2
----
-3953

query I rowsort
SELECT ALL - 63 * + 81 + + - 71 AS col1
----
-5174

query I rowsort
SELECT 99 * 32 * 34
----
107712

query I rowsort
SELECT ALL + 93 * - 94 * + + 50 AS col1
----
-437100

query I rowsort
SELECT 57 * + 83 + - 91 AS col0
----
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT DISTINCT + SUM( - 43 ) * + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT + SUM ( - 43 ) * + COUNT ( * ) AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT - ( - 3 ) DIV 98 + 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7711
SELECT - ( - 3 ) / 98 + 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT DISTINCT + MIN( - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT + MIN ( - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL + MIN( ALL 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL + MIN ( ALL 18 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT MIN( - 27 ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-7714
SELECT MIN ( - 27 ) col0
----
-27

query I rowsort
SELECT - 80 + 6
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7716
SELECT ALL 51 DIV MIN( 36 )
----
1

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL 51 / MIN ( 36 )
----
1

query I rowsort
SELECT - 56 * + 14
----
-784

query I rowsort
SELECT + 54 * ( ( + 91 ) ) + + 91 * + 26 AS col2
----
7280

query I rowsort
SELECT DISTINCT 86 * 38 AS col0
----
3268

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT DISTINCT - ( + 61 ) DIV 32 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT - ( + 61 ) / 32 col0
----
-1

query I rowsort
SELECT ALL 21 * - 81 AS col2
----
-1701

query I rowsort
SELECT + 26 + 65
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT 50 * NULLIF ( MIN( + 70 ), + 87 )
----
3500

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT 50 * NULLIF ( MIN ( + 70 ), + 87 )
----
3500

query I rowsort
SELECT DISTINCT 26 * 63
----
1638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL 85 + 55 * + COUNT( DISTINCT NULLIF ( + 87, - ( CAST( 51 AS SIGNED ) ) ) - 64 )
----
140

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL 85 + 55 * + COUNT ( DISTINCT NULLIF ( + 87, - ( CAST ( 51 AS INTEGER ) ) ) - 64 )
----
140

query I rowsort
SELECT + 90 * + 17
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT SUM( DISTINCT 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7727
SELECT SUM ( DISTINCT 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT SUM( 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7728
SELECT SUM ( 91 ) AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT ALL 37 DIV + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL 37 / + 74 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7730
SELECT + 43 DIV 15
----
2

skipif mysql # not compatible
query I rowsort label-7730
SELECT + 43 / 15
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7731
SELECT - COUNT( * ) + COUNT( * ) DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-7731
SELECT - COUNT ( * ) + COUNT ( * ) / 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT - CASE + 54 WHEN + 3 + 6 * ( 94 * - 90 ) THEN NULL WHEN CASE 32 WHEN 76 THEN - 18 + + COUNT( * ) / 53 WHEN - 30 THEN - COUNT( * ) ELSE NULL END * 12 THEN + 20 * 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT - CASE + 54 WHEN + 3 + 6 * ( 94 * - 90 ) THEN NULL WHEN CASE 32 WHEN 76 THEN - 18 + + COUNT ( * ) / 53 WHEN - 30 THEN - COUNT ( * ) ELSE NULL END * 12 THEN + 20 * 51 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7733
SELECT ALL - 23 + - CAST( SUM( ALL - 88 ) AS SIGNED ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - 23 + - CAST ( SUM ( ALL - 88 ) AS INTEGER ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT DISTINCT + SUM( ALL - 98 ) + 52 * + 69
----
3490

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT + SUM ( ALL - 98 ) + 52 * + 69
----
3490

query I rowsort
SELECT DISTINCT 36 + 66
----
102

query I rowsort
SELECT ALL - 51 + - 75
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT 12 * + COUNT( DISTINCT - 63 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT 12 * + COUNT ( DISTINCT - 63 ) AS col0
----
12

query I rowsort
SELECT ALL 71 + + 89
----
160

query I rowsort
SELECT - 59 * + 30
----
-1770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7740
SELECT ALL - COUNT( DISTINCT 70 ) * ( MAX( DISTINCT + 47 ) + 17 DIV 99 )
----
-47

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL - COUNT ( DISTINCT 70 ) * ( MAX ( DISTINCT + 47 ) + 17 / 99 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT ALL MIN( - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL MIN ( - 41 )
----
-41

query I rowsort
SELECT - ( - ( - 5 ) )
----
-5

query I rowsort
SELECT DISTINCT COALESCE ( 3, 47 * - 93 )
----
3

query I rowsort
SELECT ALL - 25 - 1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT - COALESCE ( - COUNT( * ), + 42 ) - 77 * 91 AS col0
----
-7006

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + 42 ) - 77 * 91 AS col0
----
-7006

query I rowsort
SELECT ALL + ( 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT DISTINCT + CASE - COUNT( * ) WHEN - 57 THEN NULL WHEN - 2 + + 39 THEN + 8 ELSE - COUNT( * ) / ( CASE + 0 WHEN NULLIF ( 69, 67 * 6 ) THEN + MAX( ALL + 10 ) ELSE NULL END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - 57 THEN NULL WHEN - 2 + + 39 THEN + 8 ELSE - COUNT ( * ) / ( CASE + 0 WHEN NULLIF ( 69, 67 * 6 ) THEN + MAX ( ALL + 10 ) ELSE NULL END ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT ALL - COUNT( * ) * 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL - COUNT ( * ) * 57 AS col0
----
-57

query I rowsort
SELECT - - 20 * + 83
----
1660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT ALL - 15 DIV - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL - 15 / - COUNT ( * )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT - COUNT( * ) / COUNT( * ) + - CAST( CASE 35 WHEN 55 THEN COALESCE ( + 34, 2 + 63 ) / ( 95 * SUM( 48 ) ) + CASE - COUNT( * ) WHEN 54 THEN - 22 END WHEN COALESCE ( 25, - COUNT( * ), + 22 * 3 + 3 ) * - ( + 20 ) THEN 11 * 22 - 60 / - 90 ELSE NULL END - 93 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT - COUNT ( * ) / COUNT ( * ) + - CAST ( CASE 35 WHEN 55 THEN COALESCE ( + 34, 2 + 63 ) / ( 95 * SUM ( 48 ) ) + CASE - COUNT ( * ) WHEN 54 THEN - 22 END WHEN COALESCE ( 25, - COUNT ( * ), + 22 * 3 + 3 ) * - ( + 20 ) THEN 11 * 22 - 60 / - 90 ELSE NULL END - 93 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT - + 46 * COUNT( * ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-7752
SELECT - + 46 * COUNT ( * ) col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT - - CASE 81 WHEN - 95 + CASE WHEN 5 NOT IN ( - CAST( - 24 AS SIGNED ) ) THEN COUNT( * ) * 41 END THEN 31 * 59 END + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT - - CASE 81 WHEN - 95 + CASE WHEN 5 NOT IN ( - CAST ( - 24 AS INTEGER ) ) THEN COUNT ( * ) * 41 END THEN 31 * 59 END + 16
----
NULL

query I rowsort
SELECT ALL - 65 * 99 AS col2
----
-6435

query I rowsort
SELECT 54 * - 44 + 22
----
-2354

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT - CASE COUNT( * ) WHEN 73 THEN NULL WHEN 51 + 23 THEN 98 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT - CASE COUNT ( * ) WHEN 73 THEN NULL WHEN 51 + 23 THEN 98 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT - COUNT( * ) * - 71 col2
----
71

skipif mysql # not compatible
query I rowsort label-7757
SELECT - COUNT ( * ) * - 71 col2
----
71

query I rowsort
SELECT ALL - 74 * - 59 AS col0
----
4366

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT - 63 * - COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT - 63 * - COUNT ( * ) AS col1
----
63

query I rowsort
SELECT - 39 + 70 AS col0
----
31

query I rowsort
SELECT DISTINCT + + 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT + - COUNT( ALL 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-7762
SELECT + - COUNT ( ALL 20 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT + CASE COUNT( * ) WHEN - CAST( - COALESCE ( 45, - 57 ) AS SIGNED ) THEN 31 WHEN + ( 90 ) THEN 85 * + 79 WHEN 47 THEN - CAST( - 53 AS SIGNED ) * + 73 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT + CASE COUNT ( * ) WHEN - CAST ( - COALESCE ( 45, - 57 ) AS INTEGER ) THEN 31 WHEN + ( 90 ) THEN 85 * + 79 WHEN 47 THEN - CAST ( - 53 AS INTEGER ) * + 73 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL 17 * CASE + MIN( + 9 ) - + COUNT( * ) WHEN + ( + 82 ) + 87 * 1 THEN NULL WHEN + 16 / - COUNT( * ) + 30 THEN 69 ELSE NULL END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL 17 * CASE + MIN ( + 9 ) - + COUNT ( * ) WHEN + ( + 82 ) + 87 * 1 THEN NULL WHEN + 16 / - COUNT ( * ) + 30 THEN 69 ELSE NULL END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT + - CAST( 85 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-7765
SELECT + - CAST ( 85 AS INTEGER )
----
-85

query I rowsort
SELECT 75 * 20 + + 20
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT - - 58 * COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7767
SELECT - - 58 * COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT + 51 * 6 + COUNT( 29 ) * 51 AS col1
----
357

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT + 51 * 6 + COUNT ( 29 ) * 51 AS col1
----
357

query I rowsort
SELECT NULLIF ( - 9, ( - 84 ) * + 95 )
----
-9

query I rowsort
SELECT ALL 29 * - + 31 + 3
----
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT DISTINCT - 82 DIV + - 10 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT - 82 / + - 10 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7772
SELECT ALL CAST( - NULLIF ( - 48, CASE 59 WHEN - MIN( ALL - 16 ) + + 49 * + MIN( 53 ) THEN NULL WHEN 56 THEN 52 ELSE NULL END ) AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL CAST ( - NULLIF ( - 48, CASE 59 WHEN - MIN ( ALL - 16 ) + + 49 * + MIN ( 53 ) THEN NULL WHEN 56 THEN 52 ELSE NULL END ) AS INTEGER ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT - CASE COUNT( CASE 71 WHEN - 56 * 73 THEN + 53 WHEN 69 + + 58 THEN - 56 END ) WHEN ( COUNT( * ) ) THEN 14 WHEN - MIN( 81 ) * + 32 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT - CASE COUNT ( CASE 71 WHEN - 56 * 73 THEN + 53 WHEN 69 + + 58 THEN - 56 END ) WHEN ( COUNT ( * ) ) THEN 14 WHEN - MIN ( 81 ) * + 32 THEN NULL END
----
NULL

query I rowsort
SELECT - ( + - 41 ) col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT - SUM( DISTINCT + + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-7775
SELECT - SUM ( DISTINCT + + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT COUNT( + 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7776
SELECT COUNT ( + 13 ) AS col2
----
1

query I rowsort
SELECT + 42 * + - 92
----
-3864

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT + 59 DIV - 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7778
SELECT + 59 / - 50 AS col1
----
-1

query I rowsort
SELECT DISTINCT 94 - - + 39 AS col2
----
133

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7780
SELECT NULLIF ( 42, 39 + 73 ) * - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT NULLIF ( 42, 39 + 73 ) * - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT NULLIF ( 15, + 73 * + 27 ) + 67
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7782
SELECT 18 + + 77 + MAX( ( + CAST( NULLIF ( 1, + ( 22 ) ) AS SIGNED ) ) ) * 58 DIV 43 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7782
SELECT 18 + + 77 + MAX ( ( + CAST ( NULLIF ( 1, + ( 22 ) ) AS INTEGER ) ) ) * 58 / 43 AS col0
----
96

query I rowsort
SELECT ALL - 20 * - + 81
----
1620

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7784
SELECT ( 32 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT ( 32 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT 37 + - + COUNT( * ) - - 56 * - 24 * - 93
----
125028

skipif mysql # not compatible
query I rowsort label-7785
SELECT 37 + - + COUNT ( * ) - - 56 * - 24 * - 93
----
125028

query I rowsort
SELECT ALL 58 * ( 43 ) * 66 AS col1
----
164604

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT ( + - NULLIF ( MIN( ALL 7 ), + 32 * 82 ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7787
SELECT ( + - NULLIF ( MIN ( ALL 7 ), + 32 * 82 ) ) AS col1
----
-7

query I rowsort
SELECT + 30 * + + ( + 41 ) AS col2
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL 0 * + - 27 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL 0 * + - 27 + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - - 7 * 69 - + 5
----
478

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT + 88 * 26 DIV NULLIF ( + 92, + 38 ) - - 43 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-7791
SELECT + 88 * 26 / NULLIF ( + 92, + 38 ) - - 43 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7792
SELECT 25 DIV - + COUNT( - 9 ) + 40 * 26
----
1015

skipif mysql # not compatible
query I rowsort label-7792
SELECT 25 / - + COUNT ( - 9 ) + 40 * 26
----
1015

query I rowsort
SELECT DISTINCT - + ( + - 8 ) col2
----
8

query I rowsort
SELECT DISTINCT - + 45 AS col2
----
-45

query I rowsort
SELECT DISTINCT 84 + + 50 AS col0
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7796
SELECT ALL + + SUM( 37 ) DIV - NULLIF ( COUNT( * ), + 62 )
----
-37

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL + + SUM ( 37 ) / - NULLIF ( COUNT ( * ), + 62 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7797
SELECT ( 75 ) DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7797
SELECT ( 75 ) / - 96 AS col1
----
0

query I rowsort
SELECT ALL + 43 + - - 91 * + 58
----
5321

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT - SUM( DISTINCT + 46 ) + 67 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7799
SELECT - SUM ( DISTINCT + 46 ) + 67 AS col0
----
21

query I rowsort
SELECT ALL + + 90 * + 25 AS col0
----
2250

onlyif mysql # DIV for integer division: 
query I rowsort label-7801
SELECT 6 + - 7 DIV 14 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7801
SELECT 6 + - 7 / 14 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7802
SELECT + CASE COUNT( * ) WHEN 59 * + 90 + 7 THEN NULL WHEN 71 THEN ( - CAST( COUNT( * ) AS SIGNED ) ) * ( 96 + SUM( ALL 18 ) ) + 85 * - CAST( ( COUNT( * ) ) * - 13 AS SIGNED ) ELSE + ( + 68 ) END DIV COUNT( 15 * 26 ) - 28 * - 47 AS col0
----
1384

skipif mysql # not compatible
query I rowsort label-7802
SELECT + CASE COUNT ( * ) WHEN 59 * + 90 + 7 THEN NULL WHEN 71 THEN ( - CAST ( COUNT ( * ) AS INTEGER ) ) * ( 96 + SUM ( ALL 18 ) ) + 85 * - CAST ( ( COUNT ( * ) ) * - 13 AS INTEGER ) ELSE + ( + 68 ) END / COUNT ( 15 * 26 ) - 28 * - 47 AS col0
----
1384

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT + - COUNT( * ) * - 35 col2
----
35

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT + - COUNT ( * ) * - 35 col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT ALL + COALESCE ( + 33, - MIN( - 56 ), 92 ) + - COUNT( * ) col1
----
32

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL + COALESCE ( + 33, - MIN ( - 56 ), 92 ) + - COUNT ( * ) col1
----
32

query I rowsort
SELECT + 81 * + - 91 + - 8
----
-7379

query II rowsort
SELECT ALL - 58 col0, + 47 + + 85 col0
----
-58
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT COUNT( DISTINCT + 96 ) + + 5 + - 9
----
-3

skipif mysql # not compatible
query I rowsort label-7807
SELECT COUNT ( DISTINCT + 96 ) + + 5 + - 9
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL + 23 + + 22 * + COUNT( * ) * - MIN( DISTINCT - 68 * 78 ) + - 85
----
116626

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + 23 + + 22 * + COUNT ( * ) * - MIN ( DISTINCT - 68 * 78 ) + - 85
----
116626

query II rowsort
SELECT 10, 55 AS col1
----
10
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT 73 * - - MIN( ALL - 2 )
----
-146

skipif mysql # not compatible
query I rowsort label-7810
SELECT 73 * - - MIN ( ALL - 2 )
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT 9 + + + 55 - 62 DIV + 56 col0
----
63

skipif mysql # not compatible
query I rowsort label-7811
SELECT 9 + + + 55 - 62 / + 56 col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7812
SELECT DISTINCT 44, - 69 * + + CAST( NULL AS SIGNED ) AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-7812
SELECT DISTINCT 44, - 69 * + + CAST ( NULL AS INTEGER ) AS col1
----
44
NULL

query I rowsort
SELECT - 31 * - 24 + - ( - 37 )
----
781

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7814
SELECT COUNT( * ) * COALESCE ( - CASE 42 WHEN MAX( ALL - 78 ) THEN NULL WHEN 40 + 27 DIV 25 THEN NULL WHEN 17 + + 27 * COUNT( 50 * + 68 - - 94 ) THEN 78 * 73 + CASE + 63 WHEN - 30 + 79 * CAST( NULL AS DECIMAL ) THEN 70 * 86 + 70 WHEN CASE 93 WHEN + 73 THEN + 12 * - CASE 77 WHEN 47 * - 67 + 57 THEN 92 + + ( + 14 ) * 19 WHEN - 27 THEN NULL WHEN + 55 THEN - 37 * 80 WHEN - 9 * ( 63 ) THEN 94 ELSE NULL END WHEN - 3 + 41 * - 61 THEN COALESCE ( + 74, - 97 * COUNT( * ), 95 ) END DIV ( + COUNT( 97 ) ) THEN + 36 ELSE NULL END END, 23 * 10 + - 71 DIV + 50 ) * 47
----
10763

skipif mysql # not compatible
query I rowsort label-7814
SELECT COUNT ( * ) * COALESCE ( - CASE 42 WHEN MAX ( ALL - 78 ) THEN NULL WHEN 40 + 27 / 25 THEN NULL WHEN 17 + + 27 * COUNT ( 50 * + 68 - - 94 ) THEN 78 * 73 + CASE + 63 WHEN - 30 + 79 * CAST ( NULL AS REAL ) THEN 70 * 86 + 70 WHEN CASE 93 WHEN + 73 THEN + 12 * - CASE 77 WHEN 47 * - 67 + 57 THEN 92 + + ( + 14 ) * 19 WHEN - 27 THEN NULL WHEN + 55 THEN - 37 * 80 WHEN - 9 * ( 63 ) THEN 94 ELSE NULL END WHEN - 3 + 41 * - 61 THEN COALESCE ( + 74, - 97 * COUNT ( * ), 95 ) END / ( + COUNT ( 97 ) ) THEN + 36 ELSE NULL END END, 23 * 10 + - 71 / + 50 ) * 47
----
10763

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL COUNT( * ) * 34
----
34

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL COUNT ( * ) * 34
----
34

query I rowsort
SELECT 99 * - 23 AS col1
----
-2277

query II rowsort
SELECT ALL 8 AS col1, - 7
----
8
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT COUNT( * ) * + + 73 col1
----
73

skipif mysql # not compatible
query I rowsort label-7818
SELECT COUNT ( * ) * + + 73 col1
----
73

query II rowsort
SELECT DISTINCT 13 AS col0, + ( 65 ) * + 89
----
13
5785

query II rowsort
SELECT ALL 65 AS col2, 82
----
65
82

query I rowsort
SELECT 98 - 14
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7822
SELECT 2 DIV 2
----
1

skipif mysql # not compatible
query I rowsort label-7822
SELECT 2 / 2
----
1

query I rowsort
SELECT + 67 * - 47
----
-3149

query I rowsort
SELECT 41 * + + 74
----
3034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT - ( - 60 ) * + - CAST( + 5 AS SIGNED )
----
-300

skipif mysql # not compatible
query I rowsort label-7825
SELECT - ( - 60 ) * + - CAST ( + 5 AS INTEGER )
----
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT ALL 11 DIV 74 * 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL 11 / 74 * 12 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7827
SELECT - 99 AS col1, COALESCE ( - COUNT( * ), + COUNT( * ), COUNT( * ) ) - - 32 AS col2
----
-99
31

skipif mysql # not compatible
query II rowsort label-7827
SELECT - 99 AS col1, COALESCE ( - COUNT ( * ), + COUNT ( * ), COUNT ( * ) ) - - 32 AS col2
----
-99
31

query I rowsort
SELECT ALL ( + 75 ) AS col0
----
75

query I rowsort
SELECT + 94 - + 72
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT ALL CAST( + 51 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL CAST ( + 51 AS INTEGER ) AS col1
----
51

query II rowsort
SELECT ALL - 51, - 58 AS col0
----
-51
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT COUNT( * ) * 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7832
SELECT COUNT ( * ) * 8 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7833
SELECT + + 97 AS col0, COUNT( * )
----
97
1

skipif mysql # not compatible
query II rowsort label-7833
SELECT + + 97 AS col0, COUNT ( * )
----
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT - 74 + + ( - COUNT( * ) ) + - CASE 22 WHEN 69 + 11 THEN - 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT - 74 + + ( - COUNT ( * ) ) + - CASE 22 WHEN 69 + 11 THEN - 98 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 87 * + 88 + - 11 AS col1
----
7645

query I rowsort
SELECT 90 + + + 21 + 16 * + 93
----
1599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7837
SELECT + MAX( + 0 ) DIV - 39 * 35 + + COUNT( * ) * 37 - 54 col0
----
-17

skipif mysql # not compatible
query I rowsort label-7837
SELECT + MAX ( + 0 ) / - 39 * 35 + + COUNT ( * ) * 37 - 54 col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7838
SELECT + + 64 / - 30 + - COUNT( * ) * + CAST( NULL AS SIGNED ) + + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT + + 64 / - 30 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 68 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 37 * + 98 + 15 * 76 AS col0
----
4766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7840
SELECT ALL SUM( - 3 ) * + 85 * - 0 + + ( + CAST( COUNT( * ) AS SIGNED ) - + COALESCE ( + 25, + 84 ) ) + + COALESCE ( 7 - - CASE AVG ( - CAST( NULL AS DECIMAL ) ) WHEN 70 THEN NULL ELSE 97 END, ( - 71 ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL SUM ( - 3 ) * + 85 * - 0 + + ( + CAST ( COUNT ( * ) AS INTEGER ) - + COALESCE ( + 25, + 84 ) ) + + COALESCE ( 7 - - CASE AVG ( - CAST ( NULL AS REAL ) ) WHEN 70 THEN NULL ELSE 97 END, ( - 71 ) ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL - COALESCE ( - - NULLIF ( - + 20, COUNT( * ) + 48 ), - 91 )
----
20

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL - COALESCE ( - - NULLIF ( - + 20, COUNT ( * ) + 48 ), - 91 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT 13 * - COUNT( * ) - - - 61 * 50 AS col0
----
-3063

skipif mysql # not compatible
query I rowsort label-7842
SELECT 13 * - COUNT ( * ) - - - 61 * 50 AS col0
----
-3063

query I rowsort
SELECT DISTINCT COALESCE ( + + 67, - 3 ) - 33 * 85
----
-2738

query I rowsort
SELECT DISTINCT + 10 * + 67 AS col1
----
670

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL 54 - - ( + + COUNT( * ) ) + - + 6 * - 48 * + 61
----
17623

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL 54 - - ( + + COUNT ( * ) ) + - + 6 * - 48 * + 61
----
17623

query I rowsort
SELECT + COALESCE ( 39, 92 + + + 30 + 2 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT ALL + 92 * + + COUNT( * ) * - - CAST( ( 16 ) AS SIGNED )
----
1472

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL + 92 * + + COUNT ( * ) * - - CAST ( ( 16 ) AS INTEGER )
----
1472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7848
SELECT - 24 - 56 + 71 + - COUNT( * ) + - 34 * ( + 92 DIV 6 ) DIV 86 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7848
SELECT - 24 - 56 + 71 + - COUNT ( * ) + - 34 * ( + 92 / 6 ) / 86 AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7849
SELECT - 83 DIV 81 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7849
SELECT - 83 / 81 col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7850
SELECT ALL COALESCE ( - CAST( + - 31 AS SIGNED ), + COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL COALESCE ( - CAST ( + - 31 AS INTEGER ), + COUNT ( * ) )
----
31

query I rowsort
SELECT DISTINCT COALESCE ( - NULLIF ( + 48, - 82 + AVG ( DISTINCT - 93 ) * + 66 ), 12 * - 84 ) AS col1
----
-48

query I rowsort
SELECT - ( - 99 ) + - 70 * - - 7 col0
----
-391

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT SUM( ALL + - 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT SUM ( ALL + - 92 ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7854
SELECT - 70 - - CAST( + COALESCE ( - COUNT( * ), + COUNT( * ) ) AS SIGNED ) * - COUNT( * ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7854
SELECT - 70 - - CAST ( + COALESCE ( - COUNT ( * ), + COUNT ( * ) ) AS INTEGER ) * - COUNT ( * ) AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7855
SELECT - COUNT( * ) * - CASE + + COALESCE ( + 75, MIN( - 84 ) ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 34 THEN 29 ELSE - NULLIF ( COUNT( * ), SUM( DISTINCT + 28 ) * COUNT( * ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7855
SELECT - COUNT ( * ) * - CASE + + COALESCE ( + 75, MIN ( - 84 ) ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 34 THEN 29 ELSE - NULLIF ( COUNT ( * ), SUM ( DISTINCT + 28 ) * COUNT ( * ) ) END
----
-1

query II rowsort
SELECT - 40 + + 44 AS col0, + 14
----
4
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT + COUNT( * ) - - 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7857
SELECT + COUNT ( * ) - - 45 AS col1
----
46

query II rowsort
SELECT - 16 + - 97 AS col0, 95
----
-113
95

query I rowsort
SELECT ALL - 30 + - + 65 * + 44
----
-2890

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT MIN( + 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7860
SELECT MIN ( + 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7861
SELECT - + COUNT( * ) DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7861
SELECT - + COUNT ( * ) / 87 AS col1
----
0

query I rowsort
SELECT ALL + - 23 + + 73 AS col2
----
50

query I rowsort
SELECT - - ( + ( + ( + 86 ) ) ) + 51
----
137

query I rowsort
SELECT ALL 18 * + + 86 + - 90 + + 69 AS col2
----
1527

query I rowsort
SELECT ALL - 28 + 5
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL - + 10 + + + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL - + 10 + + + COUNT ( * )
----
-9

query I rowsort
SELECT + 6 + - 73 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT - 45 * + COUNT( * ) * + + COUNT( * ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-7868
SELECT - 45 * + COUNT ( * ) * + + COUNT ( * ) col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT DISTINCT - ( + COUNT( * ) ) * + 5 + - ( 27 ) * + 60 AS col2
----
-1625

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT - ( + COUNT ( * ) ) * + 5 + - ( 27 ) * + 60 AS col2
----
-1625

query I rowsort
SELECT ALL ( + 69 ) * + 86 - 19 AS col1
----
5915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT + 17 + - + CAST( - - 72 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-7871
SELECT + 17 + - + CAST ( - - 72 AS INTEGER )
----
-55

query I rowsort
SELECT DISTINCT + 24 * - 23 - 22 * 17
----
-926

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT + 78 + - 35 * - ( ( COUNT( * ) ) ) * COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-7873
SELECT + 78 + - 35 * - ( ( COUNT ( * ) ) ) * COUNT ( * )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + 36 * 20 * COUNT( * ) - + ( - 40 ) + - 11 * - 7 col2
----
837

skipif mysql # not compatible
query I rowsort label-7874
SELECT + 36 * 20 * COUNT ( * ) - + ( - 40 ) + - 11 * - 7 col2
----
837

query I rowsort
SELECT + 60 + + - 86 * + 23 + + 82
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT DISTINCT CASE 48 WHEN 77 THEN NULL WHEN 44 + - 84 + - ( + 88 ) * 10 THEN - 82 ELSE NULL END * - NULLIF ( 23 * 50, ( 32 ) * - COALESCE ( 56 * 44, COALESCE ( + 74, 13 ) * - COALESCE ( COUNT( * ), 53 * - COALESCE ( COUNT( * ) / - 39, ( + COUNT( * ) ) / 98 + 47 ) ), 70 * - 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT CASE 48 WHEN 77 THEN NULL WHEN 44 + - 84 + - ( + 88 ) * 10 THEN - 82 ELSE NULL END * - NULLIF ( 23 * 50, ( 32 ) * - COALESCE ( 56 * 44, COALESCE ( + 74, 13 ) * - COALESCE ( COUNT ( * ), 53 * - COALESCE ( COUNT ( * ) / - 39, ( + COUNT ( * ) ) / 98 + 47 ) ), 70 * - 25 ) )
----
NULL

query I rowsort
SELECT + COALESCE ( 77, + 17 )
----
77

query I rowsort
SELECT + 7 * + - 94
----
-658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7879
SELECT ALL COUNT( * ) * + 35 DIV - 83 * + 52 * + + MIN( + 34 )
----
0

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL COUNT ( * ) * + 35 / - 83 * + 52 * + + MIN ( + 34 )
----
0

query II rowsort
SELECT DISTINCT + 41 col2, - 73 AS col1
----
41
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT CASE ( ( 50 ) ) WHEN + 92 THEN - 53 * + 45 WHEN - MIN( - 24 ) * + 14 + 46 THEN - CAST( - MAX( ALL + 72 ) AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT CASE ( ( 50 ) ) WHEN + 92 THEN - 53 * + 45 WHEN - MIN ( - 24 ) * + 14 + 46 THEN - CAST ( - MAX ( ALL + 72 ) AS INTEGER ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 0 + - - ( - 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT - CASE + 38 WHEN + 53 THEN 70 END * + 8 * CASE - 6 * 32 WHEN 11 THEN ( COALESCE ( + COUNT( * ), - AVG ( + 24 ), 68 ) ) END + ( COUNT( * ) + - 50 * 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT - CASE + 38 WHEN + 53 THEN 70 END * + 8 * CASE - 6 * 32 WHEN 11 THEN ( COALESCE ( + COUNT ( * ), - AVG ( + 24 ), 68 ) ) END + ( COUNT ( * ) + - 50 * 32 )
----
NULL

query I rowsort
SELECT + 41 * + 78 AS col2
----
3198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7885
SELECT - 46 + + 47 + + 9 DIV - + 86 + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7885
SELECT - 46 + + 47 + + 9 / - + 86 + + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL - CASE ( 51 ) WHEN + ( - MIN( ALL + 57 ) ) / + 61 THEN 18 WHEN - ( - COUNT( * ) ) + - 21 * - ( + 44 - - COALESCE ( 57, + 4 ) ) THEN NULL END * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL - CASE ( 51 ) WHEN + ( - MIN ( ALL + 57 ) ) / + 61 THEN 18 WHEN - ( - COUNT ( * ) ) + - 21 * - ( + 44 - - COALESCE ( 57, + 4 ) ) THEN NULL END * - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT ALL - 0 * + 51 + COUNT( * ) * - 46
----
-46

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL - 0 * + 51 + COUNT ( * ) * - 46
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT - CAST( NULLIF ( 52, + 96 ) AS SIGNED ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7888
SELECT - CAST ( NULLIF ( 52, + 96 ) AS INTEGER ) AS col2
----
-52

query I rowsort
SELECT DISTINCT + 89 + + 27 + 21 AS col0
----
137

query I rowsort
SELECT DISTINCT ( + 8 ) + 30
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT ALL + 57 + 95 DIV + 66
----
58

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + 57 + 95 / + 66
----
58

query I rowsort
SELECT - 76 * + 56
----
-4256

query II rowsort
SELECT DISTINCT - 22 AS col2, 28 - - 59
----
-22
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT ALL + 97 + ( + - 66 ) * - ( - + 10 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + 97 + ( + - 66 ) * - ( - + 10 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT - - 86 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT - - 86 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - CASE 80 WHEN 8 THEN + AVG ( - 25 ) WHEN 98 * - 98 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT - SUM( + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-7897
SELECT - SUM ( + 27 )
----
-27

query I rowsort
SELECT ALL - + 95 - + ( NULLIF ( + 99, + 90 / + 81 ) ) * 18 AS col0
----
-1877

query I rowsort
SELECT - 79 * 91 AS col0
----
-7189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7900
SELECT DISTINCT - COALESCE ( - 73, - COUNT( * ), + - 20 ) - - + 90 DIV 94
----
73

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT - COALESCE ( - 73, - COUNT ( * ), + - 20 ) - - + 90 / 94
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL COUNT( * ) * - - 79 + - 30
----
49

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL COUNT ( * ) * - - 79 + - 30
----
49

query II rowsort
SELECT + 69 AS col0, - 1
----
69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ALL - - NULLIF ( + 26, + COUNT( * ) * 93 ) - + - 26 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL - - NULLIF ( + 26, + COUNT ( * ) * 93 ) - + - 26 AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7904
SELECT + - 29 AS col2, + MAX( ALL 32 ) col1
----
-29
32

skipif mysql # not compatible
query II rowsort label-7904
SELECT + - 29 AS col2, + MAX ( ALL 32 ) col1
----
-29
32

query I rowsort
SELECT ALL + + 98 col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT + - CAST( - 94 AS SIGNED ) col2
----
94

skipif mysql # not compatible
query I rowsort label-7906
SELECT + - CAST ( - 94 AS INTEGER ) col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7907
SELECT + - 9 DIV 66 * + 42 * - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7907
SELECT + - 9 / 66 * + 42 * - + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT - 81 * + COUNT( - + CASE 97 WHEN 86 + - 42 THEN - 23 ELSE NULL END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT - 81 * + COUNT ( - + CASE 97 WHEN 86 + - 42 THEN - 23 ELSE NULL END ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT 28 * COUNT( * ) * + ( 53 ) + 56
----
1540

skipif mysql # not compatible
query I rowsort label-7909
SELECT 28 * COUNT ( * ) * + ( 53 ) + 56
----
1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7910
SELECT NULLIF ( 64, - - COUNT( * ) ) - 78 AS col1, + COUNT( * ) * + + ( - 56 ) DIV + 81 AS col0
----
-14
0

skipif mysql # not compatible
query II rowsort label-7910
SELECT NULLIF ( 64, - - COUNT ( * ) ) - 78 AS col1, + COUNT ( * ) * + + ( - 56 ) / + 81 AS col0
----
-14
0

query II rowsort
SELECT ALL - 57, 84 col0
----
-57
84

query I rowsort
SELECT ALL + 65 * - 29 AS col2
----
-1885

onlyif mysql # DIV for integer division: 
query I rowsort label-7913
SELECT ALL 1 DIV - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL 1 / - 37 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7914
SELECT 2 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT 2 / 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7915
SELECT ALL COUNT( * ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL COUNT ( * ) / - 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT 9 * COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7916
SELECT 9 * COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7917
SELECT DISTINCT - COUNT( * ), 70 * COUNT( * ) * 16 AS col1
----
-1
1120

skipif mysql # not compatible
query II rowsort label-7917
SELECT DISTINCT - COUNT ( * ), 70 * COUNT ( * ) * 16 AS col1
----
-1
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT COUNT( * ) + 12 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7918
SELECT COUNT ( * ) + 12 AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7919
SELECT ALL - MAX( 52 ) DIV ( SUM( - 56 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL - MAX ( 52 ) / ( SUM ( - 56 ) )
----
0

query I rowsort
SELECT 98 - + + 45 AS col1
----
53

query II rowsort
SELECT + 2, 0 AS col1
----
2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT 37 * - + 97 * COUNT( 74 )
----
-3589

skipif mysql # not compatible
query I rowsort label-7922
SELECT 37 * - + 97 * COUNT ( 74 )
----
-3589

query I rowsort
SELECT ALL 11 * + 93
----
1023

query I rowsort
SELECT ALL - 3 + + 54
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7925
SELECT 33 - COUNT( * ) + - + COUNT( * ) + - COALESCE ( + 30, COALESCE ( CASE COALESCE ( 96, + 31, 4 ) WHEN 29 THEN 18 WHEN 13 THEN NULL ELSE - 6 END, COUNT( * ) + - 47 ), - COALESCE ( 90, - COALESCE ( 93, 16 * ( 49 * 69 ) + + 10 * ( + 91 + COUNT( * ) ), - 81 + + ( - COALESCE ( - 95, 64 ) ), 41 ) ) DIV + 69 ) + 89 * - 72
----
-6407

skipif mysql # not compatible
query I rowsort label-7925
SELECT 33 - COUNT ( * ) + - + COUNT ( * ) + - COALESCE ( + 30, COALESCE ( CASE COALESCE ( 96, + 31, 4 ) WHEN 29 THEN 18 WHEN 13 THEN NULL ELSE - 6 END, COUNT ( * ) + - 47 ), - COALESCE ( 90, - COALESCE ( 93, 16 * ( 49 * 69 ) + + 10 * ( + 91 + COUNT ( * ) ), - 81 + + ( - COALESCE ( - 95, 64 ) ), 41 ) ) / + 69 ) + 89 * - 72
----
-6407

query II rowsort
SELECT + 68, + 70 * + 96 * + 24 * 51 + + 71 col2
----
68
8225351

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL ( COUNT( * ) ) + + 44 + 54 * 7 + - MAX( DISTINCT ( + 98 ) ) + - MIN( - 92 )
----
417

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL ( COUNT ( * ) ) + + 44 + 54 * 7 + - MAX ( DISTINCT ( + 98 ) ) + - MIN ( - 92 )
----
417

query II rowsort
SELECT ALL 25, 64 * + 17 AS col2
----
25
1088

query I rowsort
SELECT COALESCE ( - + 47, 6 ) * - 60 * - + 30 + 41 AS col2
----
-84559

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT + 14 + 44 + + - 59 * - 17 * - - ( - SUM( + 47 ) ) * 80
----
-3771222

skipif mysql # not compatible
query I rowsort label-7930
SELECT + 14 + 44 + + - 59 * - 17 * - - ( - SUM ( + 47 ) ) * 80
----
-3771222

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7931
SELECT - - COALESCE ( + - 78, + + 1 - + 30 ), ( + + 92 ) * ( 91 ) - CAST( NULL AS DECIMAL ) AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-7931
SELECT - - COALESCE ( + - 78, + + 1 - + 30 ), ( + + 92 ) * ( 91 ) - CAST ( NULL AS REAL ) AS col0
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT - 97 - - + 99 - + - 60 + - 9 + + SUM( 0 ) * 55 col1
----
53

skipif mysql # not compatible
query I rowsort label-7932
SELECT - 97 - - + 99 - + - 60 + - 9 + + SUM ( 0 ) * 55 col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT 39 - + SUM( 83 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7933
SELECT 39 - + SUM ( 83 ) AS col1
----
-44

query I rowsort
SELECT ALL + + 43 - + - 71 + + 17 AS col2
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7935
SELECT ALL - + ( - COUNT( * ) ) * + 2 * 18 * + CAST( + 36 AS SIGNED )
----
1296

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL - + ( - COUNT ( * ) ) * + 2 * 18 * + CAST ( + 36 AS INTEGER )
----
1296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7936
SELECT - 63 DIV - 16 + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7936
SELECT - 63 / - 16 + COUNT ( * ) AS col1
----
4

query I rowsort
SELECT - - 88 col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT COUNT( * ) + - + 29 - 94 + - + MIN( - 17 ) - - 48 * + 16
----
663

skipif mysql # not compatible
query I rowsort label-7938
SELECT COUNT ( * ) + - + 29 - 94 + - + MIN ( - 17 ) - - 48 * + 16
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL + MAX( DISTINCT - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL + MAX ( DISTINCT - 49 ) AS col0
----
-49

query I rowsort
SELECT 88 + + ( - 84 )
----
4

query II rowsort
SELECT - - 75 AS col1, + 61 AS col2
----
75
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7942
SELECT - CAST( + + 69 AS SIGNED ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7942
SELECT - CAST ( + + 69 AS INTEGER ) AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT 34 + - - CAST( - 13 AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7943
SELECT 34 + - - CAST ( - 13 AS INTEGER ) AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7944
SELECT ALL 21 AS col2, CAST( NULL AS SIGNED ) + COUNT( * ) col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-7944
SELECT ALL 21 AS col2, CAST ( NULL AS INTEGER ) + COUNT ( * ) col0
----
21
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7945
SELECT DISTINCT - COUNT( ALL CAST( - - 52 AS SIGNED ) ) * ( - - SUM( COALESCE ( + 8, 67 * 9 + NULLIF ( 66, 59 ), 18 * 83 ) ) ) * - COALESCE ( 58, + NULLIF ( COUNT( * ), - 35 * 50 + - 28 * + 53 ) * + CAST( NULL AS SIGNED ), 50, + 55 )
----
464

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT - COUNT ( ALL CAST ( - - 52 AS INTEGER ) ) * ( - - SUM ( COALESCE ( + 8, 67 * 9 + NULLIF ( 66, 59 ), 18 * 83 ) ) ) * - COALESCE ( 58, + NULLIF ( COUNT ( * ), - 35 * 50 + - 28 * + 53 ) * + CAST ( NULL AS INTEGER ), 50, + 55 )
----
464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7946
SELECT ALL - CAST( 1 AS SIGNED ) AS col2, - 99 AS col0
----
-1
-99

skipif mysql # not compatible
query II rowsort label-7946
SELECT ALL - CAST ( 1 AS INTEGER ) AS col2, - 99 AS col0
----
-1
-99

query I rowsort
SELECT 18 + + 50 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT DISTINCT COUNT( * ) * - - 59 * ( COUNT( * ) )
----
59

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT COUNT ( * ) * - - 59 * ( COUNT ( * ) )
----
59

query I rowsort
SELECT DISTINCT - 88 * + ( - + ( + 58 ) ) * - 8 AS col1
----
-40832

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL + NULLIF ( - 42, - - ( + NULLIF ( + - 58, + - 89 ) ) + - + ( COUNT( * ) ) ) + - 96
----
-138

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL + NULLIF ( - 42, - - ( + NULLIF ( + - 58, + - 89 ) ) + - + ( COUNT ( * ) ) ) + - 96
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT 80 * - - 51 - - COUNT( * )
----
4081

skipif mysql # not compatible
query I rowsort label-7951
SELECT 80 * - - 51 - - COUNT ( * )
----
4081

query I rowsort
SELECT 53 + - 96 AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7953
SELECT ALL - CASE 79 WHEN - COUNT( + 46 ) THEN COALESCE ( - + 76, - - 3 * - 39 - CAST( NULL AS SIGNED ) ) WHEN - CAST( - 33 AS DECIMAL ) THEN - ( + 26 ) * 61 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL - CASE 79 WHEN - COUNT ( + 46 ) THEN COALESCE ( - + 76, - - 3 * - 39 - CAST ( NULL AS INTEGER ) ) WHEN - CAST ( - 33 AS REAL ) THEN - ( + 26 ) * 61 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL + 71 + + 16 + + 90
----
177

query I rowsort
SELECT DISTINCT - NULLIF ( 4, 0 ) + 95
----
91

query I rowsort
SELECT ALL 5 + + + 28 - - 87 * + 47
----
4122

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT COUNT( DISTINCT - 95 ) + - 28 * - 86 col1
----
2409

skipif mysql # not compatible
query I rowsort label-7957
SELECT COUNT ( DISTINCT - 95 ) + - 28 * - 86 col1
----
2409

query I rowsort
SELECT DISTINCT 99 + - ( + 84 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT DISTINCT + 26 DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + 26 / + 32
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT ALL - ( 29 ) + - 62 + CASE 38 WHEN CAST( NULL AS SIGNED ) - + 68 THEN NULL WHEN + 56 + + NULLIF ( NULLIF ( + MAX( DISTINCT ( + 17 ) ), 31 * COALESCE ( - 4 * CAST( NULL AS SIGNED ), 25 ) ), 57 * + 98 ) THEN 5 * - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL - ( 29 ) + - 62 + CASE 38 WHEN CAST ( NULL AS INTEGER ) - + 68 THEN NULL WHEN + 56 + + NULLIF ( NULLIF ( + MAX ( DISTINCT ( + 17 ) ), 31 * COALESCE ( - 4 * CAST ( NULL AS INTEGER ), 25 ) ), 57 * + 98 ) THEN 5 * - 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT + MIN( - 7 ) - - COUNT( * ) * + MAX( ALL - ( + + 85 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT + MIN ( - 7 ) - - COUNT ( * ) * + MAX ( ALL - ( + + 85 ) ) AS col0
----
-92

query II rowsort
SELECT - 95 + + 98 AS col2, - 97 AS col1
----
3
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT 95 * - 16 + - 79 * - + 47 / + 97 + + 68 - - CASE + 58 WHEN 59 * - COUNT( * ) THEN 46 END * 67 * - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7963
SELECT 95 * - 16 + - 79 * - + 47 / + 97 + + 68 - - CASE + 58 WHEN 59 * - COUNT ( * ) THEN 46 END * 67 * - 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT DISTINCT + ( + CAST( + 25 AS SIGNED ) ) * 46
----
1150

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT + ( + CAST ( + 25 AS INTEGER ) ) * 46
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT - CASE + 47 WHEN + MIN( + 56 ) THEN 47 WHEN + 15 THEN - 84 * + 49 ELSE NULL END * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT - CASE + 47 WHEN + MIN ( + 56 ) THEN 47 WHEN + 15 THEN - 84 * + 49 ELSE NULL END * - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT 96 - COUNT( - NULLIF ( - 43, 87 * - - 48 + 22 ) ) * 34
----
62

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT 96 - COUNT ( - NULLIF ( - 43, 87 * - - 48 + 22 ) ) * 34
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7967
SELECT + 18 * + + COUNT( * ), 63 + - 11 AS col2
----
18
52

skipif mysql # not compatible
query II rowsort label-7967
SELECT + 18 * + + COUNT ( * ), 63 + - 11 AS col2
----
18
52

query I rowsort
SELECT 79 * + - 5 * - 18 + 47 AS col2
----
7157

query I rowsort
SELECT ALL - COALESCE ( + + 40, + 22 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT - COUNT( * ) - - 69
----
68

skipif mysql # not compatible
query I rowsort label-7970
SELECT - COUNT ( * ) - - 69
----
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7971
SELECT 10 DIV - CAST( 45 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7971
SELECT 10 / - CAST ( 45 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT - CAST( 82 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-7972
SELECT - CAST ( 82 AS INTEGER )
----
-82

query I rowsort
SELECT 13 - 5 AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT + + ( + - 3 ) DIV 30 DIV + 1 * 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7974
SELECT + + ( + - 3 ) / 30 / + 1 * 99 AS col1
----
0

query I rowsort
SELECT DISTINCT - 71 + 37 + + CASE - ( - 67 ) WHEN 65 THEN + ( 69 ) + + 58 WHEN - ( - 5 ) * + 86 - 9 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7976
SELECT DISTINCT 42 DIV + - 60
----
0

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT 42 / + - 60
----
0

query I rowsort
SELECT + 84 - + + NULLIF ( - 63, + 55 * - 73 + - - 99 / - - 46 + 91 + 4 ) AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL SUM( ALL - 78 ) * 78 * - 55 * + 9 AS col0
----
3011580

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL SUM ( ALL - 78 ) * 78 * - 55 * + 9 AS col0
----
3011580

onlyif mysql # DIV for integer division: 
query I rowsort label-7979
SELECT - 1 DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7979
SELECT - 1 / 39 AS col0
----
0

query I rowsort
SELECT ALL + 84 * 50 + - + 84 + - + 80 AS col0
----
4036

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT COALESCE ( 2, + 52 * - 77 + + 92 + 97 + + - NULLIF ( - COUNT( * ), - 54 * 5 ) * COALESCE ( + 80 + + 32, + 23 * 7, ( 24 ) ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7981
SELECT COALESCE ( 2, + 52 * - 77 + + 92 + 97 + + - NULLIF ( - COUNT ( * ), - 54 * 5 ) * COALESCE ( + 80 + + 32, + 23 * 7, ( 24 ) ) ) AS col2
----
2

query I rowsort
SELECT + CASE - ( + 73 ) WHEN 58 THEN + 97 * - 40 / - 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT CASE + + 46 WHEN - + 72 THEN + + ( COUNT( * ) ) * + - 26 - - 23 * - + AVG ( 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT CASE + + 46 WHEN - + 72 THEN + + ( COUNT ( * ) ) * + - 26 - - 23 * - + AVG ( 65 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT 3 * - - ( + COUNT( * ) ) + - COUNT( * ) + + CASE - + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE + 67 END * + 47
----
3151

skipif mysql # not compatible
query I rowsort label-7984
SELECT 3 * - - ( + COUNT ( * ) ) + - COUNT ( * ) + + CASE - + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE + 67 END * + 47
----
3151

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - NULLIF ( + + 40, + COUNT( * ) + + ( + 4 ) * 97 - 63 ) - + 80 col1
----
-120

skipif mysql # not compatible
query I rowsort label-7985
SELECT - NULLIF ( + + 40, + COUNT ( * ) + + ( + 4 ) * 97 - 63 ) - + 80 col1
----
-120

query I rowsort
SELECT NULLIF ( + 20, + 12 )
----
20

query II rowsort
SELECT ALL - 68 * - - 59 + - 10 AS col2, - 47 AS col1
----
-4022
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT - 11 * MAX( 92 ) AS col2
----
-1012

skipif mysql # not compatible
query I rowsort label-7988
SELECT - 11 * MAX ( 92 ) AS col2
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT + MAX( DISTINCT 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + MAX ( DISTINCT 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT DISTINCT ( SUM( - 60 ) ) * + 11 / + 66 - + CASE - 85 WHEN + - 93 + - COUNT( * ) THEN + NULLIF ( 61, + 61 ) / COUNT( * ) - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT ( SUM ( - 60 ) ) * + 11 / + 66 - + CASE - 85 WHEN + - 93 + - COUNT ( * ) THEN + NULLIF ( 61, + 61 ) / COUNT ( * ) - 78 END
----
NULL

query I rowsort
SELECT + 58 * + 64 AS col1
----
3712

query I rowsort
SELECT COALESCE ( - ( + 71 ), 77 )
----
-71

query I rowsort
SELECT ALL + ( + + COALESCE ( - 60, + 11 ) ) * 46 AS col1
----
-2760

onlyif mysql # aggregate syntax: 
query II rowsort label-7994
SELECT - 75 + - COUNT( * ) + - 17 * 57 AS col1, 19 - COUNT( * ) col2
----
-1045
18

skipif mysql # not compatible
query II rowsort label-7994
SELECT - 75 + - COUNT ( * ) + - 17 * 57 AS col1, 19 - COUNT ( * ) col2
----
-1045
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT NULLIF ( - 1, + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7995
SELECT NULLIF ( - 1, + COUNT ( * ) )
----
-1

query I rowsort
SELECT NULLIF ( - 84, + - 68 * - - 83 + AVG ( - 66 ) + 80 ) AS col1
----
-84

query I rowsort
SELECT - + 4 + + 49 AS col2
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-7998
SELECT + 64 col2, 63 + 16 - + 88 * - - 8 + + 19 DIV + - 95 + + 58 col1
----
64
-567

skipif mysql # not compatible
query II rowsort label-7998
SELECT + 64 col2, 63 + 16 - + 88 * - - 8 + + 19 / + - 95 + + 58 col1
----
64
-567

onlyif mysql # aggregate syntax: 
query II rowsort label-7999
SELECT DISTINCT + - 1, - ( COUNT( * ) ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7999
SELECT DISTINCT + - 1, - ( COUNT ( * ) ) AS col1
----
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8000
SELECT - 3 DIV - 49 + - 72, 31 * - 32 col2
----
-72
-992

skipif mysql # not compatible
query II rowsort label-8000
SELECT - 3 / - 49 + - 72, 31 * - 32 col2
----
-72
-992

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT + COUNT( - 40 ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8001
SELECT + COUNT ( - 40 ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8002
SELECT ALL - + SUM( - 90 ) / - 26 / + + CAST( NULL AS SIGNED ) - + COUNT( * ) * - 59 AS col0, - 66 AS col0
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-8002
SELECT ALL - + SUM ( - 90 ) / - 26 / + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - 59 AS col0, - 66 AS col0
----
NULL
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT - NULLIF ( + 95, - MIN( DISTINCT 93 ) * - 13 ) + - - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-8003
SELECT - NULLIF ( + 95, - MIN ( DISTINCT 93 ) * - 13 ) + - - COUNT ( * )
----
-94

query I rowsort
SELECT + + 97 - + 13 * - 62 + 52 AS col2
----
955

query I rowsort
SELECT - - 28 + 69 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT + + MAX( ALL 80 ) * - 4 * + ( 77 )
----
-24640

skipif mysql # not compatible
query I rowsort label-8006
SELECT + + MAX ( ALL 80 ) * - 4 * + ( 77 )
----
-24640

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL + NULLIF ( - 1, 65 - - - ( - - 94 ) + + 3 * NULLIF ( 84, 54 * - 53 ) * AVG ( ALL 27 + 7 * + 98 ) * - 28 ) + NULLIF ( 78 - NULLIF ( - 80, - 21 ) * - ( - 15 ), + COALESCE ( - 20, 5 / - 24 + - 62 / + 98 ) + 91 * - 53 ) * CASE + COUNT( * ) * - NULLIF ( - COUNT( * ), - 7 ) + AVG ( CASE - 48 WHEN + 89 * - 30 THEN 0 END - - 59 / CASE + 66 WHEN 65 THEN ( 49 ) END ) * - 83 WHEN 7 THEN 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL + NULLIF ( - 1, 65 - - - ( - - 94 ) + + 3 * NULLIF ( 84, 54 * - 53 ) * AVG ( ALL 27 + 7 * + 98 ) * - 28 ) + NULLIF ( 78 - NULLIF ( - 80, - 21 ) * - ( - 15 ), + COALESCE ( - 20, 5 / - 24 + - 62 / + 98 ) + 91 * - 53 ) * CASE + COUNT ( * ) * - NULLIF ( - COUNT ( * ), - 7 ) + AVG ( CASE - 48 WHEN + 89 * - 30 THEN 0 END - - 59 / CASE + 66 WHEN 65 THEN ( 49 ) END ) * - 83 WHEN 7 THEN 82 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 36 + - - 34
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ALL + 31 * + - 42 * - COUNT( * ) AS col0
----
1302

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL + 31 * + - 42 * - COUNT ( * ) AS col0
----
1302

query I rowsort
SELECT + 36 + + 3
----
39

query I rowsort
SELECT ALL 42 + + - 91 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT + COUNT( * ) + + CASE COUNT( * ) WHEN + + ( ( + 15 ) ) THEN + - 93 ELSE NULL END * + 16 * + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT + COUNT ( * ) + + CASE COUNT ( * ) WHEN + + ( ( + 15 ) ) THEN + - 93 ELSE NULL END * + 16 * + + 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8013
SELECT ALL CAST( NULL AS SIGNED ) / + 58, CASE - 82 WHEN + - AVG ( ALL - + 24 ) * + COUNT( * ) THEN + - 52 * + - 84 WHEN COALESCE ( - 7, - 19 ) / 39 THEN - 17 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8013
SELECT ALL CAST ( NULL AS INTEGER ) / + 58, CASE - 82 WHEN + - AVG ( ALL - + 24 ) * + COUNT ( * ) THEN + - 52 * + - 84 WHEN COALESCE ( - 7, - 19 ) / 39 THEN - 17 END
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8014
SELECT + COALESCE ( + COUNT( * ), + 23 ) DIV 79 * + + 69
----
0

skipif mysql # not compatible
query I rowsort label-8014
SELECT + COALESCE ( + COUNT ( * ), + 23 ) / 79 * + + 69
----
0

query I rowsort
SELECT - 6 + + + 62
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT ALL 81 DIV 87 + 62 * - 69 * 58
----
-248124

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL 81 / 87 + 62 * - 69 * 58
----
-248124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8017
SELECT + COUNT( DISTINCT 28 ) * + 95 * COALESCE ( - 64, - 21 + + - 86 * - - CAST( NULL AS SIGNED ) * - 47 * MIN( 1 ) ) AS col2
----
-6080

skipif mysql # not compatible
query I rowsort label-8017
SELECT + COUNT ( DISTINCT 28 ) * + 95 * COALESCE ( - 64, - 21 + + - 86 * - - CAST ( NULL AS INTEGER ) * - 47 * MIN ( 1 ) ) AS col2
----
-6080

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT ALL 0 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL 0 / - 67
----
0

query I rowsort
SELECT + 12 + - 66
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT + CAST( 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-8020
SELECT + CAST ( 16 AS INTEGER )
----
16

query I rowsort
SELECT DISTINCT 35 * ( + 54 )
----
1890

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT + 47 DIV - + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8022
SELECT + 47 / - + 88 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT + 58 * - 70 * + COALESCE ( - MIN( + 69 ), + MAX( DISTINCT - - 76 ) ) * + - 90 - 57 AS col2
----
-25212657

skipif mysql # not compatible
query I rowsort label-8023
SELECT + 58 * - 70 * + COALESCE ( - MIN ( + 69 ), + MAX ( DISTINCT - - 76 ) ) * + - 90 - 57 AS col2
----
-25212657

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT 72 DIV - + 72 + + 89 col2
----
88

skipif mysql # not compatible
query I rowsort label-8024
SELECT 72 / - + 72 + + 89 col2
----
88

query I rowsort
SELECT + 34 * 27
----
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT CAST( + - 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-8026
SELECT CAST ( + - 87 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8027
SELECT + SUM( DISTINCT - - 92 ) DIV - 22 + - 90 + + + COUNT( * ) * MIN( - 3 ) * + 62 * - 70 * + 1 AS col2
----
12926

skipif mysql # not compatible
query I rowsort label-8027
SELECT + SUM ( DISTINCT - - 92 ) / - 22 + - 90 + + + COUNT ( * ) * MIN ( - 3 ) * + 62 * - 70 * + 1 AS col2
----
12926

query I rowsort
SELECT - 34 + 39 AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8029
SELECT ALL + COUNT( * ) DIV + 14 - - 14 - - 31 + COALESCE ( + + 56, - 23, - 31 + - - 24 ) * 34
----
1949

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL + COUNT ( * ) / + 14 - - 14 - - 31 + COALESCE ( + + 56, - 23, - 31 + - - 24 ) * 34
----
1949

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT + + 58 * + ( COUNT( - + 98 ) ) + + 41
----
99

skipif mysql # not compatible
query I rowsort label-8030
SELECT + + 58 * + ( COUNT ( - + 98 ) ) + + 41
----
99

query I rowsort
SELECT + - 89 * + 60 + - 77
----
-5417

query I rowsort
SELECT ALL + - 90 col2
----
-90

query I rowsort
SELECT + + ( + 2 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8034
SELECT ALL + - CAST( COUNT( * ) AS SIGNED ) * - 43 * COUNT( - 64 ) col0
----
43

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER ) * - 43 * COUNT ( - 64 ) col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8035
SELECT - ( + ( - ( - - 84 ) ) ) + - COUNT( * ), 9 * + + SUM( - + 13 ) AS col2
----
83
-117

skipif mysql # not compatible
query II rowsort label-8035
SELECT - ( + ( - ( - - 84 ) ) ) + - COUNT ( * ), 9 * + + SUM ( - + 13 ) AS col2
----
83
-117

query I rowsort
SELECT + - COALESCE ( - ( + + 63 ), - 68 + - - 22, + + 12 * + + 73 * 88 + - - 17 * 98 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT - + COUNT( * ) + 83 * - 14 + + 88 + - + 69 + + 60 * 84 + + 98 AS col0
----
3994

skipif mysql # not compatible
query I rowsort label-8037
SELECT - + COUNT ( * ) + 83 * - 14 + + 88 + - + 69 + + 60 * 84 + + 98 AS col0
----
3994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + + ( - 65 ) * - 42 + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + + ( - 65 ) * - 42 + - 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT 42 DIV 32 - 84 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8039
SELECT 42 / 32 - 84 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL - 71 + + COALESCE ( + MIN( ALL + 24 ), COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL - 71 + + COALESCE ( + MIN ( ALL + 24 ), COUNT ( * ) )
----
-47

query I rowsort
SELECT DISTINCT + COALESCE ( + 56, - 10 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT SUM( DISTINCT 23 )
----
23

skipif mysql # not compatible
query I rowsort label-8042
SELECT SUM ( DISTINCT 23 )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8043
SELECT ALL + - 90 + + COUNT( * ), 81 * + 33 * - 8 col0
----
-89
-21384

skipif mysql # not compatible
query II rowsort label-8043
SELECT ALL + - 90 + + COUNT ( * ), 81 * + 33 * - 8 col0
----
-89
-21384

query I rowsort
SELECT ALL 3 + + 23
----
26

query II rowsort
SELECT ( + 55 ) AS col1, 90 * + - 43 AS col2
----
55
-3870

query I rowsort
SELECT 11 * - + 90 + - + 56
----
-1046

query I rowsort
SELECT 2 - - ( 15 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT 11 - + ( - COUNT( * ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8048
SELECT 11 - + ( - COUNT ( * ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8049
SELECT COUNT( * ) + - - 52 + 89, 65 AS col0
----
142
65

skipif mysql # not compatible
query II rowsort label-8049
SELECT COUNT ( * ) + - - 52 + 89, 65 AS col0
----
142
65

query I rowsort
SELECT ALL + 84 + - 26 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL 89 - - - CASE - 56 WHEN 2 THEN + - 94 + 24 / + + 19 WHEN NULLIF ( + COALESCE ( 66, MIN( 70 ) ), + 23 ) THEN + 86 * - 59 + 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL 89 - - - CASE - 56 WHEN 2 THEN + - 94 + 24 / + + 19 WHEN NULLIF ( + COALESCE ( 66, MIN ( 70 ) ), + 23 ) THEN + 86 * - 59 + 19 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 47 * 13
----
611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8053
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 43
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8054
SELECT 85 DIV + + 25 + - 78 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8054
SELECT 85 / + + 25 + - 78 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT 72 * 92 * - 26 * - + COUNT( * )
----
172224

skipif mysql # not compatible
query I rowsort label-8055
SELECT 72 * 92 * - 26 * - + COUNT ( * )
----
172224

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT COUNT( * ) + - + 78
----
-77

skipif mysql # not compatible
query I rowsort label-8056
SELECT COUNT ( * ) + - + 78
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT DISTINCT 81 DIV + 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT 81 / + 65 AS col0
----
1

query I rowsort
SELECT DISTINCT - ( - 69 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT DISTINCT 79 DIV - 5 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT 79 / - 5 AS col1
----
-15

query I rowsort
SELECT 8 + 41
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT ALL - + MAX( + + 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL - + MAX ( + + 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT COUNT( * ) * 32
----
32

skipif mysql # not compatible
query I rowsort label-8062
SELECT COUNT ( * ) * 32
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT ALL + CAST( NULL AS SIGNED ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL + CAST ( NULL AS INTEGER ) * - 64
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT ALL CAST( NULL AS SIGNED ) * 0 * + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL CAST ( NULL AS INTEGER ) * 0 * + 3 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT + CAST( NULL AS SIGNED ) * - 85 + COUNT( * ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT + CAST ( NULL AS INTEGER ) * - 85 + COUNT ( * ) * 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT ALL + 66 + - - CASE + COALESCE ( - 0, - COUNT( * ) / - 88, 78 + + ( - 18 ) + + 25 ) WHEN + 84 * - 23 THEN 5 - - 19 ELSE 5 END AS col0
----
71

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + 66 + - - CASE + COALESCE ( - 0, - COUNT ( * ) / - 88, 78 + + ( - 18 ) + + 25 ) WHEN + 84 * - 23 THEN 5 - - 19 ELSE 5 END AS col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8067
SELECT + 0 col1, + ( - + 64 ) * + COALESCE ( + + 36, - - 0 ) * + MIN( ALL 80 ) * - 48 - - 78 + - 24 + 69 AS col0
----
0
8847483

skipif mysql # not compatible
query II rowsort label-8067
SELECT + 0 col1, + ( - + 64 ) * + COALESCE ( + + 36, - - 0 ) * + MIN ( ALL 80 ) * - 48 - - 78 + - 24 + 69 AS col0
----
0
8847483

onlyif mysql # aggregate syntax: 
query II rowsort label-8068
SELECT - 7 + + 75 + + 46 AS col2, 90 * + - COUNT( * ) AS col2
----
114
-90

skipif mysql # not compatible
query II rowsort label-8068
SELECT - 7 + + 75 + + 46 AS col2, 90 * + - COUNT ( * ) AS col2
----
114
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8069
SELECT 8 * + CASE 26 WHEN - + ( COUNT( * ) ) + - + 7 * CAST( + COUNT( * ) AS SIGNED ) * + 46 THEN NULL ELSE NULLIF ( - NULLIF ( - COUNT( * ), - 50 ), 29 * - 60 + + CAST( NULL AS SIGNED ) ) * + 71 END * 89
----
50552

skipif mysql # not compatible
query I rowsort label-8069
SELECT 8 * + CASE 26 WHEN - + ( COUNT ( * ) ) + - + 7 * CAST ( + COUNT ( * ) AS INTEGER ) * + 46 THEN NULL ELSE NULLIF ( - NULLIF ( - COUNT ( * ), - 50 ), 29 * - 60 + + CAST ( NULL AS INTEGER ) ) * + 71 END * 89
----
50552

query I rowsort
SELECT ALL + 75 + - 54 AS col0
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8071
SELECT - 30 - CAST( NULL AS DECIMAL ) + + ( - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT - 30 - CAST ( NULL AS REAL ) + + ( - 99 )
----
NULL

query I rowsort
SELECT - 46 * - - 23 * 41 * - 96 * + 73 + 27
----
303993051

query I rowsort
SELECT ALL - 39 + 28 AS col1
----
-11

query I rowsort
SELECT + 96 + - 13
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8075
SELECT - - SUM( + CAST( + 43 AS SIGNED ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8075
SELECT - - SUM ( + CAST ( + 43 AS INTEGER ) ) AS col2
----
43

query I rowsort
SELECT - 79 * - 20
----
1580

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL - 48 * 66 + ( COUNT( * ) ) * 79 AS col2
----
-3089

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL - 48 * 66 + ( COUNT ( * ) ) * 79 AS col2
----
-3089

query I rowsort
SELECT 47 - 14 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT 21 + 15 + + 93 + - - MIN( DISTINCT - 32 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-8079
SELECT 21 + 15 + + 93 + - - MIN ( DISTINCT - 32 ) col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL - 16 - - COUNT( * ) - + 1 + 73 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - 16 - - COUNT ( * ) - + 1 + 73 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8081
SELECT 27 * COUNT( ALL - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8081
SELECT 27 * COUNT ( ALL - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL 24 * - 21
----
-504

query II rowsort
SELECT ALL 39 AS col0, 49 - + 81
----
39
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT 46 + + + 3 * - + 93 + + COUNT( * )
----
-232

skipif mysql # not compatible
query I rowsort label-8084
SELECT 46 + + + 3 * - + 93 + + COUNT ( * )
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT 53 * - SUM( ALL - 50 ) AS col2
----
2650

skipif mysql # not compatible
query I rowsort label-8085
SELECT 53 * - SUM ( ALL - 50 ) AS col2
----
2650

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT MIN( DISTINCT + + CASE + 86 WHEN ( - 80 ) THEN NULL ELSE + 65 END ) + - 27
----
38

skipif mysql # not compatible
query I rowsort label-8086
SELECT MIN ( DISTINCT + + CASE + 86 WHEN ( - 80 ) THEN NULL ELSE + 65 END ) + - 27
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT 27 * - + MAX( DISTINCT 16 )
----
-432

skipif mysql # not compatible
query I rowsort label-8087
SELECT 27 * - + MAX ( DISTINCT 16 )
----
-432

query II rowsort
SELECT - 98 col2, 25 * - 3 + - + 69 AS col2
----
-98
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT 65 + - + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-8089
SELECT 65 + - + COUNT ( * )
----
64

query II rowsort
SELECT 12 AS col1, 88 + - + 69
----
12
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8091
SELECT 52 * + COUNT( * ), 59 col1
----
52
59

skipif mysql # not compatible
query II rowsort label-8091
SELECT 52 * + COUNT ( * ), 59 col1
----
52
59

query II rowsort
SELECT 61, - 20 AS col1
----
61
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-8093
SELECT DISTINCT - 9 * - COUNT( * ) * + 46 * + - 60 col2, 90 * + ( - - 50 )
----
-24840
4500

skipif mysql # not compatible
query II rowsort label-8093
SELECT DISTINCT - 9 * - COUNT ( * ) * + 46 * + - 60 col2, 90 * + ( - - 50 )
----
-24840
4500

query II rowsort
SELECT - 64 AS col1, + 37 + 80 AS col2
----
-64
117

query I rowsort
SELECT NULLIF ( 88, - - 22 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8096
SELECT 78 + + COALESCE ( + + SUM( - 76 ), - 31 + - 6 * + 3 ) * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT 78 + + COALESCE ( + + SUM ( - 76 ), - 31 + - 6 * + 3 ) * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 9 * + 80 AS col1
----
-720

query I rowsort
SELECT - NULLIF ( + + 90, 86 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT CASE + 71 WHEN - COUNT( * ) THEN 61 + 83 * + 10 END * + + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8099
SELECT CASE + 71 WHEN - COUNT ( * ) THEN 61 + 83 * + 10 END * + + 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT 41 * + + COUNT( * ) * - - 86
----
3526

skipif mysql # not compatible
query I rowsort label-8100
SELECT 41 * + + COUNT ( * ) * - - 86
----
3526

query II rowsort
SELECT ALL 90 * - 6 + - - 57 + - 77 + 40 * - - 78 AS col0, + 89 - - - ( - 42 )
----
2560
131

onlyif mysql # aggregate syntax: 
query II rowsort label-8102
SELECT - 28 col2, ( COUNT( * ) ) AS col2
----
-28
1

skipif mysql # not compatible
query II rowsort label-8102
SELECT - 28 col2, ( COUNT ( * ) ) AS col2
----
-28
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT DISTINCT + + 70 AS col1, + ( + 83 ) - 57 * - ( 87 ) * + 2 + + - COUNT( * ) AS col2
----
70
10000

skipif mysql # not compatible
query II rowsort label-8103
SELECT DISTINCT + + 70 AS col1, + ( + 83 ) - 57 * - ( 87 ) * + 2 + + - COUNT ( * ) AS col2
----
70
10000

query I rowsort
SELECT ( 76 ) AS col2
----
76

query I rowsort
SELECT ALL + + 74 * 2 + 33 + - 84
----
97

query I rowsort
SELECT + - 49 + + 96 * - + 51 AS col0
----
-4945

query I rowsort
SELECT + - 90 col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8108
SELECT + - 5 * + 14 + - CASE + 20 WHEN + 80 THEN COUNT( * ) WHEN 72 THEN NULL ELSE - 67 + - COALESCE ( - 89, 46, + 47, + 89 + 53 DIV 80 ) END
----
-92

skipif mysql # not compatible
query I rowsort label-8108
SELECT + - 5 * + 14 + - CASE + 20 WHEN + 80 THEN COUNT ( * ) WHEN 72 THEN NULL ELSE - 67 + - COALESCE ( - 89, 46, + 47, + 89 + 53 / 80 ) END
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT + 94 DIV - 32 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8109
SELECT + 94 / - 32 AS col2
----
-2

query I rowsort
SELECT DISTINCT + 61 - + 70
----
-9

query I rowsort
SELECT ALL ( - - 34 ) - 66 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT - CASE 41 WHEN - COALESCE ( + ( - 20 ), + 78 + - - 75 * - 25 ) + 88 + - 10 THEN + + COUNT( * ) * - 76 - ( MIN( 78 ) + + 33 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8112
SELECT - CASE 41 WHEN - COALESCE ( + ( - 20 ), + 78 + - - 75 * - 25 ) + 88 + - 10 THEN + + COUNT ( * ) * - 76 - ( MIN ( 78 ) + + 33 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - NULLIF ( ( + 39 ), - 71 + 31 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8114
SELECT DISTINCT NULLIF ( - 54, 2 / + 70 ) - + 18 + - - COUNT( DISTINCT 88 ) / - MIN( + 22 ) / CAST( NULL AS SIGNED ) AS col1, + 14 AS col1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-8114
SELECT DISTINCT NULLIF ( - 54, 2 / + 70 ) - + 18 + - - COUNT ( DISTINCT 88 ) / - MIN ( + 22 ) / CAST ( NULL AS INTEGER ) AS col1, + 14 AS col1
----
NULL
14

query I rowsort
SELECT ALL ( 85 ) - + 66
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8116
SELECT - 65 * - COUNT( * ), - 82 * - MAX( 33 ) + 39 AS col2
----
65
2745

skipif mysql # not compatible
query II rowsort label-8116
SELECT - 65 * - COUNT ( * ), - 82 * - MAX ( 33 ) + 39 AS col2
----
65
2745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8117
SELECT ALL - 95 * - 60 AS col2, + COALESCE ( - ( 8 ), COUNT( * ) * + 33, + 38 * + CASE + 54 WHEN + - NULLIF ( - CAST( NULL AS SIGNED ), 39 ) / 42 THEN - 40 * - 44 + 64 ELSE NULL END ) AS col2
----
5700
-8

skipif mysql # not compatible
query II rowsort label-8117
SELECT ALL - 95 * - 60 AS col2, + COALESCE ( - ( 8 ), COUNT ( * ) * + 33, + 38 * + CASE + 54 WHEN + - NULLIF ( - CAST ( NULL AS INTEGER ), 39 ) / 42 THEN - 40 * - 44 + 64 ELSE NULL END ) AS col2
----
5700
-8

query II rowsort
SELECT + 29 * 64 col1, 31 + + - 82
----
1856
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL NULLIF ( + 98, - + COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL NULLIF ( + 98, - + COUNT ( * ) )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8120
SELECT DISTINCT CASE + + COUNT( * ) WHEN 38 * - 73 THEN 0 WHEN + - 44 THEN + + 82 * 57 + + 83 ELSE - 59 DIV - - 9 + 57 END AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT CASE + + COUNT ( * ) WHEN 38 * - 73 THEN 0 WHEN + - 44 THEN + + 82 * 57 + + 83 ELSE - 59 / - - 9 + 57 END AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT - CASE + 10 WHEN - 37 * + + 44 THEN NULL WHEN + + 31 + - 76 THEN - 87 * 7 * + + COUNT( * ) * + 56 + - 46 + + - 62 * - COUNT( * ) ELSE 86 + - 34 END * + 52
----
-2704

skipif mysql # not compatible
query I rowsort label-8121
SELECT - CASE + 10 WHEN - 37 * + + 44 THEN NULL WHEN + + 31 + - 76 THEN - 87 * 7 * + + COUNT ( * ) * + 56 + - 46 + + - 62 * - COUNT ( * ) ELSE 86 + - 34 END * + 52
----
-2704

query I rowsort
SELECT - ( 51 ) + 96 col2
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8123
SELECT - 67 DIV - 72 + - CAST( - 73 AS SIGNED ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8123
SELECT - 67 / - 72 + - CAST ( - 73 AS INTEGER ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT - + COUNT( * ) * - NULLIF ( - COUNT( * ), - 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-8124
SELECT - + COUNT ( * ) * - NULLIF ( - COUNT ( * ), - 95 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT - + COUNT( * ) * + 62, + 89 AS col2
----
-62
89

skipif mysql # not compatible
query II rowsort label-8125
SELECT - + COUNT ( * ) * + 62, + 89 AS col2
----
-62
89

query I rowsort
SELECT - NULLIF ( 9, - 46 ) AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8127
SELECT ALL 46 DIV + 95 + 25
----
25

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL 46 / + 95 + 25
----
25

query I rowsort
SELECT ALL - - 75 * 59 * + 15
----
66375

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT DISTINCT 96 DIV - 5 + + COALESCE ( - 35, 35 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT 96 / - 5 + + COALESCE ( - 35, 35 ) AS col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8130
SELECT ALL + + COALESCE ( 40, - 2 DIV CASE - - CASE + ( COALESCE ( - + 14, - COUNT( * ), - - 5 - - 6 ) ) WHEN 12 THEN NULL WHEN + 62 THEN ( + COUNT( * ) ) DIV - COUNT( * ) ELSE NULL END WHEN 89 - 66 THEN 12 * 49 ELSE - COUNT( * ) + 24 END * - MAX( + 65 DIV 45 ) + 98 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + + COALESCE ( 40, - 2 / CASE - - CASE + ( COALESCE ( - + 14, - COUNT ( * ), - - 5 - - 6 ) ) WHEN 12 THEN NULL WHEN + 62 THEN ( + COUNT ( * ) ) / - COUNT ( * ) ELSE NULL END WHEN 89 - 66 THEN 12 * 49 ELSE - COUNT ( * ) + 24 END * - MAX ( + 65 / 45 ) + 98 ) AS col2
----
40

query I rowsort
SELECT - + 20 + + - 64 * + + 47 AS col2
----
-3028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8132
SELECT ALL - + 83 * - - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL - + 83 * - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT - 62 * + CASE + COALESCE ( 46, - MAX( + - 59 ) + - 96 * 53 + 68 ) WHEN + - CASE 57 WHEN + 29 * + 24 - 95 THEN 73 * COUNT( * ) WHEN - 41 * - 23 + 4 THEN 17 * 91 ELSE NULL END * + MAX( ALL ( - 29 ) ) THEN - ( ( + 8 ) ) END + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8133
SELECT - 62 * + CASE + COALESCE ( 46, - MAX ( + - 59 ) + - 96 * 53 + 68 ) WHEN + - CASE 57 WHEN + 29 * + 24 - 95 THEN 73 * COUNT ( * ) WHEN - 41 * - 23 + 4 THEN 17 * 91 ELSE NULL END * + MAX ( ALL ( - 29 ) ) THEN - ( ( + 8 ) ) END + 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT - 83 * + + CAST( - SUM( + 45 ) AS SIGNED )
----
3735

skipif mysql # not compatible
query I rowsort label-8134
SELECT - 83 * + + CAST ( - SUM ( + 45 ) AS INTEGER )
----
3735

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT + 52 * + 87 * + 61 + - COUNT( * ) * - - 45
----
275919

skipif mysql # not compatible
query I rowsort label-8135
SELECT + 52 * + 87 * + 61 + - COUNT ( * ) * - - 45
----
275919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT - + SUM( - CAST( 61 AS SIGNED ) ) * + + 72 + + 39 + + 6 col0
----
4437

skipif mysql # not compatible
query I rowsort label-8136
SELECT - + SUM ( - CAST ( 61 AS INTEGER ) ) * + + 72 + + 39 + + 6 col0
----
4437

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL - 39 * 18 - + - CASE - 99 WHEN 27 * + - 3 THEN NULL WHEN - 61 + - 47 / + + 52 THEN + - 24 END + + 37 + + 55 + COUNT( * ) * - 57 / 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - 39 * 18 - + - CASE - 99 WHEN 27 * + - 3 THEN NULL WHEN - 61 + - 47 / + + 52 THEN + - 24 END + + 37 + + 55 + COUNT ( * ) * - 57 / 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT - + 68 + 91 * + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8138
SELECT - + 68 + 91 * + COUNT ( * )
----
23

query I rowsort
SELECT + - 93 * - 39 * - 22
----
-79794

query II rowsort
SELECT ALL + 11 AS col0, 30 AS col2
----
11
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT ALL ( + COUNT( * ) ) * - - 80
----
80

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL ( + COUNT ( * ) ) * - - 80
----
80

query I rowsort
SELECT - 42 * - 54
----
2268

query I rowsort
SELECT - 59 + + 82 AS col0
----
23

query I rowsort
SELECT ALL 30 * 29 AS col2
----
870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8145
SELECT + 36 + NULLIF ( - 9, 64 ) + + + 49 + 53 * + 94 * + 99 + - + CASE + 17 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 30 * + COUNT( * ) + 98 THEN NULL ELSE + 12 * MIN( ALL - ( + 97 ) ) END - - 26 * 93 AS col0
----
496876

skipif mysql # not compatible
query I rowsort label-8145
SELECT + 36 + NULLIF ( - 9, 64 ) + + + 49 + 53 * + 94 * + 99 + - + CASE + 17 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 30 * + COUNT ( * ) + 98 THEN NULL ELSE + 12 * MIN ( ALL - ( + 97 ) ) END - - 26 * 93 AS col0
----
496876

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT MIN( ALL 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8146
SELECT MIN ( ALL 11 ) AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8147
SELECT + CAST( NULL AS DECIMAL ) + + + 54 + - ( - - 2 ) + - COUNT( * ) + + ( ( + 51 ) ), 14 AS col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-8147
SELECT + CAST ( NULL AS REAL ) + + + 54 + - ( - - 2 ) + - COUNT ( * ) + + ( ( + 51 ) ), 14 AS col0
----
NULL
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8148
SELECT - ( + CASE + 17 WHEN - COUNT( * ) * + 3 * - - 12 THEN + 16 + - 81 ELSE NULL END ) AS col0, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8148
SELECT - ( + CASE + 17 WHEN - COUNT ( * ) * + 3 * - - 12 THEN + 16 + - 81 ELSE NULL END ) AS col0, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT MIN( DISTINCT - 14 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-8149
SELECT MIN ( DISTINCT - 14 ) AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8150
SELECT MIN( ALL + CAST( 34 AS SIGNED ) )
----
34

skipif mysql # not compatible
query I rowsort label-8150
SELECT MIN ( ALL + CAST ( 34 AS INTEGER ) )
----
34

query I rowsort
SELECT DISTINCT 17 + 16
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8152
SELECT ALL + 64 + - ( COUNT( * ) ) DIV + 72 + + - 17
----
47

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL + 64 + - ( COUNT ( * ) ) / + 72 + + - 17
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT + CASE 18 WHEN - + 27 THEN - 73 * + 1 + + COUNT( * ) * 62 WHEN COUNT( * ) THEN NULL ELSE NULL END + + COUNT( * ) * + 12 * - + 19 * - 15 * - ( - ( 69 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT + CASE 18 WHEN - + 27 THEN - 73 * + 1 + + COUNT ( * ) * 62 WHEN COUNT ( * ) THEN NULL ELSE NULL END + + COUNT ( * ) * + 12 * - + 19 * - 15 * - ( - ( 69 ) ) AS col2
----
NULL

query I rowsort
SELECT + 34 + - 60 + - - 59 AS col1
----
33

query II rowsort
SELECT - 17 AS col1, - ( + - 49 ) * + - 67
----
-17
-3283

query I rowsort
SELECT ALL 57 + - 1 col0
----
56

query II rowsort
SELECT ALL 16 + + 44 + 80, 86 * - ( - 21 ) + + - 81 AS col1
----
140
1725

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8158
SELECT - CASE 54 WHEN + - 82 + 37 + + - 20 THEN NULL WHEN + - 58 THEN NULL WHEN - 36 + + + 55 - - 87 * - - 47 * + ( + COALESCE ( + 86, 75 ) ) THEN + 44 - 8 / - CAST( NULL AS DECIMAL ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8158
SELECT - CASE 54 WHEN + - 82 + 37 + + - 20 THEN NULL WHEN + - 58 THEN NULL WHEN - 36 + + + 55 - - 87 * - - 47 * + ( + COALESCE ( + 86, 75 ) ) THEN + 44 - 8 / - CAST ( NULL AS REAL ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8159
SELECT ALL - 9 + + - 12 + - 86, COALESCE ( - + 43, - NULLIF ( + 40, - CAST( NULL AS SIGNED ) * - 83 ) - 91 * - CAST( + - 33 AS SIGNED ), + - 91 ) AS col1
----
-107
-43

skipif mysql # not compatible
query II rowsort label-8159
SELECT ALL - 9 + + - 12 + - 86, COALESCE ( - + 43, - NULLIF ( + 40, - CAST ( NULL AS INTEGER ) * - 83 ) - 91 * - CAST ( + - 33 AS INTEGER ), + - 91 ) AS col1
----
-107
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT DISTINCT + COUNT( * ) + + 42
----
43

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + COUNT ( * ) + + 42
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT - 1 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT - 1 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - ( - NULLIF ( - - 41, - 38 ) ) * - 42 AS col2
----
-1722

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8163
SELECT - 26 * - 40 * + SUM( + - 55 ) + SUM( - - 18 ) AS col1, 20 - - NULLIF ( + 54, COUNT( + CAST( NULL AS DECIMAL ) ) )
----
-57182
74

skipif mysql # not compatible
query II rowsort label-8163
SELECT - 26 * - 40 * + SUM ( + - 55 ) + SUM ( - - 18 ) AS col1, 20 - - NULLIF ( + 54, COUNT ( + CAST ( NULL AS REAL ) ) )
----
-57182
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8164
SELECT - 13, + COUNT( * ) AS col0
----
-13
1

skipif mysql # not compatible
query II rowsort label-8164
SELECT - 13, + COUNT ( * ) AS col0
----
-13
1

onlyif mysql # aggregate syntax: 
query III rowsort label-8165
SELECT 80 AS col2, + NULLIF ( 64, - COUNT( * ) ) AS col1, COALESCE ( - + 89, - - ( - ( 98 ) ) ) * - 10 * + + COUNT( 32 ) + + - 16 + - 34
----
80
64
840

skipif mysql # not compatible
query III rowsort label-8165
SELECT 80 AS col2, + NULLIF ( 64, - COUNT ( * ) ) AS col1, COALESCE ( - + 89, - - ( - ( 98 ) ) ) * - 10 * + + COUNT ( 32 ) + + - 16 + - 34
----
80
64
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT 63 + CAST( - + 67 AS SIGNED ) + - ( + COUNT( * ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8166
SELECT 63 + CAST ( - + 67 AS INTEGER ) + - ( + COUNT ( * ) ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8167
SELECT 93 AS col0, 70 + + - CASE + - MAX( DISTINCT - 41 ) WHEN + 44 + - + 63 + + CASE + 90 WHEN + COUNT( * ) / - - 93 + + - COALESCE ( + 67, - 22 ) * + 82 THEN NULL ELSE - 81 END - 87 THEN NULL ELSE + 74 * 71 + 4 * 46 END
----
93
-5368

skipif mysql # not compatible
query II rowsort label-8167
SELECT 93 AS col0, 70 + + - CASE + - MAX ( DISTINCT - 41 ) WHEN + 44 + - + 63 + + CASE + 90 WHEN + COUNT ( * ) / - - 93 + + - COALESCE ( + 67, - 22 ) * + 82 THEN NULL ELSE - 81 END - 87 THEN NULL ELSE + 74 * 71 + 4 * 46 END
----
93
-5368

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL + - MAX( DISTINCT 88 ) * + ( - + 46 ) col1
----
4048

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + - MAX ( DISTINCT 88 ) * + ( - + 46 ) col1
----
4048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT DISTINCT - CAST( - 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT - CAST ( - 70 AS INTEGER )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8170
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + MIN( ALL - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + MIN ( ALL - 23 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8171
SELECT 81 + + 58 + - 69 + + + 63, + ( 54 ) - + - 28 + 57 * + 82 - + SUM( DISTINCT + 29 ) - CAST( NULL AS SIGNED ) * + 71 AS col2
----
133
NULL

skipif mysql # not compatible
query II rowsort label-8171
SELECT 81 + + 58 + - 69 + + + 63, + ( 54 ) - + - 28 + 57 * + 82 - + SUM ( DISTINCT + 29 ) - CAST ( NULL AS INTEGER ) * + 71 AS col2
----
133
NULL

query I rowsort
SELECT ALL 76 + + 96 AS col0
----
172

query I rowsort
SELECT ALL - 68 + - 28 + + + 50
----
-46

query I rowsort
SELECT 81 * + - 49 * + 60 AS col1
----
-238140

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT 55 + ( + 1 ) - COALESCE ( - MAX( 1 ), + MIN( + + 52 ) )
----
57

skipif mysql # not compatible
query I rowsort label-8175
SELECT 55 + ( + 1 ) - COALESCE ( - MAX ( 1 ), + MIN ( + + 52 ) )
----
57

query I rowsort
SELECT 61 - - + ( + - 85 ) AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT 0 DIV - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT 0 / - 15 AS col1
----
0

query I rowsort
SELECT 6 * + ( + + 23 ) col0
----
138

query I rowsort
SELECT DISTINCT + - 41 * + 21
----
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL COUNT( * ) - - 46 + - 48
----
-1

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL COUNT ( * ) - - 46 + - 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT ALL + SUM( DISTINCT - + ( 4 ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL + SUM ( DISTINCT - + ( 4 ) ) AS col1
----
-4

query I rowsort
SELECT + 38 * - 70 AS col1
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + COALESCE ( + 29, - 93 ) * + NULLIF ( + 89, + COUNT( * ) * - 64 * COUNT( * ) * + 96 / - - NULLIF ( + 4, + 27 ) * 28 ) AS col2
----
2581

skipif mysql # not compatible
query I rowsort label-8183
SELECT + COALESCE ( + 29, - 93 ) * + NULLIF ( + 89, + COUNT ( * ) * - 64 * COUNT ( * ) * + 96 / - - NULLIF ( + 4, + 27 ) * 28 ) AS col2
----
2581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT CAST( NULL AS SIGNED ) - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT CAST ( NULL AS INTEGER ) - + 87
----
NULL

query II rowsort
SELECT ALL 44 * 53 - + 78 * + 58 AS col2, + 56
----
-2192
56

query I rowsort
SELECT DISTINCT - 4 * - 40
----
160

query I rowsort
SELECT DISTINCT - + CASE CASE + 84 WHEN - - 25 THEN - 52 + 31 - + 22 + + 8 END WHEN - 93 THEN NULL ELSE - + 83 + - - 57 END col0
----
26

query I rowsort
SELECT ALL 71 * - + 71 * - 98 AS col2
----
494018

query I rowsort
SELECT 57 * 10 * - - 99
----
56430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8190
SELECT DISTINCT - - 90 DIV COUNT( * ) col0
----
90

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT - - 90 / COUNT ( * ) col0
----
90

query I rowsort
SELECT - CASE - 9 WHEN - - 24 THEN - 97 END AS col2
----
NULL

query I rowsort
SELECT + 63 + 11 AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT 66 DIV 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8193
SELECT 66 / 37 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT DISTINCT - 53 DIV - 36
----
1

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - 53 / - 36
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT - 7 * 61 + - + COUNT( * ) * - 53
----
-374

skipif mysql # not compatible
query I rowsort label-8195
SELECT - 7 * 61 + - + COUNT ( * ) * - 53
----
-374

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT 56 + - 36 DIV - 35 + - 60
----
-3

skipif mysql # not compatible
query I rowsort label-8196
SELECT 56 + - 36 / - 35 + - 60
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ALL + 63 + + + COUNT( * ) col1
----
64

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL + 63 + + + COUNT ( * ) col1
----
64

query I rowsort
SELECT 71 + - 22 col0
----
49

query I rowsort
SELECT DISTINCT + 82 + - 87 + + 50 + - - 83 - 7 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT + COALESCE ( + + ( - COUNT( * ) ), 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-8200
SELECT + COALESCE ( + + ( - COUNT ( * ) ), 85 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT DISTINCT MAX( ALL - 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT MAX ( ALL - 17 ) AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8202
SELECT - 46 * 52 DIV - 1 AS col1, 82 + + - COUNT( * )
----
2392
81

skipif mysql # not compatible
query II rowsort label-8202
SELECT - 46 * 52 / - 1 AS col1, 82 + + - COUNT ( * )
----
2392
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT DISTINCT - COUNT( * ) + - 69
----
-70

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT - COUNT ( * ) + - 69
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8204
SELECT - 99 * COALESCE ( 22, - + 78 + + 63 DIV - CASE - 42 WHEN 11 DIV 92 THEN - 72 ELSE NULL END * + + 33 - + 62 * - - CAST( - 37 AS SIGNED ) + - + 97 * MAX( DISTINCT 37 ) ) AS col1
----
-2178

skipif mysql # not compatible
query I rowsort label-8204
SELECT - 99 * COALESCE ( 22, - + 78 + + 63 / - CASE - 42 WHEN 11 / 92 THEN - 72 ELSE NULL END * + + 33 - + 62 * - - CAST ( - 37 AS INTEGER ) + - + 97 * MAX ( DISTINCT 37 ) ) AS col1
----
-2178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT DISTINCT COALESCE ( - - 71, - CAST( + 18 AS SIGNED ) * + + CAST( - 59 AS SIGNED ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT COALESCE ( - - 71, - CAST ( + 18 AS INTEGER ) * + + CAST ( - 59 AS INTEGER ) ) AS col2
----
71

query I rowsort
SELECT DISTINCT - 46 - 15 * 54
----
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL MAX( DISTINCT - 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL MAX ( DISTINCT - 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8208
SELECT DISTINCT - 60 DIV SUM( - 28 ) AS col1, 73 AS col0
----
2
73

skipif mysql # not compatible
query II rowsort label-8208
SELECT DISTINCT - 60 / SUM ( - 28 ) AS col1, 73 AS col0
----
2
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT - + CAST( + 92 AS SIGNED ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-8209
SELECT - + CAST ( + 92 AS INTEGER ) AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8210
SELECT + - CAST( NULL AS DECIMAL ) + + + CAST( NULL AS DECIMAL ) / - CAST( NULL AS DECIMAL ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8210
SELECT + - CAST ( NULL AS REAL ) + + + CAST ( NULL AS REAL ) / - CAST ( NULL AS REAL ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8211
SELECT - - 21 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-8211
SELECT - - 21 / + 68
----
0

query I rowsort
SELECT + 92 * 30
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT - 31 + - + COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8213
SELECT - 31 + - + COUNT ( * ) AS col0
----
-32

query I rowsort
SELECT ALL 75 * 6 * + - 1 AS col2
----
-450

query II rowsort
SELECT - 45 + - 83 + - + 57 AS col2, - 93 AS col0
----
-185
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8216
SELECT + 58 DIV + NULLIF ( - 67, - 24 )
----
0

skipif mysql # not compatible
query I rowsort label-8216
SELECT + 58 / + NULLIF ( - 67, - 24 )
----
0

query I rowsort
SELECT + 72 * + - 96
----
-6912

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT ALL - SUM( - 90 ) * + + 77 AS col1, + 38 AS col0
----
6930
38

skipif mysql # not compatible
query II rowsort label-8218
SELECT ALL - SUM ( - 90 ) * + + 77 AS col1, + 38 AS col0
----
6930
38

query II rowsort
SELECT 53 col0, + 44
----
53
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT DISTINCT + MIN( - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT + MIN ( - 97 )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8221
SELECT ALL + - 96 * COALESCE ( 70, 37 + - 47 * + CASE + + 20 WHEN 72 + + 60 THEN + - 95 WHEN - 78 * - 78 THEN NULL ELSE NULL END, 42 DIV + + 65 + - 62, - 40 + + COUNT( + 75 ) ) + 16 * + 69 + + 36 AS col1
----
-5580

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + - 96 * COALESCE ( 70, 37 + - 47 * + CASE + + 20 WHEN 72 + + 60 THEN + - 95 WHEN - 78 * - 78 THEN NULL ELSE NULL END, 42 / + + 65 + - 62, - 40 + + COUNT ( + 75 ) ) + 16 * + 69 + + 36 AS col1
----
-5580

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL + COALESCE ( + 25, 22 * 78 * + 40 - + - 86 + + COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL + COALESCE ( + 25, 22 * 78 * + 40 - + - 86 + + COUNT ( * ) ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT DISTINCT + - COUNT( - - 10 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT + - COUNT ( - - 10 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL 7 * - - COUNT( * ) col0
----
7

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL 7 * - - COUNT ( * ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT - 19 + + 92 + - + MAX( ALL 93 ) * 1 - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-8225
SELECT - 19 + + 92 + - + MAX ( ALL 93 ) * 1 - + COUNT ( * )
----
-21

query I rowsort
SELECT + ( - - 82 ) AS col0
----
82

query I rowsort
SELECT + 83 * + + 12
----
996

query I rowsort
SELECT DISTINCT 33 * - 11 * 98 * 12 + - 76 AS col1
----
-426964

query I rowsort
SELECT ALL ( - + 63 ) * - ( - - 85 ) + 29 * - - ( - - ( 98 ) ) * + 34 + + 6 * - NULLIF ( - + 99, - - 7 )
----
102577

query I rowsort
SELECT + COALESCE ( - - 91, + + 52, + 41 * 72 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL 8 * COUNT( * ) + - + 78 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL 8 * COUNT ( * ) + - + 78 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT MAX( - 63 ) * COUNT( * ) + + ( - COUNT( * ) ) * + 17 - 86
----
-166

skipif mysql # not compatible
query I rowsort label-8232
SELECT MAX ( - 63 ) * COUNT ( * ) + + ( - COUNT ( * ) ) * + 17 - 86
----
-166

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT + 23 * 28 DIV - - 61 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8233
SELECT + 23 * 28 / - - 61 AS col0
----
10

query II rowsort
SELECT + 3, - 61 AS col1
----
3
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8235
SELECT ALL + 42, CAST( - - 48 AS SIGNED ) AS col2
----
42
48

skipif mysql # not compatible
query II rowsort label-8235
SELECT ALL + 42, CAST ( - - 48 AS INTEGER ) AS col2
----
42
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT MIN( DISTINCT - 11 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-8236
SELECT MIN ( DISTINCT - 11 ) col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT - 5 DIV - 14 * 12
----
0

skipif mysql # not compatible
query I rowsort label-8237
SELECT - 5 / - 14 * 12
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT + COALESCE ( + + CASE CAST( NULL AS SIGNED ) WHEN + + 91 THEN + 56 END, - - 17 ) * 80
----
1360

skipif mysql # not compatible
query I rowsort label-8238
SELECT + COALESCE ( + + CASE CAST ( NULL AS INTEGER ) WHEN + + 91 THEN + 56 END, - - 17 ) * 80
----
1360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8239
SELECT ALL + 97 * + + NULLIF ( + - 47, CAST( NULL AS SIGNED ) ) - COUNT( * )
----
-4560

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL + 97 * + + NULLIF ( + - 47, CAST ( NULL AS INTEGER ) ) - COUNT ( * )
----
-4560

query I rowsort
SELECT - 93 * + 66 AS col1
----
-6138

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8241
SELECT DISTINCT - 64 * 57 * + COUNT( * ) - + NULLIF ( - 52, 0 ) * - COUNT( * ) * + 55 * + 78 AS col0, 5 * 2 + + 12 + - CAST( NULL AS DECIMAL ) + + 25 AS col1
----
-226728
NULL

skipif mysql # not compatible
query II rowsort label-8241
SELECT DISTINCT - 64 * 57 * + COUNT ( * ) - + NULLIF ( - 52, 0 ) * - COUNT ( * ) * + 55 * + 78 AS col0, 5 * 2 + + 12 + - CAST ( NULL AS REAL ) + + 25 AS col1
----
-226728
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8242
SELECT ALL - 31 - - - 19 + + 16 + - 65 DIV + - 10 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL - 31 - - - 19 + + 16 + - 65 / + - 10 AS col2
----
-28

query I rowsort
SELECT - 62 * - 54 * 90
----
301320

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT + COUNT( * ) + + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8244
SELECT + COUNT ( * ) + + 51 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - COUNT( * ) + - 34 col1
----
-35

skipif mysql # not compatible
query I rowsort label-8245
SELECT - COUNT ( * ) + - 34 col1
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8246
SELECT - 90 * - 19 + 46 - + + CAST( NULL AS DECIMAL ) * - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT - 90 * - 19 + 46 - + + CAST ( NULL AS REAL ) * - 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT - + 59 * - ( + COUNT( * ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8247
SELECT - + 59 * - ( + COUNT ( * ) ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8248
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0, 24 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-8248
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0, 24 AS col1
----
NULL
24

query I rowsort
SELECT DISTINCT - 37 * - + 29 AS col0
----
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL + COUNT( - ( + 74 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL + COUNT ( - ( + 74 ) ) AS col0
----
1

query I rowsort
SELECT - - COALESCE ( + + ( + + CASE + 35 WHEN 81 THEN NULL ELSE + + 98 END ), - 97, + ( - 20 ) * 6, 99 * + 72 + + 83 * - 58 * 8 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT DISTINCT + + 69 + + CASE 57 WHEN 44 * - + 55 + - COUNT( * ) THEN + + 10 * - - 56 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT + + 69 + + CASE 57 WHEN 44 * - + 55 + - COUNT ( * ) THEN + + 10 * - - 56 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 71 + + + 83 + + + 22
----
176

query I rowsort
SELECT DISTINCT - - 19 + + + 9
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8255
SELECT - 89 AS col1, ( + MIN( - + 53 ) ) + + + ( 15 ) AS col1
----
-89
-38

skipif mysql # not compatible
query II rowsort label-8255
SELECT - 89 AS col1, ( + MIN ( - + 53 ) ) + + + ( 15 ) AS col1
----
-89
-38

query II rowsort
SELECT - 39, 87 AS col1
----
-39
87

query I rowsort
SELECT ALL - - COALESCE ( + 93, + 9 ) + + + 20 * + 58
----
1253

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - SUM( - ( + 6 ) )
----
6

skipif mysql # not compatible
query I rowsort label-8258
SELECT - SUM ( - ( + 6 ) )
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8259
SELECT - CAST( NULL AS DECIMAL ) + - 46 * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT - CAST ( NULL AS REAL ) + - 46 * + 95
----
NULL

query I rowsort
SELECT ALL 89 * + - 26
----
-2314

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT ALL + 14 DIV - 79 + + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + 14 / - 79 + + 95 AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT ALL 92 / + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 30 + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL 92 / + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 30 + + 91
----
NULL

query I rowsort
SELECT DISTINCT - 90 * + 7 * - ( 32 ) AS col0
----
20160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8264
SELECT DISTINCT 54 DIV + 55 + - - 31 - COALESCE ( + 14, - 49 ) * + 81 * - ( - MAX( - 67 ) ) * SUM( - 16 )
----
-1215617

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT 54 / + 55 + - - 31 - COALESCE ( + 14, - 49 ) * + 81 * - ( - MAX ( - 67 ) ) * SUM ( - 16 )
----
-1215617

query I rowsort
SELECT + 59 * 81 col2
----
4779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8266
SELECT ALL COUNT( * ) DIV + 58 + - 42 + - + 31 + - - 77
----
4

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL COUNT ( * ) / + 58 + - 42 + - + 31 + - - 77
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8267
SELECT MIN( ALL + 66 ) + + 55 + + - 99 * + 58 AS col1, + COALESCE ( - - 63, + - 25 ) AS col1
----
-5621
63

skipif mysql # not compatible
query II rowsort label-8267
SELECT MIN ( ALL + 66 ) + + 55 + + - 99 * + 58 AS col1, + COALESCE ( - - 63, + - 25 ) AS col1
----
-5621
63

query II rowsort
SELECT 0 * - 66 * + - 87 + 35 * - - 34, 85 * - - 11 col1
----
1190
935

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT COUNT( * ) - - 48 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8269
SELECT COUNT ( * ) - - 48 AS col2
----
49

query I rowsort
SELECT 80 + - 40 * - 41
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT SUM( DISTINCT + 14 ) + - 46 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8271
SELECT SUM ( DISTINCT + 14 ) + - 46 AS col1
----
-32

query I rowsort
SELECT ALL 99 * 20
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT DISTINCT 16 * + 72 * COUNT( * ) AS col2
----
1152

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT 16 * + 72 * COUNT ( * ) AS col2
----
1152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8274
SELECT MIN( ALL - + 14 ) DIV + 31 * + + 5 col2
----
0

skipif mysql # not compatible
query I rowsort label-8274
SELECT MIN ( ALL - + 14 ) / + 31 * + + 5 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT ( 77 ) * - NULLIF ( - 30, - - COUNT( * ) ) - + 1
----
2309

skipif mysql # not compatible
query I rowsort label-8275
SELECT ( 77 ) * - NULLIF ( - 30, - - COUNT ( * ) ) - + 1
----
2309

query I rowsort
SELECT 25 + 55
----
80

query I rowsort
SELECT 76 + + 73 AS col0
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT 94 DIV - 98 DIV + 65 DIV + + 41 - 26 col0
----
-26

skipif mysql # not compatible
query I rowsort label-8278
SELECT 94 / - 98 / + 65 / + + 41 - 26 col0
----
-26

query I rowsort
SELECT ( 34 ) * - 10 AS col2
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT ALL + COUNT( * ) * + 50
----
50

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL + COUNT ( * ) * + 50
----
50

query I rowsort
SELECT ALL + 75 + 80 + 47 AS col0
----
202

query I rowsort
SELECT DISTINCT + 16 + - 82 + - 7 AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8283
SELECT 63 * - 46 - - SUM( - 29 ) + COUNT( * ) + - 32 * + 24 + ( - + 25 ) + - + 32 * - 46 - + + 0 col1, 1 + CAST( + 85 AS SIGNED ) AS col0
----
-2247
86

skipif mysql # not compatible
query II rowsort label-8283
SELECT 63 * - 46 - - SUM ( - 29 ) + COUNT ( * ) + - 32 * + 24 + ( - + 25 ) + - + 32 * - 46 - + + 0 col1, 1 + CAST ( + 85 AS INTEGER ) AS col0
----
-2247
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT 24 * - - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-8284
SELECT 24 * - - COUNT ( * )
----
24

query I rowsort
SELECT 42 + + + 63
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - 48 + - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - 48 + - COUNT ( * ) AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT DISTINCT + 22 DIV + + ( - - ( - 28 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + 22 / + + ( - - ( - 28 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT + 49 + COUNT( 38 ) + + 50
----
100

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT + 49 + COUNT ( 38 ) + + 50
----
100

query I rowsort
SELECT DISTINCT - 95 + - 45 AS col1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT ALL + 32 - - - 4 * 33 + + + COUNT( * ) - + 52
----
-151

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL + 32 - - - 4 * 33 + + + COUNT ( * ) - + 52
----
-151

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT DISTINCT + 23 DIV - ( - 89 ) * 99 * + - 24 + 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT + 23 / - ( - 89 ) * 99 * + - 24 + 61 AS col2
----
61

query I rowsort
SELECT 65 * - 17
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT NULLIF ( 8, - 50 ) * + SUM( ALL - 2 ) + + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-8293
SELECT NULLIF ( 8, - 50 ) * + SUM ( ALL - 2 ) + + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8294
SELECT ALL + 5 * + + SUM( - 65 ) AS col0, - 59
----
-325
-59

skipif mysql # not compatible
query II rowsort label-8294
SELECT ALL + 5 * + + SUM ( - 65 ) AS col0, - 59
----
-325
-59

query II rowsort
SELECT 22 AS col2, 30 col2
----
22
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT - 94 DIV + + 91 + - COUNT( * ) + - 7 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8296
SELECT - 94 / + + 91 + - COUNT ( * ) + - 7 AS col0
----
-9

query I rowsort
SELECT ALL 11 - + + 26 AS col1
----
-15

query I rowsort
SELECT ALL + 5 * CASE 76 WHEN - 12 THEN - 70 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8299
SELECT 46 AS col2, 37 + - ( - - 74 ) - 65 * + - CAST( NULL AS SIGNED ) + ( + MAX( 99 ) ) + - - 15 * - 10
----
46
NULL

skipif mysql # not compatible
query II rowsort label-8299
SELECT 46 AS col2, 37 + - ( - - 74 ) - 65 * + - CAST ( NULL AS INTEGER ) + ( + MAX ( 99 ) ) + - - 15 * - 10
----
46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8300
SELECT ALL + COUNT( * ) - - 71 + + CAST( NULL AS SIGNED ) * + MAX( - 43 ) * - NULLIF ( + CAST( + 63 AS DECIMAL ), 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + COUNT ( * ) - - 71 + + CAST ( NULL AS INTEGER ) * + MAX ( - 43 ) * - NULLIF ( + CAST ( + 63 AS REAL ), 7 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8301
SELECT ALL - 51 AS col0, + 91 DIV - - 11
----
-51
8

skipif mysql # not compatible
query II rowsort label-8301
SELECT ALL - 51 AS col0, + 91 / - - 11
----
-51
8

query I rowsort
SELECT + 74 * + ( 44 ) - 91 * - 85
----
10991

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT + ( ( - CASE 55 WHEN + - 0 - + COUNT( * ) * + 36 THEN - 69 * + + 0 ELSE + 28 END ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8303
SELECT + ( ( - CASE 55 WHEN + - 0 - + COUNT ( * ) * + 36 THEN - 69 * + + 0 ELSE + 28 END ) ) AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8304
SELECT CAST( + ( - CASE 30 WHEN 35 + - 45 / + 95 * - 71 THEN NULL WHEN - + ( + 35 ) THEN - - 96 * 18 + MAX( - CAST( 72 AS SIGNED ) ) ELSE - 20 END ) AS SIGNED ) * + 23 * 66
----
30360

skipif mysql # not compatible
query I rowsort label-8304
SELECT CAST ( + ( - CASE 30 WHEN 35 + - 45 / + 95 * - 71 THEN NULL WHEN - + ( + 35 ) THEN - - 96 * 18 + MAX ( - CAST ( 72 AS INTEGER ) ) ELSE - 20 END ) AS INTEGER ) * + 23 * 66
----
30360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8305
SELECT ALL 41 * - ( - - 67 ) + + + CAST( COUNT( ALL + + 56 ) AS SIGNED ) - - + 16 * - 34 * - 36
----
16838

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL 41 * - ( - - 67 ) + + + CAST ( COUNT ( ALL + + 56 ) AS INTEGER ) - - + 16 * - 34 * - 36
----
16838

onlyif mysql # aggregate syntax: 
query II rowsort label-8306
SELECT DISTINCT COUNT( * ) AS col1, 57 AS col2
----
1
57

skipif mysql # not compatible
query II rowsort label-8306
SELECT DISTINCT COUNT ( * ) AS col1, 57 AS col2
----
1
57

query II rowsort
SELECT - + 54, ( + 17 ) AS col1
----
-54
17

query I rowsort
SELECT DISTINCT - 46 + + + 17 + - 91 * + + 39 AS col2
----
-3578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8309
SELECT ALL 8 * + CAST( COALESCE ( - 54, COUNT( * ) * - 16, 24 * 8 ) AS SIGNED ) + - - 31 + - 41
----
-442

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL 8 * + CAST ( COALESCE ( - 54, COUNT ( * ) * - 16, 24 * 8 ) AS INTEGER ) + - - 31 + - 41
----
-442

query I rowsort
SELECT ALL + 13 + + + 18 AS col1
----
31

query I rowsort
SELECT - NULLIF ( + COALESCE ( 9, - 36 ), - 82 ) col0
----
-9

query I rowsort
SELECT ALL - 96 + 43 * - 36
----
-1644

onlyif mysql # DIV for integer division: 
query I rowsort label-8313
SELECT - 13 DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-8313
SELECT - 13 / 33
----
0

query I rowsort
SELECT 26 + + 50
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT + COUNT( * ) + + - 91 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8315
SELECT + COUNT ( * ) + + - 91 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT SUM( ALL 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT SUM ( ALL 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL 15 + + - COUNT( - + 18 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL 15 + + - COUNT ( - + 18 ) AS col2
----
14

query II rowsort
SELECT DISTINCT - 39 * + COALESCE ( - - 8, 11 * - ( + 71 ), 85 ) * - 50 AS col1, NULLIF ( 83, - 54 + 97 )
----
15600
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT ALL + - CAST( + ( + + CASE NULLIF ( 83, + 56 / + + 52 + ( - ( - COUNT( DISTINCT + + 98 ) ) ) ) WHEN + COUNT( 92 ) * - CAST( NULL AS SIGNED ) * - + 8 THEN NULL WHEN - NULLIF ( 22, 18 ) THEN NULL ELSE 30 * + 78 END ) AS SIGNED ) * 39 AS col0
----
-91260

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + - CAST ( + ( + + CASE NULLIF ( 83, + 56 / + + 52 + ( - ( - COUNT ( DISTINCT + + 98 ) ) ) ) WHEN + COUNT ( 92 ) * - CAST ( NULL AS INTEGER ) * - + 8 THEN NULL WHEN - NULLIF ( 22, 18 ) THEN NULL ELSE 30 * + 78 END ) AS INTEGER ) * 39 AS col0
----
-91260

query I rowsort
SELECT - ( - - 47 ) + + + 11 AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT ALL 24 - 75 + - 49 * + - CAST( - 3 AS SIGNED )
----
-198

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL 24 - 75 + - 49 * + - CAST ( - 3 AS INTEGER )
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - MIN( 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8322
SELECT - MIN ( 82 ) AS col2
----
-82

query I rowsort
SELECT - 88 * - 60
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ALL + SUM( + 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL + SUM ( + 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT NULLIF ( + + COUNT( * ), - 81 + + 92 )
----
1

skipif mysql # not compatible
query I rowsort label-8325
SELECT NULLIF ( + + COUNT ( * ), - 81 + + 92 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8326
SELECT DISTINCT + NULLIF ( - COALESCE ( - ( + + 9 ), 20 * + 27 + - 5 + - 97 DIV + + 87 * + - 37 + - - 54 * + - 36 * ( 68 ) + 39 * + 11, + - 10 ), - CASE + 42 WHEN 22 THEN NULL ELSE + ( 33 ) END DIV 10 )
----
9

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT + NULLIF ( - COALESCE ( - ( + + 9 ), 20 * + 27 + - 5 + - 97 / + + 87 * + - 37 + - - 54 * + - 36 * ( 68 ) + 39 * + 11, + - 10 ), - CASE + 42 WHEN 22 THEN NULL ELSE + ( 33 ) END / 10 )
----
9

query I rowsort
SELECT - 52 * - 27 * + 61 AS col0
----
85644

query I rowsort
SELECT - 64 * + 28 - 58
----
-1850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8329
SELECT COALESCE ( + MIN( ALL - 42 ), + 11 DIV + 0, + 62 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8329
SELECT COALESCE ( + MIN ( ALL - 42 ), + 11 / + 0, + 62 ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8330
SELECT CASE 13 WHEN - + 96 * + 74 / + CASE - + 92 WHEN COALESCE ( + 75, - 88 * + 14 ) THEN 95 * - 25 + - 8 WHEN + COUNT( * ) / CASE AVG ( + + CAST( NULL AS SIGNED ) ) WHEN - 85 THEN 80 * COALESCE ( + 97 + 82, 25 ) WHEN - 97 THEN NULL ELSE COUNT( + 50 ) END THEN NULL WHEN 45 THEN 73 / CAST( 27 / + 92 AS SIGNED ) + + 81 END + - 28 THEN COUNT( * ) + - 43 ELSE 16 + - 82 END col0
----
-66

skipif mysql # not compatible
query I rowsort label-8330
SELECT CASE 13 WHEN - + 96 * + 74 / + CASE - + 92 WHEN COALESCE ( + 75, - 88 * + 14 ) THEN 95 * - 25 + - 8 WHEN + COUNT ( * ) / CASE AVG ( + + CAST ( NULL AS INTEGER ) ) WHEN - 85 THEN 80 * COALESCE ( + 97 + 82, 25 ) WHEN - 97 THEN NULL ELSE COUNT ( + 50 ) END THEN NULL WHEN 45 THEN 73 / CAST ( 27 / + 92 AS INTEGER ) + + 81 END + - 28 THEN COUNT ( * ) + - 43 ELSE 16 + - 82 END col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8331
SELECT - 16 DIV - 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8331
SELECT - 16 / - 45 AS col1
----
0

query I rowsort
SELECT - 22 * 79
----
-1738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT ALL - 74 DIV - NULLIF ( NULLIF ( - COUNT( 11 ), + 49 DIV 21 DIV - 46 * 41 ), + SUM( ALL + ( - 11 ) ) )
----
-74

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - 74 / - NULLIF ( NULLIF ( - COUNT ( 11 ), + 49 / 21 / - 46 * 41 ), + SUM ( ALL + ( - 11 ) ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT COUNT( * ) * COUNT( * ) + - - 66
----
67

skipif mysql # not compatible
query I rowsort label-8334
SELECT COUNT ( * ) * COUNT ( * ) + - - 66
----
67

query I rowsort
SELECT NULLIF ( - 32, - + NULLIF ( + 35, + + AVG ( - 1 ) ) )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8336
SELECT - 7 * - + COALESCE ( - 30, + 32 * + + 40 DIV - ( + COUNT( * ) ), + 6 ) + + 68
----
-142

skipif mysql # not compatible
query I rowsort label-8336
SELECT - 7 * - + COALESCE ( - 30, + 32 * + + 40 / - ( + COUNT ( * ) ), + 6 ) + + 68
----
-142

query I rowsort
SELECT + 16 - - 88
----
104

query I rowsort
SELECT ALL + ( - - ( + 16 ) ) AS col0
----
16

query I rowsort
SELECT ALL + - NULLIF ( - - 74, + + 64 ) AS col0
----
-74

query I rowsort
SELECT - 0 + + 38 + - 46 + - 67 * - + 28
----
1868

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL + - 50 * + 27 + + 70 + - COUNT( + + ( + + 2 ) ) * + CASE 13 WHEN ( 42 ) * COUNT( * ) / SUM( - 51 ) THEN - - ( - 92 ) ELSE NULL END + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL + - 50 * + 27 + + 70 + - COUNT ( + + ( + + 2 ) ) * + CASE 13 WHEN ( 42 ) * COUNT ( * ) / SUM ( - 51 ) THEN - - ( - 92 ) ELSE NULL END + - 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8342
SELECT ALL 42 * - 41 + ( - CAST( + 0 AS SIGNED ) ) * 63 + 71 + + COALESCE ( - 0, + 16 ) * - - ( CAST( - + COUNT( * ) AS SIGNED ) ) AS col2
----
-1651

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL 42 * - 41 + ( - CAST ( + 0 AS INTEGER ) ) * 63 + 71 + + COALESCE ( - 0, + 16 ) * - - ( CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col2
----
-1651

onlyif mysql # aggregate syntax: 
query II rowsort label-8343
SELECT - + 22 + 43 AS col0, + COUNT( * ) col1
----
21
1

skipif mysql # not compatible
query II rowsort label-8343
SELECT - + 22 + 43 AS col0, + COUNT ( * ) col1
----
21
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8344
SELECT DISTINCT 60 * + COUNT( * ) + - 7 DIV + + 11 + - 41 + CASE - 64 WHEN + COUNT( + - 84 ) * + 18 * + + 26 * - 40 DIV - - 3 THEN - 36 WHEN 20 THEN + + 81 ELSE + 21 * - 29 * + 54 * + COUNT( * ) + + 73 * 16 + 0 * - MAX( 0 - - 90 * 47 ) END
----
-31699

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT 60 * + COUNT ( * ) + - 7 / + + 11 + - 41 + CASE - 64 WHEN + COUNT ( + - 84 ) * + 18 * + + 26 * - 40 / - - 3 THEN - 36 WHEN 20 THEN + + 81 ELSE + 21 * - 29 * + 54 * + COUNT ( * ) + + 73 * 16 + 0 * - MAX ( 0 - - 90 * 47 ) END
----
-31699

query I rowsort
SELECT DISTINCT CASE + - 23 WHEN - 0 THEN + 44 END AS col1
----
NULL

query I rowsort
SELECT ALL - 9 * 50
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT DISTINCT COUNT( * ) - - 58 + 27 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT COUNT ( * ) - - 58 + 27 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL ( + - CASE - CASE - 40 WHEN - + COUNT( * ) THEN - + COALESCE ( - COALESCE ( - 38, + - 92, - - COUNT( * ) ), + 23 + + 3, + 62 ) END WHEN + 48 + - 22 THEN NULL WHEN - - 94 THEN + - 69 * + + 61 END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL ( + - CASE - CASE - 40 WHEN - + COUNT ( * ) THEN - + COALESCE ( - COALESCE ( - 38, + - 92, - - COUNT ( * ) ), + 23 + + 3, + 62 ) END WHEN + 48 + - 22 THEN NULL WHEN - - 94 THEN + - 69 * + + 61 END ) col2
----
NULL

query I rowsort
SELECT - - 60 * - 29 + + - 75
----
-1815

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT + 74 * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-8350
SELECT + 74 * + COUNT ( * )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8351
SELECT + NULLIF ( + MIN( 72 ), - + 14 ) + - 18 + CASE - COUNT( 26 ) WHEN + 99 * - 72 * + ( - + 16 ) THEN NULL WHEN - 47 THEN + - ( + CAST( NULL AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8351
SELECT + NULLIF ( + MIN ( 72 ), - + 14 ) + - 18 + CASE - COUNT ( 26 ) WHEN + 99 * - 72 * + ( - + 16 ) THEN NULL WHEN - 47 THEN + - ( + CAST ( NULL AS INTEGER ) ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8352
SELECT + 89 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-8352
SELECT + 89 / 52
----
1

query I rowsort
SELECT + 0 * + 73 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT - ( + CASE - ( - 26 ) WHEN - - 90 THEN NULL WHEN + + 31 * 83 * + 75 * - 82 * - 3 - 56 * + + COALESCE ( 42, NULLIF ( + - 42, - 95 / + + MIN( + 30 ) + + + COUNT( DISTINCT - 31 ) ) * + ( - CAST( NULL AS SIGNED ) * - 30 ) ) THEN NULL WHEN 54 + SUM( ALL + 67 ) THEN 84 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT - ( + CASE - ( - 26 ) WHEN - - 90 THEN NULL WHEN + + 31 * 83 * + 75 * - 82 * - 3 - 56 * + + COALESCE ( 42, NULLIF ( + - 42, - 95 / + + MIN ( + 30 ) + + + COUNT ( DISTINCT - 31 ) ) * + ( - CAST ( NULL AS INTEGER ) * - 30 ) ) THEN NULL WHEN 54 + SUM ( ALL + 67 ) THEN 84 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL SUM( ALL + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL SUM ( ALL + 95 ) AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT + 53 DIV 33 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8356
SELECT + 53 / 33 AS col2
----
1

query I rowsort
SELECT ALL - COALESCE ( - 72, + - 34 * - 71 ) * + ( - 20 ) + 11 * 63 * + 36 AS col2
----
23508

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT + 70 + - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8358
SELECT + 70 + - COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT - 97 * - MAX( ALL 85 ) * - 11 + - 52 * - COUNT( * ) * + 84 col1
----
-86327

skipif mysql # not compatible
query I rowsort label-8359
SELECT - 97 * - MAX ( ALL 85 ) * - 11 + - 52 * - COUNT ( * ) * + 84 col1
----
-86327

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT CAST( + 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-8360
SELECT CAST ( + 36 AS INTEGER )
----
36

query I rowsort
SELECT DISTINCT 87 * + 60
----
5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT CAST( - 88 AS SIGNED ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8362
SELECT CAST ( - 88 AS INTEGER ) AS col1
----
-88

query I rowsort
SELECT - 99 * 3 col2
----
-297

query I rowsort
SELECT + 10 * + 90 * 88 AS col1
----
79200

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL - 70 * + - COUNT( * ) * + ( - 63 )
----
-4410

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL - 70 * + - COUNT ( * ) * + ( - 63 )
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL + COUNT( 2 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL + COUNT ( 2 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT + CAST( - 83 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8367
SELECT + CAST ( - 83 AS INTEGER ) AS col2
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8368
SELECT ALL + 17 DIV - COUNT( * ) + + 7 + + + 23
----
13

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL + 17 / - COUNT ( * ) + + 7 + + + 23
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8369
SELECT CAST( 27 AS SIGNED ) col0
----
27

skipif mysql # not compatible
query I rowsort label-8369
SELECT CAST ( 27 AS INTEGER ) col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8370
SELECT ALL + MIN( + NULLIF ( 14, - 75 * - 96 ) ) DIV + - 51 + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + MIN ( + NULLIF ( 14, - 75 * - 96 ) ) / + - 51 + - + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8371
SELECT + - CAST( + 89 AS SIGNED ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8371
SELECT + - CAST ( + 89 AS INTEGER ) AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8372
SELECT ALL - 55 DIV + + ( + + 72 ) * 46 + + 19 AS col2, COUNT( * ) * + - 30
----
19
-30

skipif mysql # not compatible
query II rowsort label-8372
SELECT ALL - 55 / + + ( + + 72 ) * 46 + + 19 AS col2, COUNT ( * ) * + - 30
----
19
-30

query I rowsort
SELECT ALL + + ( + 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT + 59 * + NULLIF ( ( 98 ), + 25 ) * + COUNT( 94 )
----
5782

skipif mysql # not compatible
query I rowsort label-8374
SELECT + 59 * + NULLIF ( ( 98 ), + 25 ) * + COUNT ( 94 )
----
5782

query II rowsort
SELECT 90, - 65 AS col0
----
90
-65

query I rowsort
SELECT ALL - 26 * - 89 + 47
----
2361

query I rowsort
SELECT - 86 - - 96 AS col2
----
10

query I rowsort
SELECT - 56 * 60
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL - 5 * - + CASE + - 29 WHEN - NULLIF ( + COUNT( * ), 66 / + 52 ) THEN + + 68 + + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL - 5 * - + CASE + - 29 WHEN - NULLIF ( + COUNT ( * ), 66 / + 52 ) THEN + + 68 + + 57 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8380
SELECT DISTINCT + 94 DIV - - MAX( + - 65 ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT + 94 / - - MAX ( + - 65 ) + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8381
SELECT ALL + CAST( 80 AS SIGNED ) * 35 + - 62 AS col2
----
2738

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + CAST ( 80 AS INTEGER ) * 35 + - 62 AS col2
----
2738

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL COUNT( * ) * 52 - 17
----
35

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL COUNT ( * ) * 52 - 17
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8383
SELECT - - 50 DIV COUNT( * ) DIV + 36 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8383
SELECT - - 50 / COUNT ( * ) / + 36 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8384
SELECT + COUNT( * ) - - - ( - + MIN( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT + COUNT ( * ) - - - ( - + MIN ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 80 + - 96 AS col1
----
-16

query II rowsort
SELECT ALL 9 AS col1, 22 + 35 * ( 26 ) AS col2
----
9
932

query II rowsort
SELECT - 3 + 70 + - 4 + NULLIF ( + - 93, + + ( 4 ) + + - 11 ) AS col1, + 99
----
-30
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT 55 * - CAST( - 57 AS SIGNED ) AS col0
----
3135

skipif mysql # not compatible
query I rowsort label-8388
SELECT 55 * - CAST ( - 57 AS INTEGER ) AS col0
----
3135

query I rowsort
SELECT 74 + - 12 + - 41 AS col1
----
21

query I rowsort
SELECT COALESCE ( 41, ( - COALESCE ( - 73, + 76 ) ) ) - - 4 AS col0
----
45

query II rowsort
SELECT ALL 73, NULLIF ( - 52, + 45 * + - 73 - + + 97 ) AS col0
----
73
-52

query I rowsort
SELECT DISTINCT 54 * - + 26 * + - 89
----
124956

query I rowsort
SELECT 90 * - 54 AS col2
----
-4860

query II rowsort
SELECT ALL 82 AS col2, + 52 * 34
----
82
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT 9 + + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8395
SELECT 9 + + COUNT ( * ) AS col0
----
10

query I rowsort
SELECT ALL - 83 * 86 * + 3
----
-21414

query I rowsort
SELECT 16 * 66 * + 45
----
47520

query III rowsort
SELECT DISTINCT 99 AS col2, 1, + 44 AS col0
----
99
1
44

query I rowsort
SELECT 6 + - 42 AS col2
----
-36

query II rowsort
SELECT ALL - 80 AS col1, 7 * + 57 col1
----
-80
399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT 15 * - 27 * 64 * - + 38 * - CAST( - 50 AS SIGNED ) AS col2
----
49248000

skipif mysql # not compatible
query I rowsort label-8401
SELECT 15 * - 27 * 64 * - + 38 * - CAST ( - 50 AS INTEGER ) AS col2
----
49248000

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL - COALESCE ( + + 27, + COUNT( * ) * - + 10 ) + 29 + 18 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL - COALESCE ( + + 27, + COUNT ( * ) * - + 10 ) + 29 + 18 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8403
SELECT COALESCE ( - 89, COUNT( ALL - 85 ), 19 + - - 93 * - - 47, + CAST( 34 AS SIGNED ) * + - MAX( DISTINCT + 5 ) DIV - 16 ) - + 60 + 30 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-8403
SELECT COALESCE ( - 89, COUNT ( ALL - 85 ), 19 + - - 93 * - - 47, + CAST ( 34 AS INTEGER ) * + - MAX ( DISTINCT + 5 ) / - 16 ) - + 60 + 30 AS col0
----
-119

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8404
SELECT 12 * - CASE + COALESCE ( + 96, 48 + - SUM( 70 ) / 4 ) WHEN - + CAST( NULL AS DECIMAL ) + CASE COUNT( * ) WHEN 45 THEN NULL WHEN + - 63 THEN + ( - 37 ) / - + COUNT( * ) WHEN + COUNT( + 14 ) + 71 THEN NULL WHEN - ( - 66 ) * 84 + + 25 * 23 THEN 73 / - 67 END THEN NULL WHEN - 60 THEN 42 + 59 ELSE NULL END / + 67 - 23 * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT 12 * - CASE + COALESCE ( + 96, 48 + - SUM ( 70 ) / 4 ) WHEN - + CAST ( NULL AS REAL ) + CASE COUNT ( * ) WHEN 45 THEN NULL WHEN + - 63 THEN + ( - 37 ) / - + COUNT ( * ) WHEN + COUNT ( + 14 ) + 71 THEN NULL WHEN - ( - 66 ) * 84 + + 25 * 23 THEN 73 / - 67 END THEN NULL WHEN - 60 THEN 42 + 59 ELSE NULL END / + 67 - 23 * 20 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8405
SELECT ALL - COALESCE ( 12, 50 * - 72 ) DIV 27 DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL - COALESCE ( 12, 50 * - 72 ) / 27 / - - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT DISTINCT - + MIN( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT - + MIN ( - 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8407
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN COUNT( * ) / + + 96 THEN + - COUNT( * ) END + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) / + + 96 THEN + - COUNT ( * ) END + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 44 + - + 70 * - 92 AS col1
----
6396

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT + 85 AS col2, + 27 * + + 91 * - COUNT( ALL 42 ) + - + 64 - 35 AS col1
----
85
-2556

skipif mysql # not compatible
query II rowsort label-8409
SELECT + 85 AS col2, + 27 * + + 91 * - COUNT ( ALL 42 ) + - + 64 - 35 AS col1
----
85
-2556

onlyif mysql # aggregate syntax: 
query II rowsort label-8410
SELECT ALL 88 * - 84 * + COUNT( * ) + 76, COUNT( + 67 ) AS col1
----
-7316
1

skipif mysql # not compatible
query II rowsort label-8410
SELECT ALL 88 * - 84 * + COUNT ( * ) + 76, COUNT ( + 67 ) AS col1
----
-7316
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT COALESCE ( - - 42, + + 84 ) * + - ( COUNT( * ) ) + + COUNT( * ) + + NULLIF ( - + 53, + 65 * + 20 )
----
-94

skipif mysql # not compatible
query I rowsort label-8411
SELECT COALESCE ( - - 42, + + 84 ) * + - ( COUNT ( * ) ) + + COUNT ( * ) + + NULLIF ( - + 53, + 65 * + 20 )
----
-94

query I rowsort
SELECT + 27 * 58 AS col1
----
1566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8413
SELECT DISTINCT - ( + 17 ) * + CAST( - 3 AS SIGNED ) * CAST( MIN( + - 81 ) AS SIGNED ) + 39 AS col0
----
-4092

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT - ( + 17 ) * + CAST ( - 3 AS INTEGER ) * CAST ( MIN ( + - 81 ) AS INTEGER ) + 39 AS col0
----
-4092

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ( COUNT( * ) ) - - ( + COUNT( * ) ) - - + ( - + 65 ) * + - 5 * - 48 AS col0
----
-15598

skipif mysql # not compatible
query I rowsort label-8414
SELECT ( COUNT ( * ) ) - - ( + COUNT ( * ) ) - - + ( - + 65 ) * + - 5 * - 48 AS col0
----
-15598

query II rowsort
SELECT ALL - + 10, + 96 AS col0
----
-10
96

query I rowsort
SELECT ALL - 64 * - + 98 AS col1
----
6272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8417
SELECT - 69, CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-8417
SELECT - 69, CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
-69
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8418
SELECT ALL - - 77 AS col0, CAST( NULL AS SIGNED ) AS col1
----
77
NULL

skipif mysql # not compatible
query II rowsort label-8418
SELECT ALL - - 77 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
77
NULL

query I rowsort
SELECT + 87 * + 65 * + - 14 + + - 56
----
-79226

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - ( - 81 ) * COALESCE ( 1, + - 1 * - 78 + + NULLIF ( - + 19, - - MIN( - + 48 ) ) ) * - 99 * + - COALESCE ( + 36, + 18, + + 72, + + 92 )
----
288684

skipif mysql # not compatible
query I rowsort label-8420
SELECT - ( - 81 ) * COALESCE ( 1, + - 1 * - 78 + + NULLIF ( - + 19, - - MIN ( - + 48 ) ) ) * - 99 * + - COALESCE ( + 36, + 18, + + 72, + + 92 )
----
288684

query I rowsort
SELECT DISTINCT - ( + COALESCE ( 84, + 75 * + 89, - ( + + 70 ) + 68 ) ) col2
----
-84

query II rowsort
SELECT 93 + + 14 AS col2, + 34 - - 98
----
107
132

query I rowsort
SELECT 11 + - + 24 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT + 70 + + - COUNT( * ) * - 22 + - + ( COUNT( * ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8424
SELECT + 70 + + - COUNT ( * ) * - 22 + - + ( COUNT ( * ) ) AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT - CAST( - - 67 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-8425
SELECT - CAST ( - - 67 AS INTEGER ) AS col1
----
-67

query I rowsort
SELECT 84 * - - 32 AS col1
----
2688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8427
SELECT ALL 65 * + + ( - 6 ) / ( + - 44 ) + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL 65 * + + ( - 6 ) / ( + - 44 ) + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8428
SELECT 90 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT 90 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 9 * - 79
----
-711

onlyif mysql # DIV for integer division: 
query II rowsort label-8430
SELECT 80 DIV - 57 col0, + 75 col0
----
-1
75

skipif mysql # not compatible
query II rowsort label-8430
SELECT 80 / - 57 col0, + 75 col0
----
-1
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8431
SELECT 96 + - - COUNT( * ) AS col0, CASE - - 16 WHEN + 20 THEN - + 21 / + 51 WHEN 34 + - 68 THEN + COALESCE ( 49, - 75 ) * - 53 / - + 56 * + + COUNT( * ) ELSE ( - + 47 ) * COUNT( * ) END AS col1
----
97
-47

skipif mysql # not compatible
query II rowsort label-8431
SELECT 96 + - - COUNT ( * ) AS col0, CASE - - 16 WHEN + 20 THEN - + 21 / + 51 WHEN 34 + - 68 THEN + COALESCE ( 49, - 75 ) * - 53 / - + 56 * + + COUNT ( * ) ELSE ( - + 47 ) * COUNT ( * ) END AS col1
----
97
-47

query I rowsort
SELECT 6 + + - 96
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8433
SELECT DISTINCT - MIN( - - ( + + 1 ) ) + CAST( - 7 AS SIGNED ) AS col2, 53
----
-8
53

skipif mysql # not compatible
query II rowsort label-8433
SELECT DISTINCT - MIN ( - - ( + + 1 ) ) + CAST ( - 7 AS INTEGER ) AS col2, 53
----
-8
53

query I rowsort
SELECT ALL CASE - - 19 WHEN - - 39 THEN NULL WHEN + + 76 THEN - 69 END + - 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL 75 + + - 1 - CASE + ( + - COUNT( * ) ) WHEN - + 44 - + 26 THEN 37 WHEN 95 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL 75 + + - 1 - CASE + ( + - COUNT ( * ) ) WHEN - + 44 - + 26 THEN 37 WHEN 95 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT 31 + - NULLIF ( + 76, + COUNT( * ) * - ( 0 ) + - 95 * 69 ) + COUNT( * ) * - - 89
----
44

skipif mysql # not compatible
query I rowsort label-8436
SELECT 31 + - NULLIF ( + 76, + COUNT ( * ) * - ( 0 ) + - 95 * 69 ) + COUNT ( * ) * - - 89
----
44

query I rowsort
SELECT 44 - 6 + ( - - 51 ) AS col0
----
89

query II rowsort
SELECT DISTINCT + ( + + 32 ) * - - 67 col0, 44 + 88 AS col1
----
2144
132

query II rowsort
SELECT - 32 * - - 48, 55 AS col2
----
-1536
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8440
SELECT + SUM( - 86 ) AS col2, - 68 + - 11 AS col0
----
-86
-79

skipif mysql # not compatible
query II rowsort label-8440
SELECT + SUM ( - 86 ) AS col2, - 68 + - 11 AS col0
----
-86
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-8441
SELECT 68 DIV - 78 - - 38 + + - 96 * + ( 74 )
----
-7066

skipif mysql # not compatible
query I rowsort label-8441
SELECT 68 / - 78 - - 38 + + - 96 * + ( 74 )
----
-7066

query I rowsort
SELECT + + ( + + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT ALL 30 * 81 * - 3 + - COUNT( * ) - - 52 * - 55 + - 17
----
-10168

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL 30 * 81 * - 3 + - COUNT ( * ) - - 52 * - 55 + - 17
----
-10168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8444
SELECT 77 DIV + + COUNT( * ) AS col0, 67 AS col0
----
77
67

skipif mysql # not compatible
query II rowsort label-8444
SELECT 77 / + + COUNT ( * ) AS col0, 67 AS col0
----
77
67

query I rowsort
SELECT + 91 * - 6 AS col0
----
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8446
SELECT DISTINCT + NULLIF ( 21, + - NULLIF ( - 97, + 92 * - CAST( + ( 66 ) AS SIGNED ) - - + CASE + 11 WHEN + 92 THEN COUNT( * ) END - - COUNT( * ) + + 67 * + NULLIF ( - 46, - COUNT( + 16 ) ) - 90 ) ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT + NULLIF ( 21, + - NULLIF ( - 97, + 92 * - CAST ( + ( 66 ) AS INTEGER ) - - + CASE + 11 WHEN + 92 THEN COUNT ( * ) END - - COUNT ( * ) + + 67 * + NULLIF ( - 46, - COUNT ( + 16 ) ) - 90 ) ) AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8447
SELECT - - 22 DIV - 2
----
-11

skipif mysql # not compatible
query I rowsort label-8447
SELECT - - 22 / - 2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT + COUNT( * ) * - 60
----
-60

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT + COUNT ( * ) * - 60
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8449
SELECT + 43 * - 22 - NULLIF ( + 84, - ( - - 76 ) + - 55 + + CAST( + 69 AS SIGNED ) + - + SUM( + - 44 ) / + - 84 * - - 50 + COUNT( * ) + + COUNT( * ) * - CAST( NULL AS SIGNED ) * + - AVG ( - CAST( NULL AS SIGNED ) ) + CASE + CASE + - COUNT( * ) WHEN 17 THEN + 7 / 89 WHEN - 41 THEN NULL WHEN + 28 + - 32 THEN NULL ELSE NULL END WHEN + 0 * 84 THEN NULL ELSE - 23 END + COUNT( * ) * 24 ) + + 29
----
-1001

skipif mysql # not compatible
query I rowsort label-8449
SELECT + 43 * - 22 - NULLIF ( + 84, - ( - - 76 ) + - 55 + + CAST ( + 69 AS INTEGER ) + - + SUM ( + - 44 ) / + - 84 * - - 50 + COUNT ( * ) + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + - AVG ( - CAST ( NULL AS INTEGER ) ) + CASE + CASE + - COUNT ( * ) WHEN 17 THEN + 7 / 89 WHEN - 41 THEN NULL WHEN + 28 + - 32 THEN NULL ELSE NULL END WHEN + 0 * 84 THEN NULL ELSE - 23 END + COUNT ( * ) * 24 ) + + 29
----
-1001

query I rowsort
SELECT + + 42 * 25
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + - MIN( + 78 ) - - 88 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8451
SELECT + - MIN ( + 78 ) - - 88 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8452
SELECT ALL + 92 * + CASE + 86 WHEN 23 + - - 31 THEN - 7 + + 65 * COALESCE ( + 60, - 75 ) * - 98 WHEN - 67 * - 97 / - 99 / 8 THEN CAST( 9 AS SIGNED ) END, 54 * + 98 * - 7 AS col0, - 59 * - 30 AS col1
----
NULL
-37044
1770

skipif mysql # not compatible
query III rowsort label-8452
SELECT ALL + 92 * + CASE + 86 WHEN 23 + - - 31 THEN - 7 + + 65 * COALESCE ( + 60, - 75 ) * - 98 WHEN - 67 * - 97 / - 99 / 8 THEN CAST ( 9 AS INTEGER ) END, 54 * + 98 * - 7 AS col0, - 59 * - 30 AS col1
----
NULL
-37044
1770

query I rowsort
SELECT + 94 * - 42 + - - 39 + - 77 col0
----
-3986

query I rowsort
SELECT DISTINCT + 59 * 82 * + 22 AS col0
----
106436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8455
SELECT ALL + MAX( COALESCE ( + 48, + + 89, + - 80 ) ) + - 27 + + + 52 + + CASE + + 21 WHEN - 57 + 69 * + 94 THEN - 34 + + 26 END * - - CASE + 72 WHEN 65 / - CAST( NULL AS SIGNED ) - + 84 + + + 26 THEN NULL WHEN - - COUNT( * ) THEN + 88 * - 26 + - NULLIF ( - 68 + CAST( NULLIF ( - 99, COALESCE ( + 17, ( + 11 ) ) ) AS SIGNED ), + 79 * 20 + + 75 ) ELSE NULL END + CASE COUNT( * ) + + 5 WHEN - COUNT( * ) * - ( - 58 * 93 ) THEN NULL WHEN - COUNT( * ) THEN - 28 * + ( + CASE 46 WHEN - 5 THEN + MIN( DISTINCT 78 ) ELSE NULL END ) ELSE - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + MAX ( COALESCE ( + 48, + + 89, + - 80 ) ) + - 27 + + + 52 + + CASE + + 21 WHEN - 57 + 69 * + 94 THEN - 34 + + 26 END * - - CASE + 72 WHEN 65 / - CAST ( NULL AS INTEGER ) - + 84 + + + 26 THEN NULL WHEN - - COUNT ( * ) THEN + 88 * - 26 + - NULLIF ( - 68 + CAST ( NULLIF ( - 99, COALESCE ( + 17, ( + 11 ) ) ) AS INTEGER ), + 79 * 20 + + 75 ) ELSE NULL END + CASE COUNT ( * ) + + 5 WHEN - COUNT ( * ) * - ( - 58 * 93 ) THEN NULL WHEN - COUNT ( * ) THEN - 28 * + ( + CASE 46 WHEN - 5 THEN + MIN ( DISTINCT 78 ) ELSE NULL END ) ELSE - 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ALL + COALESCE ( + 77, - 71 + + + 9 + - 65 ) + - - COALESCE ( - COUNT( * ), - 80, - - 51 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL + COALESCE ( + 77, - 71 + + + 9 + - 65 ) + - - COALESCE ( - COUNT ( * ), - 80, - - 51 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8457
SELECT DISTINCT SUM( DISTINCT + - 0 ) + + - ( - 90 ), 39 * - - MAX( DISTINCT 94 ) AS col1
----
90
3666

skipif mysql # not compatible
query II rowsort label-8457
SELECT DISTINCT SUM ( DISTINCT + - 0 ) + + - ( - 90 ), 39 * - - MAX ( DISTINCT 94 ) AS col1
----
90
3666

query II rowsort
SELECT 71, + ( 42 ) + - 29 col0
----
71
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT DISTINCT 53 + COALESCE ( + MAX( ALL - 16 ), - 65 )
----
37

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT 53 + COALESCE ( + MAX ( ALL - 16 ), - 65 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8460
SELECT ALL COALESCE ( + + ( - 99 ), - 9 - - CASE - 96 WHEN + CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) * 96 * + - 22 THEN 99 ELSE - ( - 53 ) END + - 15 * + - 14 ) + + + 93 + - 24
----
-30

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL COALESCE ( + + ( - 99 ), - 9 - - CASE - 96 WHEN + CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) * 96 * + - 22 THEN 99 ELSE - ( - 53 ) END + - 15 * + - 14 ) + + + 93 + - 24
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-8461
SELECT 14 AS col2, 11 + - COUNT( + 48 ) + + 7 + - 74 - 93 AS col1
----
14
-150

skipif mysql # not compatible
query II rowsort label-8461
SELECT 14 AS col2, 11 + - COUNT ( + 48 ) + + 7 + - 74 - 93 AS col1
----
14
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + MIN( DISTINCT + + 45 ) + COUNT( - 82 )
----
46

skipif mysql # not compatible
query I rowsort label-8462
SELECT + MIN ( DISTINCT + + 45 ) + COUNT ( - 82 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8463
SELECT DISTINCT + COALESCE ( + - 11, - CAST( + 1 AS SIGNED ), + - 82 ) + NULLIF ( 3, + + 80 )
----
-8

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT + COALESCE ( + - 11, - CAST ( + 1 AS INTEGER ), + - 82 ) + NULLIF ( 3, + + 80 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8464
SELECT ALL MIN( DISTINCT - - 40 ) + - + 55, + 50 DIV + - 7 AS col1
----
-15
-7

skipif mysql # not compatible
query II rowsort label-8464
SELECT ALL MIN ( DISTINCT - - 40 ) + - + 55, + 50 / + - 7 AS col1
----
-15
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT COALESCE ( + - 22, + + COUNT( * ) )
----
-22

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT COALESCE ( + - 22, + + COUNT ( * ) )
----
-22

query I rowsort
SELECT - 40 * - 76 AS col0
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL - COUNT( * ) * + 8 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL - COUNT ( * ) * + 8 AS col2
----
-8

query I rowsort
SELECT DISTINCT + 66 * 45
----
2970

query II rowsort
SELECT ALL CASE + 33 WHEN - 70 THEN - 38 END AS col1, - 64 AS col1
----
NULL
-64

query I rowsort
SELECT - 4 * + 19
----
-76

query I rowsort
SELECT - 10 * + 86
----
-860

query I rowsort
SELECT - 21 + 99 AS col1
----
78

query I rowsort
SELECT - 80 * + 22 AS col1
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT + COUNT( DISTINCT - - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT + COUNT ( DISTINCT - - 90 )
----
1

query II rowsort
SELECT ALL + 2 AS col2, + 28 AS col1
----
2
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT - CASE - ( + 53 ) WHEN + COUNT( * ) THEN - 18 WHEN + COUNT( * ) THEN NULL WHEN - MIN( DISTINCT - 41 ) THEN NULL END * - + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT - CASE - ( + 53 ) WHEN + COUNT ( * ) THEN - 18 WHEN + COUNT ( * ) THEN NULL WHEN - MIN ( DISTINCT - 41 ) THEN NULL END * - + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT + + COUNT( * ) * - 40 - - - ( + 86 )
----
-126

skipif mysql # not compatible
query I rowsort label-8477
SELECT + + COUNT ( * ) * - 40 - - - ( + 86 )
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-8478
SELECT + COUNT( * ), + COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8478
SELECT + COUNT ( * ), + COUNT ( * ) col0
----
1
1

query I rowsort
SELECT - - 93 * + 95 + - - 80 col0
----
8915

query I rowsort
SELECT + - 87 + - 52
----
-139

query I rowsort
SELECT ALL + 82 * NULLIF ( + - 99, - + 82 ) AS col2
----
-8118

query I rowsort
SELECT - 42 + + + 83 + - 7 + - 87 + 39 - - 54 AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT + 11 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-8483
SELECT + 11 / + 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT - 15 * + - 47 + - 27 * 15 + - 20 * 39 DIV + 59 + + - 27
----
260

skipif mysql # not compatible
query I rowsort label-8484
SELECT - 15 * + - 47 + - 27 * 15 + - 20 * 39 / + 59 + + - 27
----
260

query I rowsort
SELECT + ( 30 ) - 65 AS col1
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-8486
SELECT + - 38 DIV CASE WHEN - CASE + + 63 WHEN + - 98 THEN - 57 WHEN - 41 * 60 * 0 THEN - + 96 ELSE NULL END NOT IN ( 62 ) THEN NULL ELSE - ( - - 61 ) END + 9 * + 23 * + - NULLIF ( NULLIF ( 98, + 91 ), + 88 ), + 64 AS col1
----
-20286
64

skipif mysql # not compatible
query II rowsort label-8486
SELECT + - 38 / CASE WHEN - CASE + + 63 WHEN + - 98 THEN - 57 WHEN - 41 * 60 * 0 THEN - + 96 ELSE NULL END NOT IN ( 62 ) THEN NULL ELSE - ( - - 61 ) END + 9 * + 23 * + - NULLIF ( NULLIF ( 98, + 91 ), + 88 ), + 64 AS col1
----
-20286
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL COUNT( * ) * NULLIF ( + COUNT( * ), + 74 ) + + 71 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL COUNT ( * ) * NULLIF ( + COUNT ( * ), + 74 ) + + 71 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT NULLIF ( + 14, 60 / + COUNT( * ) ) * - - 27 + COUNT( * ) + + 66 AS col2
----
445

skipif mysql # not compatible
query I rowsort label-8488
SELECT NULLIF ( + 14, 60 / + COUNT ( * ) ) * - - 27 + COUNT ( * ) + + 66 AS col2
----
445

query I rowsort
SELECT DISTINCT + ( + 72 ) col0
----
72

query I rowsort
SELECT - 82 + + + 85 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT DISTINCT 26 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT 26 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT + 96 DIV + 68 col2
----
1

skipif mysql # not compatible
query I rowsort label-8492
SELECT + 96 / + 68 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT + + 61 + - COUNT( ( + ( + - 37 ) ) )
----
60

skipif mysql # not compatible
query I rowsort label-8493
SELECT + + 61 + - COUNT ( ( + ( + - 37 ) ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL - COUNT( * ) * - ( + 71 ) + 63 + - 11 - + 19 * + 84 - + 65 AS col1
----
-1538

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - COUNT ( * ) * - ( + 71 ) + 63 + - 11 - + 19 * + 84 - + 65 AS col1
----
-1538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT - 69 * + 43 * - 2 * + - 72 + - 53 DIV + COUNT( * )
----
-427301

skipif mysql # not compatible
query I rowsort label-8495
SELECT - 69 * + 43 * - 2 * + - 72 + - 53 / + COUNT ( * )
----
-427301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8496
SELECT + ( + - CAST( - 24 AS SIGNED ) )
----
24

skipif mysql # not compatible
query I rowsort label-8496
SELECT + ( + - CAST ( - 24 AS INTEGER ) )
----
24

query I rowsort
SELECT - 18 * - 37
----
666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8498
SELECT ALL 30 * - COUNT( CAST( ( + - 97 ) AS SIGNED ) )
----
-30

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL 30 * - COUNT ( CAST ( ( + - 97 ) AS INTEGER ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT COUNT( - - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-8499
SELECT COUNT ( - - 25 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8500
SELECT ALL ( + 61 ) * - COALESCE ( + 67, - MIN( - 71 ) DIV + AVG ( DISTINCT 61 ) ) AS col0
----
-4087

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL ( + 61 ) * - COALESCE ( + 67, - MIN ( - 71 ) / + AVG ( DISTINCT 61 ) ) AS col0
----
-4087

onlyif mysql # aggregate syntax: 
query II rowsort label-8501
SELECT + 12 + - - 64 AS col0, + COUNT( * ) + + + 66
----
76
67

skipif mysql # not compatible
query II rowsort label-8501
SELECT + 12 + - - 64 AS col0, + COUNT ( * ) + + + 66
----
76
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT - COUNT( * ) * + 86 + - 93 * - SUM( DISTINCT - + 10 ) AS col1
----
-1016

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - COUNT ( * ) * + 86 + - 93 * - SUM ( DISTINCT - + 10 ) AS col1
----
-1016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8503
SELECT DISTINCT COUNT( * ) * + 4 * CAST( NULL AS SIGNED ) * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT COUNT ( * ) * + 4 * CAST ( NULL AS INTEGER ) * - 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT COUNT( 30 )
----
1

skipif mysql # not compatible
query I rowsort label-8504
SELECT COUNT ( 30 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8505
SELECT ALL + 68 * + + 80 + - 68 + + 33 AS col0, + 68 DIV + 68
----
5405
1

skipif mysql # not compatible
query II rowsort label-8505
SELECT ALL + 68 * + + 80 + - 68 + + 33 AS col0, + 68 / + 68
----
5405
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT COUNT( + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-8506
SELECT COUNT ( + 5 )
----
1

query I rowsort
SELECT ALL NULLIF ( + 14, + 58 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT + 58 + - SUM( + 73 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8508
SELECT + 58 + - SUM ( + 73 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT COUNT( NULLIF ( + + 42, + - 12 + 46 * - 27 ) ) - NULLIF ( + 20, + 97 )
----
-19

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT COUNT ( NULLIF ( + + 42, + - 12 + 46 * - 27 ) ) - NULLIF ( + 20, + 97 )
----
-19

query I rowsort
SELECT + 34 + - 98 + + 55 * - 29 * - + 85 AS col1
----
135511

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL COUNT( + ( + + 4 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL COUNT ( + ( + + 4 ) )
----
1

query I rowsort
SELECT + 22 + + 67
----
89

query I rowsort
SELECT + 81 - 84
----
-3

query I rowsort
SELECT ALL - 89 * - 45
----
4005

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8515
SELECT DISTINCT CASE - - 63 WHEN + 34 THEN NULL ELSE 35 DIV + COUNT( * ) END, + 21 AS col1
----
35
21

skipif mysql # not compatible
query II rowsort label-8515
SELECT DISTINCT CASE - - 63 WHEN + 34 THEN NULL ELSE 35 / + COUNT ( * ) END, + 21 AS col1
----
35
21

query I rowsort
SELECT DISTINCT - 80 * + 35
----
-2800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8517
SELECT DISTINCT + 10 DIV - 18 DIV + + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT + 10 / - 18 / + + COUNT ( * ) col2
----
0

query I rowsort
SELECT ALL - ( 24 ) * 99 col0
----
-2376

onlyif mysql # DIV for integer division: 
query II rowsort label-8519
SELECT + ( - 20 ) * - 54 + 94 AS col0, 78 + + 56 DIV - + 58 * + 14 col1
----
1174
78

skipif mysql # not compatible
query II rowsort label-8519
SELECT + ( - 20 ) * - 54 + 94 AS col0, 78 + + 56 / - + 58 * + 14 col1
----
1174
78

query I rowsort
SELECT DISTINCT 38 * + 97 * 9 AS col0
----
33174

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL + 86 * + 64 * + - NULLIF ( - 31, + ( SUM( + ( - + 92 ) ) ) ) - + - 60 + - 56 AS col1
----
170628

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL + 86 * + 64 * + - NULLIF ( - 31, + ( SUM ( + ( - + 92 ) ) ) ) - + - 60 + - 56 AS col1
----
170628

query I rowsort
SELECT + 31 * + 96 AS col0
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT 99 * + 88 + - 92 + + + ( - COUNT( * ) )
----
8619

skipif mysql # not compatible
query I rowsort label-8523
SELECT 99 * + 88 + - 92 + + + ( - COUNT ( * ) )
----
8619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8524
SELECT ALL + COUNT( * ) + COALESCE ( + - 50, + CAST( NULL AS SIGNED ) / + 23 ) / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL + COUNT ( * ) + COALESCE ( + - 50, + CAST ( NULL AS INTEGER ) / + 23 ) / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT + MAX( DISTINCT - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-8525
SELECT + MAX ( DISTINCT - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT - MAX( ALL 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-8526
SELECT - MAX ( ALL 74 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8527
SELECT ALL + COUNT( * ) + - 83, COUNT( * ) DIV - COALESCE ( + COUNT( * ), + 0 + 71 * + 17, 43 ) + ( - 14 ) AS col1
----
-82
-15

skipif mysql # not compatible
query II rowsort label-8527
SELECT ALL + COUNT ( * ) + - 83, COUNT ( * ) / - COALESCE ( + COUNT ( * ), + 0 + 71 * + 17, 43 ) + ( - 14 ) AS col1
----
-82
-15

query I rowsort
SELECT DISTINCT - NULLIF ( + + COALESCE ( 15, + ( + + 90 ) * - NULLIF ( + + ( - 67 ), 71 * - 17 + + COALESCE ( - 69, 21 + + 87 ) ), + 10 ), - 43 / 5 * 92 * - - 38 / 39 + - COALESCE ( 70, + 58 * + 8 ) ) + 8 AS col1
----
-7

query I rowsort
SELECT ALL + 20 + - - 28 + - + 24 + 64
----
88

query II rowsort
SELECT + ( + 58 ) col2, 33
----
58
33

query I rowsort
SELECT + 28 * - 50 - + 90
----
-1490

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT ALL - ( - COUNT( * ) ) + + + 35 col2
----
36

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL - ( - COUNT ( * ) ) + + + 35 col2
----
36

query I rowsort
SELECT 35 * 36
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8534
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) col2
----
-1

query I rowsort
SELECT 9 + 23 AS col0
----
32

query I rowsort
SELECT DISTINCT - 38 * + NULLIF ( - 18, - 24 )
----
684

query I rowsort
SELECT 25 * + - 30 AS col1
----
-750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8538
SELECT ALL COUNT( + CAST( - 47 AS SIGNED ) ) DIV - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL COUNT ( + CAST ( - 47 AS INTEGER ) ) / - 8 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8539
SELECT DISTINCT - ( + 30 ) - 58 AS col1, + 37 * + 68 * - ( 67 ) / CAST( NULL AS SIGNED ) * - 8 - - + 80 + - ( 45 ) AS col1
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-8539
SELECT DISTINCT - ( + 30 ) - 58 AS col1, + 37 * + 68 * - ( 67 ) / CAST ( NULL AS INTEGER ) * - 8 - - + 80 + - ( 45 ) AS col1
----
-88
NULL

query I rowsort
SELECT 8 + - - 58 + + + 0 + - ( - 30 ) AS col0
----
96

query I rowsort
SELECT 44 - - - 15
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8542
SELECT ALL - 93 DIV COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - 93 / COUNT ( * ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ( 67 ) + MIN( ALL - 92 ) + + 78
----
53

skipif mysql # not compatible
query I rowsort label-8543
SELECT ( 67 ) + MIN ( ALL - 92 ) + + 78
----
53

query I rowsort
SELECT 24 * + 79 col0
----
1896

onlyif mysql # aggregate syntax: 
query II rowsort label-8545
SELECT 34 + + 97 + + 26, + COUNT( * ) + + + 65 + + 43 * - 80 * + 44 * + + 28 AS col0
----
157
-4238014

skipif mysql # not compatible
query II rowsort label-8545
SELECT 34 + + 97 + + 26, + COUNT ( * ) + + + 65 + + 43 * - 80 * + 44 * + + 28 AS col0
----
157
-4238014

onlyif mysql # aggregate syntax: 
query II rowsort label-8546
SELECT DISTINCT 51 * 30 * - 24 AS col0, 54 * - COUNT( * ) AS col2
----
-36720
-54

skipif mysql # not compatible
query II rowsort label-8546
SELECT DISTINCT 51 * 30 * - 24 AS col0, 54 * - COUNT ( * ) AS col2
----
-36720
-54

query I rowsort
SELECT ALL 69 * + - 93 * - 93 * - 68 AS col2
----
-40581108

onlyif mysql # aggregate syntax: 
query II rowsort label-8548
SELECT 50 * + - MIN( DISTINCT - + 42 ) AS col1, 31
----
2100
31

skipif mysql # not compatible
query II rowsort label-8548
SELECT 50 * + - MIN ( DISTINCT - + 42 ) AS col1, 31
----
2100
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT - + CAST( - - 69 AS SIGNED ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8549
SELECT - + CAST ( - - 69 AS INTEGER ) AS col1
----
-69

query I rowsort
SELECT + 10 + + - 35 AS col1
----
-25

query I rowsort
SELECT ALL + 65 + 25 AS col1
----
90

query II rowsort
SELECT 75, - 66 col0
----
75
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8553
SELECT ALL + ( - + COALESCE ( - - COALESCE ( - + ( - + 72 ), CAST( NULL AS SIGNED ) + + 72, + 64 DIV 90 * - 59 ), - COUNT( * ), + 29 ) ) + 39 * + + 74
----
2814

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL + ( - + COALESCE ( - - COALESCE ( - + ( - + 72 ), CAST ( NULL AS INTEGER ) + + 72, + 64 / 90 * - 59 ), - COUNT ( * ), + 29 ) ) + 39 * + + 74
----
2814

query I rowsort
SELECT - 60 - 25 * - 71 AS col0
----
1715

query I rowsort
SELECT ALL - + 56 + + 38 AS col1
----
-18

query I rowsort
SELECT ALL 57 + + ( - 87 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT - COUNT( * ) * - 65 * + 4
----
260

skipif mysql # not compatible
query I rowsort label-8557
SELECT - COUNT ( * ) * - 65 * + 4
----
260

query I rowsort
SELECT DISTINCT - ( - 66 ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT 3 + - + 37 + - CAST( NULL AS SIGNED ) - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT 3 + - + 37 + - CAST ( NULL AS INTEGER ) - - 14 AS col0
----
NULL

query I rowsort
SELECT + ( - - 15 )
----
15

query I rowsort
SELECT ALL - - 84 col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8562
SELECT + ( - 65 ) * 74 * + + CASE - 0 WHEN + + 88 * - - 49 + 57 THEN 91 DIV + + COUNT( * ) WHEN 39 * - - 48 + + + 68 THEN NULL WHEN + 19 * - 22 + - - 12 + - 12 * - 65 + - COUNT( * ) THEN NULL ELSE - 2 END + - + 29 * 3 * 68
----
3704

skipif mysql # not compatible
query I rowsort label-8562
SELECT + ( - 65 ) * 74 * + + CASE - 0 WHEN + + 88 * - - 49 + 57 THEN 91 / + + COUNT ( * ) WHEN 39 * - - 48 + + + 68 THEN NULL WHEN + 19 * - 22 + - - 12 + - 12 * - 65 + - COUNT ( * ) THEN NULL ELSE - 2 END + - + 29 * 3 * 68
----
3704

query I rowsort
SELECT 35 - + - 6 AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT 97 DIV - 89 + 93 * - + 14 * + 42 * + 48 * - + ( ( + + 44 ) ) AS col2
----
115492607

skipif mysql # not compatible
query I rowsort label-8564
SELECT 97 / - 89 + 93 * - + 14 * + 42 * + 48 * - + ( ( + + 44 ) ) AS col2
----
115492607

query II rowsort
SELECT DISTINCT - 51 AS col1, - 62 AS col2
----
-51
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8566
SELECT ALL - MIN( DISTINCT - + NULLIF ( - 49, - - 81 - ( 53 ) ) ), NULLIF ( - COALESCE ( ( + 61 ), + 72 ), - NULLIF ( CAST( + 44 AS SIGNED ), + 4 ) - + - 4 * COUNT( * ) ) * - - COALESCE ( - 61, - - NULLIF ( - COUNT( * ), - 57 ) ) AS col0
----
-49
3721

skipif mysql # not compatible
query II rowsort label-8566
SELECT ALL - MIN ( DISTINCT - + NULLIF ( - 49, - - 81 - ( 53 ) ) ), NULLIF ( - COALESCE ( ( + 61 ), + 72 ), - NULLIF ( CAST ( + 44 AS INTEGER ), + 4 ) - + - 4 * COUNT ( * ) ) * - - COALESCE ( - 61, - - NULLIF ( - COUNT ( * ), - 57 ) ) AS col0
----
-49
3721

query I rowsort
SELECT DISTINCT - 6 * + + 63 col2
----
-378

query I rowsort
SELECT 34 + - 49 AS col2
----
-15

query I rowsort
SELECT DISTINCT - ( + 99 ) * - 18 + + + 62 * 86
----
7114

query I rowsort
SELECT 53 + 19
----
72

query I rowsort
SELECT 24 * - 80 * + - 89 AS col0
----
170880

query I rowsort
SELECT 60 * ( 22 ) AS col1
----
1320

query I rowsort
SELECT ALL - 89 * + - 98 * 20 AS col0
----
174440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT ALL COUNT( ALL CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8575
SELECT 40 + + COUNT( * ) - - - COUNT( * ) DIV - 6 + 28 * + 91 AS col2
----
2589

skipif mysql # not compatible
query I rowsort label-8575
SELECT 40 + + COUNT ( * ) - - - COUNT ( * ) / - 6 + 28 * + 91 AS col2
----
2589

query I rowsort
SELECT DISTINCT NULLIF ( - 31, - + 11 )
----
-31

query I rowsort
SELECT 50 * - 71 AS col0
----
-3550

query I rowsort
SELECT ALL 63 + + - 14 AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT ALL 21 DIV + 82 * + 62 * + ( - 19 )
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL 21 / + 82 * + 62 * + ( - 19 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8580
SELECT - 72 DIV + + 80, - 99 AS col0
----
0
-99

skipif mysql # not compatible
query II rowsort label-8580
SELECT - 72 / + + 80, - 99 AS col0
----
0
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8581
SELECT DISTINCT + - 55 DIV - COUNT( * ) + 13 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT + - 55 / - COUNT ( * ) + 13 AS col0
----
68

query II rowsort
SELECT ALL - - 92 + 12 AS col1, - 26 AS col2
----
104
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8583
SELECT + 22 AS col0, - COUNT( * ) * 12 + - ( + + COUNT( * ) ) + 28 col0
----
22
15

skipif mysql # not compatible
query II rowsort label-8583
SELECT + 22 AS col0, - COUNT ( * ) * 12 + - ( + + COUNT ( * ) ) + 28 col0
----
22
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8584
SELECT - + 36 AS col0, AVG ( - CAST( NULL AS SIGNED ) ) * - 55 + COALESCE ( + CAST( 53 AS SIGNED ), 22 * CAST( + 82 AS SIGNED ) )
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-8584
SELECT - + 36 AS col0, AVG ( - CAST ( NULL AS INTEGER ) ) * - 55 + COALESCE ( + CAST ( 53 AS INTEGER ), 22 * CAST ( + 82 AS INTEGER ) )
----
-36
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8585
SELECT - + 89 * - 28, 84 DIV 9 AS col2
----
2492
9

skipif mysql # not compatible
query II rowsort label-8585
SELECT - + 89 * - 28, 84 / 9 AS col2
----
2492
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8586
SELECT ALL - SUM( - COALESCE ( 23, + 44 * + - 35 - + + 98 ) ) AS col2, 3
----
23
3

skipif mysql # not compatible
query II rowsort label-8586
SELECT ALL - SUM ( - COALESCE ( 23, + 44 * + - 35 - + + 98 ) ) AS col2, 3
----
23
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8587
SELECT DISTINCT + ( - + 68 ) + - COUNT( ALL 26 ) AS col0, - 57
----
-69
-57

skipif mysql # not compatible
query II rowsort label-8587
SELECT DISTINCT + ( - + 68 ) + - COUNT ( ALL 26 ) AS col0, - 57
----
-69
-57

query I rowsort
SELECT DISTINCT - + 50 + - 32 col1
----
-82

query II rowsort
SELECT DISTINCT + 34 AS col0, 81 + - 10 AS col2
----
34
71

query I rowsort
SELECT ALL 88 + - 63
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT ALL + 42 + + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL + 42 + + COUNT ( * ) AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8592
SELECT + + 87 * + ( + + NULLIF ( - 77, - - CAST( NULL AS SIGNED ) ) ) * - 0 - 52
----
-52

skipif mysql # not compatible
query I rowsort label-8592
SELECT + + 87 * + ( + + NULLIF ( - 77, - - CAST ( NULL AS INTEGER ) ) ) * - 0 - 52
----
-52

query I rowsort
SELECT + + 82 * + 5 AS col0
----
410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8594
SELECT + - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT + - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 49 * + ( - 96 ) + - 80
----
-4784

query I rowsort
SELECT DISTINCT + - COALESCE ( 64, + 8, - + 25, + 87 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT ALL + 86 * + + 95 * 99 - + - 94 - + MAX( - 99 ) AS col2
----
809023

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL + 86 * + + 95 * 99 - + - 94 - + MAX ( - 99 ) AS col2
----
809023

query I rowsort
SELECT + 89 * - 83 AS col0
----
-7387

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + NULLIF ( + - 64, - COUNT( * ) )
----
-64

skipif mysql # not compatible
query I rowsort label-8599
SELECT + NULLIF ( + - 64, - COUNT ( * ) )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT CASE + NULLIF ( + - 51, - - 74 ) WHEN - 85 THEN + 84 * 71 + 36 - - - COUNT( * ) WHEN + 34 - - 55 THEN + 28 ELSE + 57 * COUNT( DISTINCT + 60 ) END
----
57

skipif mysql # not compatible
query I rowsort label-8600
SELECT CASE + NULLIF ( + - 51, - - 74 ) WHEN - 85 THEN + 84 * 71 + 36 - - - COUNT ( * ) WHEN + 34 - - 55 THEN + 28 ELSE + 57 * COUNT ( DISTINCT + 60 ) END
----
57

query I rowsort
SELECT + 53 * + 25
----
1325

query I rowsort
SELECT 2 * - 95 + + 95 AS col1
----
-95

query I rowsort
SELECT NULLIF ( 20, 65 - + 2 * + + 42 )
----
20

query I rowsort
SELECT + 29 * + 21 * - 5 AS col0
----
-3045

query II rowsort
SELECT NULLIF ( - - 71, 93 ) col0, - 55 AS col2
----
71
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-8606
SELECT - CASE - + 2 WHEN - 16 THEN + ( - ( - + 29 ) ) WHEN + MAX( DISTINCT + 25 ) + + 66 THEN ( + 49 ) END * + COUNT( * ) * + 89 AS col0, 97
----
NULL
97

skipif mysql # not compatible
query II rowsort label-8606
SELECT - CASE - + 2 WHEN - 16 THEN + ( - ( - + 29 ) ) WHEN + MAX ( DISTINCT + 25 ) + + 66 THEN ( + 49 ) END * + COUNT ( * ) * + 89 AS col0, 97
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT ALL + COUNT( DISTINCT + ( + + 69 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL + COUNT ( DISTINCT + ( + + 69 ) ) AS col2
----
1

query I rowsort
SELECT - 81 * - 74 - + 67 col1
----
5927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT + 81 + - ( + - 28 ) + + 26 + CAST( + 88 AS SIGNED ) * - 98 * + 81 - + COUNT( * )
----
-698410

skipif mysql # not compatible
query I rowsort label-8609
SELECT + 81 + - ( + - 28 ) + + 26 + CAST ( + 88 AS INTEGER ) * - 98 * + 81 - + COUNT ( * )
----
-698410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT + 99 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT + 99 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT COUNT( * ) * 76 * 5
----
380

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT COUNT ( * ) * 76 * 5
----
380

query I rowsort
SELECT + 99 * - 86 * - - 37 * + 11 + 17 AS col2
----
-3465181

query I rowsort
SELECT 67 * + COALESCE ( - CASE 97 WHEN 18 THEN 95 END, - - 8, 61, + + 12 ) - + CASE - 43 WHEN - ( + 25 ) THEN 36 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT - NULLIF ( + CASE + - 90 WHEN ( 17 ) THEN 0 * + + 86 END, - 82 + + 7 + - 58 - + 91 - + 24 * + 81 ) - + - ( + - COALESCE ( ( - + CAST( - COUNT( * ) AS SIGNED ) ), - 23 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT - NULLIF ( + CASE + - 90 WHEN ( 17 ) THEN 0 * + + 86 END, - 82 + + 7 + - 58 - + 91 - + 24 * + 81 ) - + - ( + - COALESCE ( ( - + CAST ( - COUNT ( * ) AS INTEGER ) ), - 23 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT - CAST( + 27 AS SIGNED ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8615
SELECT - CAST ( + 27 AS INTEGER ) AS col0
----
-27

query I rowsort
SELECT - - 4 * + 44 * + 82 + - 43 + + ( + 95 )
----
14484

query I rowsort
SELECT ALL + - 52 + 47
----
-5

query I rowsort
SELECT DISTINCT + 65 + - ( CASE + 51 WHEN 76 THEN - + 50 ELSE + 13 * - 0 END ) + + + 87 AS col2
----
152

query I rowsort
SELECT - - 60 + + - 76 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT - + SUM( DISTINCT ( + - 67 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8620
SELECT - + SUM ( DISTINCT ( + - 67 ) ) AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT - 6 DIV - 63 + + - 13 col0
----
-13

skipif mysql # not compatible
query I rowsort label-8621
SELECT - 6 / - 63 + + - 13 col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL + + COUNT( 37 ) + COUNT( * ) / + - 8 / + - ( + COUNT( * ) ) + + 62 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL + + COUNT ( 37 ) + COUNT ( * ) / + - 8 / + - ( + COUNT ( * ) ) + + 62 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8623
SELECT ALL - SUM( 22 ) + - + 66 AS col0, COUNT( * ) + - - 12 + - - 53 * - + COUNT( * ) + 13 DIV - - 31 AS col0
----
-88
-40

skipif mysql # not compatible
query II rowsort label-8623
SELECT ALL - SUM ( 22 ) + - + 66 AS col0, COUNT ( * ) + - - 12 + - - 53 * - + COUNT ( * ) + 13 / - - 31 AS col0
----
-88
-40

query I rowsort
SELECT DISTINCT + CASE + 97 WHEN + 74 THEN + 41 WHEN + 76 THEN - 28 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8625
SELECT ALL + 83 DIV - 19 AS col1, - 58 + - - 84
----
-4
26

skipif mysql # not compatible
query II rowsort label-8625
SELECT ALL + 83 / - 19 AS col1, - 58 + - - 84
----
-4
26

query I rowsort
SELECT - + 33 * + 80 AS col2
----
-2640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8627
SELECT ALL + COUNT( * ) DIV + 70 * + - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + COUNT ( * ) / + 70 * + - 74 AS col1
----
0

query I rowsort
SELECT - 8 + 27 + - + ( + 48 ) * + 58 AS col0
----
-2765

query I rowsort
SELECT - ( + 77 ) + + 46 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT - 35 + 40 + - 14 * COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-8630
SELECT - 35 + 40 + - 14 * COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT - - 16 * + - COUNT( * ) * 66 + - 94 AS col2
----
-1150

skipif mysql # not compatible
query I rowsort label-8631
SELECT - - 16 * + - COUNT ( * ) * 66 + - 94 AS col2
----
-1150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8632
SELECT - 77 DIV NULLIF ( - COUNT( * ), - AVG ( 4 ) ) + 18 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8632
SELECT - 77 / NULLIF ( - COUNT ( * ), - AVG ( 4 ) ) + 18 AS col1
----
95

query I rowsort
SELECT - 29 * - - 75
----
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT + 94 + + ( - 86 ) * COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8634
SELECT + 94 + + ( - 86 ) * COUNT ( * )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT CAST( + CAST( - 89 AS SIGNED ) AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8635
SELECT CAST ( + CAST ( - 89 AS INTEGER ) AS INTEGER ) AS col2
----
-89

query I rowsort
SELECT + 90 * CASE 17 WHEN 44 + + 17 THEN 4 - - 67 WHEN + 16 THEN - + 74 WHEN - - 44 THEN NULL END + + 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8637
SELECT - COUNT( * ) * 46 + 47 AS col0, - COUNT( * ) col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-8637
SELECT - COUNT ( * ) * 46 + 47 AS col0, - COUNT ( * ) col2
----
1
-1

query II rowsort
SELECT + ( + 49 ) - 86, + ( + + 67 ) AS col2
----
-37
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8639
SELECT ALL + 8 AS col1, - NULLIF ( - + ( - - CAST( NULL AS SIGNED ) ), 71 )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-8639
SELECT ALL + 8 AS col1, - NULLIF ( - + ( - - CAST ( NULL AS INTEGER ) ), 71 )
----
8
NULL

query I rowsort
SELECT DISTINCT 28 * 61 AS col2
----
1708

query I rowsort
SELECT ( + 37 ) * + 46 * - 46
----
-78292

query II rowsort
SELECT 79 AS col2, 20
----
79
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT + 70 * 92 + 30 DIV 73 AS col0
----
6440

skipif mysql # not compatible
query I rowsort label-8643
SELECT + 70 * 92 + 30 / 73 AS col0
----
6440

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT DISTINCT 92 + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT 92 + COUNT ( * )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT 43 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-8645
SELECT 43 / - + 65
----
0

query I rowsort
SELECT 88 + - - 94
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8647
SELECT ALL - 78 DIV - 94 + + + 26, - 78 * + + COUNT( * ) + - + 15 * + 22 * + CAST( NULL AS SIGNED ) AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-8647
SELECT ALL - 78 / - 94 + + + 26, - 78 * + + COUNT ( * ) + - + 15 * + 22 * + CAST ( NULL AS INTEGER ) AS col1
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + 90 + + + 91 - COUNT( * ) * - 76
----
257

skipif mysql # not compatible
query I rowsort label-8648
SELECT + 90 + + + 91 - COUNT ( * ) * - 76
----
257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL - MAX( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL - MAX ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT ALL + - COUNT( * ) + + 58 * 99 AS col0
----
5741

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL + - COUNT ( * ) + + 58 * 99 AS col0
----
5741

query I rowsort
SELECT ALL - 28 + - 7 AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT ALL + 26 - CAST( NULL AS SIGNED ) + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL + 26 - CAST ( NULL AS INTEGER ) + 88
----
NULL

query II rowsort
SELECT 22 + + 47 + - 90, + 70 AS col1
----
-21
70

query I rowsort
SELECT - 97 * + 6 col2
----
-582

query I rowsort
SELECT 99 + NULLIF ( + 4, 57 ) * - + ( + 90 ) * + 14 AS col0
----
-4941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8656
SELECT ALL + COALESCE ( + COUNT( * ), + CAST( NULL AS SIGNED ), - CASE + - 28 WHEN - - ( 91 ) THEN 42 WHEN - + 6 THEN - 36 END )
----
1

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL + COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ), - CASE + - 28 WHEN - - ( 91 ) THEN 42 WHEN - + 6 THEN - 36 END )
----
1

query I rowsort
SELECT ALL 94 - - + 66 AS col1
----
160

query I rowsort
SELECT 48 * 49
----
2352

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8659
SELECT ALL + COUNT( * ) AS col1, + 19 DIV - 92 * + 67 + + NULLIF ( - + COUNT( * ), - 32 DIV + + 29 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8659
SELECT ALL + COUNT ( * ) AS col1, + 19 / - 92 * + 67 + + NULLIF ( - + COUNT ( * ), - 32 / + + 29 )
----
1
NULL

query II rowsort
SELECT 9 * NULLIF ( 78, - - 27 ) AS col2, 97 + - + 10 + - 44
----
702
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8661
SELECT DISTINCT - COALESCE ( - + 63, + - NULLIF ( 97, - + 89 * + 59 ), + COUNT( * ) ) DIV - - 30
----
2

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT - COALESCE ( - + 63, + - NULLIF ( 97, - + 89 * + 59 ), + COUNT ( * ) ) / - - 30
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8662
SELECT DISTINCT - ( + 99 ) AS col1, ( - + COUNT( * ) )
----
-99
-1

skipif mysql # not compatible
query II rowsort label-8662
SELECT DISTINCT - ( + 99 ) AS col1, ( - + COUNT ( * ) )
----
-99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT 34 * - + MAX( + 43 ) AS col0
----
-1462

skipif mysql # not compatible
query I rowsort label-8663
SELECT 34 * - + MAX ( + 43 ) AS col0
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL - 30 * - MAX( ALL - NULLIF ( 89, + - 91 ) ) * + + 4
----
-10680

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL - 30 * - MAX ( ALL - NULLIF ( 89, + - 91 ) ) * + + 4
----
-10680

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8665
SELECT ALL 52 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL 52 * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT DISTINCT 87 + - + 21 - + 49 * CAST( - 17 AS SIGNED )
----
899

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT 87 + - + 21 - + 49 * CAST ( - 17 AS INTEGER )
----
899

query I rowsort
SELECT ALL 46 + 67
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8668
SELECT ALL - MIN( - CAST( NULL AS SIGNED ) ) AS col0, - 22 + + 10 * COUNT( 25 )
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-8668
SELECT ALL - MIN ( - CAST ( NULL AS INTEGER ) ) AS col0, - 22 + + 10 * COUNT ( 25 )
----
NULL
-12

query I rowsort
SELECT ALL + 76 + + 36 AS col2
----
112

query I rowsort
SELECT ALL + 4 + - 50 + 52 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT NULLIF ( 15, CAST( - 65 AS SIGNED ) * CAST( NULL AS SIGNED ) ) * + NULLIF ( 30, - 89 / + + COALESCE ( - 37, - + 10, + + 61 ) * - 47 + + - 4 * - 72 * + + 2 ) * - 31 * - 49 + 52 AS col0
----
683602

skipif mysql # not compatible
query I rowsort label-8671
SELECT NULLIF ( 15, CAST ( - 65 AS INTEGER ) * CAST ( NULL AS INTEGER ) ) * + NULLIF ( 30, - 89 / + + COALESCE ( - 37, - + 10, + + 61 ) * - 47 + + - 4 * - 72 * + + 2 ) * - 31 * - 49 + 52 AS col0
----
683602

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT SUM( - 96 ) + + MAX( 16 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8672
SELECT SUM ( - 96 ) + + MAX ( 16 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT + COUNT( * ) * - 61 + 2 - + 8 * + 82 AS col1
----
-715

skipif mysql # not compatible
query I rowsort label-8673
SELECT + COUNT ( * ) * - 61 + 2 - + 8 * + 82 AS col1
----
-715

query II rowsort
SELECT ALL - 38 + 46 AS col2, 48 col2
----
8
48

query I rowsort
SELECT + ( + COALESCE ( - 0, 36 * - - ( 24 ) ) )
----
0

query I rowsort
SELECT ALL + 57 - 13
----
44

query I rowsort
SELECT DISTINCT - 88 * ( + 4 )
----
-352

query I rowsort
SELECT 14 - 35
----
-21

query I rowsort
SELECT - 54 * - 72 AS col0
----
3888

query II rowsort
SELECT DISTINCT ( 32 ) * 95 - - 60 AS col0, + 85
----
3100
85

query I rowsort
SELECT ALL 98 - + 49 AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT 93 DIV - - ( 79 )
----
1

skipif mysql # not compatible
query I rowsort label-8682
SELECT 93 / - - ( 79 )
----
1

query I rowsort
SELECT 37 * - 73 * - 31 AS col2
----
83731

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL + MAX( - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + MAX ( - 95 ) AS col0
----
-95

query I rowsort
SELECT - - ( + 2 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8686
SELECT - MIN( - + 2 ) + + 67 * - COUNT( * ), + ( 51 ) AS col0
----
-65
51

skipif mysql # not compatible
query II rowsort label-8686
SELECT - MIN ( - + 2 ) + + 67 * - COUNT ( * ), + ( 51 ) AS col0
----
-65
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8687
SELECT ALL CASE - - MIN( DISTINCT + 63 ) WHEN - SUM( DISTINCT - CAST( - - 9 AS SIGNED ) ) THEN + COALESCE ( - 90, - 55 ) ELSE - 55 END AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL CASE - - MIN ( DISTINCT + 63 ) WHEN - SUM ( DISTINCT - CAST ( - - 9 AS INTEGER ) ) THEN + COALESCE ( - 90, - 55 ) ELSE - 55 END AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8688
SELECT ( + COUNT( * ) ) DIV + ( - 54 ), 86 * + COUNT( * ) + MAX( + - 90 ) col2
----
0
-4

skipif mysql # not compatible
query II rowsort label-8688
SELECT ( + COUNT ( * ) ) / + ( - 54 ), 86 * + COUNT ( * ) + MAX ( + - 90 ) col2
----
0
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8689
SELECT NULLIF ( - 13, + + COUNT( * ) ) + CASE + 16 WHEN MAX( DISTINCT + COALESCE ( - - 65, - - 67 * + 82 ) ) * + COUNT( * ) / - - CAST( NULL AS SIGNED ) THEN NULL ELSE + 22 END + + + 66
----
75

skipif mysql # not compatible
query I rowsort label-8689
SELECT NULLIF ( - 13, + + COUNT ( * ) ) + CASE + 16 WHEN MAX ( DISTINCT + COALESCE ( - - 65, - - 67 * + 82 ) ) * + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 22 END + + + 66
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8690
SELECT 18 * - - MIN( + ( - 7 ) ) * 71 AS col0, COUNT( * ) AS col2
----
-8946
1

skipif mysql # not compatible
query II rowsort label-8690
SELECT 18 * - - MIN ( + ( - 7 ) ) * 71 AS col0, COUNT ( * ) AS col2
----
-8946
1

query I rowsort
SELECT 24 + + ( - - CASE 44 WHEN 2 THEN NULL ELSE - 63 END )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT - CASE 66 WHEN 38 * - ( - - 98 ) + - + 18 + 50 * - + 8 * + 2 * + + COUNT( * ) THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT - CASE 66 WHEN 38 * - ( - - 98 ) + - + 18 + 50 * - + 8 * + 2 * + + COUNT ( * ) THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT ALL + CAST( NULL AS SIGNED ) + - 7 * + 10 + AVG ( DISTINCT - 92 ) * 31 + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL + CAST ( NULL AS INTEGER ) + - 7 * + 10 + AVG ( DISTINCT - 92 ) * 31 + + 27
----
NULL

query I rowsort
SELECT ( + 15 ) + + 35
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8695
SELECT ALL CASE + CAST( + 50 AS DECIMAL ) WHEN + 90 - + 88 THEN NULL WHEN + + 91 + - CAST( + ( + 42 ) AS SIGNED ) * - - 5 + + 96 THEN NULL WHEN + + COUNT( * ) + 55 + - 84 * + - 24 THEN NULL ELSE + 60 END + + + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL CASE + CAST ( + 50 AS REAL ) WHEN + 90 - + 88 THEN NULL WHEN + + 91 + - CAST ( + ( + 42 ) AS INTEGER ) * - - 5 + + 96 THEN NULL WHEN + + COUNT ( * ) + 55 + - 84 * + - 24 THEN NULL ELSE + 60 END + + + COUNT ( * ) AS col2
----
61

query I rowsort
SELECT - 59 + + + 90
----
31

query I rowsort
SELECT ALL - 35 + + ( 16 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT DISTINCT 82 * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT 82 * - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8699
SELECT ALL COUNT( * ) * + - 86 + - ( 57 ) + + - 1 DIV 8 * - + 94 * 24 AS col2, 70 AS col0
----
-143
70

skipif mysql # not compatible
query II rowsort label-8699
SELECT ALL COUNT ( * ) * + - 86 + - ( 57 ) + + - 1 / 8 * - + 94 * 24 AS col2, 70 AS col0
----
-143
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT + NULLIF ( COUNT( * ), + COALESCE ( + 76, - 37 * - + ( + - 79 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8700
SELECT + NULLIF ( COUNT ( * ), + COALESCE ( + 76, - 37 * - + ( + - 79 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT CASE 35 WHEN 64 * - 36 + - + 3 THEN - ( + + 44 ) * + - ( + 78 ) + - 17 WHEN 71 + 35 * + COUNT( - 19 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT CASE 35 WHEN 64 * - 36 + - + 3 THEN - ( + + 44 ) * + - ( + 78 ) + - 17 WHEN 71 + 35 * + COUNT ( - 19 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8702
SELECT ALL 43 * + + SUM( DISTINCT + 91 ) + - - 31 + CAST( - 70 AS SIGNED ) * - 29 * + 9 AS col2
----
22214

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL 43 * + + SUM ( DISTINCT + 91 ) + - - 31 + CAST ( - 70 AS INTEGER ) * - 29 * + 9 AS col2
----
22214

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - SUM( ALL + 42 ) * - + 88 col0
----
3696

skipif mysql # not compatible
query I rowsort label-8703
SELECT - SUM ( ALL + 42 ) * - + 88 col0
----
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8704
SELECT ALL + 0 DIV + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL + 0 / + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8705
SELECT ALL + 33 AS col2, - 91 * COUNT( * ) col1
----
33
-91

skipif mysql # not compatible
query II rowsort label-8705
SELECT ALL + 33 AS col2, - 91 * COUNT ( * ) col1
----
33
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT - CASE - - 26 WHEN 93 THEN 13 * - COUNT( * ) WHEN + 9 * + + 79 + - 21 THEN NULL ELSE NULL END * - - ( + 62 ) * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT - CASE - - 26 WHEN 93 THEN 13 * - COUNT ( * ) WHEN + 9 * + + 79 + - 21 THEN NULL ELSE NULL END * - - ( + 62 ) * - 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT ALL - CAST( NULL AS SIGNED ) * - COALESCE ( + 27, + - 10 + 12 + 3 ) * - + 21 - - 50 + + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL - CAST ( NULL AS INTEGER ) * - COALESCE ( + 27, + - 10 + 12 + 3 ) * - + 21 - - 50 + + - 89 AS col2
----
NULL

query I rowsort
SELECT - 86 * + + 35
----
-3010

onlyif mysql # aggregate syntax: 
query II rowsort label-8709
SELECT + 3 AS col2, + COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-8709
SELECT + 3 AS col2, + COUNT ( * )
----
3
1

query I rowsort
SELECT 31 * + 96 + + 17 * 91 AS col0
----
4523

onlyif mysql # aggregate syntax: 
query II rowsort label-8711
SELECT ALL + 4 * + 2 - - - 63 col1, 59 * - ( - + SUM( ALL + - ( + 80 ) ) ) + + 78
----
-55
-4642

skipif mysql # not compatible
query II rowsort label-8711
SELECT ALL + 4 * + 2 - - - 63 col1, 59 * - ( - + SUM ( ALL + - ( + 80 ) ) ) + + 78
----
-55
-4642

query I rowsort
SELECT - + 20 * - + 99 * - 81 - 58 + + 65
----
-160373

query I rowsort
SELECT COALESCE ( - ( - 81 ), - 69 ) AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT ( + ( + - CAST( + - 78 AS SIGNED ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-8714
SELECT ( + ( + - CAST ( + - 78 AS INTEGER ) ) )
----
78

query I rowsort
SELECT - - ( - 41 ) + - 61 * - + 83 AS col0
----
5022

onlyif mysql # aggregate syntax: 
query II rowsort label-8716
SELECT - - COUNT( * ) AS col0, 29
----
1
29

skipif mysql # not compatible
query II rowsort label-8716
SELECT - - COUNT ( * ) AS col0, 29
----
1
29

query I rowsort
SELECT DISTINCT 28 * 25
----
700

query I rowsort
SELECT DISTINCT + ( + 34 ) AS col0
----
34

query I rowsort
SELECT ALL 55 * + + 21
----
1155

query I rowsort
SELECT + - 88 + - 8 * 12 AS col0
----
-184

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT DISTINCT - 83 * - + COUNT( DISTINCT 72 ) AS col2, 94
----
83
94

skipif mysql # not compatible
query II rowsort label-8721
SELECT DISTINCT - 83 * - + COUNT ( DISTINCT 72 ) AS col2, 94
----
83
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - SUM( ALL 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-8722
SELECT - SUM ( ALL 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL 12 * - COUNT( * ) * + SUM( 87 ) col1
----
-1044

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL 12 * - COUNT ( * ) * + SUM ( 87 ) col1
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT + - COUNT( * ) * - 70
----
70

skipif mysql # not compatible
query I rowsort label-8724
SELECT + - COUNT ( * ) * - 70
----
70

query I rowsort
SELECT ALL 77 + + 73 * - - ( + + 66 ) AS col0
----
4895

query I rowsort
SELECT ALL 88 + - 39
----
49

query I rowsort
SELECT ALL NULLIF ( - 73, - 81 + 19 ) * 98 AS col0
----
-7154

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT - ( + NULLIF ( - COUNT( * ), - 78 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8728
SELECT - ( + NULLIF ( - COUNT ( * ), - 78 ) ) AS col1
----
1

query I rowsort
SELECT ALL 41 + - 44 AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8730
SELECT - ( + NULLIF ( NULLIF ( + CAST( NULL AS SIGNED ), - - 58 ), + 0 ) ), 62 + - + 16 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-8730
SELECT - ( + NULLIF ( NULLIF ( + CAST ( NULL AS INTEGER ), - - 58 ), + 0 ) ), 62 + - + 16 AS col2
----
NULL
46

query I rowsort
SELECT DISTINCT NULLIF ( + 39, + + 24 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL + 76 + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + 76 + + COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8733
SELECT 95 AS col1, + 79 * + COUNT( * )
----
95
79

skipif mysql # not compatible
query II rowsort label-8733
SELECT 95 AS col1, + 79 * + COUNT ( * )
----
95
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT - COUNT( * ) * + MIN( DISTINCT - + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-8734
SELECT - COUNT ( * ) * + MIN ( DISTINCT - + 10 )
----
10

query I rowsort
SELECT + 17 - + - 82 AS col2
----
99

query II rowsort
SELECT 76 AS col1, 73
----
76
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8737
SELECT CAST( NULL AS SIGNED ) AS col0, - 20 AS col1
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-8737
SELECT CAST ( NULL AS INTEGER ) AS col0, - 20 AS col1
----
NULL
-20

query I rowsort
SELECT ALL - 13 * - 70 * + 62
----
56420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8739
SELECT ALL COUNT( * ) DIV - + 92 - 59 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL COUNT ( * ) / - + 92 - 59 AS col0
----
-59

query II rowsort
SELECT DISTINCT + 7, + 83 AS col1
----
7
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8741
SELECT ALL 26 DIV - 10 - + 62 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL 26 / - 10 - + 62 AS col1
----
-64

query II rowsort
SELECT + 57 AS col0, + 14 + - 20 * 77 AS col2
----
57
-1526

query I rowsort
SELECT ALL 27 * 60 AS col1
----
1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8744
SELECT + 45 DIV - 63 - + 58 * + 89 AS col2, COUNT( * ) AS col1
----
-5162
1

skipif mysql # not compatible
query II rowsort label-8744
SELECT + 45 / - 63 - + 58 * + 89 AS col2, COUNT ( * ) AS col1
----
-5162
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT + CASE + 85 WHEN + 97 * - 64 + - + 89 * + 22 / COUNT( * ) THEN NULL WHEN + - COUNT( * ) + + COUNT( DISTINCT 45 ) THEN 37 - - 68 + + COUNT( * ) - - - 31 + - + COALESCE ( - 24, 97 * + - 17 ) * 10 * 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT + CASE + 85 WHEN + 97 * - 64 + - + 89 * + 22 / COUNT ( * ) THEN NULL WHEN + - COUNT ( * ) + + COUNT ( DISTINCT 45 ) THEN 37 - - 68 + + COUNT ( * ) - - - 31 + - + COALESCE ( - 24, 97 * + - 17 ) * 10 * 45 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT 41 * + - ( - COUNT( * ) ) + 38 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8746
SELECT 41 * + - ( - COUNT ( * ) ) + 38 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL + MIN( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL + MIN ( 82 )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8748
SELECT + - COUNT( * ) DIV 4 * + + ( 46 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8748
SELECT + - COUNT ( * ) / 4 * + + ( 46 ) col2
----
0

query II rowsort
SELECT - - 44 * + 75 AS col0, + 91 - - 43 * + 50 * 90 * + - 36 AS col0
----
3300
-6965909

query I rowsort
SELECT - + 75 + - - 41 * + 51 AS col2
----
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8751
SELECT - - COALESCE ( + ( - ( - CAST( - - 35 AS SIGNED ) ) ), 39 * - COUNT( * ) ) + - + 96 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8751
SELECT - - COALESCE ( + ( - ( - CAST ( - - 35 AS INTEGER ) ) ), 39 * - COUNT ( * ) ) + - + 96 AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT ALL 33 / + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL 33 / + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8753
SELECT - 80 * - CASE 9 WHEN - CAST( - 62 AS SIGNED ) * - 19 + + - 74 * - NULLIF ( + - 75, + - COUNT( + 91 ) ) THEN + 0 / - + 57 WHEN + ( - 71 ) THEN NULL END + 67 * + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT - 80 * - CASE 9 WHEN - CAST ( - 62 AS INTEGER ) * - 19 + + - 74 * - NULLIF ( + - 75, + - COUNT ( + 91 ) ) THEN + 0 / - + 57 WHEN + ( - 71 ) THEN NULL END + 67 * + 8 AS col1
----
NULL

query I rowsort
SELECT ALL - - 63 * - - 26
----
1638

query II rowsort
SELECT ALL + 97 AS col1, - ( - 96 ) AS col1
----
97
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT ALL - - 12 * 0 * - 27 + + MIN( + - CAST( NULL AS SIGNED ) ) + - ( COUNT( * ) ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - - 12 * 0 * - 27 + + MIN ( + - CAST ( NULL AS INTEGER ) ) + - ( COUNT ( * ) ) + + 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8757
SELECT ALL - 78 * - - MAX( ALL - 18 ) + 46 + + - 82 DIV NULLIF ( - 67, + + 81 * + - 11 + 60 )
----
1451

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL - 78 * - - MAX ( ALL - 18 ) + 46 + + - 82 / NULLIF ( - 67, + + 81 * + - 11 + 60 )
----
1451

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT - 43 + - COUNT( * ) * 59 + - + 21
----
-123

skipif mysql # not compatible
query I rowsort label-8758
SELECT - 43 + - COUNT ( * ) * 59 + - + 21
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT ALL - CAST( + 17 AS SIGNED ) * + 49 col1
----
-833

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL - CAST ( + 17 AS INTEGER ) * + 49 col1
----
-833

query I rowsort
SELECT - - 48 * + 93
----
4464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8761
SELECT - - 42 * - COUNT( * ) * ( + - 80 ) + + + COUNT( * ) + + - 21 + + 39 + 8 * - 35 * - + CAST( - 42 AS SIGNED ) * 74 + + 91 AS col2
----
-866770

skipif mysql # not compatible
query I rowsort label-8761
SELECT - - 42 * - COUNT ( * ) * ( + - 80 ) + + + COUNT ( * ) + + - 21 + + 39 + 8 * - 35 * - + CAST ( - 42 AS INTEGER ) * 74 + + 91 AS col2
----
-866770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8762
SELECT - + 69, + 35 + - COUNT( * ) + - 0 * + CAST( NULL AS SIGNED ) AS col0
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-8762
SELECT - + 69, + 35 + - COUNT ( * ) + - 0 * + CAST ( NULL AS INTEGER ) AS col0
----
-69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT 56 * + 41 + - ( + 38 ) * CASE - ( + + 40 ) WHEN 18 * + - 86 + + 29 + 68 THEN + - 97 + - - ( 74 ) WHEN + COUNT( DISTINCT 3 ) * - + 11 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT 56 * + 41 + - ( + 38 ) * CASE - ( + + 40 ) WHEN 18 * + - 86 + + 29 + 68 THEN + - 97 + - - ( 74 ) WHEN + COUNT ( DISTINCT 3 ) * - + 11 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + CASE 99 WHEN + 59 THEN NULL WHEN - 31 + - 18 THEN + - 17 + - 30 END + + 41 * 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8765
SELECT ALL 30 * 52 AS col0, - 4 * - - 1 / + CAST( NULL AS SIGNED ) AS col1
----
1560
NULL

skipif mysql # not compatible
query II rowsort label-8765
SELECT ALL 30 * 52 AS col0, - 4 * - - 1 / + CAST ( NULL AS INTEGER ) AS col1
----
1560
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8766
SELECT DISTINCT 64 * + CAST( + 7 AS SIGNED ) AS col0
----
448

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT 64 * + CAST ( + 7 AS INTEGER ) AS col0
----
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8767
SELECT 34 + - - 84 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT 34 + - - 84 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 72 + - 60 * + - 86
----
5088

onlyif mysql # aggregate syntax: 
query II rowsort label-8769
SELECT ALL 94 * - COUNT( * ) AS col0, + MAX( - + CASE - 24 WHEN - 11 THEN + 55 * + + 5 * 22 ELSE NULL END ) AS col0
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-8769
SELECT ALL 94 * - COUNT ( * ) AS col0, + MAX ( - + CASE - 24 WHEN - 11 THEN + 55 * + + 5 * 22 ELSE NULL END ) AS col0
----
-94
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8770
SELECT COUNT( * ) + + CAST( 61 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-8770
SELECT COUNT ( * ) + + CAST ( 61 AS INTEGER )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8771
SELECT DISTINCT 29 * - + 59 AS col2, + MAX( - 39 ) * + 20
----
-1711
-780

skipif mysql # not compatible
query II rowsort label-8771
SELECT DISTINCT 29 * - + 59 AS col2, + MAX ( - 39 ) * + 20
----
-1711
-780

query I rowsort
SELECT ALL 87 * + 18 AS col1
----
1566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT 59 + + CAST( 39 AS SIGNED ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-8773
SELECT 59 + + CAST ( 39 AS INTEGER ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT COUNT( ALL - 86 ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8774
SELECT COUNT ( ALL - 86 ) - - COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8775
SELECT CAST( - COUNT( + 13 ) AS SIGNED ) * + 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8775
SELECT CAST ( - COUNT ( + 13 ) AS INTEGER ) * + 41 AS col2
----
-41

query I rowsort
SELECT CASE + - 84 WHEN 1 - 48 THEN NULL WHEN + 48 + - - 88 THEN 79 + + 62 END + + 24 * - 34
----
NULL

query I rowsort
SELECT DISTINCT + 0 * + + 34 * + 31 col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8778
SELECT 88 * 40 AS col1, - 82 DIV - 76
----
3520
1

skipif mysql # not compatible
query II rowsort label-8778
SELECT 88 * 40 AS col1, - 82 / - 76
----
3520
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT COUNT( * ) * - - 30 * - ( 49 ) + - NULLIF ( - COUNT( * ), - - 0 ) + MIN( - - 49 ) AS col1
----
-1420

skipif mysql # not compatible
query I rowsort label-8779
SELECT COUNT ( * ) * - - 30 * - ( 49 ) + - NULLIF ( - COUNT ( * ), - - 0 ) + MIN ( - - 49 ) AS col1
----
-1420

query I rowsort
SELECT - 78 * - - 1 + + + 90
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL 21 - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL 21 - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8782
SELECT MAX( ALL 56 ) * - 96 AS col2, COUNT( ( + - 7 ) ) AS col0
----
-5376
1

skipif mysql # not compatible
query II rowsort label-8782
SELECT MAX ( ALL 56 ) * - 96 AS col2, COUNT ( ( + - 7 ) ) AS col0
----
-5376
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT CAST( NULL AS SIGNED ) + - + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT CAST ( NULL AS INTEGER ) + - + 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL 65 * 88 * + ( COUNT( * ) )
----
5720

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL 65 * 88 * + ( COUNT ( * ) )
----
5720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT DISTINCT + - ( 97 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT + - ( 97 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT DISTINCT 22 * + MAX( - 2 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT 22 * + MAX ( - 2 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT DISTINCT - - COALESCE ( - - COUNT( * ), + 67 )
----
1

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT - - COALESCE ( - - COUNT ( * ), + 67 )
----
1

query I rowsort
SELECT DISTINCT + - 98 + + 99
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT ALL - 52 + + - CAST( - 8 AS SIGNED ) + + SUM( DISTINCT 47 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL - 52 + + - CAST ( - 8 AS INTEGER ) + + SUM ( DISTINCT 47 ) col2
----
3

query I rowsort
SELECT DISTINCT - + ( - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT NULLIF ( - SUM( + + 12 ), 56 )
----
-12

skipif mysql # not compatible
query I rowsort label-8791
SELECT NULLIF ( - SUM ( + + 12 ), 56 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8792
SELECT ALL - AVG ( DISTINCT - - 27 ) + + - 29 / 46 / CAST( NULL AS SIGNED ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL - AVG ( DISTINCT - - 27 ) + + - 29 / 46 / CAST ( NULL AS INTEGER ) * - 27
----
NULL

query I rowsort
SELECT + 73 + 33 AS col1
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT DISTINCT - 0 + - ( 2 ), + COUNT( * ) AS col1
----
-2
1

skipif mysql # not compatible
query II rowsort label-8794
SELECT DISTINCT - 0 + - ( 2 ), + COUNT ( * ) AS col1
----
-2
1

query I rowsort
SELECT ALL + 31 + + - ( + + 63 )
----
-32

query I rowsort
SELECT DISTINCT + 30 * - 33 col1
----
-990

query I rowsort
SELECT ALL - 76 + 50 col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT - NULLIF ( - 3, + 96 + COUNT( + - 19 ) * + 23 ) * COUNT( * ) * - - MIN( DISTINCT - 78 )
----
-234

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT - NULLIF ( - 3, + 96 + COUNT ( + - 19 ) * + 23 ) * COUNT ( * ) * - - MIN ( DISTINCT - 78 )
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT - MAX( - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-8799
SELECT - MAX ( - 55 )
----
55

query I rowsort
SELECT 69 + 3 - + + 16
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8801
SELECT DISTINCT + 31 * - CAST( SUM( ALL 75 ) AS SIGNED )
----
-2325

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT + 31 * - CAST ( SUM ( ALL 75 ) AS INTEGER )
----
-2325

query II rowsort
SELECT - 79 AS col0, 86
----
-79
86

query I rowsort
SELECT DISTINCT - 58 - + 14 AS col2
----
-72

query II rowsort
SELECT 58, - 0 AS col0
----
58
0

query II rowsort
SELECT 28, - 60 col1
----
28
-60

query II rowsort
SELECT ALL 89, 72 * 67 AS col0
----
89
4824

onlyif mysql # aggregate syntax: 
query II rowsort label-8807
SELECT ALL 46 AS col2, + COUNT( * ) * + 78 + - 51
----
46
27

skipif mysql # not compatible
query II rowsort label-8807
SELECT ALL 46 AS col2, + COUNT ( * ) * + 78 + - 51
----
46
27

query II rowsort
SELECT - 47 AS col2, + 39 * ( - 95 )
----
-47
-3705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8809
SELECT CASE + + 67 WHEN - - COUNT( * ) THEN NULL WHEN - COUNT( * ) * + + 89 * - 55 + - CAST( NULL AS SIGNED ) THEN - 78 END * + 0 + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT CASE + + 67 WHEN - - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * + + 89 * - 55 + - CAST ( NULL AS INTEGER ) THEN - 78 END * + 0 + 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8810
SELECT - 56, + CAST( + 97 AS SIGNED ) AS col0
----
-56
97

skipif mysql # not compatible
query II rowsort label-8810
SELECT - 56, + CAST ( + 97 AS INTEGER ) AS col0
----
-56
97

query I rowsort
SELECT 84 - + 51 AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT 87 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-8812
SELECT 87 / - 98
----
0

query I rowsort
SELECT ALL 74 * - - NULLIF ( 90, 2 )
----
6660

onlyif mysql # DIV for integer division: 
query II rowsort label-8814
SELECT ALL - 27 AS col2, + COALESCE ( + 45, 54 DIV 20 )
----
-27
45

skipif mysql # not compatible
query II rowsort label-8814
SELECT ALL - 27 AS col2, + COALESCE ( + 45, 54 / 20 )
----
-27
45

query I rowsort
SELECT DISTINCT 42 * - 97 + + 2 * - 27 * 47 AS col1
----
-6612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8816
SELECT DISTINCT - 41 * 30 + + 82 + 5 - 11 + - - COUNT( * ) DIV + NULLIF ( - + 46, - 25 )
----
-1154

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT - 41 * 30 + + 82 + 5 - 11 + - - COUNT ( * ) / + NULLIF ( - + 46, - 25 )
----
-1154

query I rowsort
SELECT + + 91 col2
----
91

query I rowsort
SELECT 6 * - + ( + + 26 ) AS col1
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT - ( - + 49 ) DIV 25 - - 50
----
51

skipif mysql # not compatible
query I rowsort label-8819
SELECT - ( - + 49 ) / 25 - - 50
----
51

query I rowsort
SELECT ALL - - COALESCE ( - 32, - - 25 ) AS col1
----
-32

query I rowsort
SELECT - 82 - - 43 AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8822
SELECT - 95 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT - 95 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 28 * 35 + - 25 AS col2
----
955

query I rowsort
SELECT + 48 + + 78 AS col0
----
126

query I rowsort
SELECT DISTINCT + - 22 AS col1
----
-22

query I rowsort
SELECT DISTINCT + 19 * + 19 + + 40 AS col1
----
401

query I rowsort
SELECT ALL - 71 * + 76
----
-5396

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL - NULLIF ( - - COUNT( * ), - 13 ) + - + ( - 16 )
----
15

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL - NULLIF ( - - COUNT ( * ), - 13 ) + - + ( - 16 )
----
15

query II rowsort
SELECT + 63 col0, + 45 * + 21 AS col0
----
63
945

query II rowsort
SELECT ALL + 72, 68 AS col2
----
72
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ALL - 21 - - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL - 21 - - COUNT ( * ) AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8832
SELECT ALL 18 * + COALESCE ( + 56, + - COUNT( * ) ) * + + 15 / + CAST( NULL AS SIGNED ) * + 51 * + MAX( - - ( - CAST( NULL AS SIGNED ) ) ) + - + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL 18 * + COALESCE ( + 56, + - COUNT ( * ) ) * + + 15 / + CAST ( NULL AS INTEGER ) * + 51 * + MAX ( - - ( - CAST ( NULL AS INTEGER ) ) ) + - + 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT - CASE - 63 WHEN 40 - + MIN( - 64 ) THEN NULL ELSE + 6 + + ( - - 61 ) END + + + CASE + 6 WHEN + + 96 THEN NULL WHEN 51 * + 55 * - COALESCE ( - SUM( ALL 76 ), + + 14 ) THEN - 38 + + 36 ELSE + + 88 END
----
21

skipif mysql # not compatible
query I rowsort label-8833
SELECT - CASE - 63 WHEN 40 - + MIN ( - 64 ) THEN NULL ELSE + 6 + + ( - - 61 ) END + + + CASE + 6 WHEN + + 96 THEN NULL WHEN 51 * + 55 * - COALESCE ( - SUM ( ALL 76 ), + + 14 ) THEN - 38 + + 36 ELSE + + 88 END
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT + 76 * - - 65 * NULLIF ( + 69, + 98 + COUNT( * ) ) AS col0
----
340860

skipif mysql # not compatible
query I rowsort label-8834
SELECT + 76 * - - 65 * NULLIF ( + 69, + 98 + COUNT ( * ) ) AS col0
----
340860

query I rowsort
SELECT - 82 * 57
----
-4674

query I rowsort
SELECT + 94 - - 12
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-8837
SELECT DISTINCT - 72 DIV + 25
----
-2

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT - 72 / + 25
----
-2

query I rowsort
SELECT ALL - 54 * + - 88 * - + 42 AS col2
----
-199584

query I rowsort
SELECT - 46 * - 50
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT MAX( - - 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT MAX ( - - 29 ) AS col0
----
29

query I rowsort
SELECT ALL - 55 * 23 * - 77
----
97405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT + COUNT( * ) + - ( - ( ( + + CAST( NULL AS SIGNED ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT + COUNT ( * ) + - ( - ( ( + + CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
NULL

query I rowsort
SELECT - 16 - - ( + - 0 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8844
SELECT - CAST( - - 32 AS SIGNED ) * CASE + - COALESCE ( + + 73, - 7 ) WHEN - + 93 THEN - COUNT( + COALESCE ( + + 78, - 4 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT - CAST ( - - 32 AS INTEGER ) * CASE + - COALESCE ( + + 73, - 7 ) WHEN - + 93 THEN - COUNT ( + COALESCE ( + + 78, - 4 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8845
SELECT ALL - CASE - + 42 WHEN + 36 * NULLIF ( - 35, 18 ) THEN + 71 * + - 46 * - COUNT( * ) + + CAST( NULL AS SIGNED ) END * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL - CASE - + 42 WHEN + 36 * NULLIF ( - 35, 18 ) THEN + 71 * + - 46 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) END * + 7
----
NULL

query I rowsort
SELECT - 4 + + 14 + - 33 + - 95 + + 16 AS col2
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8847
SELECT ALL ( - - 58 ), + 91 * - + 44 + + COUNT( * ) * - 22 + + 92 * - 75 DIV COUNT( * ) AS col2
----
58
-10926

skipif mysql # not compatible
query II rowsort label-8847
SELECT ALL ( - - 58 ), + 91 * - + 44 + + COUNT ( * ) * - 22 + + 92 * - 75 / COUNT ( * ) AS col2
----
58
-10926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8848
SELECT ALL + CAST( NULL AS SIGNED ) + - 97 * + CAST( + 20 AS SIGNED ) / + 43 / - COUNT( * ) + - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL + CAST ( NULL AS INTEGER ) + - 97 * + CAST ( + 20 AS INTEGER ) / + 43 / - COUNT ( * ) + - - 69
----
NULL

query I rowsort
SELECT DISTINCT - + 90 + - + 17
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT - CAST( - 22 AS SIGNED ) col2
----
22

skipif mysql # not compatible
query I rowsort label-8850
SELECT - CAST ( - 22 AS INTEGER ) col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8851
SELECT 21 * - 29 + - 52 DIV 45 DIV - 76 * - 61 * CASE 25 WHEN + + SUM( + 45 ) THEN NULL ELSE - 22 DIV - ( - + 3 ) + 24 END
----
-609

skipif mysql # not compatible
query I rowsort label-8851
SELECT 21 * - 29 + - 52 / 45 / - 76 * - 61 * CASE 25 WHEN + + SUM ( + 45 ) THEN NULL ELSE - 22 / - ( - + 3 ) + 24 END
----
-609

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8852
SELECT COALESCE ( + + COUNT( * ), + + MAX( - + ( 65 ) ) ) AS col0, + 62 - 4 + - SUM( + - 58 ) DIV + - COUNT( * )
----
1
0

skipif mysql # not compatible
query II rowsort label-8852
SELECT COALESCE ( + + COUNT ( * ), + + MAX ( - + ( 65 ) ) ) AS col0, + 62 - 4 + - SUM ( + - 58 ) / + - COUNT ( * )
----
1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8853
SELECT - + COUNT( * ) DIV - + 62 DIV COALESCE ( + SUM( + 11 ), - + 37 * SUM( - 70 ) + COUNT( 21 ) + - + 35 * + 28 ) + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8853
SELECT - + COUNT ( * ) / - + 62 / COALESCE ( + SUM ( + 11 ), - + 37 * SUM ( - 70 ) + COUNT ( 21 ) + - + 35 * + 28 ) + + COUNT ( * ) col2
----
1

query I rowsort
SELECT ( + - 75 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT + 79 + - 18 + + + 3 DIV + - 38 * 41 * - 46
----
61

skipif mysql # not compatible
query I rowsort label-8855
SELECT + 79 + - 18 + + + 3 / + - 38 * 41 * - 46
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8856
SELECT + 93 + COUNT( * ) DIV + - 33 * + 60 + - 94
----
-1

skipif mysql # not compatible
query I rowsort label-8856
SELECT + 93 + COUNT ( * ) / + - 33 * + 60 + - 94
----
-1

query I rowsort
SELECT DISTINCT - 22 * - 51
----
1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8858
SELECT DISTINCT + 65 * - + 50 * + + ( 34 ) DIV - + 2 + 94 DIV + 88 + - 7 * 29 AS col0, + MIN( - 24 )
----
55048
-24

skipif mysql # not compatible
query II rowsort label-8858
SELECT DISTINCT + 65 * - + 50 * + + ( 34 ) / - + 2 + 94 / + 88 + - 7 * 29 AS col0, + MIN ( - 24 )
----
55048
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT ALL - 29 * COUNT( ALL + ( + 29 ) ) + - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL - 29 * COUNT ( ALL + ( + 29 ) ) + - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8860
SELECT + 55 * + - NULLIF ( 31, 69 + + COUNT( * ) * 28 + + AVG ( 59 ) * - COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT + 55 * + - NULLIF ( 31, 69 + + COUNT ( * ) * 28 + + AVG ( 59 ) * - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8861
SELECT ALL - 22 * + 69 * + + 47 + - 43 - 7 AS col1, + ( - COUNT( * ) ) * + COUNT( * ) * - + 35
----
-71396
35

skipif mysql # not compatible
query II rowsort label-8861
SELECT ALL - 22 * + 69 * + + 47 + - 43 - 7 AS col1, + ( - COUNT ( * ) ) * + COUNT ( * ) * - + 35
----
-71396
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL - CASE - 80 WHEN - COUNT( * ) THEN 57 END * - + 45 - + 10 * + - ( 54 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL - CASE - 80 WHEN - COUNT ( * ) THEN 57 END * - + 45 - + 10 * + - ( 54 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8863
SELECT + 82 DIV 8 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8863
SELECT + 82 / 8 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL + - MAX( ALL - 65 ) col1
----
65

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL + - MAX ( ALL - 65 ) col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
SELECT - CAST( NULL AS SIGNED ) * + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT - CAST ( NULL AS INTEGER ) * + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL COUNT( * ) * - 13 - + 5 * + MAX( - 16 ) * - + 45 AS col2
----
-3613

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL COUNT ( * ) * - 13 - + 5 * + MAX ( - 16 ) * - + 45 AS col2
----
-3613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8867
SELECT CASE 29 WHEN SUM( ALL - + 0 ) THEN + + 65 * NULLIF ( + MIN( ALL - + 71 ), + + 49 * 71 * + COUNT( * ) + - + CAST( + - COUNT( * ) AS SIGNED ) ) * - + COALESCE ( + + 39, 81, COUNT( * ) / - COUNT( * ) + + 39 * COUNT( * ) + - 99 * + 81 * 86 / 85 / + 79 ) + + 22 * + COUNT( * ) - - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT CASE 29 WHEN SUM ( ALL - + 0 ) THEN + + 65 * NULLIF ( + MIN ( ALL - + 71 ), + + 49 * 71 * + COUNT ( * ) + - + CAST ( + - COUNT ( * ) AS INTEGER ) ) * - + COALESCE ( + + 39, 81, COUNT ( * ) / - COUNT ( * ) + + 39 * COUNT ( * ) + - 99 * + 81 * 86 / 85 / + 79 ) + + 22 * + COUNT ( * ) - - 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL 64 * + - COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL 64 * + - COUNT ( * ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT + 70 + + ( + + CASE 47 WHEN - SUM( 71 ) * 94 THEN 29 WHEN COUNT( - + 38 ) THEN NULL END ) + - 42 * + 64 * + 0 + + ( + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT + 70 + + ( + + CASE 47 WHEN - SUM ( 71 ) * 94 THEN 29 WHEN COUNT ( - + 38 ) THEN NULL END ) + - 42 * + 64 * + 0 + + ( + 43 )
----
NULL

query I rowsort
SELECT + ( + - 77 ) AS col0
----
-77

query I rowsort
SELECT - ( + 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT COUNT( * ) * - 1 + + CAST( NULL AS SIGNED ) + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT COUNT ( * ) * - 1 + + CAST ( NULL AS INTEGER ) + - 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT COUNT( DISTINCT - 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8873
SELECT COUNT ( DISTINCT - 66 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + 16 + - COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8874
SELECT + 16 + - COUNT ( * ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT + 75 - - - ( - COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-8875
SELECT + 75 - - - ( - COUNT ( * ) )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8876
SELECT + MAX( DISTINCT + 60 ) DIV - + CASE 51 WHEN - 26 + + 81 THEN + 77 WHEN - + 87 + 47 * 93 THEN NULL ELSE - 52 END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8876
SELECT + MAX ( DISTINCT + 60 ) / - + CASE 51 WHEN - 26 + + 81 THEN + 77 WHEN - + 87 + 47 * 93 THEN NULL ELSE - 52 END AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT - 92 + ( ( - 57 ) ) * - 41 + - COUNT( * ) col2
----
2244

skipif mysql # not compatible
query I rowsort label-8877
SELECT - 92 + ( ( - 57 ) ) * - 41 + - COUNT ( * ) col2
----
2244

query I rowsort
SELECT - ( - 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - 86 + - 56 + 15 - - 7 - + MAX( - - 79 ) AS col1
----
-199

skipif mysql # not compatible
query I rowsort label-8879
SELECT - 86 + - 56 + 15 - - 7 - + MAX ( - - 79 ) AS col1
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT DISTINCT COALESCE ( 85, + COUNT( * ) + + 40 + 60 * - 71, - + 18 )
----
85

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT COALESCE ( 85, + COUNT ( * ) + + 40 + 60 * - 71, - + 18 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ALL + COUNT( * ) + 85 col1
----
86

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + COUNT ( * ) + 85 col1
----
86

query I rowsort
SELECT + 57 * - 84
----
-4788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8883
SELECT ALL 62 + - CAST( NULL AS SIGNED ) - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL 62 + - CAST ( NULL AS INTEGER ) - - 71
----
NULL

query I rowsort
SELECT + 33 * 13 AS col0
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL - NULLIF ( + 72, ( 0 ) / - 66 * - 23 + COUNT( * ) ) + + 57 * - + 46 * - 38
----
99564

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - NULLIF ( + 72, ( 0 ) / - 66 * - 23 + COUNT ( * ) ) + + 57 * - + 46 * - 38
----
99564

query I rowsort
SELECT - + 50 * 49 * 70 * - 27 + 91 AS col2
----
4630591

query I rowsort
SELECT + 81 * - 89 AS col0
----
-7209

query I rowsort
SELECT - - 75 * 13 + - + 32 AS col0
----
943

query I rowsort
SELECT + 17 - 20
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8890
SELECT DISTINCT ( - CAST( - + 51 AS SIGNED ) ) * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT ( - CAST ( - + 51 AS INTEGER ) ) * COUNT ( * )
----
51

query I rowsort
SELECT ALL + 35 - - 24
----
59

query I rowsort
SELECT DISTINCT - 76 * - 59 * - 16
----
-71744

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT - SUM( + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT - SUM ( + 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL - + NULLIF ( - - 15, + COUNT( * ) ) - + 69 - COUNT( * ) * COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL - + NULLIF ( - - 15, + COUNT ( * ) ) - + 69 - COUNT ( * ) * COUNT ( * ) AS col0
----
-85

query I rowsort
SELECT - 53 * 6
----
-318

query I rowsort
SELECT + 19 * - - 71 * + 32
----
43168

onlyif mysql # DIV for integer division: 
query I rowsort label-8897
SELECT 62 + + 67 + + - 16 DIV + 78 + 56
----
185

skipif mysql # not compatible
query I rowsort label-8897
SELECT 62 + + 67 + + - 16 / + 78 + 56
----
185

query I rowsort
SELECT 69 * - 82
----
-5658

query I rowsort
SELECT DISTINCT + 81 * ( + 93 ) AS col0
----
7533

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT DISTINCT - 9 * - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT - 9 * - COUNT ( * )
----
9

query I rowsort
SELECT ALL - ( + - NULLIF ( + - ( 49 ), - - 88 ) ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8902
SELECT + 30 AS col1, - SUM( DISTINCT - - 27 )
----
30
-27

skipif mysql # not compatible
query II rowsort label-8902
SELECT + 30 AS col1, - SUM ( DISTINCT - - 27 )
----
30
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT 68 * COALESCE ( - 91, - 68 * + 15 * + MAX( ALL + 44 ) * + COUNT( * ) + + 96, - 90 + 3 ) AS col0
----
-6188

skipif mysql # not compatible
query I rowsort label-8903
SELECT 68 * COALESCE ( - 91, - 68 * + 15 * + MAX ( ALL + 44 ) * + COUNT ( * ) + + 96, - 90 + 3 ) AS col0
----
-6188

query I rowsort
SELECT DISTINCT 22 + - 30
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8905
SELECT - 86 col2, + 25 + 19 DIV + - COUNT( * )
----
-86
6

skipif mysql # not compatible
query II rowsort label-8905
SELECT - 86 col2, + 25 + 19 / + - COUNT ( * )
----
-86
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8906
SELECT 73 AS col1, COALESCE ( - 36, 98 + CAST( + 39 AS SIGNED ) )
----
73
-36

skipif mysql # not compatible
query II rowsort label-8906
SELECT 73 AS col1, COALESCE ( - 36, 98 + CAST ( + 39 AS INTEGER ) )
----
73
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT ALL 57 + - + NULLIF ( 86, - COUNT( * ) ) + - MIN( - + 85 ) * 79 + - 22 + + - ( - + COUNT( * ) ) * + + COALESCE ( - + COUNT( * ), + COUNT( - 59 ) * + + 35 ) * - + COALESCE ( - 32, + 82 * 82, - 88 ) col2
----
6632

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL 57 + - + NULLIF ( 86, - COUNT ( * ) ) + - MIN ( - + 85 ) * 79 + - 22 + + - ( - + COUNT ( * ) ) * + + COALESCE ( - + COUNT ( * ), + COUNT ( - 59 ) * + + 35 ) * - + COALESCE ( - 32, + 82 * 82, - 88 ) col2
----
6632

query I rowsort
SELECT 94 + - 8
----
86

query I rowsort
SELECT ALL - 83 + 36 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-8910
SELECT ALL 97 AS col0, 21 * + 99 + 72 * + ( + COUNT( * ) ) + + - CASE - 20 WHEN ( + - 18 ) + + - 88 THEN NULL WHEN NULLIF ( 57, - 49 + + 78 + - 61 ) THEN + + 12 * - - 29 + 98 * - 80 * + COUNT( * ) + + 55 - 49 ELSE NULL END AS col2
----
97
NULL

skipif mysql # not compatible
query II rowsort label-8910
SELECT ALL 97 AS col0, 21 * + 99 + 72 * + ( + COUNT ( * ) ) + + - CASE - 20 WHEN ( + - 18 ) + + - 88 THEN NULL WHEN NULLIF ( 57, - 49 + + 78 + - 61 ) THEN + + 12 * - - 29 + 98 * - 80 * + COUNT ( * ) + + 55 - 49 ELSE NULL END AS col2
----
97
NULL

query I rowsort
SELECT ALL + 19 + + 62 col0
----
81

query I rowsort
SELECT ALL NULLIF ( + + 98, + + 73 * + 92 - 18 ) + + + 58
----
156

query I rowsort
SELECT 28 - - 53 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + ( - - COUNT( * ) ) + - - 45 + - 36 + - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-8914
SELECT + ( - - COUNT ( * ) ) + - - 45 + - 36 + - COUNT ( * )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT CAST( + 31 AS SIGNED ) col2
----
31

skipif mysql # not compatible
query I rowsort label-8915
SELECT CAST ( + 31 AS INTEGER ) col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8916
SELECT + 57 AS col2, + MAX( + + 38 )
----
57
38

skipif mysql # not compatible
query II rowsort label-8916
SELECT + 57 AS col2, + MAX ( + + 38 )
----
57
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + COUNT( DISTINCT + - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-8917
SELECT + COUNT ( DISTINCT + - 49 )
----
1

query II rowsort
SELECT ALL 36 AS col0, + 95
----
36
95

query I rowsort
SELECT - 14 + + 66
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8920
SELECT ALL SUM( ALL - - 19 ) - - + NULLIF ( + 1, + 58 - - 77 + 30 * + 61 - + - 76 * - 72 ) + - COUNT( - 87 ) * - 51 * + CASE 43 WHEN + - CAST( - 90 AS SIGNED ) THEN NULL WHEN - COUNT( * ) - + - 36 THEN NULL ELSE + MAX( DISTINCT + 1 ) END DIV - 59 + COUNT( 84 ) * CAST( + CASE - + 93 WHEN - 32 + + - CAST( NULL AS SIGNED ) THEN NULL ELSE - 25 END AS SIGNED ) * + + ( + CASE + + 24 WHEN - CAST( 97 AS SIGNED ) THEN - - 46 WHEN 86 THEN + COUNT( * ) WHEN CAST( 16 AS SIGNED ) + - SUM( ALL 25 + 47 ) THEN 95 + 80 ELSE - ( CASE 94 WHEN + COALESCE ( 50, 20 + - 67 ) DIV + ( - COALESCE ( - 86, - 39 ) ) THEN + 25 * + 32 WHEN CASE 46 WHEN + ( 10 ) THEN NULL WHEN 9 THEN + 4 END + 48 THEN - 38 WHEN - COUNT( * ) + + 29 THEN - COALESCE ( COUNT( * ), + 39 ) WHEN + 87 THEN + ( - 64 ) ELSE 2 END ) END ) DIV - 61 + 76 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL SUM ( ALL - - 19 ) - - + NULLIF ( + 1, + 58 - - 77 + 30 * + 61 - + - 76 * - 72 ) + - COUNT ( - 87 ) * - 51 * + CASE 43 WHEN + - CAST ( - 90 AS INTEGER ) THEN NULL WHEN - COUNT ( * ) - + - 36 THEN NULL ELSE + MAX ( DISTINCT + 1 ) END / - 59 + COUNT ( 84 ) * CAST ( + CASE - + 93 WHEN - 32 + + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 25 END AS INTEGER ) * + + ( + CASE + + 24 WHEN - CAST ( 97 AS INTEGER ) THEN - - 46 WHEN 86 THEN + COUNT ( * ) WHEN CAST ( 16 AS INTEGER ) + - SUM ( ALL 25 + 47 ) THEN 95 + 80 ELSE - ( CASE 94 WHEN + COALESCE ( 50, 20 + - 67 ) / + ( - COALESCE ( - 86, - 39 ) ) THEN + 25 * + 32 WHEN CASE 46 WHEN + ( 10 ) THEN NULL WHEN 9 THEN + 4 END + 48 THEN - 38 WHEN - COUNT ( * ) + + 29 THEN - COALESCE ( COUNT ( * ), + 39 ) WHEN + 87 THEN + ( - 64 ) ELSE 2 END ) END ) / - 61 + 76 AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT - + NULLIF ( - CASE + 19 WHEN + 83 / ( - 88 ) + + 33 THEN NULL ELSE - CAST( NULL AS SIGNED ) END, + - 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT - + NULLIF ( - CASE + 19 WHEN + 83 / ( - 88 ) + + 33 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END, + - 22 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8922
SELECT DISTINCT - CAST( + 72 AS SIGNED ), 35 AS col1
----
-72
35

skipif mysql # not compatible
query II rowsort label-8922
SELECT DISTINCT - CAST ( + 72 AS INTEGER ), 35 AS col1
----
-72
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT ALL + COUNT( DISTINCT 65 ) - MIN( + 51 ) - + SUM( DISTINCT + 38 ) - - MAX( DISTINCT 72 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL + COUNT ( DISTINCT 65 ) - MIN ( + 51 ) - + SUM ( DISTINCT + 38 ) - - MAX ( DISTINCT 72 ) AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8924
SELECT ALL - 72 DIV - - 34 * COUNT( * ) + + - MAX( 33 ) + - ( - + 54 ) * - COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL - 72 / - - 34 * COUNT ( * ) + + - MAX ( 33 ) + - ( - + 54 ) * - COUNT ( * ) AS col2
----
-89

query I rowsort
SELECT - 1 * + 86 + + 62 col0
----
-24

query II rowsort
SELECT + 3, ( 92 ) AS col2
----
3
92

query I rowsort
SELECT 40 * - + 84 * 67 col1
----
-225120

query I rowsort
SELECT ALL - 23 * - 49 AS col1
----
1127

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT 71 DIV + COALESCE ( - 46, - + 33 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8929
SELECT 71 / + COALESCE ( - 46, - + 33 ) AS col2
----
-1

query I rowsort
SELECT - 73 * + 79
----
-5767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT CAST( NULL AS SIGNED ) + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT CAST ( NULL AS INTEGER ) + - 97
----
NULL

query I rowsort
SELECT 60 * - - 61 AS col1
----
3660

query I rowsort
SELECT ALL + 31 * - - 92
----
2852

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8934
SELECT ALL - - 0 AS col0, + ( + - 35 ) + CAST( 92 AS SIGNED )
----
0
57

skipif mysql # not compatible
query II rowsort label-8934
SELECT ALL - - 0 AS col0, + ( + - 35 ) + CAST ( 92 AS INTEGER )
----
0
57

query II rowsort
SELECT 78 * + 6 AS col2, ( + 62 )
----
468
62

query II rowsort
SELECT DISTINCT - ( - 93 ), + 82 + - + 43 * + + 81 AS col1
----
93
-3401

query II rowsort
SELECT 68 * 47 AS col0, 98
----
3196
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL + NULLIF ( 45, + 71 ) + + 59 * + COUNT( * ) * - + ( 7 ) * + - 18
----
7479

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL + NULLIF ( 45, + 71 ) + + 59 * + COUNT ( * ) * - + ( 7 ) * + - 18
----
7479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8939
SELECT 94 + - MIN( DISTINCT - 89 ) DIV + 70
----
95

skipif mysql # not compatible
query I rowsort label-8939
SELECT 94 + - MIN ( DISTINCT - 89 ) / + 70
----
95

query I rowsort
SELECT DISTINCT + 51 + - 52 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8941
SELECT DISTINCT + 5 + - - SUM( - - 4 ) AS col2, 62 + - 3
----
9
59

skipif mysql # not compatible
query II rowsort label-8941
SELECT DISTINCT + 5 + - - SUM ( - - 4 ) AS col2, 62 + - 3
----
9
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL + 24 + + COALESCE ( ( + + COUNT( - - 85 ) ), - 35 )
----
25

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL + 24 + + COALESCE ( ( + + COUNT ( - - 85 ) ), - 35 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8943
SELECT ALL - 88 - 51, + COUNT( DISTINCT + 79 ) + - 95 AS col2
----
-139
-94

skipif mysql # not compatible
query II rowsort label-8943
SELECT ALL - 88 - 51, + COUNT ( DISTINCT + 79 ) + - 95 AS col2
----
-139
-94

query I rowsort
SELECT ALL - COALESCE ( - + 50, + 74 + + + 62 * - 93 * 13 ) AS col2
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8945
SELECT DISTINCT + 54 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT + 54 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + - 49 * - - 66
----
-3234

query I rowsort
SELECT ALL - 43 * + 73 AS col1
----
-3139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8948
SELECT + + 66 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT + + 66 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT DISTINCT + - MAX( 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT + - MAX ( 90 ) AS col1
----
-90

query I rowsort
SELECT + 94 * + - 58 + 31 AS col1
----
-5421

query I rowsort
SELECT ALL - 65 * - 86 + + 63 AS col1
----
5653

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL 74 * 4 * - 73 + SUM( - 76 )
----
-21684

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL 74 * 4 * - 73 + SUM ( - 76 )
----
-21684

query I rowsort
SELECT + 0 - - - 58 + + ( + 98 ) AS col2
----
40

query I rowsort
SELECT ALL 6 * + 39 AS col2
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8955
SELECT - 17 DIV - - CAST( - MIN( DISTINCT 89 ) AS SIGNED ), - 2 col1
----
0
-2

skipif mysql # not compatible
query II rowsort label-8955
SELECT - 17 / - - CAST ( - MIN ( DISTINCT 89 ) AS INTEGER ), - 2 col1
----
0
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT - 76 - + ( 80 ) + - MAX( ALL + + 60 ) col0
----
-216

skipif mysql # not compatible
query I rowsort label-8956
SELECT - 76 - + ( 80 ) + - MAX ( ALL + + 60 ) col0
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8957
SELECT - 52 / - COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT - 52 / - COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8959
SELECT ALL + 58 col1, COUNT( * ) * - 7 + - + 69
----
58
-76

skipif mysql # not compatible
query II rowsort label-8959
SELECT ALL + 58 col1, COUNT ( * ) * - 7 + - + 69
----
58
-76

query I rowsort
SELECT ALL 46 * + 85
----
3910

query I rowsort
SELECT 37 * - - 45 + 13 AS col2
----
1678

query I rowsort
SELECT NULLIF ( - 3, + CASE - 84 WHEN - 34 * - - 36 THEN - - ( 18 ) + + - 78 END * ( - 7 ) ) AS col0
----
-3

query I rowsort
SELECT - 27 * - 1 * + 4
----
108

query I rowsort
SELECT DISTINCT - 46 * - 35 * + 18 - - 95 AS col0
----
29075

query I rowsort
SELECT - 62 + + 4
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT - 91 + + 13 - - + CASE 49 WHEN - 4 - - NULLIF ( - 12, SUM( DISTINCT - - ( 92 ) ) + 0 ) + + + 14 THEN - COUNT( * ) ELSE NULL END * - NULLIF ( - AVG ( ( - 14 ) ), + - 73 ) * 58 * - AVG ( ALL + - 3 ) + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT - 91 + + 13 - - + CASE 49 WHEN - 4 - - NULLIF ( - 12, SUM ( DISTINCT - - ( 92 ) ) + 0 ) + + + 14 THEN - COUNT ( * ) ELSE NULL END * - NULLIF ( - AVG ( ( - 14 ) ), + - 73 ) * 58 * - AVG ( ALL + - 3 ) + + 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - - SUM( - + 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8967
SELECT - - SUM ( - + 48 ) AS col0
----
-48

query I rowsort
SELECT - + NULLIF ( + - 17, 99 ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8969
SELECT ALL - ( + COALESCE ( - CASE - + 84 WHEN AVG ( - 64 ) * ( - - 59 ) - - 55 THEN 18 WHEN 88 THEN NULL END, + 4 + + + 5 + + COUNT( DISTINCT - + 31 ) * - CAST( NULL AS SIGNED ) / + - 71 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL - ( + COALESCE ( - CASE - + 84 WHEN AVG ( - 64 ) * ( - - 59 ) - - 55 THEN 18 WHEN 88 THEN NULL END, + 4 + + + 5 + + COUNT ( DISTINCT - + 31 ) * - CAST ( NULL AS INTEGER ) / + - 71 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 97 - 14 + - 10 * - 56
----
643

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8971
SELECT DISTINCT - 5 * - + CAST( NULL AS SIGNED ) + - - 71, 49 - + 47 DIV - 51 AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-8971
SELECT DISTINCT - 5 * - + CAST ( NULL AS INTEGER ) + - - 71, 49 - + 47 / - 51 AS col2
----
NULL
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT - + 78 DIV 48
----
-1

skipif mysql # not compatible
query I rowsort label-8972
SELECT - + 78 / 48
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT - 49 + - CAST( + - 39 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-8973
SELECT - 49 + - CAST ( + - 39 AS INTEGER )
----
-10

query II rowsort
SELECT ALL 4, 54 * + + 64 + + + NULLIF ( - + 1, + - 7 + + 79 ) * - - COALESCE ( 13, - 7 * + 46, - 7 ) col1
----
4
3443

query I rowsort
SELECT + 33 + - 78 - - - 93 + 77 AS col0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8976
SELECT DISTINCT - + 63 DIV - 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT - + 63 / - 52 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8977
SELECT - 76 DIV 34 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8977
SELECT - 76 / 34 AS col0
----
-2

query I rowsort
SELECT + ( + - CASE - 72 WHEN 25 THEN NULL ELSE - 93 * + + 69 END ) + + NULLIF ( - + 63, + 77 )
----
6354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8979
SELECT - - NULLIF ( - + CAST( NULL AS SIGNED ), - COALESCE ( + CAST( - 93 AS SIGNED ), - 33, + 52 * - 95 + + CAST( 4 AS SIGNED ) * + 75 ) ) + + - ( 80 ) + - CAST( NULL AS SIGNED ) * 37 * + COUNT( * ) col2, - AVG ( - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8979
SELECT - - NULLIF ( - + CAST ( NULL AS INTEGER ), - COALESCE ( + CAST ( - 93 AS INTEGER ), - 33, + 52 * - 95 + + CAST ( 4 AS INTEGER ) * + 75 ) ) + + - ( 80 ) + - CAST ( NULL AS INTEGER ) * 37 * + COUNT ( * ) col2, - AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

query I rowsort
SELECT ALL + 31 + + - 31 + - 95 AS col1
----
-95

query I rowsort
SELECT - + 26 + - - ( + 21 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8982
SELECT - 50 AS col0, - CASE - 13 WHEN + - MAX( DISTINCT + 86 ) * - ( - 19 ) * 49 + 59 + + 33 THEN - COALESCE ( + - COUNT( * ), - - 29 + - 12 + COUNT( * ) + - ( + + ( + - COUNT( * ) ) ) * - - 72, + 9 * - 0 ) + - 40 / 75 + 80 WHEN - 10 * + - COUNT( * ) * - 27 - COUNT( DISTINCT - + CAST( 91 AS SIGNED ) ) + 66 THEN - CAST( 37 AS DECIMAL ) END AS col0
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-8982
SELECT - 50 AS col0, - CASE - 13 WHEN + - MAX ( DISTINCT + 86 ) * - ( - 19 ) * 49 + 59 + + 33 THEN - COALESCE ( + - COUNT ( * ), - - 29 + - 12 + COUNT ( * ) + - ( + + ( + - COUNT ( * ) ) ) * - - 72, + 9 * - 0 ) + - 40 / 75 + 80 WHEN - 10 * + - COUNT ( * ) * - 27 - COUNT ( DISTINCT - + CAST ( 91 AS INTEGER ) ) + 66 THEN - CAST ( 37 AS REAL ) END AS col0
----
-50
NULL

query I rowsort
SELECT DISTINCT + - 21 + 21 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL - - ( + + COUNT( * ) ) + + 21 + - 72 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL - - ( + + COUNT ( * ) ) + + 21 + - 72 AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT DISTINCT + + 96 + - NULLIF ( 93, - + ( - + CAST( NULL AS SIGNED ) ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + + 96 + - NULLIF ( 93, - + ( - + CAST ( NULL AS INTEGER ) ) ) AS col0
----
3

query I rowsort
SELECT DISTINCT - 49 + 65 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT + SUM( DISTINCT - ( 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-8987
SELECT + SUM ( DISTINCT - ( 65 ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT + SUM( - ( + - 9 ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8988
SELECT + SUM ( - ( + - 9 ) ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT - 70 * COALESCE ( + 49, 99 ) DIV - - ( - + COUNT( * ) )
----
3430

skipif mysql # not compatible
query I rowsort label-8989
SELECT - 70 * COALESCE ( + 49, 99 ) / - - ( - + COUNT ( * ) )
----
3430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8990
SELECT 68 DIV - COUNT( * ) + COUNT( * ) + + + 20 * - COUNT( * ) * - COALESCE ( - 93, + ( - + ( - 89 ) ) + - 10 + - CASE + NULLIF ( 54, 12 ) WHEN - 14 THEN 82 END * 15 ) + COALESCE ( + 91, - - 68 * + + CAST( + 60 AS SIGNED ) ) AS col0
----
-1836

skipif mysql # not compatible
query I rowsort label-8990
SELECT 68 / - COUNT ( * ) + COUNT ( * ) + + + 20 * - COUNT ( * ) * - COALESCE ( - 93, + ( - + ( - 89 ) ) + - 10 + - CASE + NULLIF ( 54, 12 ) WHEN - 14 THEN 82 END * 15 ) + COALESCE ( + 91, - - 68 * + + CAST ( + 60 AS INTEGER ) ) AS col0
----
-1836

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8991
SELECT CAST( + 43 AS SIGNED ), - 18 AS col0
----
43
-18

skipif mysql # not compatible
query II rowsort label-8991
SELECT CAST ( + 43 AS INTEGER ), - 18 AS col0
----
43
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-8992
SELECT ALL - 12 DIV + - 21 * - 44 + - 0 - - 96 AS col2, 55 * + + 10
----
96
550

skipif mysql # not compatible
query II rowsort label-8992
SELECT ALL - 12 / + - 21 * - 44 + - 0 - - 96 AS col2, 55 * + + 10
----
96
550

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT 60 * - 64 + 57 + 35 DIV 58 AS col0
----
-3783

skipif mysql # not compatible
query I rowsort label-8993
SELECT 60 * - 64 + 57 + 35 / 58 AS col0
----
-3783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT CAST( - 48 AS SIGNED ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8994
SELECT CAST ( - 48 AS INTEGER ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT DISTINCT 87 * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT 87 * + COUNT ( * )
----
87

query I rowsort
SELECT + 10 * + 6
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT + COALESCE ( 64, - COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-8997
SELECT + COALESCE ( 64, - COUNT ( * ) )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT + 18 / - + CASE - ( + NULLIF ( - 74, + - 34 ) ) WHEN + - 65 THEN 31 + + 95 + + CAST( NULL AS SIGNED ) END / + - 48 * ( - - ( - 55 ) ) - + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT + 18 / - + CASE - ( + NULLIF ( - 74, + - 34 ) ) WHEN + - 65 THEN 31 + + 95 + + CAST ( NULL AS INTEGER ) END / + - 48 * ( - - ( - 55 ) ) - + 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT + ( MIN( - 90 ) ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8999
SELECT + ( MIN ( - 90 ) ) AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9000
SELECT - 63 DIV 7
----
-9

skipif mysql # not compatible
query I rowsort label-9000
SELECT - 63 / 7
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9002
SELECT ALL SUM( ALL + 34 ) * COUNT( * ) + - 28 col0, - 15
----
6
-15

skipif mysql # not compatible
query II rowsort label-9002
SELECT ALL SUM ( ALL + 34 ) * COUNT ( * ) + - 28 col0, - 15
----
6
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT DISTINCT - MAX( 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT - MAX ( 41 )
----
-41

query I rowsort
SELECT - 74 * + + 62 - - 59 AS col1
----
-4529

query I rowsort
SELECT DISTINCT - 9 * - 1
----
9

query I rowsort
SELECT 66 * + ( 6 ) * - + 99
----
-39204

query I rowsort
SELECT ALL 50 * + + 75
----
3750

query I rowsort
SELECT - NULLIF ( 31, + 64 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT NULLIF ( + SUM( ALL + 12 ), + COUNT( DISTINCT 2 ) + + 25 + - - 66 ) * 75
----
900

skipif mysql # not compatible
query I rowsort label-9009
SELECT NULLIF ( + SUM ( ALL + 12 ), + COUNT ( DISTINCT 2 ) + + 25 + - - 66 ) * 75
----
900

query I rowsort
SELECT ALL + + 99 + 57 AS col0
----
156

query I rowsort
SELECT - 83 * - - 13
----
-1079

query I rowsort
SELECT ALL - 44 * + + 11 + + 49 AS col2
----
-435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9013
SELECT - 10 DIV + SUM( ALL + + CAST( 94 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9013
SELECT - 10 / + SUM ( ALL + + CAST ( 94 AS INTEGER ) )
----
0

query I rowsort
SELECT ALL - 0 + + 90 col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT + - COUNT( + 32 ) + - ( 91 ) * - 28
----
2547

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + - COUNT ( + 32 ) + - ( 91 ) * - 28
----
2547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9016
SELECT ALL + - CAST( - ( 74 ) AS SIGNED ) * - 50 * - 40 + - 72
----
147928

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + - CAST ( - ( 74 ) AS INTEGER ) * - 50 * - 40 + - 72
----
147928

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT CASE COUNT( * ) WHEN COUNT( * ) THEN 17 WHEN - 46 * 81 * + COUNT( * ) / + + COUNT( * ) / - 32 THEN NULL WHEN COUNT( * ) * 23 THEN NULL END + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-9017
SELECT CASE COUNT ( * ) WHEN COUNT ( * ) THEN 17 WHEN - 46 * 81 * + COUNT ( * ) / + + COUNT ( * ) / - 32 THEN NULL WHEN COUNT ( * ) * 23 THEN NULL END + - COUNT ( * )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT ALL COALESCE ( + + ( 54 ), 30 DIV 6, + 37 DIV + 53 )
----
54

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL COALESCE ( + + ( 54 ), 30 / 6, + 37 / + 53 )
----
54

query I rowsort
SELECT + 77 + + 59 + 81 AS col2
----
217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT 78 * + + ( - ( + 39 ) ) * - 5 * + ( + - 50 ) - ( + + 33 ) + - CAST( NULL AS SIGNED ) * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT 78 * + + ( - ( + 39 ) ) * - 5 * + ( + - 50 ) - ( + + 33 ) + - CAST ( NULL AS INTEGER ) * 20 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9021
SELECT DISTINCT + 91 DIV + 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT + 91 / + 54 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL - COUNT( * ) + - 38
----
-39

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL - COUNT ( * ) + - 38
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-9023
SELECT 87 - - + COALESCE ( + - 15, + + 65, + - 32 - - 89 ) AS col1, - NULLIF ( - COUNT( * ), CASE + 10 WHEN 2 * + 85 * - 34 / + 74 * + 66 THEN + 95 + + COUNT( * ) * 27 + - 99 - + 65 * 95 ELSE NULL END * + + 37 - + 61 )
----
72
1

skipif mysql # not compatible
query II rowsort label-9023
SELECT 87 - - + COALESCE ( + - 15, + + 65, + - 32 - - 89 ) AS col1, - NULLIF ( - COUNT ( * ), CASE + 10 WHEN 2 * + 85 * - 34 / + 74 * + 66 THEN + 95 + + COUNT ( * ) * 27 + - 99 - + 65 * 95 ELSE NULL END * + + 37 - + 61 )
----
72
1

query I rowsort
SELECT 97 - + ( + 64 ) + + 83
----
116

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9025
SELECT DISTINCT - COALESCE ( - 77, CAST( - 81 AS SIGNED ) DIV - 62 - + CAST( NULL AS SIGNED ) * - 17 DIV 68 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT - COALESCE ( - 77, CAST ( - 81 AS INTEGER ) / - 62 - + CAST ( NULL AS INTEGER ) * - 17 / 68 ) AS col2
----
77

query I rowsort
SELECT DISTINCT 46 * + 53 * + - 35 col1
----
-85330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9027
SELECT CAST( - COUNT( * ) AS SIGNED ) * 57 + 3 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9027
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * 57 + 3 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9028
SELECT 32 - 57 * + COUNT( * ), + 93 AS col0
----
-25
93

skipif mysql # not compatible
query II rowsort label-9028
SELECT 32 - 57 * + COUNT ( * ), + 93 AS col0
----
-25
93

query I rowsort
SELECT 3 * + 7
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9030
SELECT 22 DIV - + 31
----
0

skipif mysql # not compatible
query I rowsort label-9030
SELECT 22 / - + 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9031
SELECT MIN( - 18 ) * - + 10 + + 49 + - CAST( NULL AS SIGNED ) * + - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT MIN ( - 18 ) * - + 10 + + 49 + - CAST ( NULL AS INTEGER ) * + - 49 AS col2
----
NULL

query I rowsort
SELECT 31 + - 26
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9033
SELECT DISTINCT - CASE WHEN NOT ( NULL ) IS NOT NULL THEN + MAX( ALL + - CASE 13 WHEN + 70 THEN 54 + + 47 + + 96 END ) END, - 40 * - 48 AS col2
----
NULL
1920

skipif mysql # not compatible
query II rowsort label-9033
SELECT DISTINCT - CASE WHEN NOT ( NULL ) IS NOT NULL THEN + MAX ( ALL + - CASE 13 WHEN + 70 THEN 54 + + 47 + + 96 END ) END, - 40 * - 48 AS col2
----
NULL
1920

query I rowsort
SELECT ALL - 0 * + ( 27 ) * - CASE + 14 WHEN + 48 THEN - - 35 ELSE + + 39 + - 75 END * - + 39 + 69 * - + 18 - + + CASE - - 1 WHEN 44 THEN NULL ELSE ( + + 82 ) END + + + 90
----
-1234

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT DISTINCT + 89 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT + 89 / - 53
----
-1

query I rowsort
SELECT ALL - NULLIF ( 27, + 87 - - - 22 )
----
-27

query I rowsort
SELECT + 92 + + 40 + 87 * + 27
----
2481

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT COUNT( * ) + - 71 + + 1 + - 37 * - 8
----
227

skipif mysql # not compatible
query I rowsort label-9038
SELECT COUNT ( * ) + - 71 + + 1 + - 37 * - 8
----
227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9039
SELECT + COUNT( * ) * 28 * + 76 + 65 + - 64 DIV - - 63 + 0
----
2192

skipif mysql # not compatible
query I rowsort label-9039
SELECT + COUNT ( * ) * 28 * + 76 + 65 + - 64 / - - 63 + 0
----
2192

query I rowsort
SELECT ALL 71 + - 95 AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT - - CAST( - 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-9041
SELECT - - CAST ( - 9 AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT 4 * ( - 73 ) + - COUNT( * ) + + - 51 + - 43 * + 12
----
-860

skipif mysql # not compatible
query I rowsort label-9042
SELECT 4 * ( - 73 ) + - COUNT ( * ) + + - 51 + - 43 * + 12
----
-860

query I rowsort
SELECT 91 + - 24 AS col1
----
67

query I rowsort
SELECT ALL 28 * + + 46 AS col0
----
1288

query I rowsort
SELECT DISTINCT + 37 + + 77 AS col0
----
114

query I rowsort
SELECT DISTINCT - 62 + + 83 col2
----
21

query I rowsort
SELECT ALL - 4 + 16 * + 53
----
844

query I rowsort
SELECT DISTINCT 55 + - 79 + - 28 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT - - 34 + 46 + + - COUNT( * ) * + + 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT - - 34 + 46 + + - COUNT ( * ) * + + 80 AS col2
----
0

query I rowsort
SELECT ALL + 23 + + 82
----
105

query I rowsort
SELECT 60 - + CASE + - ( 81 ) WHEN - 69 THEN + 50 * - 62 ELSE + 83 * + 10 END
----
-770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT MIN( + CAST( NULL AS SIGNED ) ) + - - ( + + 94 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + - - ( + + 94 ) AS col0
----
NULL

query I rowsort
SELECT + 17 + - 48
----
-31

query I rowsort
SELECT 53 + - + 31 AS col2
----
22

query I rowsort
SELECT - ( - ( - - 88 ) ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL + COUNT( * ) + + 2 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL + COUNT ( * ) + + 2 AS col2
----
3

query I rowsort
SELECT CASE - - 83 WHEN - + 95 THEN NULL ELSE - - 62 END + 6
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9058
SELECT 23 * - + COUNT( * ) AS col0, ( - CASE WHEN NOT 62 IS NOT NULL THEN + 80 / - 57 * - CASE - 51 WHEN + 95 THEN COALESCE ( + 73, - 6 ) ELSE NULL END END ) AS col0
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-9058
SELECT 23 * - + COUNT ( * ) AS col0, ( - CASE WHEN NOT 62 IS NOT NULL THEN + 80 / - 57 * - CASE - 51 WHEN + 95 THEN COALESCE ( + 73, - 6 ) ELSE NULL END END ) AS col0
----
-23
NULL

query I rowsort
SELECT 6 + + 12 - 45 + 54 + - NULLIF ( - 80, + 5 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT DISTINCT COUNT( + 9 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT COUNT ( + 9 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT DISTINCT + MAX( DISTINCT 84 ) - + - 80 AS col1
----
164

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT + MAX ( DISTINCT 84 ) - + - 80 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT - 86 * COUNT( * ) + - 72 col1
----
-158

skipif mysql # not compatible
query I rowsort label-9062
SELECT - 86 * COUNT ( * ) + - 72 col1
----
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT - 99 * 61 DIV + + 70
----
-86

skipif mysql # not compatible
query I rowsort label-9063
SELECT - 99 * 61 / + + 70
----
-86

query I rowsort
SELECT NULLIF ( - 57, + 62 )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query IIII rowsort label-9065
SELECT ALL + 77 AS col2, 38 AS col1, + 89 + + CAST( NULL AS SIGNED ) AS col1, + + 97 AS col1
----
77
38
NULL
97

skipif mysql # not compatible
query IIII rowsort label-9065
SELECT ALL + 77 AS col2, 38 AS col1, + 89 + + CAST ( NULL AS INTEGER ) AS col1, + + 97 AS col1
----
77
38
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT - 75 * - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-9066
SELECT - 75 * - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9067
SELECT + 37, + 51 + - 66 + MAX( - 70 ) + - 53 AS col1
----
37
-138

skipif mysql # not compatible
query II rowsort label-9067
SELECT + 37, + 51 + - 66 + MAX ( - 70 ) + - 53 AS col1
----
37
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT - COALESCE ( + 22, - - 66, COUNT( * ) - MIN( DISTINCT - 90 ) ) + + 35 * - 50 - + 92
----
-1864

skipif mysql # not compatible
query I rowsort label-9068
SELECT - COALESCE ( + 22, - - 66, COUNT ( * ) - MIN ( DISTINCT - 90 ) ) + + 35 * - 50 - + 92
----
-1864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9069
SELECT ALL + COUNT( * ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL + COUNT ( * ) / 42
----
0

query I rowsort
SELECT ALL + NULLIF ( - 58, - 61 * - + ( - 84 ) ) AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9071
SELECT ALL + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL COUNT( DISTINCT + + 38 ) * + + 90 + 95
----
185

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL COUNT ( DISTINCT + + 38 ) * + + 90 + 95
----
185

query I rowsort
SELECT ALL 91 * - 55
----
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + CASE + 50 WHEN - - 51 THEN + ( + 92 ) + AVG ( DISTINCT + 21 ) - + - 13 * - 7 * ( + COALESCE ( + 53, MAX( ALL - 58 ), - 94 ) ) + + CASE + COUNT( * ) WHEN + ( 77 ) + - 62 THEN - - 39 * + 5 * + 14 END WHEN + + 40 THEN + - 68 - + + 68 - - 65 END + - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT + CASE + 50 WHEN - - 51 THEN + ( + 92 ) + AVG ( DISTINCT + 21 ) - + - 13 * - 7 * ( + COALESCE ( + 53, MAX ( ALL - 58 ), - 94 ) ) + + CASE + COUNT ( * ) WHEN + ( 77 ) + - 62 THEN - - 39 * + 5 * + 14 END WHEN + + 40 THEN + - 68 - + + 68 - - 65 END + - 4 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9075
SELECT + - ( - CAST( - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9075
SELECT + - ( - CAST ( - COUNT ( * ) AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL + 57 * + 26 - + 19 + + ( - 35 ) AS col0
----
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9077
SELECT + + 6 * - + 44 + ( 53 ) + - 23 - - 56 * + 68 - - COUNT( 0 ) - + 55 * CASE 92 WHEN + - CAST( NULL AS SIGNED ) * + MAX( + 46 ) - + 99 - - + ( 30 ) THEN 70 + - 92 END + - 62 / 28 * + + 89 - + NULLIF ( - 95, 18 * 11 + - 14 * + + COUNT( * ) + - - 4 ) / 55 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT + + 6 * - + 44 + ( 53 ) + - 23 - - 56 * + 68 - - COUNT ( 0 ) - + 55 * CASE 92 WHEN + - CAST ( NULL AS INTEGER ) * + MAX ( + 46 ) - + 99 - - + ( 30 ) THEN 70 + - 92 END + - 62 / 28 * + + 89 - + NULLIF ( - 95, 18 * 11 + - 14 * + + COUNT ( * ) + - - 4 ) / 55 * COUNT ( * )
----
NULL

query I rowsort
SELECT - + 88 * + 83 + - 43 + - 26 * - 2
----
-7295

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL + 28 * + 46 + COUNT( * ) AS col0
----
1289

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL + 28 * + 46 + COUNT ( * ) AS col0
----
1289

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + CASE - + 58 WHEN - 58 THEN - + 42 + + SUM( ALL - 63 ) * 24 ELSE COALESCE ( + 69, + 83 ) END AS col2
----
-1554

skipif mysql # not compatible
query I rowsort label-9080
SELECT + CASE - + 58 WHEN - 58 THEN - + 42 + + SUM ( ALL - 63 ) * 24 ELSE COALESCE ( + 69, + 83 ) END AS col2
----
-1554

query I rowsort
SELECT ALL - 20 * 43 + 25 + - - 70
----
-765

query I rowsort
SELECT ALL + 53 + 15
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT + MIN( DISTINCT 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9083
SELECT + MIN ( DISTINCT 36 ) AS col1
----
36

query I rowsort
SELECT + 1 + - + 79
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT + 59 * + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9085
SELECT + 59 * + COUNT ( * ) AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9086
SELECT + - COUNT( * ) DIV - NULLIF ( + CAST( + 99 AS SIGNED ), - COUNT( DISTINCT + 20 ) + + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9086
SELECT + - COUNT ( * ) / - NULLIF ( + CAST ( + 99 AS INTEGER ), - COUNT ( DISTINCT + 20 ) + + - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9087
SELECT + + COUNT( * ) DIV - 63 DIV - ( + + 8 ), + COUNT( - - CAST( NULL AS SIGNED ) )
----
0
0

skipif mysql # not compatible
query II rowsort label-9087
SELECT + + COUNT ( * ) / - 63 / - ( + + 8 ), + COUNT ( - - CAST ( NULL AS INTEGER ) )
----
0
0

query I rowsort
SELECT DISTINCT + NULLIF ( 40, + 26 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9089
SELECT ALL 47 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL 47 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL COUNT( + ( - - 81 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL COUNT ( + ( - - 81 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT + 11 * + NULLIF ( COUNT( * ), AVG ( DISTINCT - 84 ) * 24 )
----
11

skipif mysql # not compatible
query I rowsort label-9091
SELECT + 11 * + NULLIF ( COUNT ( * ), AVG ( DISTINCT - 84 ) * 24 )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9092
SELECT + 81 + - + COUNT( * ) AS col0, MIN( - 2 )
----
80
-2

skipif mysql # not compatible
query II rowsort label-9092
SELECT + 81 + - + COUNT ( * ) AS col0, MIN ( - 2 )
----
80
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + 51 - - COALESCE ( + 78, - 74, - 41 + - 76 / - 80 * - 34 * - 81 ) * - 6 * COUNT( * ) * NULLIF ( + COALESCE ( + + 83, - 95 ), + + 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT + 51 - - COALESCE ( + 78, - 74, - 41 + - 76 / - 80 * - 34 * - 81 ) * - 6 * COUNT ( * ) * NULLIF ( + COALESCE ( + + 83, - 95 ), + + 83 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL COALESCE ( ( - SUM( DISTINCT + 86 ) ), + SUM( ALL - + 18 ) - 57 * + COUNT( * ) ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL COALESCE ( ( - SUM ( DISTINCT + 86 ) ), + SUM ( ALL - + 18 ) - 57 * + COUNT ( * ) ) col1
----
-86

query II rowsort
SELECT ALL + 47 * + 77, - 29 AS col1
----
3619
-29

query I rowsort
SELECT + 28 + NULLIF ( 54, + - 28 ) AS col2
----
82

query I rowsort
SELECT ALL - 39 * + 98
----
-3822

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT + 9 DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-9098
SELECT + 9 / + 36
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9099
SELECT - MAX( 69 ) * - 34 - - CASE + ( + - CAST( 92 AS SIGNED ) ) WHEN - 66 * + + 97 THEN - + 74 + + ( + + 87 ) ELSE NULL END + + 30 * - + COALESCE ( + 0, + 2 * + 32 * + + SUM( - 31 ), - 19 ) * - 38 * + - 49 / 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT - MAX ( 69 ) * - 34 - - CASE + ( + - CAST ( 92 AS INTEGER ) ) WHEN - 66 * + + 97 THEN - + 74 + + ( + + 87 ) ELSE NULL END + + 30 * - + COALESCE ( + 0, + 2 * + 32 * + + SUM ( - 31 ), - 19 ) * - 38 * + - 49 / 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9100
SELECT - 27 + 0 AS col0, 67 - 49 - + - COUNT( * ) + 35 + + 98
----
-27
152

skipif mysql # not compatible
query II rowsort label-9100
SELECT - 27 + 0 AS col0, 67 - 49 - + - COUNT ( * ) + 35 + + 98
----
-27
152

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9101
SELECT - + 42 * - 24 + - + CAST( NULL AS SIGNED ) * - - 34 * + - CAST( + 19 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT - + 42 * - 24 + - + CAST ( NULL AS INTEGER ) * - - 34 * + - CAST ( + 19 AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 73 * - 81 + - 18 + + + 65 * - + 41 * - - 55 AS col1
----
-152506

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT ALL - 79 DIV 28 + - + 34
----
-36

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - 79 / 28 + - + 34
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 72 * + - 35
----
2520

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9106
SELECT ALL + CAST( - 88 AS DECIMAL ) * + CAST( NULL AS DECIMAL ) / + 62 + + CAST( ( + 70 ) AS SIGNED ) - + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL + CAST ( - 88 AS REAL ) * + CAST ( NULL AS REAL ) / + 62 + + CAST ( ( + 70 ) AS INTEGER ) - + 49
----
NULL

query I rowsort
SELECT - 30 + + + 63
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL 0 * - 86 - - MIN( ALL - 26 ) * - 15 AS col2
----
390

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL 0 * - 86 - - MIN ( ALL - 26 ) * - 15 AS col2
----
390

onlyif mysql # aggregate syntax: 
query II rowsort label-9109
SELECT - - COUNT( * ) + - COUNT( * ) col1, - 73
----
0
-73

skipif mysql # not compatible
query II rowsort label-9109
SELECT - - COUNT ( * ) + - COUNT ( * ) col1, - 73
----
0
-73

query II rowsort
SELECT - + 41 + 54, 5 col2
----
13
5

query II rowsort
SELECT - 57 * - 81 + 73 AS col1, 6 AS col1
----
4690
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9112
SELECT ALL NULLIF ( + NULLIF ( 51, - + 59 * - 94 ), - CAST( NULL AS DECIMAL ) )
----
51

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL NULLIF ( + NULLIF ( 51, - + 59 * - 94 ), - CAST ( NULL AS REAL ) )
----
51

query I rowsort
SELECT ALL - - 8 * 44
----
352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9114
SELECT - + 91 + CAST( NULL AS SIGNED ) AS col0, - 76
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-9114
SELECT - + 91 + CAST ( NULL AS INTEGER ) AS col0, - 76
----
NULL
-76

query I rowsort
SELECT + 11 + + - 97 AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT DISTINCT 35 / + + 41 * + 26 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT 35 / + + 41 * + 26 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9117
SELECT ALL 68 AS col1, 73 DIV + 21 AS col2
----
68
3

skipif mysql # not compatible
query II rowsort label-9117
SELECT ALL 68 AS col1, 73 / + 21 AS col2
----
68
3

query II rowsort
SELECT - 69, + 67 AS col0
----
-69
67

query I rowsort
SELECT 6 * - - 60
----
360

query I rowsort
SELECT ALL 70 * 87 AS col0
----
6090

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT 48 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-9121
SELECT 48 / + 65
----
0

query I rowsort
SELECT DISTINCT 87 * 54 AS col2
----
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT COALESCE ( - - 63, + - 77 ) + + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-9123
SELECT COALESCE ( - - 63, + - 77 ) + + COUNT ( * )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL CAST( - + 21 AS SIGNED ) * + 1 + + - 17
----
-38

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL CAST ( - + 21 AS INTEGER ) * + 1 + + - 17
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL COUNT( * ) + - - 56
----
57

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL COUNT ( * ) + - - 56
----
57

query I rowsort
SELECT ALL - 43 * - 78 * - - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT ( - CASE + 71 WHEN 24 * + 56 * + COUNT( * ) THEN - 30 * ( 49 ) WHEN 93 THEN - 82 * + ( 21 ) WHEN 26 + MIN( - - 88 ) + - 94 THEN + + 98 END ) * + + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT ( - CASE + 71 WHEN 24 * + 56 * + COUNT ( * ) THEN - 30 * ( 49 ) WHEN 93 THEN - 82 * + ( 21 ) WHEN 26 + MIN ( - - 88 ) + - 94 THEN + + 98 END ) * + + 51 AS col1
----
NULL

query II rowsort
SELECT ( + ( + - 74 ) ) * 29 col1, 40 + 25
----
-2146
65

query II rowsort
SELECT DISTINCT 39 AS col2, 47 + + + 51 * + - 18 AS col0
----
39
-871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9130
SELECT ALL CAST( NULL AS SIGNED ) * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL CAST ( NULL AS INTEGER ) * 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9131
SELECT COUNT( 3 ) + - + 92 DIV + 96 * 36 * - COALESCE ( - 13, - 24 ) * + + 96 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9131
SELECT COUNT ( 3 ) + - + 92 / + 96 * 36 * - COALESCE ( - 13, - 24 ) * + + 96 + COUNT ( * )
----
2

query I rowsort
SELECT ( + 62 ) * + ( - 98 ) AS col0
----
-6076

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL 56 + ( + + 20 ) + - ( - - MAX( ALL + 85 ) ) * + - COUNT( * ) * + COUNT( 61 )
----
161

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL 56 + ( + + 20 ) + - ( - - MAX ( ALL + 85 ) ) * + - COUNT ( * ) * + COUNT ( 61 )
----
161

query I rowsort
SELECT DISTINCT 76 + - 21 - 34
----
21

query I rowsort
SELECT ALL - 77 * - 49 AS col0
----
3773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9136
SELECT DISTINCT CASE 85 WHEN - + 46 * 13 + + 85 * 77 THEN NULL WHEN - 9 * 64 - - 68 THEN NULL WHEN - 67 THEN NULL ELSE + - 62 + 43 + + + 3 * + - CAST( NULL AS SIGNED ) END + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT CASE 85 WHEN - + 46 * 13 + + 85 * 77 THEN NULL WHEN - 9 * 64 - - 68 THEN NULL WHEN - 67 THEN NULL ELSE + - 62 + 43 + + + 3 * + - CAST ( NULL AS INTEGER ) END + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT - - COUNT( * ) + + - 93 * - 74 + 41 col0
----
6924

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT - - COUNT ( * ) + + - 93 * - 74 + 41 col0
----
6924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9138
SELECT DISTINCT + CASE + + 83 WHEN - COUNT( DISTINCT - 37 ) * - CASE 7 WHEN - MIN( DISTINCT - 26 ) THEN + 46 + - - 27 ELSE 79 END THEN NULLIF ( + 27, + 27 * + + CASE 26 WHEN 41 THEN - CAST( NULL AS SIGNED ) WHEN - MIN( 17 ) THEN NULL END * - AVG ( + + 19 ) + - MIN( CAST( NULL AS SIGNED ) ) ) * + 87 + - 82 - + 90 END + + - 94 - + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT + CASE + + 83 WHEN - COUNT ( DISTINCT - 37 ) * - CASE 7 WHEN - MIN ( DISTINCT - 26 ) THEN + 46 + - - 27 ELSE 79 END THEN NULLIF ( + 27, + 27 * + + CASE 26 WHEN 41 THEN - CAST ( NULL AS INTEGER ) WHEN - MIN ( 17 ) THEN NULL END * - AVG ( + + 19 ) + - MIN ( CAST ( NULL AS INTEGER ) ) ) * + 87 + - 82 - + 90 END + + - 94 - + - 46
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT ALL - CAST( NULL AS SIGNED ) * 66 * + - 54 * - 12 * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL - CAST ( NULL AS INTEGER ) * 66 * + - 54 * - 12 * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL NULLIF ( + SUM( - - 29 ), - 73 ) * + + 43
----
1247

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL NULLIF ( + SUM ( - - 29 ), - 73 ) * + + 43
----
1247

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT ( + 45 ) - + MIN( DISTINCT - 73 )
----
118

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT ( + 45 ) - + MIN ( DISTINCT - 73 )
----
118

query I rowsort
SELECT DISTINCT 35 * - 35
----
-1225

query I rowsort
SELECT DISTINCT + 25 - - - 94 col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9144
SELECT ALL + 92 - 43 DIV - 92 + - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL + 92 - 43 / - 92 + - COUNT ( * ) AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT - COALESCE ( + 51, - CASE + 23 WHEN + NULLIF ( 7, + - 90 ) THEN NULL ELSE - ( - - 46 ) END, 26 + 53 - - CAST( NULL AS SIGNED ) )
----
-51

skipif mysql # not compatible
query I rowsort label-9145
SELECT - COALESCE ( + 51, - CASE + 23 WHEN + NULLIF ( 7, + - 90 ) THEN NULL ELSE - ( - - 46 ) END, 26 + 53 - - CAST ( NULL AS INTEGER ) )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9146
SELECT + - 4 col2, COUNT( * ) AS col0
----
-4
1

skipif mysql # not compatible
query II rowsort label-9146
SELECT + - 4 col2, COUNT ( * ) AS col0
----
-4
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9147
SELECT ALL - + 85 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL - + 85 / - 86
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9148
SELECT - 3, 81 + - COUNT( * ) * - + 46 * - CASE - 70 WHEN MAX( ALL 48 ) THEN NULL ELSE - CAST( NULL AS SIGNED ) END col2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9148
SELECT - 3, 81 + - COUNT ( * ) * - + 46 * - CASE - 70 WHEN MAX ( ALL 48 ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END col2
----
-3
NULL

query I rowsort
SELECT DISTINCT - 84 - + 95 AS col1
----
-179

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT DISTINCT - 73 DIV 1
----
-73

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT - 73 / 1
----
-73

query I rowsort
SELECT ALL - - NULLIF ( - 56, + 61 * - 81 + - 53 - + + 45 * - 6 )
----
-56

query I rowsort
SELECT DISTINCT - ( + 16 ) col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9153
SELECT DISTINCT + 89 AS col1, 58 * - MAX( DISTINCT + 44 )
----
89
-2552

skipif mysql # not compatible
query II rowsort label-9153
SELECT DISTINCT + 89 AS col1, 58 * - MAX ( DISTINCT + 44 )
----
89
-2552

onlyif mysql # aggregate syntax: 
query II rowsort label-9154
SELECT ALL - ( ( - COUNT( * ) ) ) * 80 + - - 14, - 89 AS col2
----
94
-89

skipif mysql # not compatible
query II rowsort label-9154
SELECT ALL - ( ( - COUNT ( * ) ) ) * 80 + - - 14, - 89 AS col2
----
94
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT 51 * 10 DIV - 52 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9155
SELECT 51 * 10 / - 52 AS col2
----
-9

query I rowsort
SELECT ALL + 84 + - 96 * + 72 AS col2
----
-6828

onlyif mysql # DIV for integer division: 
query I rowsort label-9157
SELECT DISTINCT - ( - - 57 ) * 77 DIV - 29 - 90 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT - ( - - 57 ) * 77 / - 29 - 90 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT DISTINCT + COUNT( * ) + 17 + + 15 * 89 - 78 * - 85
----
7983

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT + COUNT ( * ) + 17 + + 15 * 89 - 78 * - 85
----
7983

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT ALL 16 + + SUM( 5 )
----
21

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL 16 + + SUM ( 5 )
----
21

query I rowsort
SELECT 21 + + 51 * - 36 AS col0
----
-1815

query I rowsort
SELECT 31 + + - 48 * - + 89 AS col2
----
4303

onlyif mysql # aggregate syntax: 
query II rowsort label-9162
SELECT DISTINCT 15 * + - COUNT( * ) AS col1, 66 col1
----
-15
66

skipif mysql # not compatible
query II rowsort label-9162
SELECT DISTINCT 15 * + - COUNT ( * ) AS col1, 66 col1
----
-15
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT 56 + - ( + 42 ) + + MAX( ALL - 21 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9163
SELECT 56 + - ( + 42 ) + + MAX ( ALL - 21 ) AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9164
SELECT ALL + COUNT( * ) DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL + COUNT ( * ) / 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9165
SELECT - 9 + + 13, COUNT( DISTINCT - 94 ) AS col1
----
4
1

skipif mysql # not compatible
query II rowsort label-9165
SELECT - 9 + + 13, COUNT ( DISTINCT - 94 ) AS col1
----
4
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9166
SELECT ALL + 29 * + CAST( NULL AS SIGNED ) + NULLIF ( 30, + 13 ) * - 74 - + 8 AS col0, 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-9166
SELECT ALL + 29 * + CAST ( NULL AS INTEGER ) + NULLIF ( 30, + 13 ) * - 74 - + 8 AS col0, 37
----
NULL
37

query I rowsort
SELECT + 45 * - + 11
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT + COUNT( DISTINCT - - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-9168
SELECT + COUNT ( DISTINCT - - 95 )
----
1

query I rowsort
SELECT + 59 - - - 18 AS col0
----
41

query I rowsort
SELECT ( 57 ) col2
----
57

query I rowsort
SELECT - 66 * - ( - 64 ) + 14 - + CASE - 91 WHEN - + 42 THEN - 6 WHEN + 51 THEN + ( - ( - - 72 ) ) ELSE 13 END + + + 66 * + 22
----
-2771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9172
SELECT + 12 * 30 + + + 99 + - CAST( NULL AS SIGNED ) + - + COUNT( * ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT + 12 * 30 + + + 99 + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9173
SELECT 73 * - + CAST( NULL AS SIGNED ) AS col2, + 64 + + 77 * + 67 + + 60 + + 72 * + 8
----
NULL
5859

skipif mysql # not compatible
query II rowsort label-9173
SELECT 73 * - + CAST ( NULL AS INTEGER ) AS col2, + 64 + + 77 * + 67 + + 60 + + 72 * + 8
----
NULL
5859

query I rowsort
SELECT - 25 + - 51
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9175
SELECT 22 + + + CAST( NULL AS SIGNED ) AS col0, CAST( + - 56 AS SIGNED ) + - 52
----
NULL
-108

skipif mysql # not compatible
query II rowsort label-9175
SELECT 22 + + + CAST ( NULL AS INTEGER ) AS col0, CAST ( + - 56 AS INTEGER ) + - 52
----
NULL
-108

query I rowsort
SELECT ALL - - ( 8 ) col2
----
8

query I rowsort
SELECT 52 * + 78 * - 11 AS col1
----
-44616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9178
SELECT ALL - 44 DIV - COALESCE ( - 44, + + COUNT( ALL + 49 ) * + ( AVG ( DISTINCT - 43 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - 44 / - COALESCE ( - 44, + + COUNT ( ALL + 49 ) * + ( AVG ( DISTINCT - 43 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + + SUM( DISTINCT 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9179
SELECT + + SUM ( DISTINCT 73 )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9180
SELECT CAST( NULL AS SIGNED ) - 88 + - 21 + + + ( - NULLIF ( + 7, 92 / 91 + ( + + COUNT( * ) ) * + 64 + - + 2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT CAST ( NULL AS INTEGER ) - 88 + - 21 + + + ( - NULLIF ( + 7, 92 / 91 + ( + + COUNT ( * ) ) * + 64 + - + 2 ) )
----
NULL

query I rowsort
SELECT + - 89 + - 49 AS col2
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9182
SELECT - - ( + 61 ) * + + 89 * - ( 15 ) * + + CASE - 54 WHEN + 50 / + COUNT( * ) + COUNT( ALL - 41 ) THEN NULL ELSE + 85 END * - 28 + - AVG ( - 95 ) + - + 57 + + - 41 + + - MAX( ALL - CAST( NULL AS SIGNED ) ) - + - COUNT( * ) * + 18 / + COALESCE ( + - 98, + 86 ) + + COALESCE ( + 71, + 73 ) + + 11 * - NULLIF ( - 74, + 7 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT - - ( + 61 ) * + + 89 * - ( 15 ) * + + CASE - 54 WHEN + 50 / + COUNT ( * ) + COUNT ( ALL - 41 ) THEN NULL ELSE + 85 END * - 28 + - AVG ( - 95 ) + - + 57 + + - 41 + + - MAX ( ALL - CAST ( NULL AS INTEGER ) ) - + - COUNT ( * ) * + 18 / + COALESCE ( + - 98, + 86 ) + + COALESCE ( + 71, + 73 ) + + 11 * - NULLIF ( - 74, + 7 ) AS col1
----
NULL

query I rowsort
SELECT + 76 + - 25 AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT - COUNT( * ) DIV - + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9184
SELECT - COUNT ( * ) / - + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 52 + + 78 AS col1
----
130

query II rowsort
SELECT ALL 66 AS col1, 41 AS col2
----
66
41

query I rowsort
SELECT ALL + 88 * - 33 AS col0
----
-2904

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL ( + ( + 8 ) ) + MIN( - 36 ) * - 28 AS col2
----
1016

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL ( + ( + 8 ) ) + MIN ( - 36 ) * - 28 AS col2
----
1016

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT DISTINCT CASE 59 WHEN - + 42 * - 32 + - COUNT( ALL + 96 ) THEN - - 84 * CASE + - 93 WHEN 72 THEN 10 * NULLIF ( + + 66, + 67 ) - - COUNT( * ) + - 56 + 12 + + - 0 ELSE NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT CASE 59 WHEN - + 42 * - 32 + - COUNT ( ALL + 96 ) THEN - - 84 * CASE + - 93 WHEN 72 THEN 10 * NULLIF ( + + 66, + 67 ) - - COUNT ( * ) + - 56 + 12 + + - 0 ELSE NULL END END AS col1
----
NULL

query I rowsort
SELECT + 93 * + 69
----
6417

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9191
SELECT 97 AS col1, + CAST( NULL AS SIGNED )
----
97
NULL

skipif mysql # not compatible
query II rowsort label-9191
SELECT 97 AS col1, + CAST ( NULL AS INTEGER )
----
97
NULL

query I rowsort
SELECT - ( 50 ) + - 5 AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9193
SELECT ALL + 80 + - COALESCE ( + - 93, - - 94 * - 67 ) AS col0, - 7 DIV + COUNT( * )
----
173
-7

skipif mysql # not compatible
query II rowsort label-9193
SELECT ALL + 80 + - COALESCE ( + - 93, - - 94 * - 67 ) AS col0, - 7 / + COUNT ( * )
----
173
-7

query I rowsort
SELECT DISTINCT - 26 * - - 41
----
-1066

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9195
SELECT DISTINCT CASE - + 71 WHEN + 32 THEN - + 92 WHEN - + 44 + + COUNT( * ) THEN NULL ELSE - COUNT( * ) DIV - + 88 - - COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT CASE - + 71 WHEN + 32 THEN - + 92 WHEN - + 44 + + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) / - + 88 - - COUNT ( * ) END AS col0
----
1

query I rowsort
SELECT - 62 * - - ( + - 30 )
----
1860

query I rowsort
SELECT DISTINCT - 8 * - 29
----
232

query I rowsort
SELECT ALL + 53 + - 60 AS col2
----
-7

query I rowsort
SELECT DISTINCT - 99 - 46 AS col1
----
-145

query II rowsort
SELECT - 51 AS col1, + 48 * - 15
----
-51
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9201
SELECT DISTINCT + COALESCE ( - 68, + - 69 * 3 - + + 67 + + CAST( + ( + CASE - 69 WHEN + - 43 + - + CAST( - COUNT( * ) AS SIGNED ) THEN NULL ELSE - - CASE - 71 WHEN + + 19 + - 97 THEN + - CASE - AVG ( ALL + + 48 ) WHEN + 46 * + 14 + + 53 THEN NULL WHEN - 61 + + AVG ( ALL 21 ) * - 45 + + 11 DIV - 48 THEN - + 17 ELSE - - 55 + + 87 END + - COALESCE ( + 99, CAST( NULL AS SIGNED ) * - COUNT( * ) + - 3, - 22 * + 69 + + CAST( NULL AS SIGNED ) + - - ( + AVG ( ALL - 51 ) ) + + + 16 * - + 14 * + - 44 - + 83 ) * 34 ELSE NULL END * - 57 END ) AS SIGNED ) + + COUNT( * ) DIV 97 ) * 66
----
-4488

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT + COALESCE ( - 68, + - 69 * 3 - + + 67 + + CAST ( + ( + CASE - 69 WHEN + - 43 + - + CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL ELSE - - CASE - 71 WHEN + + 19 + - 97 THEN + - CASE - AVG ( ALL + + 48 ) WHEN + 46 * + 14 + + 53 THEN NULL WHEN - 61 + + AVG ( ALL 21 ) * - 45 + + 11 / - 48 THEN - + 17 ELSE - - 55 + + 87 END + - COALESCE ( + 99, CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 3, - 22 * + 69 + + CAST ( NULL AS INTEGER ) + - - ( + AVG ( ALL - 51 ) ) + + + 16 * - + 14 * + - 44 - + 83 ) * 34 ELSE NULL END * - 57 END ) AS INTEGER ) + + COUNT ( * ) / 97 ) * 66
----
-4488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT - + CAST( ( - 18 ) AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-9202
SELECT - + CAST ( ( - 18 ) AS INTEGER )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9203
SELECT - - 5 DIV - 2 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9203
SELECT - - 5 / - 2 AS col2
----
-2

query I rowsort
SELECT - 69 * + + 60
----
-4140

query I rowsort
SELECT + + 31 + 51 AS col2
----
82

query I rowsort
SELECT + 66 * + 70 AS col0
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT DISTINCT + 17 * - 57 + COUNT( + - 81 ) + 14
----
-954

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT + 17 * - 57 + COUNT ( + - 81 ) + 14
----
-954

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9208
SELECT DISTINCT + 6 / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT + 6 / - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9209
SELECT DISTINCT - COUNT( * ) * - 64 + - ( + + NULLIF ( + NULLIF ( - - 40, - ( + ( + COUNT( * ) ) ) + - - CAST( COALESCE ( + + 41, - 4 * + COUNT( * ) ) AS SIGNED ) ), + CAST( NULL AS SIGNED ) ) ) AS col2, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9209
SELECT DISTINCT - COUNT ( * ) * - 64 + - ( + + NULLIF ( + NULLIF ( - - 40, - ( + ( + COUNT ( * ) ) ) + - - CAST ( COALESCE ( + + 41, - 4 * + COUNT ( * ) ) AS INTEGER ) ), + CAST ( NULL AS INTEGER ) ) ) AS col2, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL + SUM( ALL + - ( - 94 ) )
----
94

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + SUM ( ALL + - ( - 94 ) )
----
94

query I rowsort
SELECT ALL - + 38 * - 37
----
1406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT DISTINCT + 31 * - COUNT( * ) * - 3 + - NULLIF ( + 66, - CASE - ( - COUNT( * ) ) WHEN + MIN( - - 65 ) + ( + 40 ) THEN + 56 * + + COUNT( * ) WHEN - CAST( - + 78 AS SIGNED ) THEN + 22 END ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT + 31 * - COUNT ( * ) * - 3 + - NULLIF ( + 66, - CASE - ( - COUNT ( * ) ) WHEN + MIN ( - - 65 ) + ( + 40 ) THEN + 56 * + + COUNT ( * ) WHEN - CAST ( - + 78 AS INTEGER ) THEN + 22 END ) AS col1
----
27

query I rowsort
SELECT + + 74 * 5 + 88 AS col1
----
458

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT SUM( + ( 5 ) )
----
5

skipif mysql # not compatible
query I rowsort label-9214
SELECT SUM ( + ( 5 ) )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT ALL + CAST( + 85 AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL + CAST ( + 85 AS INTEGER ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT - + 37 * + + 88 + - CASE - - 17 WHEN - 38 + - 59 - - MIN( DISTINCT - 22 ) * + 83 + - - 31 THEN - 50 + 41 + - AVG ( + 51 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT - + 37 * + + 88 + - CASE - - 17 WHEN - 38 + - 59 - - MIN ( DISTINCT - 22 ) * + 83 + - - 31 THEN - 50 + 41 + - AVG ( + 51 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT ALL + - 55 * 53 DIV - 82 + - ( + - 60 ) + + 49 + - 23 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + - 55 * 53 / - 82 + - ( + - 60 ) + + 49 + - 23 AS col1
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + - MAX( + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-9218
SELECT + - MAX ( + 34 )
----
-34

query I rowsort
SELECT DISTINCT + 67 * - - ( 88 ) + + 89
----
5985

query I rowsort
SELECT ALL 90 * + 34 + + 75
----
3135

onlyif mysql # aggregate syntax: 
query II rowsort label-9221
SELECT ALL + 6 AS col0, - COUNT( * ) + - - 58 AS col1
----
6
57

skipif mysql # not compatible
query II rowsort label-9221
SELECT ALL + 6 AS col0, - COUNT ( * ) + - - 58 AS col1
----
6
57

query I rowsort
SELECT + ( 54 ) col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT + 51 * - + 6 + + COUNT( * )
----
-305

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT + 51 * - + 6 + + COUNT ( * )
----
-305

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT SUM( DISTINCT 54 )
----
54

skipif mysql # not compatible
query I rowsort label-9224
SELECT SUM ( DISTINCT 54 )
----
54

query I rowsort
SELECT + 93 * - 48 AS col0
----
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL ( - - 14 ) * + ( + NULLIF ( - COUNT( * ), + - 99 ) ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL ( - - 14 ) * + ( + NULLIF ( - COUNT ( * ), + - 99 ) ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT - NULLIF ( + CASE - 72 WHEN + + COUNT( * ) + - 53 THEN NULL ELSE NULLIF ( + + 88, 16 - - MIN( 77 ) * 35 ) END, - + 62 )
----
-88

skipif mysql # not compatible
query I rowsort label-9227
SELECT - NULLIF ( + CASE - 72 WHEN + + COUNT ( * ) + - 53 THEN NULL ELSE NULLIF ( + + 88, 16 - - MIN ( 77 ) * 35 ) END, - + 62 )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-9228
SELECT COUNT( * ), 92 * + 30 AS col0
----
1
2760

skipif mysql # not compatible
query II rowsort label-9228
SELECT COUNT ( * ), 92 * + 30 AS col0
----
1
2760

query I rowsort
SELECT - ( - + ( + - 75 ) ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9230
SELECT COUNT( + 23 ), - ( - ( COUNT( * ) ) ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9230
SELECT COUNT ( + 23 ), - ( - ( COUNT ( * ) ) ) AS col0
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT ALL NULLIF ( + 27, + + 82 ) * + + 76 + + 27 - CAST( NULL AS SIGNED ) / + 51 - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL NULLIF ( + 27, + + 82 ) * + + 76 + + 27 - CAST ( NULL AS INTEGER ) / + 51 - - 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9232
SELECT ALL NULLIF ( + 32, + + ( + CASE + CAST( - + 27 AS SIGNED ) WHEN + AVG ( ALL + 81 ) THEN + + 15 WHEN - - SUM( ALL - 71 ) THEN + 20 END ) )
----
32

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL NULLIF ( + 32, + + ( + CASE + CAST ( - + 27 AS INTEGER ) WHEN + AVG ( ALL + 81 ) THEN + + 15 WHEN - - SUM ( ALL - 71 ) THEN + 20 END ) )
----
32

query I rowsort
SELECT ALL NULLIF ( - 5, + 20 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT - CAST( NULL AS SIGNED ) * + + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT - CAST ( NULL AS INTEGER ) * + + 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT - 40 * COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - 40 * COUNT ( * ) AS col1
----
-40

query I rowsort
SELECT - 68 * + + 1 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT + 44 + CASE - 96 WHEN - + ( + 3 ) THEN NULL WHEN - + 82 THEN - COUNT( * ) - + - COALESCE ( + - SUM( DISTINCT - 7 ), + NULLIF ( - 45, + 92 / + + ( 87 ) / + 60 ) + + 1 + + 94 * 97 * + + 45 * + 97 + 62, - 0 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT + 44 + CASE - 96 WHEN - + ( + 3 ) THEN NULL WHEN - + 82 THEN - COUNT ( * ) - + - COALESCE ( + - SUM ( DISTINCT - 7 ), + NULLIF ( - 45, + 92 / + + ( 87 ) / + 60 ) + + 1 + + 94 * 97 * + + 45 * + 97 + 62, - 0 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9238
SELECT - NULLIF ( + - 27, + 7 - 22 ) - + - ( CAST( + 85 AS SIGNED ) ), 60 DIV + ( + 24 ) AS col1
----
112
2

skipif mysql # not compatible
query II rowsort label-9238
SELECT - NULLIF ( + - 27, + 7 - 22 ) - + - ( CAST ( + 85 AS INTEGER ) ), 60 / + ( + 24 ) AS col1
----
112
2

query II rowsort
SELECT ALL + 31 AS col1, - 12
----
31
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9240
SELECT + 87 AS col1, + NULLIF ( + + SUM( DISTINCT + 19 ), 9 ) AS col2
----
87
19

skipif mysql # not compatible
query II rowsort label-9240
SELECT + 87 AS col1, + NULLIF ( + + SUM ( DISTINCT + 19 ), 9 ) AS col2
----
87
19

query I rowsort
SELECT + 67 * - 57 + + 36
----
-3783

query I rowsort
SELECT - - 43 * 42 * + 72 AS col0
----
130032

query I rowsort
SELECT DISTINCT + - 41 * - - 48 + + - 95 AS col2
----
-2063

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL + 5 * - - COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL + 5 * - - COUNT ( * ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT - - 99 + - 91 * - ( + CASE - - 45 WHEN + 16 + - - 59 * NULLIF ( - 66, + 23 * + - COUNT( * ) - + 11 * - - 40 ) THEN NULL WHEN 89 THEN - - 26 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT - - 99 + - 91 * - ( + CASE - - 45 WHEN + 16 + - - 59 * NULLIF ( - 66, + 23 * + - COUNT ( * ) - + 11 * - - 40 ) THEN NULL WHEN 89 THEN - - 26 END ) AS col0
----
NULL

query I rowsort
SELECT - + 82 * + 80 AS col2
----
-6560

query I rowsort
SELECT DISTINCT + + NULLIF ( + 85, - 98 - - 91 ) * + 36
----
3060

query II rowsort
SELECT DISTINCT + 62 AS col2, ( + 50 )
----
62
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT + COUNT( ALL ( - 26 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT + COUNT ( ALL ( - 26 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT COUNT( * ) * - + 12 + + + 65 + - 92 * - - COUNT( * ) * - 16
----
1525

skipif mysql # not compatible
query I rowsort label-9250
SELECT COUNT ( * ) * - + 12 + + + 65 + - 92 * - - COUNT ( * ) * - 16
----
1525

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT 12, - ( - COUNT( * ) ) AS col0
----
12
1

skipif mysql # not compatible
query II rowsort label-9251
SELECT 12, - ( - COUNT ( * ) ) AS col0
----
12
1

query II rowsort
SELECT + - 13 AS col2, + 38
----
-13
38

query I rowsort
SELECT - 57 + - + 10 AS col2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT + 66 DIV + 63 - + 31 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9254
SELECT + 66 / + 63 - + 31 AS col0
----
-30

query I rowsort
SELECT ALL + 61 + - 38
----
23

query I rowsort
SELECT ALL - 3 + 75 col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT + CASE - 61 WHEN - + CAST( NULL AS SIGNED ) THEN - COUNT( ALL 74 ) WHEN + 55 + + 19 - + 92 + + 60 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT + CASE - 61 WHEN - + CAST ( NULL AS INTEGER ) THEN - COUNT ( ALL 74 ) WHEN + 55 + + 19 - + 92 + + 60 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 23 + - 43
----
-20

query I rowsort
SELECT ALL 23 * + - 29
----
-667

onlyif mysql # DIV for integer division: 
query III rowsort label-9260
SELECT 32 DIV 54 AS col1, 71, 6 * + 97 AS col1
----
0
71
582

skipif mysql # not compatible
query III rowsort label-9260
SELECT 32 / 54 AS col1, 71, 6 * + 97 AS col1
----
0
71
582

query I rowsort
SELECT ALL 99 * 81
----
8019

query I rowsort
SELECT ALL + 52 + + ( - - CASE + ( 30 ) WHEN 46 THEN - 42 + - + 11 * 26 * - 8 ELSE + + 19 * - 80 + + - 78 END ) col1
----
-1546

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL 17 + 68 + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL 17 + 68 + COUNT ( * ) AS col1
----
86

query I rowsort
SELECT DISTINCT + 43 * - 64 AS col1
----
-2752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9265
SELECT 52 * - COUNT( * ) * - + ( + + 96 ) * + 2 + + - 14 - 12 * NULLIF ( - 72, + + COUNT( ALL ( - 58 ) ) + + 88 + - 63 ) DIV + 28 + 62
----
10062

skipif mysql # not compatible
query I rowsort label-9265
SELECT 52 * - COUNT ( * ) * - + ( + + 96 ) * + 2 + + - 14 - 12 * NULLIF ( - 72, + + COUNT ( ALL ( - 58 ) ) + + 88 + - 63 ) / + 28 + 62
----
10062

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT ( 85 ) * MAX( ALL - - 16 ) - 52 - 92 * - 31 col1
----
4160

skipif mysql # not compatible
query I rowsort label-9266
SELECT ( 85 ) * MAX ( ALL - - 16 ) - 52 - 92 * - 31 col1
----
4160

query I rowsort
SELECT DISTINCT - 80 + 10 * 15 AS col0
----
70

query II rowsort
SELECT 47 + + 50, ( 58 ) col0
----
97
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT + 85 * 35 + + COUNT( * ) AS col0
----
2976

skipif mysql # not compatible
query I rowsort label-9269
SELECT + 85 * 35 + + COUNT ( * ) AS col0
----
2976

query I rowsort
SELECT 66 + + 21 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9271
SELECT ALL SUM( ALL COALESCE ( + 74, + + 14 ) ) * 22 + + CASE - 61 WHEN 76 + 45 / - + 33 THEN 33 + + - 8 + 2 WHEN - 57 THEN - COUNT( * ) WHEN COUNT( + + 54 ) + + + COALESCE ( CAST( NULL AS SIGNED ), - - 36, - 66 + + 78 + + + 56 * + - 70 + MIN( + + 44 ) / 56 + + 58 / COUNT( * ) / - 34, - COUNT( * ) - - AVG ( ALL 71 ) * + 90 + COALESCE ( + 0, - - 51, 26 ) ) THEN NULL END + 16 * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL SUM ( ALL COALESCE ( + 74, + + 14 ) ) * 22 + + CASE - 61 WHEN 76 + 45 / - + 33 THEN 33 + + - 8 + 2 WHEN - 57 THEN - COUNT ( * ) WHEN COUNT ( + + 54 ) + + + COALESCE ( CAST ( NULL AS INTEGER ), - - 36, - 66 + + 78 + + + 56 * + - 70 + MIN ( + + 44 ) / 56 + + 58 / COUNT ( * ) / - 34, - COUNT ( * ) - - AVG ( ALL 71 ) * + 90 + COALESCE ( + 0, - - 51, 26 ) ) THEN NULL END + 16 * - 37
----
NULL

query I rowsort
SELECT ( + 98 ) + + ( - 97 ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9273
SELECT ALL COALESCE ( 12, + AVG ( - 34 ) - + 27 * + COALESCE ( + 78, - 15 ), - 74 ) * CAST( NULL AS DECIMAL ) * 45 + - 14 / - 46 + AVG ( DISTINCT 60 ) - 97 * + + 68 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL COALESCE ( 12, + AVG ( - 34 ) - + 27 * + COALESCE ( + 78, - 15 ), - 74 ) * CAST ( NULL AS REAL ) * 45 + - 14 / - 46 + AVG ( DISTINCT 60 ) - 97 * + + 68 * - 52
----
NULL

query I rowsort
SELECT DISTINCT 15 * - ( - 3 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9275
SELECT CASE + 85 WHEN + 9 + + - 39 * COUNT( * ) THEN + - CAST( + + COUNT( * ) AS SIGNED ) * - 83 + + + 21 ELSE 46 + - - 65 + + 22 END + + COUNT( * ) AS col0
----
134

skipif mysql # not compatible
query I rowsort label-9275
SELECT CASE + 85 WHEN + 9 + + - 39 * COUNT ( * ) THEN + - CAST ( + + COUNT ( * ) AS INTEGER ) * - 83 + + + 21 ELSE 46 + - - 65 + + 22 END + + COUNT ( * ) AS col0
----
134

query I rowsort
SELECT ALL 50 * - - 6
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9277
SELECT 58 * 37 * - + CAST( CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) + + 40 + + 79
----
-2027

skipif mysql # not compatible
query I rowsort label-9277
SELECT 58 * 37 * - + CAST ( CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) + + 40 + + 79
----
-2027

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT ( + 35 ) DIV - 21 + 57 + + COUNT( DISTINCT 33 ) * - COUNT( * ) + + MIN( DISTINCT - 44 ) - + - 11 * 79 + - 76 * 38
----
-2008

skipif mysql # not compatible
query I rowsort label-9278
SELECT ( + 35 ) / - 21 + 57 + + COUNT ( DISTINCT 33 ) * - COUNT ( * ) + + MIN ( DISTINCT - 44 ) - + - 11 * 79 + - 76 * 38
----
-2008

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT + 20 * - 77 + + 6 DIV - 56 + - 54 DIV - ( - + 58 )
----
-1540

skipif mysql # not compatible
query I rowsort label-9279
SELECT + 20 * - 77 + + 6 / - 56 + - 54 / - ( - + 58 )
----
-1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT ALL ( + CAST( - AVG ( 73 ) AS SIGNED ) ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL ( + CAST ( - AVG ( 73 ) AS INTEGER ) ) col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT - NULLIF ( - SUM( 12 ), ( + ( - + 65 ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-9281
SELECT - NULLIF ( - SUM ( 12 ), ( + ( - + 65 ) ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL + COUNT( * ) * - - 54 * - 13 + + + 18
----
-684

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL + COUNT ( * ) * - - 54 * - 13 + + + 18
----
-684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT - CAST( - + 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-9283
SELECT - CAST ( - + 44 AS INTEGER )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9284
SELECT ALL - 17 DIV 27 + + COUNT( ALL + 41 ) * + - 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL - 17 / 27 + + COUNT ( ALL + 41 ) * + - 25 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9285
SELECT - 87 DIV - ( COUNT( ALL - 34 ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9285
SELECT - 87 / - ( COUNT ( ALL - 34 ) ) AS col2
----
87

query I rowsort
SELECT DISTINCT 57 + - + 76 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT ALL 75 + + - 46 * ( - 20 ) + - MAX( ALL + + 50 ) + - - 4 * - 12 * 69 + + COUNT( * )
----
-2366

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL 75 + + - 46 * ( - 20 ) + - MAX ( ALL + + 50 ) + - - 4 * - 12 * 69 + + COUNT ( * )
----
-2366

query I rowsort
SELECT ALL - 68 * + + 92 AS col0
----
-6256

query I rowsort
SELECT NULLIF ( - 31, CASE + 37 WHEN 37 / - 88 * - 36 + 76 THEN - 93 END )
----
-31

query I rowsort
SELECT - - 7 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT - + MAX( DISTINCT 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-9291
SELECT - + MAX ( DISTINCT 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT + 65 + 62 + + 89 - - + MAX( 95 ) * - 9
----
-639

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT + 65 + 62 + + 89 - - + MAX ( 95 ) * - 9
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT MIN( DISTINCT - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9293
SELECT MIN ( DISTINCT - 41 ) AS col0
----
-41

query I rowsort
SELECT + - COALESCE ( + 33, - - 81 )
----
-33

query I rowsort
SELECT ALL - + 34 + - ( 98 ) AS col0
----
-132

query I rowsort
SELECT ALL + + 71 + - 12
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9297
SELECT DISTINCT + - COUNT( * ) * + - COUNT( 32 ) DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT + - COUNT ( * ) * + - COUNT ( 32 ) / + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL - - NULLIF ( 52, + 29 + - + 85 + 84 + - 16 * + 7 * MAX( 66 ) )
----
52

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL - - NULLIF ( 52, + 29 + - + 85 + 84 + - 16 * + 7 * MAX ( 66 ) )
----
52

query II rowsort
SELECT - 50 * 42 + + 46 + 70 * 3, - 78 AS col0
----
-1844
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9300
SELECT ALL CASE + 18 WHEN 23 * - 88 + - - 33 + + MAX( ALL - 39 ) / + ( - 11 ) * - 6 * + 48 + 9 THEN + 10 + COUNT( * ) + - - 55 WHEN 34 - 2 THEN NULL WHEN COUNT( * ) THEN 69 END + CASE - 29 WHEN - COUNT( * ) * - - 23 + + - 44 THEN NULL WHEN AVG ( ALL CAST( NULL AS SIGNED ) ) * - 49 THEN + 55 + - 10 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL CASE + 18 WHEN 23 * - 88 + - - 33 + + MAX ( ALL - 39 ) / + ( - 11 ) * - 6 * + 48 + 9 THEN + 10 + COUNT ( * ) + - - 55 WHEN 34 - 2 THEN NULL WHEN COUNT ( * ) THEN 69 END + CASE - 29 WHEN - COUNT ( * ) * - - 23 + + - 44 THEN NULL WHEN AVG ( ALL CAST ( NULL AS INTEGER ) ) * - 49 THEN + 55 + - 10 ELSE NULL END col2
----
NULL

query II rowsort
SELECT ALL 91 + 24 - - - 34 * 61 * + - 74, 48 * + - 99 AS col1
----
153591
-4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9302
SELECT DISTINCT - COALESCE ( - COUNT( * ), + 76 * + 78 * + - 4 + - + 10 DIV - 70 * - + 86, + 40 + + COUNT( * ) + - 61 * + ( + 88 ), + COALESCE ( 96, - - CAST( + 45 AS SIGNED ), - + 16 * - + 76 DIV - 75 ) * + COALESCE ( 97, + 7 - + - 34 + 10 ) DIV + - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + 76 * + 78 * + - 4 + - + 10 / - 70 * - + 86, + 40 + + COUNT ( * ) + - 61 * + ( + 88 ), + COALESCE ( 96, - - CAST ( + 45 AS INTEGER ), - + 16 * - + 76 / - 75 ) * + COALESCE ( 97, + 7 - + - 34 + 10 ) / + - 85 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT ALL - 84 + + 56 + - 91 + - - 10 * + 5 DIV 54 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - 84 + + 56 + - 91 + - - 10 * + 5 / 54 AS col0
----
-119

query II rowsort
SELECT ALL + 29 + + 84 - + 24, 84 AS col1
----
89
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL - COUNT( ALL 90 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL - COUNT ( ALL 90 ) AS col1
----
-1

query I rowsort
SELECT 60 * - ( - CASE - ( 74 ) WHEN ( + 46 ) * + - 19 THEN + - 99 ELSE NULL END ) AS col2
----
NULL

query II rowsort
SELECT + 16, + 98 AS col0
----
16
98

query I rowsort
SELECT ALL - ( - 77 ) AS col0
----
77

query I rowsort
SELECT 50 * COALESCE ( + ( + 52 ), - + COALESCE ( + 11, + 6, + 26 ) + - 66 )
----
2600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT DISTINCT - CASE + 83 WHEN - 84 * - 10 THEN NULL WHEN 3 THEN - CAST( 54 AS SIGNED ) WHEN + - 17 * - 71 THEN + - 61 / + 73 * + 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT - CASE + 83 WHEN - 84 * - 10 THEN NULL WHEN 3 THEN - CAST ( 54 AS INTEGER ) WHEN + - 17 * - 71 THEN + - 61 / + 73 * + 63 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT 76 * + + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9311
SELECT 76 * + + COUNT ( * ) AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9312
SELECT DISTINCT + 4 * CASE + COALESCE ( + 68, ( CAST( NULL AS DECIMAL ) ) * + 88, + 1 ) WHEN + - 92 THEN NULL WHEN + 11 THEN - - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT + 4 * CASE + COALESCE ( + 68, ( CAST ( NULL AS REAL ) ) * + 88, + 1 ) WHEN + - 92 THEN NULL WHEN + 11 THEN - - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 49 * - - 89 * - 9
----
39249

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL + 95 * + COUNT( * ) col0
----
95

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + 95 * + COUNT ( * ) col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9315
SELECT 21 AS col1, + 47 - - COUNT( * ) + 83 DIV + COUNT( * )
----
21
131

skipif mysql # not compatible
query II rowsort label-9315
SELECT 21 AS col1, + 47 - - COUNT ( * ) + 83 / + COUNT ( * )
----
21
131

query I rowsort
SELECT DISTINCT CASE - + 92 WHEN + 76 THEN - CASE + + 52 WHEN - 76 THEN - 34 ELSE NULL END ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9317
SELECT ALL NULLIF ( - - 44, - - 65 * + 15 * + + CAST( NULL AS SIGNED ) / - - 93 + COUNT( * ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL NULLIF ( - - 44, - - 65 * + 15 * + + CAST ( NULL AS INTEGER ) / - - 93 + COUNT ( * ) ) AS col2
----
44

query I rowsort
SELECT 11 * 69
----
759

query I rowsort
SELECT DISTINCT - 10 + - 3
----
-13

query I rowsort
SELECT ALL COALESCE ( + 9, - 76, 57 + + 39, 16 ) + + CASE + 43 WHEN 20 THEN NULL WHEN + ( - + 82 ) THEN NULL ELSE - 23 END * - 15
----
354

query I rowsort
SELECT - 76 * - 75 + + - 29 * - + 13
----
6077

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL - 77 + + COALESCE ( COUNT( * ), + COUNT( * ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL - 77 + + COALESCE ( COUNT ( * ), + COUNT ( * ) ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9323
SELECT - - 42 AS col1, ( - - 75 ) * 65 * COUNT( * ) * - 26 * + COUNT( * ) AS col1
----
42
-126750

skipif mysql # not compatible
query II rowsort label-9323
SELECT - - 42 AS col1, ( - - 75 ) * 65 * COUNT ( * ) * - 26 * + COUNT ( * ) AS col1
----
42
-126750

query I rowsort
SELECT ALL 29 + 95
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9325
SELECT ALL 72 + + 40 + + 57 + + COALESCE ( 72, - 93 DIV - 83 * - - NULLIF ( 61, - - 95 * - - 24 ) * - + 86 + COUNT( * ) + 53 DIV + + SUM( - 35 ) DIV - 33 * + 59 + + 2 * 88 ) + 22
----
263

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL 72 + + 40 + + 57 + + COALESCE ( 72, - 93 / - 83 * - - NULLIF ( 61, - - 95 * - - 24 ) * - + 86 + COUNT ( * ) + 53 / + + SUM ( - 35 ) / - 33 * + 59 + + 2 * 88 ) + 22
----
263

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT - - COUNT( * ) + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-9326
SELECT - - COUNT ( * ) + - 15
----
-14

query I rowsort
SELECT + - 16 - + 72 AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT + CAST( + SUM( - 62 ) AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-9328
SELECT + CAST ( + SUM ( - 62 ) AS INTEGER )
----
-62

query I rowsort
SELECT + + 47 + - + 35
----
12

query I rowsort
SELECT ALL + 36 + + 35 AS col1
----
71

query I rowsort
SELECT ( 67 ) AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT + - 67 DIV - 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9332
SELECT + - 67 / - 66 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT + NULLIF ( + 23, 96 + + ( + 88 ) ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT + NULLIF ( + 23, 96 + + ( + 88 ) ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 75 - - 81 AS col1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT DISTINCT + CAST( 4 AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT + CAST ( 4 AS INTEGER ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT ALL 44 * - 24 + + NULLIF ( CAST( NULL AS SIGNED ), - 87 / - 70 ) - 31 * - + CAST( + 70 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL 44 * - 24 + + NULLIF ( CAST ( NULL AS INTEGER ), - 87 / - 70 ) - 31 * - + CAST ( + 70 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT CASE - - 52 WHEN - 59 THEN COUNT( - 37 ) * - 85 ELSE 45 * - COALESCE ( - - 29, + - 81 ) END AS col1
----
-1305

skipif mysql # not compatible
query I rowsort label-9337
SELECT CASE - - 52 WHEN - 59 THEN COUNT ( - 37 ) * - 85 ELSE 45 * - COALESCE ( - - 29, + - 81 ) END AS col1
----
-1305

query I rowsort
SELECT + NULLIF ( + 96, + 22 + + 77 - - + 42 ) col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9339
SELECT NULLIF ( + + COALESCE ( + - 40, + 70 DIV + - 5 * + NULLIF ( 62, - COUNT( - - 46 ) ) + - COUNT( - CAST( NULL AS DECIMAL ) ) * 25 + - - 94 ), + 90 ) AS col0, + COUNT( * ) - 96 AS col1
----
-40
-95

skipif mysql # not compatible
query II rowsort label-9339
SELECT NULLIF ( + + COALESCE ( + - 40, + 70 / + - 5 * + NULLIF ( 62, - COUNT ( - - 46 ) ) + - COUNT ( - CAST ( NULL AS REAL ) ) * 25 + - - 94 ), + 90 ) AS col0, + COUNT ( * ) - 96 AS col1
----
-40
-95

query I rowsort
SELECT + ( + 6 ) AS col1
----
6

query I rowsort
SELECT ALL + NULLIF ( - 54, + 88 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT + COUNT( * ) * ( 0 ) + + + 17 - 88
----
-71

skipif mysql # not compatible
query I rowsort label-9342
SELECT + COUNT ( * ) * ( 0 ) + + + 17 - 88
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT CASE - COUNT( * ) WHEN 45 THEN 39 WHEN + COUNT( * ) * - + 10 THEN + 78 WHEN + 60 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT CASE - COUNT ( * ) WHEN 45 THEN 39 WHEN + COUNT ( * ) * - + 10 THEN + 78 WHEN + 60 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT NULLIF ( - 51, 15 / - SUM( DISTINCT - NULLIF ( - ( 71 ), + + 84 ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-9344
SELECT NULLIF ( - 51, 15 / - SUM ( DISTINCT - NULLIF ( - ( 71 ), + + 84 ) ) )
----
-51

query II rowsort
SELECT DISTINCT 39 * + 71, + 68 AS col1
----
2769
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9346
SELECT ALL + ( 13 ), CAST( 32 AS SIGNED ) * 82 * - + 15 + 0 AS col0
----
13
-39360

skipif mysql # not compatible
query II rowsort label-9346
SELECT ALL + ( 13 ), CAST ( 32 AS INTEGER ) * 82 * - + 15 + 0 AS col0
----
13
-39360

query I rowsort
SELECT - ( + - 92 ) - - + 7 AS col0
----
99

query I rowsort
SELECT + 80 + 22 + 54 AS col2
----
156

query I rowsort
SELECT + ( 96 ) + ( - + 86 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT - 2 * - 19 + - + 79 - - - CASE - 77 WHEN 18 THEN - 29 * + + SUM( + 7 ) WHEN - 49 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT - 2 * - 19 + - + 79 - - - CASE - 77 WHEN 18 THEN - 29 * + + SUM ( + 7 ) WHEN - 49 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + ( + + 67 ) col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT 86 * + 67 + + - ( - COUNT( * ) ) + + - 37 AS col2
----
5726

skipif mysql # not compatible
query I rowsort label-9352
SELECT 86 * + 67 + + - ( - COUNT ( * ) ) + + - 37 AS col2
----
5726

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL - NULLIF ( + + 69, - COUNT( * ) / - 63 * - 40 ) * 19 * - 1 * + 72 + - 85 + + 39 - 53 col1
----
94293

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL - NULLIF ( + + 69, - COUNT ( * ) / - 63 * - 40 ) * 19 * - 1 * + 72 + - 85 + + 39 - 53 col1
----
94293

onlyif mysql # DIV for integer division: 
query I rowsort label-9354
SELECT ALL + + 59 + - 32 DIV 50
----
59

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL + + 59 + - 32 / 50
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT + 90 * + 31 * - COUNT( ALL 48 ) + 19 * + 32 + - + 83 + + - 95 + COUNT( * )
----
-2359

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT + 90 * + 31 * - COUNT ( ALL 48 ) + 19 * + 32 + - + 83 + + - 95 + COUNT ( * )
----
-2359

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL - 26 + + COUNT( * ) * - + 25
----
-51

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - 26 + + COUNT ( * ) * - + 25
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT - - COUNT( ALL + + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-9357
SELECT - - COUNT ( ALL + + 74 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT + 10 + - - 30 * COUNT( * ) + + 84 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-9358
SELECT + 10 + - - 30 * COUNT ( * ) + + 84 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT COALESCE ( - - 86, + ( + COUNT( ALL + 69 ) ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9359
SELECT COALESCE ( - - 86, + ( + COUNT ( ALL + 69 ) ) ) AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9360
SELECT DISTINCT + - 50 - + - 25 + - 13 DIV COUNT( DISTINCT + 84 ) DIV 75 + - SUM( - 35 )
----
10

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT + - 50 - + - 25 + - 13 / COUNT ( DISTINCT + 84 ) / 75 + - SUM ( - 35 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT DISTINCT 24 - + 15 + + 20 - 25 * + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT 24 - + 15 + + 20 - 25 * + COUNT ( * ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9362
SELECT ALL CASE + ( + + NULLIF ( + ( - NULLIF ( - 57, + - 4 - 46 ) ), 7 * CASE 67 WHEN 47 + - - 3 * - 28 THEN + 81 END ) ) WHEN + 82 * + 77 + + CAST( NULL AS SIGNED ) * 26 * - - COUNT( * ) THEN 38 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL CASE + ( + + NULLIF ( + ( - NULLIF ( - 57, + - 4 - 46 ) ), 7 * CASE 67 WHEN 47 + - - 3 * - 28 THEN + 81 END ) ) WHEN + 82 * + 77 + + CAST ( NULL AS INTEGER ) * 26 * - - COUNT ( * ) THEN 38 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9363
SELECT - + COUNT( * ) - + + 90 + - 76 DIV + + 18 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9363
SELECT - + COUNT ( * ) - + + 90 + - 76 / + + 18 AS col0
----
-95

query I rowsort
SELECT DISTINCT 91 - 51 - - + 87
----
127

query I rowsort
SELECT + 76 + - 4 AS col0
----
72

query I rowsort
SELECT ALL 41 - 1 AS col1
----
40

query I rowsort
SELECT + 46 * - 69
----
-3174

query II rowsort
SELECT ALL + 21, - 79 AS col1
----
21
-79

query I rowsort
SELECT DISTINCT 46 * + 43
----
1978

onlyif mysql # aggregate syntax: 
query II rowsort label-9370
SELECT ALL ( - ( COUNT( * ) ) ) * + 39 * COUNT( * ) + - 69, + 34 AS col1
----
-108
34

skipif mysql # not compatible
query II rowsort label-9370
SELECT ALL ( - ( COUNT ( * ) ) ) * + 39 * COUNT ( * ) + - 69, + 34 AS col1
----
-108
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9371
SELECT + CAST( - - 59 AS SIGNED ) + 64, - 4 col0
----
123
-4

skipif mysql # not compatible
query II rowsort label-9371
SELECT + CAST ( - - 59 AS INTEGER ) + 64, - 4 col0
----
123
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT DISTINCT 92 DIV 48 col0
----
1

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT 92 / 48 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT + 57 * 8 * 32 AS col0, + CASE AVG ( DISTINCT + - 13 ) WHEN - 7 * 4 * + NULLIF ( + + MAX( ( + ( + 89 ) ) ), 55 * + 62 + ( 58 ) + - 81 ) - - - 62 - + 57 THEN - + MIN( ALL - 57 ) + - 51 END * - + 21 + - 69 - - 50 + + + MAX( + 12 )
----
14592
NULL

skipif mysql # not compatible
query II rowsort label-9373
SELECT + 57 * 8 * 32 AS col0, + CASE AVG ( DISTINCT + - 13 ) WHEN - 7 * 4 * + NULLIF ( + + MAX ( ( + ( + 89 ) ) ), 55 * + 62 + ( 58 ) + - 81 ) - - - 62 - + 57 THEN - + MIN ( ALL - 57 ) + - 51 END * - + 21 + - 69 - - 50 + + + MAX ( + 12 )
----
14592
NULL

query I rowsort
SELECT 95 * + 21 * 67 + + - 0 + + 58 + + 22 * + 12 AS col1
----
133987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9375
SELECT ALL COUNT( * ) DIV MAX( ALL 46 ) + - 42 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL COUNT ( * ) / MAX ( ALL 46 ) + - 42 / - 71
----
0

query I rowsort
SELECT ( 29 ) AS col1
----
29

query I rowsort
SELECT ( - 83 ) AS col0
----
-83

query I rowsort
SELECT ALL - 50 * + 31 + 31 - + 55 AS col2
----
-1574

query I rowsort
SELECT ALL 78 * - 29 + + 38 * + 25 AS col2
----
-1312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT ALL - 59 + 20 * - CAST( - 28 AS SIGNED ) AS col2
----
501

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL - 59 + 20 * - CAST ( - 28 AS INTEGER ) AS col2
----
501

query I rowsort
SELECT ALL 85 + - 40 AS col2
----
45

query I rowsort
SELECT 16 * + 10 AS col1
----
160

query I rowsort
SELECT 91 + 11 AS col0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT 36 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-9384
SELECT 36 / 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL + MIN( 40 ) + + 4 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL + MIN ( 40 ) + + 4 AS col1
----
44

query I rowsort
SELECT ( - 24 ) * + 95
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL + 70 * - COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL + 70 * - COUNT ( * ) AS col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT 25 - - COALESCE ( + ( 80 ) - + 28, - 22 DIV + 45 )
----
77

skipif mysql # not compatible
query I rowsort label-9388
SELECT 25 - - COALESCE ( + ( 80 ) - + 28, - 22 / + 45 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL COALESCE ( CASE ( 43 ) WHEN + 64 THEN NULL WHEN 28 THEN NULL ELSE - 83 - COUNT( * ) END, - 11 ) - 8
----
-92

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL COALESCE ( CASE ( 43 ) WHEN + 64 THEN NULL WHEN 28 THEN NULL ELSE - 83 - COUNT ( * ) END, - 11 ) - 8
----
-92

query I rowsort
SELECT 32 * 52
----
1664

query I rowsort
SELECT DISTINCT + 52 * 9
----
468

query I rowsort
SELECT ALL - 97 * + 53 col1
----
-5141

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL + ( + MAX( DISTINCT + ( + 79 ) ) ) * - 94
----
-7426

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + ( + MAX ( DISTINCT + ( + 79 ) ) ) * - 94
----
-7426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9394
SELECT COUNT( ALL 91 ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9394
SELECT COUNT ( ALL 91 ) / + COUNT ( * )
----
1

query I rowsort
SELECT 25 + 77 * + 5 AS col2
----
410

query I rowsort
SELECT 60 - 10 AS col1
----
50

query I rowsort
SELECT 34 + 54
----
88

query I rowsort
SELECT 50 + - 38 AS col1
----
12

query I rowsort
SELECT ALL 87 * NULLIF ( 40, - 54 )
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT COUNT( ALL 67 ) * COUNT( 38 + + 64 * + 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9400
SELECT COUNT ( ALL 67 ) * COUNT ( 38 + + 64 * + 18 ) AS col2
----
1

query I rowsort
SELECT ALL - ( + NULLIF ( 31, - 14 ) ) AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9402
SELECT ALL - 8 + 36 DIV ( COUNT( * ) + + 9 )
----
-5

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL - 8 + 36 / ( COUNT ( * ) + + 9 )
----
-5

query I rowsort
SELECT 56 + + ( 21 ) * + 15 AS col0
----
371

query I rowsort
SELECT ALL 51 * 89
----
4539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9405
SELECT MIN( ALL + 24 ) DIV 2 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9405
SELECT MIN ( ALL + 24 ) / 2 AS col2
----
12

query I rowsort
SELECT ( - 14 ) * + 85 AS col1
----
-1190

query I rowsort
SELECT 9 * 53 + - 76 AS col0
----
401

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT ALL 45 + 50 * - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL 45 + 50 * - COUNT ( * )
----
-5

query I rowsort
SELECT DISTINCT - 91 + + 35 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL NULLIF ( - COUNT( * ), 80 ) + - 44
----
-45

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL NULLIF ( - COUNT ( * ), 80 ) + - 44
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9411
SELECT + 93 DIV 45 + - 20 DIV + MAX( DISTINCT 37 * 77 )
----
2

skipif mysql # not compatible
query I rowsort label-9411
SELECT + 93 / 45 + - 20 / + MAX ( DISTINCT 37 * 77 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL COUNT( * ) + + SUM( COALESCE ( + ( 34 ), 23 + 35 * - 59, + 22 * + 22 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL COUNT ( * ) + + SUM ( COALESCE ( + ( 34 ), 23 + 35 * - 59, + 22 * + 22 ) ) AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT CAST( + 89 AS SIGNED ) * - 12 + + 71 * COUNT( * )
----
-997

skipif mysql # not compatible
query I rowsort label-9413
SELECT CAST ( + 89 AS INTEGER ) * - 12 + + 71 * COUNT ( * )
----
-997

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT 79 - 38 * - COUNT( * ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-9414
SELECT 79 - 38 * - COUNT ( * ) AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT COUNT( - 50 ) + 71
----
72

skipif mysql # not compatible
query I rowsort label-9415
SELECT COUNT ( - 50 ) + 71
----
72

query I rowsort
SELECT - 96 * - 90 - 38 * 85
----
5410

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL - 98 + MAX( 68 )
----
-30

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL - 98 + MAX ( 68 )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT ALL 39 DIV 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL 39 / 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT SUM( 5 ) + 66 * 60 AS col2
----
3965

skipif mysql # not compatible
query I rowsort label-9419
SELECT SUM ( 5 ) + 66 * 60 AS col2
----
3965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9420
SELECT ( COUNT( * ) ) DIV + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9420
SELECT ( COUNT ( * ) ) / + 53 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL - COUNT( * ) * 3
----
-3

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL - COUNT ( * ) * 3
----
-3

query I rowsort
SELECT + 31 + - 96
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT ALL - COALESCE ( - MIN( NULLIF ( 88, + 25 ) ), + 55 + - CAST( + 9 AS SIGNED ) ) col0
----
88

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL - COALESCE ( - MIN ( NULLIF ( 88, + 25 ) ), + 55 + - CAST ( + 9 AS INTEGER ) ) col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + COUNT( * ) * - 49 + 8
----
-41

skipif mysql # not compatible
query I rowsort label-9424
SELECT + COUNT ( * ) * - 49 + 8
----
-41

query I rowsort
SELECT DISTINCT - 5 * 43
----
-215

query I rowsort
SELECT 97 + 1 * + NULLIF ( + 70 + 65 * - 35, + 90 * 29 )
----
-2108

query I rowsort
SELECT 27 * + 84 AS col1
----
2268

query I rowsort
SELECT DISTINCT - 55 * - 16
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT COUNT( * ) + CASE + 26 WHEN - 0 / + 43 THEN NULL WHEN + 97 THEN 10 + 97 WHEN COUNT( * ) THEN + 8 * - 78 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT COUNT ( * ) + CASE + 26 WHEN - 0 / + 43 THEN NULL WHEN + 97 THEN 10 + 97 WHEN COUNT ( * ) THEN + 8 * - 78 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL + SUM( ( - 3 ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL + SUM ( ( - 3 ) ) AS col1
----
-3

query I rowsort
SELECT 66 + CASE AVG ( DISTINCT + 39 ) WHEN NULLIF ( + 84, + 23 * 5 ) THEN 58 * 20 WHEN - 96 THEN + 57 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT MAX( ALL 70 )
----
70

skipif mysql # not compatible
query I rowsort label-9432
SELECT MAX ( ALL 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL MAX( DISTINCT + + ( 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL MAX ( DISTINCT + + ( 99 ) )
----
99

query I rowsort
SELECT DISTINCT - 21 * - 47
----
987

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL MAX( - + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL MAX ( - + 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT 23 + + 87 * - NULLIF ( - 69 + + ( - 12 ), COUNT( * ) ) AS col2
----
7070

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT 23 + + 87 * - NULLIF ( - 69 + + ( - 12 ), COUNT ( * ) ) AS col2
----
7070

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL - COUNT( * ) * 73
----
-73

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - COUNT ( * ) * 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT DISTINCT + 49 * - - MAX( + 42 ) * COALESCE ( 6 + 30, 75 + 25 )
----
74088

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT + 49 * - - MAX ( + 42 ) * COALESCE ( 6 + 30, 75 + 25 )
----
74088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9439
SELECT ALL + 76 + + ( CASE 12 WHEN 85 * SUM( DISTINCT 24 ) THEN 60 * + CASE CASE 40 WHEN 89 THEN NULL WHEN MIN( DISTINCT - 33 ) THEN + 69 WHEN + 93 + + 30 * - 81 THEN NULL END WHEN COALESCE ( + 31, - CAST( 95 AS SIGNED ) + - 7 ) THEN 90 ELSE NULL END WHEN + 86 + 11 THEN NULL WHEN 50 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL + 76 + + ( CASE 12 WHEN 85 * SUM ( DISTINCT 24 ) THEN 60 * + CASE CASE 40 WHEN 89 THEN NULL WHEN MIN ( DISTINCT - 33 ) THEN + 69 WHEN + 93 + + 30 * - 81 THEN NULL END WHEN COALESCE ( + 31, - CAST ( 95 AS INTEGER ) + - 7 ) THEN 90 ELSE NULL END WHEN + 86 + 11 THEN NULL WHEN 50 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9440
SELECT ( 73 ) - - CASE + 49 WHEN + NULLIF ( 27, - 10 / - 73 + 37 ) * - COUNT( * ) THEN CAST( NULL AS SIGNED ) ELSE + 71 END
----
144

skipif mysql # not compatible
query I rowsort label-9440
SELECT ( 73 ) - - CASE + 49 WHEN + NULLIF ( 27, - 10 / - 73 + 37 ) * - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) ELSE + 71 END
----
144

query I rowsort
SELECT ( + - 31 ) * 29 AS col2
----
-899

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT 59 - + MAX( - 1 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9442
SELECT 59 - + MAX ( - 1 ) AS col2
----
60

query I rowsort
SELECT DISTINCT + 49 + + - 58 - 7 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9444
SELECT ALL 2 * + 81 + - MIN( + ( 52 ) + CAST( + 45 AS SIGNED ) )
----
65

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL 2 * + 81 + - MIN ( + ( 52 ) + CAST ( + 45 AS INTEGER ) )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9445
SELECT ALL 71 * 76 DIV + 91 + - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL 71 * 76 / + 91 + - 59 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT 32 * + 19 DIV + 19 + 83
----
115

skipif mysql # not compatible
query I rowsort label-9446
SELECT 32 * + 19 / + 19 + 83
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9447
SELECT + ( + COALESCE ( + 79, ( - 52 ), COUNT( * ) * + 58 ) ) DIV + 47 - + 8
----
-7

skipif mysql # not compatible
query I rowsort label-9447
SELECT + ( + COALESCE ( + 79, ( - 52 ), COUNT ( * ) * + 58 ) ) / + 47 - + 8
----
-7

query I rowsort
SELECT DISTINCT + 33 col0
----
33

query I rowsort
SELECT NULLIF ( - 68, - 72 ) col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9450
SELECT NULLIF ( - MIN( DISTINCT - CAST( NULL AS SIGNED ) ), - COUNT( * ) * 77 + 58 * ( 85 + - 23 * 77 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT NULLIF ( - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ), - COUNT ( * ) * 77 + 58 * ( 85 + - 23 * 77 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT 96 / - 10 + + COALESCE ( + COALESCE ( - COUNT( * ), - 45, - 64 * - COUNT( * ) ) + + CASE WHEN NOT NULL < 73 THEN - 95 * - 7 END * + COUNT( * ), CASE + 86 WHEN MAX( ALL 47 ) * 32 + 79 THEN + COUNT( * ) * + SUM( ( - 51 ) ) + + 92 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT 96 / - 10 + + COALESCE ( + COALESCE ( - COUNT ( * ), - 45, - 64 * - COUNT ( * ) ) + + CASE WHEN NOT NULL < 73 THEN - 95 * - 7 END * + COUNT ( * ), CASE + 86 WHEN MAX ( ALL 47 ) * 32 + 79 THEN + COUNT ( * ) * + SUM ( ( - 51 ) ) + + 92 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL + CASE 54 WHEN ( 34 ) THEN 85 + + 21 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL + CASE 54 WHEN ( 34 ) THEN 85 + + 21 ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT DISTINCT - 11 * + 86 AS col1
----
-946

query I rowsort
SELECT - - 89 * + 65 * 13
----
75205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9455
SELECT ALL 46 * + - CASE COUNT( * ) WHEN + 48 THEN + 57 - 41 * 1 WHEN - CAST( - 88 AS SIGNED ) * 90 THEN NULL END / 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL 46 * + - CASE COUNT ( * ) WHEN + 48 THEN + 57 - 41 * 1 WHEN - CAST ( - 88 AS INTEGER ) * 90 THEN NULL END / 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL - - ( + CASE + 22 WHEN SUM( DISTINCT 43 ) * 86 THEN 94 END ) * - MAX( DISTINCT 68 + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - - ( + CASE + 22 WHEN SUM ( DISTINCT 43 ) * 86 THEN 94 END ) * - MAX ( DISTINCT 68 + 76 )
----
NULL

query I rowsort
SELECT ALL + - 68 col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT + - COALESCE ( + - 60, COALESCE ( + COUNT( * ), - 0 ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9458
SELECT + - COALESCE ( + - 60, COALESCE ( + COUNT ( * ), - 0 ) ) AS col1
----
60

query I rowsort
SELECT ALL + + ( - NULLIF ( 61, 68 ) )
----
-61

query I rowsort
SELECT - - 62 + + 24 * 0 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT + COALESCE ( + + 16, COUNT( * ) + - COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-9461
SELECT + COALESCE ( + + 16, COUNT ( * ) + - COUNT ( * ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT + COUNT( * ) / CASE + 1 WHEN 22 * - 59 - COUNT( * ) THEN NULL WHEN + MAX( ( - 17 ) ) THEN NULL WHEN NULLIF ( 69, 76 ) THEN 34 - - 26 END - - COUNT( * ) / 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT + COUNT ( * ) / CASE + 1 WHEN 22 * - 59 - COUNT ( * ) THEN NULL WHEN + MAX ( ( - 17 ) ) THEN NULL WHEN NULLIF ( 69, 76 ) THEN 34 - - 26 END - - COUNT ( * ) / 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT - COUNT( + 87 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9463
SELECT - COUNT ( + 87 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT + 45 - 59 DIV 36 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9464
SELECT + 45 - 59 / 36 AS col0
----
44

query I rowsort
SELECT + 58 - + 75 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL 98 * ( NULLIF ( + 96, COALESCE ( - 24, + 84 * 59 + - 71 / COUNT( * ), NULLIF ( ( SUM( 43 ) ), - ( ( 71 ) ) ) ) / - 97 + 98 ) ) + + 37 AS col1
----
9445

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL 98 * ( NULLIF ( + 96, COALESCE ( - 24, + 84 * 59 + - 71 / COUNT ( * ), NULLIF ( ( SUM ( 43 ) ), - ( ( 71 ) ) ) ) / - 97 + 98 ) ) + + 37 AS col1
----
9445

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT + - COUNT( * ) * - + 26 * - ( - 80 ) AS col0
----
2080

skipif mysql # not compatible
query I rowsort label-9467
SELECT + - COUNT ( * ) * - + 26 * - ( - 80 ) AS col0
----
2080

query I rowsort
SELECT DISTINCT 23 + + NULLIF ( 13, 59 ) - 15 * 86
----
-1254

query I rowsort
SELECT ALL 82 + - + 58
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT + 64 + COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9470
SELECT + 64 + COUNT ( * ) AS col0
----
65

query I rowsort
SELECT - ( + 76 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT ALL 75 * CASE 7 WHEN - 98 / + 79 + - COUNT( 55 ) * 11 THEN - 17 ELSE NULL END * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL 75 * CASE 7 WHEN - 98 / + 79 + - COUNT ( 55 ) * 11 THEN - 17 ELSE NULL END * - 45 AS col0
----
NULL

query I rowsort
SELECT + 81 * + + 94 col2
----
7614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9474
SELECT + COUNT( * ) + - - COALESCE ( - 19, - 5 + 71 * + 38, - 25 * - 75 + COALESCE ( 43, 53, - 14 ) ) + CAST( 14 + COALESCE ( ( + COUNT( * ) ), 15 ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-9474
SELECT + COUNT ( * ) + - - COALESCE ( - 19, - 5 + 71 * + 38, - 25 * - 75 + COALESCE ( 43, 53, - 14 ) ) + CAST ( 14 + COALESCE ( ( + COUNT ( * ) ), 15 ) AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT - ( 29 ) - - 73 + + COUNT( * ) * - 60
----
-16

skipif mysql # not compatible
query I rowsort label-9475
SELECT - ( 29 ) - - 73 + + COUNT ( * ) * - 60
----
-16

query II rowsort
SELECT 75 AS col1, + 49 AS col2
----
75
49

query I rowsort
SELECT DISTINCT 69 + - 98 + 49 * - 16 AS col2
----
-813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9478
SELECT - ( - MAX( + CAST( + 28 AS SIGNED ) ) )
----
28

skipif mysql # not compatible
query I rowsort label-9478
SELECT - ( - MAX ( + CAST ( + 28 AS INTEGER ) ) )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT ALL + 45 + 44 DIV - 69 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL + 45 + 44 / - 69 AS col1
----
45

query I rowsort
SELECT + ( - 69 ) + 82 + 72 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT + 86 + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9481
SELECT + 86 + COUNT ( * ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9482
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL - ( + CAST ( NULL AS REAL ) ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL MIN( - 63 ) - + + CASE 98 WHEN + 85 + + COUNT( * ) THEN - SUM( 97 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL MIN ( - 63 ) - + + CASE 98 WHEN + 85 + + COUNT ( * ) THEN - SUM ( 97 ) END AS col0
----
NULL

query I rowsort
SELECT - 56 * - 82 AS col0
----
4592

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ALL - SUM( DISTINCT - 72 ) * 43 + + COUNT( * ) AS col0
----
3097

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - SUM ( DISTINCT - 72 ) * 43 + + COUNT ( * ) AS col0
----
3097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT + MAX( ALL - - CAST( - + 8 AS SIGNED ) ) + - ( + 78 + COUNT( * ) * 44 )
----
-130

skipif mysql # not compatible
query I rowsort label-9486
SELECT + MAX ( ALL - - CAST ( - + 8 AS INTEGER ) ) + - ( + 78 + COUNT ( * ) * 44 )
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT DISTINCT + COUNT( DISTINCT - + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT + COUNT ( DISTINCT - + 72 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL + COUNT( * ) * 56
----
56

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL + COUNT ( * ) * 56
----
56

query I rowsort
SELECT - 90 * 90
----
-8100

query I rowsort
SELECT - 24 * + + 70 + + 80 AS col1
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT - COUNT( * ) * 50
----
-50

skipif mysql # not compatible
query I rowsort label-9491
SELECT - COUNT ( * ) * 50
----
-50

query I rowsort
SELECT ALL - - 54 * + 49 + - 24
----
2622

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT DISTINCT + + 78 AS col0, + COUNT( * ) + - 53 col2
----
78
-52

skipif mysql # not compatible
query II rowsort label-9493
SELECT DISTINCT + + 78 AS col0, + COUNT ( * ) + - 53 col2
----
78
-52

query II rowsort
SELECT ALL + 90 AS col2, - 39
----
90
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT ALL + COUNT( - 64 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL + COUNT ( - 64 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT - + SUM( 82 ) * + 32
----
-2624

skipif mysql # not compatible
query I rowsort label-9496
SELECT - + SUM ( 82 ) * + 32
----
-2624

query I rowsort
SELECT - - 60 - 9 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL + MAX( DISTINCT - COALESCE ( + 48, - 56 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL + MAX ( DISTINCT - COALESCE ( + 48, - 56 ) )
----
-48

query I rowsort
SELECT - + 91 + + 10
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT + + MAX( + 15 ) * + COUNT( * ) + CAST( NULL AS SIGNED ) * NULLIF ( - 90 + 52 * - 97, + 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT + + MAX ( + 15 ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) * NULLIF ( - 90 + 52 * - 97, + 37 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT - - 16 * - COUNT( * ) + 35 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9501
SELECT - - 16 * - COUNT ( * ) + 35 AS col0
----
19

query I rowsort
SELECT + 76 + 70 AS col0
----
146

query I rowsort
SELECT ALL - 5 * + + 46 * - 53 * + 11 AS col1
----
134090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9504
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - 61 * - + 40 AS col2
----
2440

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT - 96 * + 22 + + MAX( 54 )
----
-2058

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT - 96 * + 22 + + MAX ( 54 )
----
-2058

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT + + 75 + + 90 + - 10 * COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-9507
SELECT + + 75 + + 90 + - 10 * COUNT ( * )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL - CASE + - 17 WHEN + 78 THEN COUNT( * ) WHEN - CASE 81 WHEN ( 30 ) THEN 6 ELSE - 96 END + 14 THEN NULL ELSE NULL END * + 76 + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL - CASE + - 17 WHEN + 78 THEN COUNT ( * ) WHEN - CASE 81 WHEN ( 30 ) THEN 6 ELSE - 96 END + 14 THEN NULL ELSE NULL END * + 76 + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT - 64 * + + SUM( DISTINCT + 81 ) AS col0
----
-5184

skipif mysql # not compatible
query I rowsort label-9509
SELECT - 64 * + + SUM ( DISTINCT + 81 ) AS col0
----
-5184

onlyif mysql # aggregate syntax: 
query II rowsort label-9510
SELECT - MIN( DISTINCT - 95 ), - ( + 35 ) * 28 AS col1
----
95
-980

skipif mysql # not compatible
query II rowsort label-9510
SELECT - MIN ( DISTINCT - 95 ), - ( + 35 ) * 28 AS col1
----
95
-980

query I rowsort
SELECT + 46 + 93 + 25 AS col1
----
164

query I rowsort
SELECT DISTINCT 69 + - 55 + - 67
----
-53

query I rowsort
SELECT ALL 28 + - + 29
----
-1

query I rowsort
SELECT + NULLIF ( - + CASE - 58 WHEN 45 * - 36 THEN NULL WHEN + 69 * - NULLIF ( 19, 3 ) + - 32 THEN + 36 * 73 ELSE NULL END, ( + 86 ) * + 9 ) * 63 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9515
SELECT ALL + 4 DIV - 84 AS col2, 3
----
0
3

skipif mysql # not compatible
query II rowsort label-9515
SELECT ALL + 4 / - 84 AS col2, 3
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT + 10 * - + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-9516
SELECT + 10 * - + COUNT ( * )
----
-10

query I rowsort
SELECT ALL 22 * ( + + COALESCE ( - + 94, 63 * 33 ) )
----
-2068

query I rowsort
SELECT + 28 + - 0 * + 96 AS col0
----
28

query I rowsort
SELECT DISTINCT 33 + - 40
----
-7

query I rowsort
SELECT NULLIF ( + - ( - 32 ), + 86 ) + 93 col2
----
125

query I rowsort
SELECT DISTINCT NULLIF ( - 62, + 93 ) - 21 * + 98 AS col1
----
-2120

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT 94 - + - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9522
SELECT 94 - + - COUNT ( * ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT COUNT( * ) * SUM( ALL - + ( - + 23 ) ) * + 98 AS col0
----
2254

skipif mysql # not compatible
query I rowsort label-9523
SELECT COUNT ( * ) * SUM ( ALL - + ( - + 23 ) ) * + 98 AS col0
----
2254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT 0 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT 0 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 36 + - 61 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL ( 80 ) - - + 8 + - COALESCE ( + 19, + COUNT( * ), ( + 79 ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL ( 80 ) - - + 8 + - COALESCE ( + 19, + COUNT ( * ), ( + 79 ) ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9527
SELECT CAST( NULL AS SIGNED ) + 21 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT CAST ( NULL AS INTEGER ) + 21 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9528
SELECT 26 DIV + 8, - CAST( NULL AS SIGNED ) AS col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9528
SELECT 26 / + 8, - CAST ( NULL AS INTEGER ) AS col2
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9529
SELECT ALL + 61 DIV + 54 + - ( + 57 )
----
-56

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL + 61 / + 54 + - ( + 57 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-9530
SELECT + 35 DIV - - 47 - + COALESCE ( - + 61, 33 )
----
61

skipif mysql # not compatible
query I rowsort label-9530
SELECT + 35 / - - 47 - + COALESCE ( - + 61, 33 )
----
61

query I rowsort
SELECT DISTINCT + + 55 * 97
----
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT 36 * + + 59 * COUNT( * )
----
2124

skipif mysql # not compatible
query I rowsort label-9532
SELECT 36 * + + 59 * COUNT ( * )
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT - ( 95 ) + COUNT( ALL + - 83 )
----
-94

skipif mysql # not compatible
query I rowsort label-9533
SELECT - ( 95 ) + COUNT ( ALL + - 83 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9534
SELECT DISTINCT + 67 + + CAST( - ( - ( - 69 ) ) AS SIGNED ) + COUNT( ( - 57 ) ) * ( 37 )
----
35

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + 67 + + CAST ( - ( - ( - 69 ) ) AS INTEGER ) + COUNT ( ( - 57 ) ) * ( 37 )
----
35

query I rowsort
SELECT ALL + - 13 + + + COALESCE ( + 96, + 14 + 13 * - 58 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL 74 + + + COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL 74 + + + COUNT ( * ) AS col1
----
75

query I rowsort
SELECT DISTINCT - ( - 42 ) AS col2
----
42

query I rowsort
SELECT + NULLIF ( 26, - 40 ) * + 59 AS col0
----
1534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT ALL - + CAST( NULL AS SIGNED ) + - 73 + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL - + CAST ( NULL AS INTEGER ) + - 73 + + 58
----
NULL

query I rowsort
SELECT 30 + - 99 AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT ALL - 45 + CAST( NULL AS SIGNED ) + + 13 + - ( + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL - 45 + CAST ( NULL AS INTEGER ) + + 13 + - ( + 45 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9542
SELECT ALL + 18 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL + 18 / + 70
----
0

query I rowsort
SELECT 85 - - 30
----
115

query I rowsort
SELECT DISTINCT + 0 * 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL - 45 - + + 15 + - + COUNT( * ) * + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL - 45 - + + 15 + - + COUNT ( * ) * + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT COUNT( * ) + - 77 + - 74 AS col2
----
-150

skipif mysql # not compatible
query I rowsort label-9546
SELECT COUNT ( * ) + - 77 + - 74 AS col2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT COUNT( * ) * - 56
----
-56

skipif mysql # not compatible
query I rowsort label-9547
SELECT COUNT ( * ) * - 56
----
-56

query I rowsort
SELECT 94 + + COALESCE ( + 36, + + 6 * - + NULLIF ( 10, 96 ) + 51 ) AS col2
----
130

query II rowsort
SELECT ( 54 ) * + 94, - 35 AS col0
----
5076
-35

query I rowsort
SELECT 39 + - 83 + 42 AS col0
----
-2

query I rowsort
SELECT 10 * + 38 AS col0
----
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9552
SELECT ALL 95 AS col2, 14 + - MAX( ALL + - 81 ) * CAST( COUNT( * ) AS SIGNED ) * 65 - + CAST( NULL AS SIGNED )
----
95
NULL

skipif mysql # not compatible
query II rowsort label-9552
SELECT ALL 95 AS col2, 14 + - MAX ( ALL + - 81 ) * CAST ( COUNT ( * ) AS INTEGER ) * 65 - + CAST ( NULL AS INTEGER )
----
95
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9553
SELECT DISTINCT CASE + 2 WHEN - COUNT( * ) + MAX( ALL 36 ) - + COALESCE ( 22, + COUNT( * ), COUNT( - 40 ) - CAST( 12 AS SIGNED ) ) * - 86 THEN + 43 + + 21 WHEN CAST( NULL AS SIGNED ) THEN - CASE + 36 WHEN 29 THEN 90 WHEN + 73 + + 73 THEN NULL WHEN - 93 THEN + 8 END - - CAST( 59 AS SIGNED ) END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT CASE + 2 WHEN - COUNT ( * ) + MAX ( ALL 36 ) - + COALESCE ( 22, + COUNT ( * ), COUNT ( - 40 ) - CAST ( 12 AS INTEGER ) ) * - 86 THEN + 43 + + 21 WHEN CAST ( NULL AS INTEGER ) THEN - CASE + 36 WHEN 29 THEN 90 WHEN + 73 + + 73 THEN NULL WHEN - 93 THEN + 8 END - - CAST ( 59 AS INTEGER ) END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT COUNT( * ) + - + 26 + + 47 + - 98 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9554
SELECT COUNT ( * ) + - + 26 + + 47 + - 98 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT 71 * - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9555
SELECT 71 * - - COUNT ( * )
----
71

query I rowsort
SELECT COALESCE ( ( + 82 ), - 92 ) AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9557
SELECT ALL - 61 AS col2, ( + CAST( NULL AS SIGNED ) ) + + 80 + + + 77 * - CAST( NULL AS SIGNED ) AS col1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-9557
SELECT ALL - 61 AS col2, ( + CAST ( NULL AS INTEGER ) ) + + 80 + + + 77 * - CAST ( NULL AS INTEGER ) AS col1
----
-61
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT 24 DIV - 62 + 38 DIV + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT 24 / - 62 + 38 / + 68 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT + CAST( NULL AS SIGNED ) * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT + CAST ( NULL AS INTEGER ) * + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL + 88 * + - NULLIF ( + 97, + 88 ) + 39 - 92 * COUNT( * )
----
-8589

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + 88 * + - NULLIF ( + 97, + 88 ) + 39 - 92 * COUNT ( * )
----
-8589

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9561
SELECT + 22 col2, + 83 + + + 22 * - CAST( - 67 AS SIGNED ) AS col1
----
22
1557

skipif mysql # not compatible
query II rowsort label-9561
SELECT + 22 col2, + 83 + + + 22 * - CAST ( - 67 AS INTEGER ) AS col1
----
22
1557

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT + CASE - ( + 93 ) WHEN - 0 * - 62 / - COALESCE ( + 68, - 23 + 83 / + 15, - ( CASE - COALESCE ( + 57, 84 + 35 ) WHEN + 49 THEN NULL ELSE 7 END ) * 30 ) + CAST( + 15 - ( + 94 ) AS SIGNED ) THEN - 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT + CASE - ( + 93 ) WHEN - 0 * - 62 / - COALESCE ( + 68, - 23 + 83 / + 15, - ( CASE - COALESCE ( + 57, 84 + 35 ) WHEN + 49 THEN NULL ELSE 7 END ) * 30 ) + CAST ( + 15 - ( + 94 ) AS INTEGER ) THEN - 36 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT + - COUNT( * ) * + 5 - - 93 - + ( - + 95 ) * COUNT( * ) + 65
----
248

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT + - COUNT ( * ) * + 5 - - 93 - + ( - + 95 ) * COUNT ( * ) + 65
----
248

query II rowsort
SELECT + 22 AS col0, - NULLIF ( - - 41, + 28 ) AS col1
----
22
-41

query I rowsort
SELECT 20 + - 72 col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT 66 + CAST( 71 AS SIGNED )
----
137

skipif mysql # not compatible
query I rowsort label-9566
SELECT 66 + CAST ( 71 AS INTEGER )
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9567
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) / 96 + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / 96 + 37 AS col0
----
NULL

query I rowsort
SELECT 97 * - 53 AS col1
----
-5141

query I rowsort
SELECT - 90 * 20 + - 75
----
-1875

query I rowsort
SELECT 58 * + 13 * - ( + - 76 ) * - 28 + 70
----
-1604442

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT + CASE + 37 WHEN + + 63 THEN - ( + - 47 ) ELSE + 44 * - COUNT( * ) END AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9571
SELECT + CASE + 37 WHEN + + 63 THEN - ( + - 47 ) ELSE + 44 * - COUNT ( * ) END AS col1
----
-44

query II rowsort
SELECT 5 + + 75 AS col0, + 59 AS col1
----
80
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9573
SELECT ALL 99 * + 69 AS col2, - 87 + 93 - COUNT( * ) * - 32 - - COUNT( * ) AS col1
----
6831
39

skipif mysql # not compatible
query II rowsort label-9573
SELECT ALL 99 * + 69 AS col2, - 87 + 93 - COUNT ( * ) * - 32 - - COUNT ( * ) AS col1
----
6831
39

query I rowsort
SELECT - ( 66 ) + + 18 AS col1
----
-48

query I rowsort
SELECT ALL 93 - 36 AS col0
----
57

query I rowsort
SELECT ALL - NULLIF ( + 54, + + 93 + 69 ) - - - 19
----
-73

query I rowsort
SELECT - 57 + + 3 AS col1
----
-54

query II rowsort
SELECT 2, + 11 + + 40 AS col0
----
2
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT - 33 + + + COUNT( * ) - - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-9579
SELECT - 33 + + + COUNT ( * ) - - COUNT ( * )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT - 21 DIV 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9580
SELECT - 21 / 61 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9581
SELECT ALL + 42 * COALESCE ( + 94, - + 15, - 90 * - 93 + COUNT( * ) ) DIV 62
----
63

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL + 42 * COALESCE ( + 94, - + 15, - 90 * - 93 + COUNT ( * ) ) / 62
----
63

query I rowsort
SELECT DISTINCT + 69 * - 17
----
-1173

query I rowsort
SELECT - 15 + + CASE + 42 WHEN + 42 THEN NULL WHEN - 70 + - 4 THEN NULL ELSE 96 END
----
NULL

query II rowsort
SELECT 31 AS col2, + 83 AS col0
----
31
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9585
SELECT ALL + CASE - 72 WHEN + + CAST( + 46 AS SIGNED ) THEN + 41 * + 14 - 8 WHEN 12 * CAST( + 71 AS SIGNED ) + + 97 / 9 THEN NULLIF ( + COUNT( * ), 85 * - 69 ) ELSE NULL END * - ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + CASE - 72 WHEN + + CAST ( + 46 AS INTEGER ) THEN + 41 * + 14 - 8 WHEN 12 * CAST ( + 71 AS INTEGER ) + + 97 / 9 THEN NULLIF ( + COUNT ( * ), 85 * - 69 ) ELSE NULL END * - ( COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9586
SELECT DISTINCT COUNT( * ) AS col2, 8 * + - 0 DIV + 27 * + 73 + 86
----
1
86

skipif mysql # not compatible
query II rowsort label-9586
SELECT DISTINCT COUNT ( * ) AS col2, 8 * + - 0 / + 27 * + 73 + 86
----
1
86

query II rowsort
SELECT - 61 - 13 AS col0, 59
----
-74
59

query II rowsort
SELECT 41 col1, ( + 42 ) AS col0
----
41
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT SUM( ALL - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9589
SELECT SUM ( ALL - 4 ) AS col2
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9590
SELECT - CAST( NULL AS DECIMAL ) - - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT - CAST ( NULL AS REAL ) - - 97 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT - - 79 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-9591
SELECT - - 79 / 44
----
1

query I rowsort
SELECT + - 73 + + ( - 71 )
----
-144

query II rowsort
SELECT DISTINCT - - ( - 72 ) + 46 * 3, + 63 AS col1
----
66
63

query I rowsort
SELECT + + 98 + ( + 12 ) * - 41
----
-394

query I rowsort
SELECT ALL - 19 * + 79 * - 20 + - 94 AS col1
----
29926

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT - 82 DIV 18 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9596
SELECT - 82 / 18 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT DISTINCT - - 69 * + - 84 * - MAX( ALL - 77 ) * - 9 + + 24
----
4016652

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT - - 69 * + - 84 * - MAX ( ALL - 77 ) * - 9 + + 24
----
4016652

query I rowsort
SELECT + 95 * ( 13 )
----
1235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9599
SELECT DISTINCT - 40 * + - 79 - COUNT( * ) + COUNT( * ) + + NULLIF ( - COALESCE ( 17, + 50, + 36 ), NULLIF ( + 13, 76 ) ) - + CAST( NULL AS SIGNED ) * 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT - 40 * + - 79 - COUNT ( * ) + COUNT ( * ) + + NULLIF ( - COALESCE ( 17, + 50, + 36 ), NULLIF ( + 13, 76 ) ) - + CAST ( NULL AS INTEGER ) * 89 AS col0
----
NULL

query II rowsort
SELECT + 12 AS col2, 81 AS col0
----
12
81

query I rowsort
SELECT ALL - 82 * + - 66 AS col2
----
5412

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT + MAX( - - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-9602
SELECT + MAX ( - - 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9603
SELECT - ( + COALESCE ( CAST( NULL AS SIGNED ), 68 + + 89 + - 42 * - 6 ) ) AS col2
----
-409

skipif mysql # not compatible
query I rowsort label-9603
SELECT - ( + COALESCE ( CAST ( NULL AS INTEGER ), 68 + + 89 + - 42 * - 6 ) ) AS col2
----
-409

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL 54 * COUNT( * ) - - 85 - - 54
----
193

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL 54 * COUNT ( * ) - - 85 - - 54
----
193

query II rowsort
SELECT ALL + + 19, - 63 col0
----
19
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT CASE - 0 WHEN - 92 THEN NULL WHEN MAX( ALL - 50 ) + + 67 + + 23 THEN + ( 45 ) + + CASE 88 WHEN - CAST( 96 AS SIGNED ) THEN - 77 / 46 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT CASE - 0 WHEN - 92 THEN NULL WHEN MAX ( ALL - 50 ) + + 67 + + 23 THEN + ( 45 ) + + CASE 88 WHEN - CAST ( 96 AS INTEGER ) THEN - 77 / 46 END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL 32 * - 47 - - COUNT( * ) AS col0
----
-1503

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL 32 * - 47 - - COUNT ( * ) AS col0
----
-1503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT + ( + CAST( + 18 AS SIGNED ) ) col1
----
18

skipif mysql # not compatible
query I rowsort label-9608
SELECT + ( + CAST ( + 18 AS INTEGER ) ) col1
----
18

query I rowsort
SELECT ALL 99 * 56 * + 23 * 1 AS col2
----
127512

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT + ( MIN( - 16 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-9610
SELECT + ( MIN ( - 16 ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT + CASE COUNT( * ) WHEN + 28 * + COUNT( * ) THEN - ( 18 ) ELSE + 62 + 13 END + - 21 col2
----
54

skipif mysql # not compatible
query I rowsort label-9611
SELECT + CASE COUNT ( * ) WHEN + 28 * + COUNT ( * ) THEN - ( 18 ) ELSE + 62 + 13 END + - 21 col2
----
54

query I rowsort
SELECT + ( + ( - - 60 ) )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT ALL 46 DIV + + 97
----
0

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL 46 / + + 97
----
0

query I rowsort
SELECT + 51 + + 5
----
56

query I rowsort
SELECT + 69 * + 31
----
2139

query I rowsort
SELECT + 45 * 82
----
3690

query I rowsort
SELECT - 10 * + 11 * 19
----
-2090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT ALL COALESCE ( - 70, - 93 + 84 + + - 95 * - 83, ( + 45 ) * + CAST( NULL AS SIGNED ) )
----
-70

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL COALESCE ( - 70, - 93 + 84 + + - 95 * - 83, ( + 45 ) * + CAST ( NULL AS INTEGER ) )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9619
SELECT + 97 + - - COALESCE ( - - COUNT( * ), + 92, MIN( DISTINCT - ( + 48 ) ) DIV + 17 ) col1
----
98

skipif mysql # not compatible
query I rowsort label-9619
SELECT + 97 + - - COALESCE ( - - COUNT ( * ), + 92, MIN ( DISTINCT - ( + 48 ) ) / + 17 ) col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT + 15 * 52, - COUNT( * ) AS col2
----
780
-1

skipif mysql # not compatible
query II rowsort label-9620
SELECT + 15 * 52, - COUNT ( * ) AS col2
----
780
-1

query I rowsort
SELECT + 61 + + 71 AS col1
----
132

query II rowsort
SELECT + 79 * + 87 AS col0, 44
----
6873
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT + 38 + + 10 * COALESCE ( 75, + + 57 * 20 * COUNT( * ) ) + COUNT( * )
----
789

skipif mysql # not compatible
query I rowsort label-9623
SELECT + 38 + + 10 * COALESCE ( 75, + + 57 * 20 * COUNT ( * ) ) + COUNT ( * )
----
789

query I rowsort
SELECT + - 49 + + + 51 + 96 + + - ( - 79 ) AS col1
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9625
SELECT - - 44 - + COUNT( * ), + 93 * + 20 - + + 54 / + CAST( NULL AS SIGNED ) * + + 13 AS col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-9625
SELECT - - 44 - + COUNT ( * ), + 93 * + 20 - + + 54 / + CAST ( NULL AS INTEGER ) * + + 13 AS col1
----
43
NULL

query I rowsort
SELECT - + 69 + - 74 + - 53 * 6
----
-461

query I rowsort
SELECT DISTINCT + 11 + + + 39 * + - 60 * - 48 AS col0
----
112331

query I rowsort
SELECT ALL - 89 + 10
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT - 71 + - - ( - MIN( + + 46 ) )
----
-117

skipif mysql # not compatible
query I rowsort label-9629
SELECT - 71 + - - ( - MIN ( + + 46 ) )
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9630
SELECT ALL - MAX( - - 32 ) * ( - 94 ) * + CAST( 20 AS SIGNED ) * 92 + + 72
----
5534792

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - MAX ( - - 32 ) * ( - 94 ) * + CAST ( 20 AS INTEGER ) * 92 + + 72
----
5534792

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - ( COUNT( DISTINCT 16 ) ) + + + 60
----
59

skipif mysql # not compatible
query I rowsort label-9631
SELECT - ( COUNT ( DISTINCT 16 ) ) + + + 60
----
59

query I rowsort
SELECT DISTINCT - 45 * + + ( - NULLIF ( 72, - 71 * ( - 29 ) - + 8 ) ) + COALESCE ( 41 + 92, - 95 * - 50, 20 - + 61 ) AS col0
----
3373

query I rowsort
SELECT - + 23 * - 86
----
1978

query I rowsort
SELECT - + 17 * + 15
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT - 16 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT - 16 / + 97
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9636
SELECT - - NULLIF ( + 61, + + COUNT( * ) + + 74 ) + + - ( 66 ) * 27 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT - - NULLIF ( + 61, + + COUNT ( * ) + + 74 ) + + - ( 66 ) * 27 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9637
SELECT ALL - + 52 DIV 20 - + + 22 + - COUNT( * ) + + - 70 + + 16 - - + CAST( COUNT( * ) AS SIGNED ) + + 10 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL - + 52 / 20 - + + 22 + - COUNT ( * ) + + - 70 + + 16 - - + CAST ( COUNT ( * ) AS INTEGER ) + + 10 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT NULLIF ( 28, - 96 ) * - - 34 - - 22 + - 72 * - + COUNT( * ) + - ( + COUNT( * ) ) * + 13
----
1033

skipif mysql # not compatible
query I rowsort label-9638
SELECT NULLIF ( 28, - 96 ) * - - 34 - - 22 + - 72 * - + COUNT ( * ) + - ( + COUNT ( * ) ) * + 13
----
1033

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9639
SELECT ALL - COALESCE ( + - 53, MAX( DISTINCT + ( 96 ) ) * - 17 ) DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL - COALESCE ( + - 53, MAX ( DISTINCT + ( 96 ) ) * - 17 ) / + 93
----
0

query I rowsort
SELECT ALL 58 * - - 42 AS col0
----
2436

query II rowsort
SELECT ALL - 40 col2, - 92
----
-40
-92

query II rowsort
SELECT + 3 AS col2, COALESCE ( - 62, + 13 + + 82 ) AS col1
----
3
-62

query I rowsort
SELECT 10 * - - 71 AS col1
----
710

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT DISTINCT 5 * - + MIN( ALL 27 ) col1
----
-135

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT 5 * - + MIN ( ALL 27 ) col1
----
-135

query II rowsort
SELECT 87 * + 32 + + - 14 AS col0, - 58
----
2770
-58

query II rowsort
SELECT DISTINCT - 71 AS col1, - 79 + + - 29 AS col2
----
-71
-108

query I rowsort
SELECT ALL 92 + 33 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT 87 * - 63 + - 22 * - - COUNT( * )
----
-5503

skipif mysql # not compatible
query I rowsort label-9648
SELECT 87 * - 63 + - 22 * - - COUNT ( * )
----
-5503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9649
SELECT COALESCE ( 99, + - 78 + - 42 - + - 90, 58 + + 86 + - 25 + + CAST( NULL AS SIGNED ) * - COUNT( * ) ) + + 11 * 47
----
616

skipif mysql # not compatible
query I rowsort label-9649
SELECT COALESCE ( 99, + - 78 + - 42 - + - 90, 58 + + 86 + - 25 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) + + 11 * 47
----
616

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9650
SELECT ALL 81, NULLIF ( + + 36, - - CAST( - 88 AS SIGNED ) * - - 84 + 63 ) AS col0
----
81
36

skipif mysql # not compatible
query II rowsort label-9650
SELECT ALL 81, NULLIF ( + + 36, - - CAST ( - 88 AS INTEGER ) * - - 84 + 63 ) AS col0
----
81
36

query I rowsort
SELECT ALL 56 + + ( - + ( + 96 ) )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9652
SELECT COUNT( * ) DIV - ( 22 ) * - 14
----
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT COUNT ( * ) / - ( 22 ) * - 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT CASE - + 95 WHEN + MIN( DISTINCT - + 85 ) + - COALESCE ( + - 2, AVG ( + + 52 ) * 5 ) + + MIN( ALL 18 ) THEN NULL WHEN + 41 THEN - 56 + 52 END + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT CASE - + 95 WHEN + MIN ( DISTINCT - + 85 ) + - COALESCE ( + - 2, AVG ( + + 52 ) * 5 ) + + MIN ( ALL 18 ) THEN NULL WHEN + 41 THEN - 56 + 52 END + 31 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT DISTINCT - ( - 88 ) + + CAST( NULL AS SIGNED ) + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT - ( - 88 ) + + CAST ( NULL AS INTEGER ) + 36
----
NULL

query I rowsort
SELECT DISTINCT - 40 + + 16 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT ALL + + 4 + + 44 + - 50 * + COUNT( * ) * 7 + + 64 AS col0, 54 col2
----
-238
54

skipif mysql # not compatible
query II rowsort label-9656
SELECT ALL + + 4 + + 44 + - 50 * + COUNT ( * ) * 7 + + 64 AS col0, 54 col2
----
-238
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT MIN( - 88 ) * 92 + 34 + - + MIN( ( - 93 ) ) * 4
----
-7690

skipif mysql # not compatible
query I rowsort label-9657
SELECT MIN ( - 88 ) * 92 + 34 + - + MIN ( ( - 93 ) ) * 4
----
-7690

query I rowsort
SELECT ALL - 7 * + + 44 * + 31
----
-9548

query I rowsort
SELECT + 68 * + 13 * 15 * + 1
----
13260

query I rowsort
SELECT - + ( + 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT - 0 + + - COUNT( * ) - - + 0 * + 3 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9661
SELECT - 0 + + - COUNT ( * ) - - + 0 * + 3 AS col1
----
-1

query I rowsort
SELECT 95 + + ( + 7 ) - + + 34 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT SUM( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT SUM ( 57 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT ALL COALESCE ( - COUNT( * ), - + 4 + CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL COALESCE ( - COUNT ( * ), - + 4 + CAST ( NULL AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9665
SELECT + + 88 DIV + 73 + + - 59 DIV ( COUNT( ALL ( 24 ) ) ) - NULLIF ( ( 66 ), 66 * 9 ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-9665
SELECT + + 88 / + 73 + + - 59 / ( COUNT ( ALL ( 24 ) ) ) - NULLIF ( ( 66 ), 66 * 9 ) AS col1
----
-124

query I rowsort
SELECT ALL - 39 * + 4 * + + ( 52 ) + - 83
----
-8195

query I rowsort
SELECT DISTINCT - ( 9 ) AS col2
----
-9

query I rowsort
SELECT 94 * + 60 col0
----
5640

query I rowsort
SELECT 30 * 57 * 9
----
15390

query I rowsort
SELECT ALL - 55 + - 99
----
-154

query I rowsort
SELECT 10 - - 68
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT ALL + COUNT( * ) + + + 48 AS col2, + 8 AS col2
----
49
8

skipif mysql # not compatible
query II rowsort label-9672
SELECT ALL + COUNT ( * ) + + + 48 AS col2, + 8 AS col2
----
49
8

query I rowsort
SELECT ALL ( 57 ) * 94 AS col1
----
5358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9674
SELECT DISTINCT + 10 + + CAST( 65 AS SIGNED ) - - 11 - - - CAST( NULL AS SIGNED ) * - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT + 10 + + CAST ( 65 AS INTEGER ) - - 11 - - - CAST ( NULL AS INTEGER ) * - 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT 9 + + 0 + + 70 + - COUNT( * ) - - 70 * - 24 * COUNT( DISTINCT 12 ) AS col1
----
-1602

skipif mysql # not compatible
query I rowsort label-9675
SELECT 9 + + 0 + + 70 + - COUNT ( * ) - - 70 * - 24 * COUNT ( DISTINCT 12 ) AS col1
----
-1602

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT 19 + + 82 + + 8 * + 16, - COUNT( * ) AS col1
----
229
-1

skipif mysql # not compatible
query II rowsort label-9676
SELECT 19 + + 82 + + 8 * + 16, - COUNT ( * ) AS col1
----
229
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL - NULLIF ( 79, + COUNT( - 60 ) + - 46 * COUNT( - ( + 29 ) ) ) * - 60 * ( - 19 * 74 ) AS col2
----
-6664440

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL - NULLIF ( 79, + COUNT ( - 60 ) + - 46 * COUNT ( - ( + 29 ) ) ) * - 60 * ( - 19 * 74 ) AS col2
----
-6664440

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - 23 * - 81 + + 97 * - - ( - COUNT( * ) ) AS col0
----
1766

skipif mysql # not compatible
query I rowsort label-9678
SELECT - 23 * - 81 + + 97 * - - ( - COUNT ( * ) ) AS col0
----
1766

query I rowsort
SELECT 38 + - - 45 * ( - + 95 ) AS col1
----
-4237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9680
SELECT ALL 2 + - 94 * - + 16 - - 97 AS col0, 66 - - CAST( NULL AS SIGNED ) AS col0
----
1603
NULL

skipif mysql # not compatible
query II rowsort label-9680
SELECT ALL 2 + - 94 * - + 16 - - 97 AS col0, 66 - - CAST ( NULL AS INTEGER ) AS col0
----
1603
NULL

query I rowsort
SELECT 44 + + + 36
----
80

query I rowsort
SELECT ALL - 21 * - 60
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT + COUNT( * ) + + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-9683
SELECT + COUNT ( * ) + + + COUNT ( * ) col2
----
2

query I rowsort
SELECT ALL - ( + 49 ) col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT CAST( NULL AS SIGNED ) + 49 * - 3 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT CAST ( NULL AS INTEGER ) + 49 * - 3 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9686
SELECT 40 * + 12 * - 22 + - COUNT( * ) AS col0, MIN( 81 )
----
-10561
81

skipif mysql # not compatible
query II rowsort label-9686
SELECT 40 * + 12 * - 22 + - COUNT ( * ) AS col0, MIN ( 81 )
----
-10561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL COUNT( 44 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL COUNT ( 44 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9688
SELECT 89 + - 49 AS col1, - CAST( 53 AS SIGNED )
----
40
-53

skipif mysql # not compatible
query II rowsort label-9688
SELECT 89 + - 49 AS col1, - CAST ( 53 AS INTEGER )
----
40
-53

query I rowsort
SELECT 20 * 23 + 49 AS col0
----
509

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9690
SELECT 79 + + + 34 + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * MIN( - 92 ) + - + 20 AS col2, 88 AS col2
----
NULL
88

skipif mysql # not compatible
query II rowsort label-9690
SELECT 79 + + + 34 + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * MIN ( - 92 ) + - + 20 AS col2, 88 AS col2
----
NULL
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9691
SELECT + + 40 DIV - + 38 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9691
SELECT + + 40 / - + 38 * COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 34 * + 27 AS col1
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT DISTINCT - MAX( ALL 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT - MAX ( ALL 50 )
----
-50

query I rowsort
SELECT DISTINCT - 1 * + 1 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT ALL 47 * + COUNT( * ) DIV + - 87
----
0

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL 47 * + COUNT ( * ) / + - 87
----
0

query I rowsort
SELECT ALL - ( ( 86 ) ) AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9697
SELECT + SUM( DISTINCT - ( - 83 ) ) DIV + COUNT( * ) * - COUNT( * ) AS col0, - 64 * + 54
----
-83
-3456

skipif mysql # not compatible
query II rowsort label-9697
SELECT + SUM ( DISTINCT - ( - 83 ) ) / + COUNT ( * ) * - COUNT ( * ) AS col0, - 64 * + 54
----
-83
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + 31 + - CASE - 99 WHEN + - 96 THEN - + 88 + + 7 + - 6 + + - MAX( ALL + 85 ) * + COUNT( * ) * + COALESCE ( 84, AVG ( DISTINCT + 49 ) ) WHEN COUNT( * ) + + 13 THEN NULL END * AVG ( ALL - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT + 31 + - CASE - 99 WHEN + - 96 THEN - + 88 + + 7 + - 6 + + - MAX ( ALL + 85 ) * + COUNT ( * ) * + COALESCE ( 84, AVG ( DISTINCT + 49 ) ) WHEN COUNT ( * ) + + 13 THEN NULL END * AVG ( ALL - 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT - COUNT( * ) * + MAX( - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-9699
SELECT - COUNT ( * ) * + MAX ( - 11 )
----
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9700
SELECT COALESCE ( 65, + - 17, - 75 * + 47 + + 39 * + 96 DIV - CAST( + + 62 AS SIGNED ) )
----
65

skipif mysql # not compatible
query I rowsort label-9700
SELECT COALESCE ( 65, + - 17, - 75 * + 47 + + 39 * + 96 / - CAST ( + + 62 AS INTEGER ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL + CASE + COUNT( * ) WHEN + 8 + - + 17 THEN NULL WHEN + ( + - 45 ) THEN 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + CASE + COUNT ( * ) WHEN + 8 + - + 17 THEN NULL WHEN + ( + - 45 ) THEN 98 END AS col0
----
NULL

query I rowsort
SELECT 60 * - ( + 26 ) + 10 * - 21 col1
----
-1770

query I rowsort
SELECT + 5 * + - ( + 4 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9704
SELECT - 95 * + - 47 * CAST( NULL AS SIGNED ) * + 91 + + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT - 95 * + - 47 * CAST ( NULL AS INTEGER ) * + 91 + + 63 AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + + 74, - 48 ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9706
SELECT DISTINCT - 39 * + 68 + + 68, + COALESCE ( - 32, - - COUNT( * ) - + 4, + + 15 DIV + 57 + - - 78 ) AS col1
----
-2584
-32

skipif mysql # not compatible
query II rowsort label-9706
SELECT DISTINCT - 39 * + 68 + + 68, + COALESCE ( - 32, - - COUNT ( * ) - + 4, + + 15 / + 57 + - - 78 ) AS col1
----
-2584
-32

query I rowsort
SELECT ALL + ( - 93 ) * + 48 AS col2
----
-4464

query I rowsort
SELECT - 75 + + + 73
----
-2

query I rowsort
SELECT 97 * 86 + + 29 - + 77 AS col0
----
8294

query II rowsort
SELECT + NULLIF ( + + 31, - 88 ), 77 AS col2
----
31
77

query I rowsort
SELECT - 68 + - 61 - - 12 * + 43 * - 49
----
-25413

onlyif mysql # DIV for integer division: 
query I rowsort label-9712
SELECT + 39 DIV - 24 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9712
SELECT + 39 / - 24 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9713
SELECT 61 * + 75 + MIN( ALL - 80 ) DIV + 52 AS col2
----
4574

skipif mysql # not compatible
query I rowsort label-9713
SELECT 61 * + 75 + MIN ( ALL - 80 ) / + 52 AS col2
----
4574

query I rowsort
SELECT ALL 81 * - ( 31 ) - 89
----
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - COUNT( * ) * 4
----
-4

skipif mysql # not compatible
query I rowsort label-9715
SELECT - COUNT ( * ) * 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL + 45 * - COUNT( * ) - 4 * 31
----
-169

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + 45 * - COUNT ( * ) - 4 * 31
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9717
SELECT - 46 * - + 47 * CASE ( + ( - + CAST( NULL AS SIGNED ) ) ) WHEN - - 96 THEN COUNT( ALL - 99 ) DIV + MIN( 62 ) WHEN - 53 THEN COUNT( * ) WHEN 11 DIV 74 - ( CAST( NULL AS SIGNED ) ) THEN 92 * 31 ELSE 65 END
----
140530

skipif mysql # not compatible
query I rowsort label-9717
SELECT - 46 * - + 47 * CASE ( + ( - + CAST ( NULL AS INTEGER ) ) ) WHEN - - 96 THEN COUNT ( ALL - 99 ) / + MIN ( 62 ) WHEN - 53 THEN COUNT ( * ) WHEN 11 / 74 - ( CAST ( NULL AS INTEGER ) ) THEN 92 * 31 ELSE 65 END
----
140530

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT - 90 * 60 DIV 48
----
-112

skipif mysql # not compatible
query I rowsort label-9718
SELECT - 90 * 60 / 48
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT - MIN( 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9719
SELECT - MIN ( 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT DISTINCT + MIN( CASE 12 WHEN - + 11 THEN NULL WHEN 81 THEN 38 * - 55 * + 97 * - 94 WHEN 74 THEN NULL END ) * 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT + MIN ( CASE 12 WHEN - + 11 THEN NULL WHEN 81 THEN 38 * - 55 * + 97 * - 94 WHEN 74 THEN NULL END ) * 6 AS col1
----
NULL

query I rowsort
SELECT - + 44 * - 80 + - 13
----
3507

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL + + COUNT( * ) * 37
----
37

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + + COUNT ( * ) * 37
----
37

query I rowsort
SELECT DISTINCT + 5 * + + 35 * + 42 + 22
----
7372

query I rowsort
SELECT - - ( + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT + CASE + - 32 WHEN - COUNT( * ) + + 45 * 3 THEN NULL WHEN - 67 THEN 60 * COUNT( * ) - + COUNT( * ) + + + 34 WHEN - 64 THEN NULL END + 35 / 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT + CASE + - 32 WHEN - COUNT ( * ) + + 45 * 3 THEN NULL WHEN - 67 THEN 60 * COUNT ( * ) - + COUNT ( * ) + + + 34 WHEN - 64 THEN NULL END + 35 / 50 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT - 19 - - + 56 + - + 32 DIV + 24 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9726
SELECT - 19 - - + 56 + - + 32 / + 24 AS col1
----
36

query I rowsort
SELECT - - 17 * + 90 * - + 45 AS col0
----
-68850

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL ( - 70 ) + - 45 + + + COUNT( * ) AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL ( - 70 ) + - 45 + + + COUNT ( * ) AS col1
----
-114

query I rowsort
SELECT ALL + 28 + - 66
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9730
SELECT + 22 * - + 88 * + ( - COUNT( * ) ) * + CAST( - 50 AS SIGNED ) + - 4 AS col0
----
-96804

skipif mysql # not compatible
query I rowsort label-9730
SELECT + 22 * - + 88 * + ( - COUNT ( * ) ) * + CAST ( - 50 AS INTEGER ) + - 4 AS col0
----
-96804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9731
SELECT CAST( + + ( MIN( DISTINCT 49 ) ) AS SIGNED ) AS col1, 64
----
49
64

skipif mysql # not compatible
query II rowsort label-9731
SELECT CAST ( + + ( MIN ( DISTINCT 49 ) ) AS INTEGER ) AS col1, 64
----
49
64

query I rowsort
SELECT + 63 * + + CASE 98 WHEN - 3 THEN NULL WHEN + 88 THEN NULL WHEN + 63 * + - 83 / - ( - - 14 ) THEN 1 + - COALESCE ( + 40, 37 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9733
SELECT + CAST( ( 27 ) AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9733
SELECT + CAST ( ( 27 ) AS INTEGER ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9734
SELECT DISTINCT + 80 AS col1, + MAX( - 47 )
----
80
-47

skipif mysql # not compatible
query II rowsort label-9734
SELECT DISTINCT + 80 AS col1, + MAX ( - 47 )
----
80
-47

query II rowsort
SELECT ALL + 84, 16 + 14 col0
----
84
30

query I rowsort
SELECT + ( - - 8 )
----
8

query II rowsort
SELECT + 33 * - 89 * + 7 * - ( + - 98 ) * - 86 col0, + 48 col2
----
173271252
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9738
SELECT ALL + 74 col2, - CAST( + 24 AS SIGNED ) + 17 * + + 79 AS col0
----
74
1319

skipif mysql # not compatible
query II rowsort label-9738
SELECT ALL + 74 col2, - CAST ( + 24 AS INTEGER ) + 17 * + + 79 AS col0
----
74
1319

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT + 9 - 39 + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-9739
SELECT + 9 - 39 + + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9740
SELECT DISTINCT + 86, - 94 DIV + 86 + + MAX( DISTINCT 18 ) * 7 AS col0
----
86
125

skipif mysql # not compatible
query II rowsort label-9740
SELECT DISTINCT + 86, - 94 / + 86 + + MAX ( DISTINCT 18 ) * 7 AS col0
----
86
125

query I rowsort
SELECT DISTINCT + 48 * - + 97
----
-4656

query I rowsort
SELECT DISTINCT 26 * - + 41 * + - ( - 6 )
----
-6396

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT - + 34 DIV + ( + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT - + 34 / + ( + 99 )
----
0

query I rowsort
SELECT ALL - 28 * - - 22 - + - 45 AS col2
----
-571

query I rowsort
SELECT + - 64 + 54
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-9746
SELECT - 65 AS col2, 77 DIV 67
----
-65
1

skipif mysql # not compatible
query II rowsort label-9746
SELECT - 65 AS col2, 77 / 67
----
-65
1

query I rowsort
SELECT + 10 * 13 + + - 53 + + 16 AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9748
SELECT ALL - 59, COUNT( * ) col0
----
-59
1

skipif mysql # not compatible
query II rowsort label-9748
SELECT ALL - 59, COUNT ( * ) col0
----
-59
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9749
SELECT - 10 DIV + + 14 * - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT - 10 / + + 14 * - 58 AS col0
----
0

query I rowsort
SELECT ALL 80 * + + 71 + 25 + + 9 * 72
----
6353

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT ALL - COUNT( + 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL - COUNT ( + 65 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9752
SELECT 49 + - + 91 + + CAST( + 99 AS SIGNED ), 91 * + ( - - 61 ) AS col0
----
57
5551

skipif mysql # not compatible
query II rowsort label-9752
SELECT 49 + - + 91 + + CAST ( + 99 AS INTEGER ), 91 * + ( - - 61 ) AS col0
----
57
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT - 37 + COUNT( * ) + + - 64 + 91 * + 93 * + 86 + + + CASE - 0 WHEN 29 THEN + 57 END * + 15 * - NULLIF ( - 69 / COUNT( * ), 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT - 37 + COUNT ( * ) + + - 64 + 91 * + 93 * + 86 + + + CASE - 0 WHEN 29 THEN + 57 END * + 15 * - NULLIF ( - 69 / COUNT ( * ), 81 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9754
SELECT + 46 DIV COUNT( * ) + + MAX( - + 5 ) + - - CASE + + 47 WHEN + 94 * - - 80 + - 84 THEN NULL ELSE - SUM( ALL + 0 ) * - 32 + - 63 END * - 70 AS col2
----
4451

skipif mysql # not compatible
query I rowsort label-9754
SELECT + 46 / COUNT ( * ) + + MAX ( - + 5 ) + - - CASE + + 47 WHEN + 94 * - - 80 + - 84 THEN NULL ELSE - SUM ( ALL + 0 ) * - 32 + - 63 END * - 70 AS col2
----
4451

query I rowsort
SELECT 41 + - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL + MAX( - + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL + MAX ( - + 12 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9757
SELECT DISTINCT - - 51 DIV - MAX( + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT - - 51 / - MAX ( + 93 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9758
SELECT ALL + 27 + + + 53 DIV - 55 * + CASE + 85 WHEN - + 72 THEN - 26 + + CAST( 51 AS SIGNED ) WHEN - ( + - 92 ) * + 26 THEN - ( - 37 ) ELSE 90 + 3 END
----
27

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL + 27 + + + 53 / - 55 * + CASE + 85 WHEN - + 72 THEN - 26 + + CAST ( 51 AS INTEGER ) WHEN - ( + - 92 ) * + 26 THEN - ( - 37 ) ELSE 90 + 3 END
----
27

query I rowsort
SELECT + 87 + COALESCE ( + + 68, + 74 ) + - 64 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9760
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 96 AS col1
----
NULL

query I rowsort
SELECT ALL + 60 + 0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-9762
SELECT ALL + 54 AS col2, - 4 * + CASE + + ( + + 82 ) WHEN MIN( DISTINCT - 96 ) THEN - AVG ( DISTINCT + 14 ) * - 17 WHEN 81 THEN 92 WHEN - 71 THEN NULL END
----
54
NULL

skipif mysql # not compatible
query II rowsort label-9762
SELECT ALL + 54 AS col2, - 4 * + CASE + + ( + + 82 ) WHEN MIN ( DISTINCT - 96 ) THEN - AVG ( DISTINCT + 14 ) * - 17 WHEN 81 THEN 92 WHEN - 71 THEN NULL END
----
54
NULL

query II rowsort
SELECT DISTINCT + 33 + + 75 + - 42 * + 46, 3 AS col1
----
-1824
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9764
SELECT ALL - 24 + + 35 - + 31 * - 47 * + COUNT( - 40 ) + + CAST( + COUNT( * ) AS SIGNED ) * - 24
----
1444

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL - 24 + + 35 - + 31 * - 47 * + COUNT ( - 40 ) + + CAST ( + COUNT ( * ) AS INTEGER ) * - 24
----
1444

query I rowsort
SELECT ALL 87 + ( 5 ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9766
SELECT 10 + - + CAST( NULL AS SIGNED ) * - COUNT( DISTINCT NULLIF ( + 28, + 2 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT 10 + - + CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT NULLIF ( + 28, + 2 ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT 45 - - CAST( - 70 AS SIGNED ) - 34 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9767
SELECT 45 - - CAST ( - 70 AS INTEGER ) - 34 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT 19 + + 71 * + + 31 + + - MIN( - 39 ) + - NULLIF ( 9, + - NULLIF ( + 11, 49 ) ) * + SUM( - 20 )
----
2439

skipif mysql # not compatible
query I rowsort label-9768
SELECT 19 + + 71 * + + 31 + + - MIN ( - 39 ) + - NULLIF ( 9, + - NULLIF ( + 11, 49 ) ) * + SUM ( - 20 )
----
2439

query I rowsort
SELECT 58 * - 66 * - 55
----
210540

query I rowsort
SELECT 34 * + 46 * + + 49 + + + 46 AS col1
----
76682

query I rowsort
SELECT ALL 27 - + 91 AS col1
----
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-9772
SELECT DISTINCT - 88 DIV - - 92 AS col2, - 72 AS col1
----
0
-72

skipif mysql # not compatible
query II rowsort label-9772
SELECT DISTINCT - 88 / - - 92 AS col2, - 72 AS col1
----
0
-72

query I rowsort
SELECT ( 51 ) * 25 AS col0
----
1275

query I rowsort
SELECT DISTINCT 85 * - 69 col0
----
-5865

onlyif mysql # aggregate syntax: 
query II rowsort label-9775
SELECT - COUNT( DISTINCT - - 66 ) AS col1, - 53 + + ( + + 89 ) col0
----
-1
36

skipif mysql # not compatible
query II rowsort label-9775
SELECT - COUNT ( DISTINCT - - 66 ) AS col1, - 53 + + ( + + 89 ) col0
----
-1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT + COUNT( * ) * - MAX( - - 3 ) + 41
----
38

skipif mysql # not compatible
query I rowsort label-9776
SELECT + COUNT ( * ) * - MAX ( - - 3 ) + 41
----
38

query I rowsort
SELECT 25 * + 10 * 53
----
13250

query I rowsort
SELECT 84 + - + 57
----
27

query I rowsort
SELECT ALL - COALESCE ( 38, + 42 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT ALL + - MAX( 2 ) + ( - 13 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL + - MAX ( 2 ) + ( - 13 ) AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT ALL - COALESCE ( - - 45, - 29 DIV 54 + 64 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL - COALESCE ( - - 45, - 29 / 54 + 64 ) AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT ALL COALESCE ( - - 54, - COUNT( * ) * 97, - - COUNT( * ), 1 ) + NULLIF ( - + 90, - 22 ) + - 94 + 76 * - 18 * - CAST( COUNT( * ) / 10 AS SIGNED )
----
-130

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL COALESCE ( - - 54, - COUNT ( * ) * 97, - - COUNT ( * ), 1 ) + NULLIF ( - + 90, - 22 ) + - 94 + 76 * - 18 * - CAST ( COUNT ( * ) / 10 AS INTEGER )
----
-130

query I rowsort
SELECT ALL + 97 + - 31 AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9784
SELECT + CAST( + 63 AS SIGNED ) * + 38 - - 0 - + CAST( - - 51 AS SIGNED ) * + 28 - - 73
----
1039

skipif mysql # not compatible
query I rowsort label-9784
SELECT + CAST ( + 63 AS INTEGER ) * + 38 - - 0 - + CAST ( - - 51 AS INTEGER ) * + 28 - - 73
----
1039

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT DISTINCT - 23 + 73 DIV 22
----
-20

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT - 23 + 73 / 22
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9786
SELECT + COUNT( * ) * + COALESCE ( + COUNT( * ), 19 - - 85, + 59 DIV - 23 + + 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9786
SELECT + COUNT ( * ) * + COALESCE ( + COUNT ( * ), 19 - - 85, + 59 / - 23 + + 63 ) AS col2
----
1

query II rowsort
SELECT ( + 61 ) AS col1, - 57
----
61
-57

query I rowsort
SELECT ALL + 31 + - + 85
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT DISTINCT 98 + + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) + 49 + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT 98 + + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + 49 + 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9790
SELECT DISTINCT + 4 + 26 + - - 66 DIV + - 64 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + 4 + 26 + - - 66 / + - 64 AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9791
SELECT ALL - 40 DIV - 92 DIV + COUNT( * ) * - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL - 40 / - 92 / + COUNT ( * ) * - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 43 + + - 86
----
-43

query II rowsort
SELECT DISTINCT - 29 + 13 + - 21, - 95 AS col0
----
-37
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9794
SELECT DISTINCT COUNT( * ) DIV - MAX( ALL - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT COUNT ( * ) / - MAX ( ALL - 42 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT DISTINCT + 92 - - + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT + 92 - - + COUNT ( * )
----
93

query I rowsort
SELECT NULLIF ( + + 19, - 46 ) * - 16 + + 23 AS col0
----
-281

query I rowsort
SELECT 39 * - + 21 AS col1
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT DISTINCT - 11 - - - MAX( DISTINCT 8 )
----
-19

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT - 11 - - - MAX ( DISTINCT 8 )
----
-19

query I rowsort
SELECT 13 + + 41
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT DISTINCT COUNT( ALL + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT COUNT ( ALL + 51 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL - 75 * 45 * COUNT( * ) AS col0
----
-3375

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL - 75 * 45 * COUNT ( * ) AS col0
----
-3375

query I rowsort
SELECT 38 * - 5 AS col2
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT ALL - CAST( NULL AS SIGNED ) * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL - CAST ( NULL AS INTEGER ) * - 45
----
NULL

query I rowsort
SELECT DISTINCT - 93 - - 28 AS col0
----
-65

query I rowsort
SELECT COALESCE ( + 41, CASE + 56 WHEN - 77 THEN NULL WHEN - 28 - 46 - - - 45 - + + 88 * + 39 THEN 1 + + - 14 END, - 50 ) AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT ALL - CASE + 44 WHEN + ( + CAST( NULL AS SIGNED ) ) THEN + + 43 WHEN 47 * 8 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL - CASE + 44 WHEN + ( + CAST ( NULL AS INTEGER ) ) THEN + + 43 WHEN 47 * 8 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( COALESCE ( 47, - 57 ) ) AS col2
----
-47

query I rowsort
SELECT 35 - - 22 AS col0
----
57

query II rowsort
SELECT COALESCE ( - 29, 82 ) AS col0, 39
----
-29
39

query I rowsort
SELECT ALL - ( + 51 ) AS col1
----
-51

query I rowsort
SELECT 83 * 26 AS col1
----
2158

query I rowsort
SELECT 54 * - 55
----
-2970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9813
SELECT ALL - 31 DIV MIN( ALL + - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - 31 / MIN ( ALL + - 74 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9814
SELECT - 83 DIV - + ( + - 85 ) + + COUNT( ALL 20 )
----
1

skipif mysql # not compatible
query I rowsort label-9814
SELECT - 83 / - + ( + - 85 ) + + COUNT ( ALL 20 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9815
SELECT ALL + 39 * - 92 * - - 11 - 29 + - + 68 + + MIN( DISTINCT 77 ) + 76 AS col2, + 87, 47 * 64 * - + CAST( + + 8 AS SIGNED ) * 93 + - 88 - 0 AS col0
----
-39412
87
-2238040

skipif mysql # not compatible
query III rowsort label-9815
SELECT ALL + 39 * - 92 * - - 11 - 29 + - + 68 + + MIN ( DISTINCT 77 ) + 76 AS col2, + 87, 47 * 64 * - + CAST ( + + 8 AS INTEGER ) * 93 + - 88 - 0 AS col0
----
-39412
87
-2238040

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL + - COUNT( * ) * - - 81 - + 38 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + - COUNT ( * ) * - - 81 - + 38 AS col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL + MAX( ALL - 7 ) * - 52 + - + COUNT( * ) AS col0
----
363

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL + MAX ( ALL - 7 ) * - 52 + - + COUNT ( * ) AS col0
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT DISTINCT CASE WHEN NULL IS NULL THEN 98 ELSE + - 90 * - + COUNT( DISTINCT - - 64 ) - - 4 * - + 92 END * - COUNT( * ) * 99 * - 93 + CASE + + 0 WHEN 12 THEN + 58 + - 21 ELSE COUNT( * ) * - 83 END + + 76 * 45 + - 0
----
905623

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT CASE WHEN NULL IS NULL THEN 98 ELSE + - 90 * - + COUNT ( DISTINCT - - 64 ) - - 4 * - + 92 END * - COUNT ( * ) * 99 * - 93 + CASE + + 0 WHEN 12 THEN + 58 + - 21 ELSE COUNT ( * ) * - 83 END + + 76 * 45 + - 0
----
905623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9819
SELECT - 59 + - + 0 + + - COUNT( * ) DIV + - 74 * + COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9819
SELECT - 59 + - + 0 + + - COUNT ( * ) / + - 74 * + COUNT ( * ) AS col1
----
-59

query I rowsort
SELECT + - 32 * - 4 AS col2
----
128

query I rowsort
SELECT ALL - 46 * 78 + - + 10 + + 11 * + 25 AS col2
----
-3323

query I rowsort
SELECT + + 81 * 8 + + 24 + - 13
----
659

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT + 55 - + 16 + + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9823
SELECT + 55 - + 16 + + COUNT ( * ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT + SUM( ALL ( + + 89 ) ) * - NULLIF ( + NULLIF ( - 49, - 2 ), + ( 39 ) )
----
4361

skipif mysql # not compatible
query I rowsort label-9824
SELECT + SUM ( ALL ( + + 89 ) ) * - NULLIF ( + NULLIF ( - 49, - 2 ), + ( 39 ) )
----
4361

query I rowsort
SELECT DISTINCT 87 + - + 34 AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9826
SELECT ALL + COUNT( * ) AS col1, + 75
----
1
75

skipif mysql # not compatible
query II rowsort label-9826
SELECT ALL + COUNT ( * ) AS col1, + 75
----
1
75

query II rowsort
SELECT ALL + COALESCE ( - - 38, - 78 + + - 7 + 12 ) * - - 69 AS col0, - 84 + - 62 AS col2
----
2622
-146

query I rowsort
SELECT + + 5 + - 94 * 23 AS col2
----
-2157

query I rowsort
SELECT ALL + 0 - + - 2 AS col2
----
2

query I rowsort
SELECT ALL 14 * - ( + 83 ) col2
----
-1162

onlyif mysql # aggregate syntax: 
query II rowsort label-9831
SELECT 10 col0, COUNT( * ) + COUNT( * )
----
10
2

skipif mysql # not compatible
query II rowsort label-9831
SELECT 10 col0, COUNT ( * ) + COUNT ( * )
----
10
2

query I rowsort
SELECT + 64 + - 54 * + 66 col1
----
-3500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9833
SELECT - NULLIF ( 90, + CAST( SUM( ALL - + 20 ) AS SIGNED ) * + 42 - + ( 4 ) + + CASE - 92 WHEN + 31 * - 26 THEN 7 WHEN - SUM( DISTINCT + CAST( 23 AS SIGNED ) ) + 31 * - COUNT( * ) THEN NULL ELSE NULL END )
----
-90

skipif mysql # not compatible
query I rowsort label-9833
SELECT - NULLIF ( 90, + CAST ( SUM ( ALL - + 20 ) AS INTEGER ) * + 42 - + ( 4 ) + + CASE - 92 WHEN + 31 * - 26 THEN 7 WHEN - SUM ( DISTINCT + CAST ( 23 AS INTEGER ) ) + 31 * - COUNT ( * ) THEN NULL ELSE NULL END )
----
-90

query I rowsort
SELECT - NULLIF ( 73, - - 50 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL SUM( - + 15 ) * - MAX( ALL - 9 ) * - 41 + 58 + 21 + + - 40 * + 33 + + + ( + 35 ) * + SUM( DISTINCT + + 78 )
----
7024

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL SUM ( - + 15 ) * - MAX ( ALL - 9 ) * - 41 + 58 + 21 + + - 40 * + 33 + + + ( + 35 ) * + SUM ( DISTINCT + + 78 )
----
7024

query I rowsort
SELECT + 92 * + 46 AS col1
----
4232

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT - 86 + + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-9837
SELECT - 86 + + COUNT ( * )
----
-85

query I rowsort
SELECT DISTINCT NULLIF ( - 16, + 61 )
----
-16

query I rowsort
SELECT - CASE + 24 WHEN - ( - 47 ) THEN + + 4 * - 54 END * + 90 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9840
SELECT ALL CAST( + 40 AS SIGNED ) DIV + 64 col1
----
0

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL CAST ( + 40 AS INTEGER ) / + 64 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9841
SELECT + 32 * COUNT( * ) AS col2, + 56 + - COUNT( * ) col1
----
32
55

skipif mysql # not compatible
query II rowsort label-9841
SELECT + 32 * COUNT ( * ) AS col2, + 56 + - COUNT ( * ) col1
----
32
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9842
SELECT - 56 - - 60 * + + 87 + + 85 AS col2, + CAST( 11 AS SIGNED ) * - COUNT( - - CAST( NULL AS DECIMAL ) ) + - COUNT( * ) + COUNT( * )
----
5249
0

skipif mysql # not compatible
query II rowsort label-9842
SELECT - 56 - - 60 * + + 87 + + 85 AS col2, + CAST ( 11 AS INTEGER ) * - COUNT ( - - CAST ( NULL AS REAL ) ) + - COUNT ( * ) + COUNT ( * )
----
5249
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9843
SELECT + 64 DIV COALESCE ( + 72, - 1 DIV + 48 * 31 + + COUNT( * ) + + + COUNT( * ) * + 51 * - 59 * + - 83 DIV + - COUNT( * ) ) - - 93
----
93

skipif mysql # not compatible
query I rowsort label-9843
SELECT + 64 / COALESCE ( + 72, - 1 / + 48 * 31 + + COUNT ( * ) + + + COUNT ( * ) * + 51 * - 59 * + - 83 / + - COUNT ( * ) ) - - 93
----
93

query I rowsort
SELECT ALL + 99 * - 43 AS col1
----
-4257

query I rowsort
SELECT - 2 * + 14 * + 25 * - 30 AS col1
----
21000

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT - COUNT( * ) * + + CASE + - 46 WHEN - 49 * + COUNT( * ) + + 22 * - - 22 * 7 THEN NULL WHEN - 12 + - + 21 THEN NULL WHEN - 32 + 53 + COUNT( * ) + - + 87 + NULLIF ( 39, - 67 - 62 ) * 59 * + 24 THEN + MIN( ALL 99 ) ELSE 1 - - 81 END AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9846
SELECT - COUNT ( * ) * + + CASE + - 46 WHEN - 49 * + COUNT ( * ) + + 22 * - - 22 * 7 THEN NULL WHEN - 12 + - + 21 THEN NULL WHEN - 32 + 53 + COUNT ( * ) + - + 87 + NULLIF ( 39, - 67 - 62 ) * 59 * + 24 THEN + MIN ( ALL 99 ) ELSE 1 - - 81 END AS col1
----
-82

query I rowsort
SELECT DISTINCT - 26 * 39
----
-1014

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT ALL 86 DIV 25 + + 27 + + + 4 * + - 32 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL 86 / 25 + + 27 + + + 4 * + - 32 AS col0
----
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-9849
SELECT ALL - - 7 * + 78 DIV + 1 + 41 col0, 99 - - - 79
----
587
20

skipif mysql # not compatible
query II rowsort label-9849
SELECT ALL - - 7 * + 78 / + 1 + 41 col0, 99 - - - 79
----
587
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL COALESCE ( - 92, 88 ) * 31 + - MIN( ALL + 25 ) * - + CASE + + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE + - 64 * + - 42 / - MIN( 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL COALESCE ( - 92, 88 ) * 31 + - MIN ( ALL + 25 ) * - + CASE + + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE + - 64 * + - 42 / - MIN ( 92 ) END
----
NULL

query I rowsort
SELECT - 56 * + 26 col1
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT + 2 * - + 56 * 32 * - 0 * + + MAX( DISTINCT + 8 ) + - 63 col1
----
-63

skipif mysql # not compatible
query I rowsort label-9852
SELECT + 2 * - + 56 * 32 * - 0 * + + MAX ( DISTINCT + 8 ) + - 63 col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL + ( SUM( ALL + ( 50 ) ) )
----
50

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + ( SUM ( ALL + ( 50 ) ) )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT DISTINCT + - 31 DIV - ( 62 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT + - 31 / - ( 62 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT 52 * COUNT( 82 ) * 29 * + + 42 + + NULLIF ( - 99, + 74 * + + 85 * + 95 * ( + - 13 ) - + + MAX( - 39 ) )
----
63237

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT 52 * COUNT ( 82 ) * 29 * + + 42 + + NULLIF ( - 99, + 74 * + + 85 * + 95 * ( + - 13 ) - + + MAX ( - 39 ) )
----
63237

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT ALL + 98 * - 75 * + 56 * + 88 - + + 64 + NULLIF ( - + COUNT( * ), - 33 + + - COUNT( * ) + - 47 ) * + ( + COUNT( * ) ) - + 43 - SUM( ALL 36 ) * + 17 AS col1
----
-36221520

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL + 98 * - 75 * + 56 * + 88 - + + 64 + NULLIF ( - + COUNT ( * ), - 33 + + - COUNT ( * ) + - 47 ) * + ( + COUNT ( * ) ) - + 43 - SUM ( ALL 36 ) * + 17 AS col1
----
-36221520

query I rowsort
SELECT DISTINCT + 45 * ( + 62 ) AS col1
----
2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9858
SELECT + COUNT( * ) DIV - 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT + COUNT ( * ) / - 11 AS col0
----
0

query I rowsort
SELECT DISTINCT + + 89 * - ( 10 ) AS col1
----
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - 69 * - COUNT( * ) - + - 7 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - 69 * - COUNT ( * ) - + - 7 AS col2
----
76

query I rowsort
SELECT - 73 - 1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT + + 68 DIV 4 + 22 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9862
SELECT + + 68 / 4 + 22 AS col1
----
39

query II rowsort
SELECT ALL 94 AS col2, - 49
----
94
-49

query I rowsort
SELECT - 40 * - 17
----
680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT DISTINCT CAST( 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT CAST ( 1 AS INTEGER )
----
1

query I rowsort
SELECT + 10 + 72 col2
----
82

query III rowsort
SELECT ALL 59 col0, 40 * - 29, + 57 AS col0
----
59
-1160
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9868
SELECT ALL NULLIF ( - CASE 95 WHEN 69 + - 31 + - 37 * - + COUNT( * ) THEN ( - - 74 ) * COUNT( CAST( + CAST( - 76 AS SIGNED ) AS SIGNED ) ) ELSE NULL END, 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL NULLIF ( - CASE 95 WHEN 69 + - 31 + - 37 * - + COUNT ( * ) THEN ( - - 74 ) * COUNT ( CAST ( + CAST ( - 76 AS INTEGER ) AS INTEGER ) ) ELSE NULL END, 86 ) AS col2
----
NULL

query I rowsort
SELECT ALL 27 * + 3 AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9870
SELECT - CASE + 16 WHEN + ( - COALESCE ( + 43, - 79 ) ) THEN 20 - ( + CAST( 38 AS SIGNED ) ) + 96 WHEN + 59 THEN 65 END, ( - - 18 ) AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-9870
SELECT - CASE + 16 WHEN + ( - COALESCE ( + 43, - 79 ) ) THEN 20 - ( + CAST ( 38 AS INTEGER ) ) + 96 WHEN + 59 THEN 65 END, ( - - 18 ) AS col1
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT + COALESCE ( 35, 15 ) * + MIN( + - 65 ) + CASE - - 0 WHEN + 49 * 89 + + COUNT( ALL + + 45 ) THEN - 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT + COALESCE ( 35, 15 ) * + MIN ( + - 65 ) + CASE - - 0 WHEN + 49 * 89 + + COUNT ( ALL + + 45 ) THEN - 60 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9872
SELECT + ( + 18 ) + + SUM( 37 ) + + - 27 * 75 DIV + COUNT( * )
----
-1970

skipif mysql # not compatible
query I rowsort label-9872
SELECT + ( + 18 ) + + SUM ( 37 ) + + - 27 * 75 / + COUNT ( * )
----
-1970

query I rowsort
SELECT DISTINCT 62 * 77
----
4774

query I rowsort
SELECT 89 + + 75 + 41 * + 77 AS col0
----
3321

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT 92 - + 67 * + 21 * + + COUNT( * ) * + 35 col1
----
-49153

skipif mysql # not compatible
query I rowsort label-9875
SELECT 92 - + 67 * + 21 * + + COUNT ( * ) * + 35 col1
----
-49153

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT 99 + - CASE - 23 WHEN + 81 THEN NULL WHEN 38 THEN NULL WHEN + - 71 THEN - COUNT( * ) + 4 / - - 74 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT 99 + - CASE - 23 WHEN + 81 THEN NULL WHEN 38 THEN NULL WHEN + - 71 THEN - COUNT ( * ) + 4 / - - 74 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL COUNT( * ) + + 18
----
19

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL COUNT ( * ) + + 18
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL - COUNT( * ) + + 85
----
84

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - COUNT ( * ) + + 85
----
84

query II rowsort
SELECT 87, 87
----
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT DISTINCT 20 + + ( + COUNT( * ) ) * 28
----
48

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT 20 + + ( + COUNT ( * ) ) * 28
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-9881
SELECT ALL + + 34 DIV - + ( 62 ) AS col0, 21
----
0
21

skipif mysql # not compatible
query II rowsort label-9881
SELECT ALL + + 34 / - + ( 62 ) AS col0, 21
----
0
21

query I rowsort
SELECT - 88 * + + 6 col2
----
-528

onlyif mysql # aggregate syntax: 
query II rowsort label-9883
SELECT ALL - MIN( + + 96 ) + + + 74, 52 AS col2
----
-22
52

skipif mysql # not compatible
query II rowsort label-9883
SELECT ALL - MIN ( + + 96 ) + + + 74, 52 AS col2
----
-22
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT - COUNT( ALL 99 ) * + - 58 + - COUNT( * ) - - 36 * + COUNT( * ) - - + 25 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-9884
SELECT - COUNT ( ALL 99 ) * + - 58 + - COUNT ( * ) - - 36 * + COUNT ( * ) - - + 25 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ( + 48 ) * - + COUNT( * ) * + 87
----
-4176

skipif mysql # not compatible
query I rowsort label-9885
SELECT ( + 48 ) * - + COUNT ( * ) * + 87
----
-4176

query II rowsort
SELECT + 46, 12 col2
----
46
12

query I rowsort
SELECT DISTINCT + - 29 * + - 60 + 93
----
1833

query I rowsort
SELECT ALL - - 67 - + + 47 AS col0
----
20

query I rowsort
SELECT ALL + 44 * - 24 * - + 0 * - - 68 AS col2
----
0

query I rowsort
SELECT ALL - - ( CASE + 84 WHEN ( + 15 ) THEN - - 43 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9891
SELECT CASE + CASE 31 WHEN - 2 THEN - NULLIF ( - CAST( NULL AS SIGNED ), + 36 * + - 92 + + 56 + 20 ) END WHEN - 56 THEN NULL WHEN + MIN( - 51 ) THEN + COUNT( * ) * + + ( - 97 ) - MAX( ALL 86 + - 24 ) + 4 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT CASE + CASE 31 WHEN - 2 THEN - NULLIF ( - CAST ( NULL AS INTEGER ), + 36 * + - 92 + + 56 + 20 ) END WHEN - 56 THEN NULL WHEN + MIN ( - 51 ) THEN + COUNT ( * ) * + + ( - 97 ) - MAX ( ALL 86 + - 24 ) + 4 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + 70 + - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9892
SELECT + 70 + - - COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT 87 - + - 45 * - - 62 / AVG ( ALL - CAST( NULL AS SIGNED ) ) - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT 87 - + - 45 * - - 62 / AVG ( ALL - CAST ( NULL AS INTEGER ) ) - 97
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9894
SELECT COUNT( * ) col2, + 61 AS col1
----
1
61

skipif mysql # not compatible
query II rowsort label-9894
SELECT COUNT ( * ) col2, + 61 AS col1
----
1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT + 54 - + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9895
SELECT + 54 - + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT DISTINCT + 34 * + 47
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL 63 * COUNT( * ) * - 23
----
-1449

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL 63 * COUNT ( * ) * - 23
----
-1449

query I rowsort
SELECT 48 + - 50 * 86
----
-4252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT ALL - ( + 64 ) DIV COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL - ( + 64 ) / COUNT ( * )
----
-64

query I rowsort
SELECT 54 * + ( - 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 7
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9902
SELECT 48 AS col0, - COUNT( ALL 35 ) + - 16
----
48
-17

skipif mysql # not compatible
query II rowsort label-9902
SELECT 48 AS col0, - COUNT ( ALL 35 ) + - 16
----
48
-17

query I rowsort
SELECT ALL + ( + + 98 ) + 39
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL - 16 * - + COALESCE ( 68, 66 * + COALESCE ( - - MAX( DISTINCT - + 67 ), - 0 ) )
----
1088

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL - 16 * - + COALESCE ( 68, 66 * + COALESCE ( - - MAX ( DISTINCT - + 67 ), - 0 ) )
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT 44 + - 2 - COUNT( * ) * 34 * + - 30 AS col1
----
1062

skipif mysql # not compatible
query I rowsort label-9905
SELECT 44 + - 2 - COUNT ( * ) * 34 * + - 30 AS col1
----
1062

query II rowsort
SELECT DISTINCT 18, - 0 * 64 AS col2
----
18
0

query I rowsort
SELECT 54 + - 64 AS col2
----
-10

query I rowsort
SELECT 92 + - - 18
----
110

query I rowsort
SELECT ALL 15 + - 21 AS col0
----
-6

query II rowsort
SELECT ALL 80, - 73 AS col2
----
80
-73

query II rowsort
SELECT ALL 35, - 25 AS col1
----
35
-25

query I rowsort
SELECT ALL - 72 + - 45 AS col0
----
-117

query I rowsort
SELECT ALL ( CASE WHEN NOT CASE 98 WHEN - - 62 + + 72 THEN + 16 + - - 3 * + + 80 * + + ( + COALESCE ( - 98, - 48 ) ) * 52 * - 26 WHEN 46 * ( - 89 ) THEN NULL ELSE NULL END IS NOT NULL THEN ( 64 ) END ) * COALESCE ( 54, - 2 ) AS col0
----
3456

query II rowsort
SELECT 72 AS col1, + 98 * - 75
----
72
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + COALESCE ( + 56, - 27, - - 79 * + + 72 - + - 18 + + - COUNT( * ), - - 41 * 99 + + 57 * - 81 * - 3 ) + + 19 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9915
SELECT + COALESCE ( + 56, - 27, - - 79 * + + 72 - + - 18 + + - COUNT ( * ), - - 41 * 99 + + 57 * - 81 * - 3 ) + + 19 AS col2
----
75

query I rowsort
SELECT 18 + 88
----
106

query I rowsort
SELECT - 95 - + + 64 + 31
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ALL + 39 * + ( - + 24 ) * + 27 + + + MIN( DISTINCT - + 82 ) + + 83 * - COUNT( * ) + COUNT( * ) + - - 92 + + 9 AS col2
----
-25335

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL + 39 * + ( - + 24 ) * + 27 + + + MIN ( DISTINCT - + 82 ) + + 83 * - COUNT ( * ) + COUNT ( * ) + - - 92 + + 9 AS col2
----
-25335

query I rowsort
SELECT 64 + - ( - 37 ) AS col1
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT - 19 * - 89 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT - 19 * - 89 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT - MAX( + 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT - MAX ( + 76 )
----
-76

query I rowsort
SELECT ALL 35 * - - 7
----
245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9923
SELECT ( + - COUNT( * ) ) DIV - 8 + 63 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9923
SELECT ( + - COUNT ( * ) ) / - 8 + 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT DISTINCT - - MIN( ALL + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT - - MIN ( ALL + 75 )
----
75

query I rowsort
SELECT + 2 + 26
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT DISTINCT 76 - 46 + - 91 * 39 - 27 * SUM( - 95 ) AS col1
----
-954

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT 76 - 46 + - 91 * 39 - 27 * SUM ( - 95 ) AS col1
----
-954

onlyif mysql # DIV for integer division: 
query II rowsort label-9927
SELECT ALL 80 DIV - + 42 col1, 98 + - - 74 + 58 * - 78 AS col1
----
-1
-4352

skipif mysql # not compatible
query II rowsort label-9927
SELECT ALL 80 / - + 42 col1, 98 + - - 74 + 58 * - 78 AS col1
----
-1
-4352

query II rowsort
SELECT ALL - - 94, 63 AS col1
----
94
63

query II rowsort
SELECT ALL - 63 * - 16 AS col2, - 73
----
1008
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT - 68 * + + MIN( DISTINCT + 85 ) * - COALESCE ( + - COALESCE ( + + 37, 20 ), + CASE - 54 WHEN 51 / + 60 THEN NULL WHEN - 0 * + ( - - 83 ) - + - 85 THEN - - 72 END * 95 + 75 ) + 46 AS col0
----
-213814

skipif mysql # not compatible
query I rowsort label-9930
SELECT - 68 * + + MIN ( DISTINCT + 85 ) * - COALESCE ( + - COALESCE ( + + 37, 20 ), + CASE - 54 WHEN 51 / + 60 THEN NULL WHEN - 0 * + ( - - 83 ) - + - 85 THEN - - 72 END * 95 + 75 ) + 46 AS col0
----
-213814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT 52 * - CAST( + 83 AS SIGNED ) + + + 93
----
-4223

skipif mysql # not compatible
query I rowsort label-9931
SELECT 52 * - CAST ( + 83 AS INTEGER ) + + + 93
----
-4223

query II rowsort
SELECT 47, 9 * 94 AS col2
----
47
846

query II rowsort
SELECT DISTINCT - ( - 44 ), - 76 AS col2
----
44
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT ALL + 20 + 45 + + - 55 + 10 + + MAX( ALL + 64 ) + 24 DIV + 53 * 96
----
84

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + 20 + 45 + + - 55 + 10 + + MAX ( ALL + 64 ) + 24 / + 53 * 96
----
84

query I rowsort
SELECT 64 * + 65 AS col2
----
4160

query II rowsort
SELECT ALL + 75 + + 6 AS col2, 88 AS col1
----
81
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT - 27 DIV - 70 * 75 * + - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9937
SELECT - 27 / - 70 * 75 * + - 64 AS col0
----
0

query II rowsort
SELECT - 33 + + 70, 72 AS col1
----
37
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9939
SELECT DISTINCT - 3 + - 35 + - COUNT( * ) * + 11 * - CAST( NULL AS SIGNED ) - 62 + - 82 * + + AVG ( - 56 ) * + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT - 3 + - 35 + - COUNT ( * ) * + 11 * - CAST ( NULL AS INTEGER ) - 62 + - 82 * + + AVG ( - 56 ) * + 54 AS col0
----
NULL

query I rowsort
SELECT ALL + 40 + - - 77
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9941
SELECT DISTINCT CASE - 89 WHEN COUNT( * ) + - COUNT( * ) THEN - CASE + 26 WHEN ( + + 52 ) * - + 21 * 75 * + - 87 * 4 * + 28 THEN NULL ELSE + 51 + 78 + + 27 + CASE ( + MIN( ALL ( - 32 ) ) ) WHEN 64 + 59 THEN - 74 WHEN - 41 * 46 THEN 37 * COUNT( * ) + - 50 * - 54 WHEN CAST( NULL AS SIGNED ) THEN ( 66 ) * 69 END END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT CASE - 89 WHEN COUNT ( * ) + - COUNT ( * ) THEN - CASE + 26 WHEN ( + + 52 ) * - + 21 * 75 * + - 87 * 4 * + 28 THEN NULL ELSE + 51 + 78 + + 27 + CASE ( + MIN ( ALL ( - 32 ) ) ) WHEN 64 + 59 THEN - 74 WHEN - 41 * 46 THEN 37 * COUNT ( * ) + - 50 * - 54 WHEN CAST ( NULL AS INTEGER ) THEN ( 66 ) * 69 END END END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9942
SELECT DISTINCT + 58 + + 43 AS col1, 17 - - 58 + + - 85 * 67 DIV 62
----
101
-16

skipif mysql # not compatible
query II rowsort label-9942
SELECT DISTINCT + 58 + + 43 AS col1, 17 - - 58 + + - 85 * 67 / 62
----
101
-16

query I rowsort
SELECT - ( 65 ) - 41
----
-106

query I rowsort
SELECT DISTINCT 26 + + + ( + 76 ) + + 81
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-9945
SELECT ALL - 86 * + 25 AS col1, 51 * - + 51 - - - SUM( 66 )
----
-2150
-2667

skipif mysql # not compatible
query II rowsort label-9945
SELECT ALL - 86 * + 25 AS col1, 51 * - + 51 - - - SUM ( 66 )
----
-2150
-2667

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT - 61 DIV + MIN( - 66 ) * - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9946
SELECT - 61 / + MIN ( - 66 ) * - 52 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9947
SELECT + 79 + NULLIF ( - 90, - COUNT( * ) + + - 80 + - 48 - + CASE - - 99 WHEN + 85 THEN + - 86 WHEN - CAST( NULL AS SIGNED ) + + COUNT( * ) THEN + + 80 END ) + + COUNT( * ) * + 32 + 4 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9947
SELECT + 79 + NULLIF ( - 90, - COUNT ( * ) + + - 80 + - 48 - + CASE - - 99 WHEN + 85 THEN + - 86 WHEN - CAST ( NULL AS INTEGER ) + + COUNT ( * ) THEN + + 80 END ) + + COUNT ( * ) * + 32 + 4 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + 83 * - COUNT( * ) * + - ( + 24 )
----
1992

skipif mysql # not compatible
query I rowsort label-9948
SELECT + 83 * - COUNT ( * ) * + - ( + 24 )
----
1992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9949
SELECT DISTINCT CASE 46 WHEN + 56 / - COUNT( * ) + + 20 + COUNT( * ) THEN NULL ELSE + 96 END AS col2, + CAST( NULL AS SIGNED ) AS col2
----
96
NULL

skipif mysql # not compatible
query II rowsort label-9949
SELECT DISTINCT CASE 46 WHEN + 56 / - COUNT ( * ) + + 20 + COUNT ( * ) THEN NULL ELSE + 96 END AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT - - 71 * + 43 * + SUM( + 44 )
----
134332

skipif mysql # not compatible
query I rowsort label-9950
SELECT - - 71 * + 43 * + SUM ( + 44 )
----
134332

query I rowsort
SELECT DISTINCT COALESCE ( 35, - 27 ) AS col2
----
35

query I rowsort
SELECT + 0 * - ( 77 ) + - + 67 * - + 65
----
4355

query I rowsort
SELECT ALL 69 * - 39 + + 49 AS col0
----
-2642

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL + 89 * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL + 89 * + COUNT ( * )
----
89

query I rowsort
SELECT ALL + 63 * + 59 + - 74
----
3643

onlyif mysql # aggregate syntax: 
query II rowsort label-9956
SELECT DISTINCT - + 75 * + 1 + + NULLIF ( 73, - NULLIF ( - 45, 14 ) * + + 87 ) + - + COUNT( * ) + + + 63, 57 AS col1
----
60
57

skipif mysql # not compatible
query II rowsort label-9956
SELECT DISTINCT - + 75 * + 1 + + NULLIF ( 73, - NULLIF ( - 45, 14 ) * + + 87 ) + - + COUNT ( * ) + + + 63, 57 AS col1
----
60
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9957
SELECT ALL MIN( ALL + 88 ) * + - 80 - COALESCE ( + + 93, + 19 ) + AVG ( - - CAST( NULL AS SIGNED ) ) * - - 82 + 54 + - + 27 AS col1, 89
----
NULL
89

skipif mysql # not compatible
query II rowsort label-9957
SELECT ALL MIN ( ALL + 88 ) * + - 80 - COALESCE ( + + 93, + 19 ) + AVG ( - - CAST ( NULL AS INTEGER ) ) * - - 82 + 54 + - + 27 AS col1, 89
----
NULL
89

query I rowsort
SELECT 52 * + 24 + - ( + 84 ) + - ( ( 37 ) ) + - 68 * COALESCE ( - 61, - 0 ) AS col1
----
5275

onlyif mysql # aggregate syntax: 
query II rowsort label-9959
SELECT DISTINCT + 96, 95 + + COUNT( * ) AS col2
----
96
96

skipif mysql # not compatible
query II rowsort label-9959
SELECT DISTINCT + 96, 95 + + COUNT ( * ) AS col2
----
96
96

query I rowsort
SELECT + 34 + 69
----
103

query I rowsort
SELECT - 92 - + + 58
----
-150

query I rowsort
SELECT + ( + - 80 ) AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9963
SELECT ALL + 99, 81 * - - 8 + CAST( 85 AS SIGNED ) AS col1
----
99
733

skipif mysql # not compatible
query II rowsort label-9963
SELECT ALL + 99, 81 * - - 8 + CAST ( 85 AS INTEGER ) AS col1
----
99
733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9964
SELECT ALL CASE + CAST( NULL AS SIGNED ) WHEN COUNT( 23 ) THEN NULL ELSE - COUNT( + - 35 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( 23 ) THEN NULL ELSE - COUNT ( + - 35 ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9965
SELECT DISTINCT 23 * + COUNT( - + 19 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT 23 * + COUNT ( - + 19 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT ALL COALESCE ( - - 30, CASE - 73 WHEN - 70 THEN 64 + - COUNT( * ) END, - 80 - 65 ) col1
----
30

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL COALESCE ( - - 30, CASE - 73 WHEN - 70 THEN 64 + - COUNT ( * ) END, - 80 - 65 ) col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9967
SELECT COUNT( * ), 26 AS col2
----
1
26

skipif mysql # not compatible
query II rowsort label-9967
SELECT COUNT ( * ), 26 AS col2
----
1
26

onlyif mysql # DIV for integer division: 
query II rowsort label-9968
SELECT ALL 29 * - 33 + - + 10, + 91 DIV + 16 col1
----
-967
5

skipif mysql # not compatible
query II rowsort label-9968
SELECT ALL 29 * - 33 + - + 10, + 91 / + 16 col1
----
-967
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT + COUNT( * ) * + + 28 - - - 31 + - 5 * - + MIN( 73 ) * + 73 col2
----
26642

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT + COUNT ( * ) * + + 28 - - - 31 + - 5 * - + MIN ( 73 ) * + 73 col2
----
26642

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT + CASE ( COUNT( * ) ) WHEN + COUNT( * ) + + 83 + + 80 THEN NULL ELSE + - 2 * - - 20 END + + + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9970
SELECT + CASE ( COUNT ( * ) ) WHEN + COUNT ( * ) + + 83 + + 80 THEN NULL ELSE + - 2 * - - 20 END + + + 40 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT + 20 * - + 0 DIV + - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9971
SELECT + 20 * - + 0 / + - 54 AS col0
----
0

query I rowsort
SELECT - 26 * 61 * + 59
----
-93574

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL NULLIF ( COUNT( * ), + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL NULLIF ( COUNT ( * ), + 55 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9974
SELECT + CAST( NULL AS SIGNED ) + + 99 + - 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT + CAST ( NULL AS INTEGER ) + + 99 + - 73 col1
----
NULL

query I rowsort
SELECT - 81 + 22
----
-59

query II rowsort
SELECT DISTINCT 25 col0, 73 AS col0
----
25
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL + COUNT( + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL + COUNT ( + 10 )
----
1

query I rowsort
SELECT - NULLIF ( + 35, - - 21 ) + - 7
----
-42

query I rowsort
SELECT - + ( ( + 34 ) ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - 43 + - COUNT( * ) - - + 27
----
-17

skipif mysql # not compatible
query I rowsort label-9980
SELECT - 43 + - COUNT ( * ) - - + 27
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9981
SELECT - - 67 DIV + + MAX( - 50 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9981
SELECT - - 67 / + + MAX ( - 50 ) AS col2
----
-1

query I rowsort
SELECT ALL + - 56 * + 60 * 72 + + 61 * - 65 AS col1
----
-245885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9983
SELECT ALL + + COUNT( * ) * - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL + + COUNT ( * ) * - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT + 29 * - COUNT( * ) + + COUNT( * ) - - 23
----
-5

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT + 29 * - COUNT ( * ) + + COUNT ( * ) - - 23
----
-5

query II rowsort
SELECT DISTINCT - + 43 * - 45 + - - 70 AS col0, 61
----
2005
61

query I rowsort
SELECT + - 10 + - 81
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT ALL + + CAST( - ( - ( + 8 ) ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + + CAST ( - ( - ( + 8 ) ) AS INTEGER )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT - + 41 DIV + - 25
----
1

skipif mysql # not compatible
query I rowsort label-9988
SELECT - + 41 / + - 25
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9989
SELECT - + 2 * + 89 * NULLIF ( - + ( + - 65 ), - COUNT( * ) * + ( 44 ) + - 41 + - COUNT( * ) * + COUNT( * ) * 67 ) + + 56 - + 11 DIV 3 AS col0
----
-11517

skipif mysql # not compatible
query I rowsort label-9989
SELECT - + 2 * + 89 * NULLIF ( - + ( + - 65 ), - COUNT ( * ) * + ( 44 ) + - 41 + - COUNT ( * ) * + COUNT ( * ) * 67 ) + + 56 - + 11 / 3 AS col0
----
-11517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT DISTINCT 99 / + CASE 47 WHEN - - COUNT( * ) * 73 + 18 THEN NULL WHEN CAST( - 93 AS SIGNED ) THEN 46 * + - 67 + + + ( - 73 ) - - 68 + + + 34 ELSE NULL END + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT 99 / + CASE 47 WHEN - - COUNT ( * ) * 73 + 18 THEN NULL WHEN CAST ( - 93 AS INTEGER ) THEN 46 * + - 67 + + + ( - 73 ) - - 68 + + + 34 ELSE NULL END + + 9
----
NULL

query II rowsort
SELECT ALL + 62, 47 AS col0
----
62
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9992
SELECT ALL 5 DIV 57 + - 57 + - ( - 33 ) + + + 12, + 10 + + 80 * - SUM( DISTINCT + ( - - ( 75 ) ) ) AS col0
----
-12
-5990

skipif mysql # not compatible
query II rowsort label-9992
SELECT ALL 5 / 57 + - 57 + - ( - 33 ) + + + 12, + 10 + + 80 * - SUM ( DISTINCT + ( - - ( 75 ) ) ) AS col0
----
-12
-5990

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT + 86 + 14 DIV - + 49 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 86 + 14 / - + 49 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT DISTINCT + COALESCE ( + 96, + COUNT( * ) + + COUNT( * ) )
----
96

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT + COALESCE ( + 96, + COUNT ( * ) + + COUNT ( * ) )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT CAST( 90 AS SIGNED ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9995
SELECT CAST ( 90 AS INTEGER ) AS col2
----
90

query II rowsort
SELECT ALL 4 + 15 AS col0, - 17 AS col2
----
19
-17

query I rowsort
SELECT DISTINCT 63 + - 73 + + 45
----
35

query I rowsort
SELECT 57 * + - 26 * + + 99 AS col0
----
-146718

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9999
SELECT + 70 DIV - COUNT( * ) + 7 + 1 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9999
SELECT + 70 / - COUNT ( * ) + 7 + 1 AS col0
----
-62

