sqllogictest
Artifact Content
Not logged in

Artifact d06712c4190b96f1b01e1f6897fb2ad83e176f14:


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