sqllogictest
Artifact Content
Not logged in

Artifact 8af8935cf47c7cd2336a8309f380fde18e984d61:


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 47 + 94 AS col1
----
141

query I rowsort
SELECT DISTINCT - 53 + + 7
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2
SELECT ALL + + CAST( NULL AS SIGNED ) * + - SUM( - COALESCE ( - 81, 55 + 5 + 53 ) ) + + + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL + + CAST ( NULL AS INTEGER ) * + - SUM ( - COALESCE ( - 81, 55 + 5 + 53 ) ) + + + 56 AS col1
----
NULL

query I rowsort
SELECT - ( + COALESCE ( 61, + 57 ) ) + - 39 * + 8 AS col2
----
-373

query I rowsort
SELECT ALL + - 14 + - 82 - + + 99
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT ALL + CASE - - COUNT( * ) WHEN + 62 THEN NULL WHEN - - 37 THEN - 22 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL + CASE - - COUNT ( * ) WHEN + 62 THEN NULL WHEN - - 37 THEN - 22 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT DISTINCT + COUNT( DISTINCT + 20 ) * - - ( ( - + 99 ) ) * + 73 * - 78 * + COUNT( * ) + - + COUNT( 7 ) AS col1
----
563705

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT + COUNT ( DISTINCT + 20 ) * - - ( ( - + 99 ) ) * + 73 * - 78 * + COUNT ( * ) + - + COUNT ( 7 ) AS col1
----
563705

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT ALL - 98 + + - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL - 98 + + - COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT DISTINCT - - CASE + 33 WHEN - - ( - 22 ) THEN ( - 41 ) - - COUNT( * ) - - + 29 * + + 62 WHEN + 89 THEN + + 65 ELSE NULL END - - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT - - CASE + 33 WHEN - - ( - 22 ) THEN ( - 41 ) - - COUNT ( * ) - - + 29 * + + 62 WHEN + 89 THEN + + 65 ELSE NULL END - - + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT COUNT( * ) + COALESCE ( - - 97, + ( + 6 ) ) + 48
----
146

skipif mysql # not compatible
query I rowsort label-9
SELECT COUNT ( * ) + COALESCE ( - - 97, + ( + 6 ) ) + 48
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL - - COUNT( * ) - + 89 + - + MIN( + 23 ) AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL - - COUNT ( * ) - + 89 + - + MIN ( + 23 ) AS col2
----
-111

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT 96 + + - COUNT( * ) * + 55 * 4 * + 52 AS col1
----
-11344

skipif mysql # not compatible
query I rowsort label-13
SELECT 96 + + - COUNT ( * ) * + 55 * 4 * + 52 AS col1
----
-11344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-14
SELECT - 35 * - ( + + COALESCE ( - - 67, CAST( 77 AS SIGNED ) * - - 53, - 64 ) )
----
2345

skipif mysql # not compatible
query I rowsort label-14
SELECT - 35 * - ( + + COALESCE ( - - 67, CAST ( 77 AS INTEGER ) * - - 53, - 64 ) )
----
2345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-15
SELECT DISTINCT COUNT( * ) DIV - 34 AS col0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT - COUNT( - 66 ) + + 50
----
49

skipif mysql # not compatible
query I rowsort label-17
SELECT - COUNT ( - 66 ) + + 50
----
49

query I rowsort
SELECT ALL 23 * 50
----
1150

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT ALL - 2 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL - 2 / 81
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-20
SELECT ALL - 96 * 99 col0, - SUM( + + 31 ) col1
----
-9504
-31

skipif mysql # not compatible
query II rowsort label-20
SELECT ALL - 96 * 99 col0, - SUM ( + + 31 ) col1
----
-9504
-31

query I rowsort
SELECT DISTINCT - + ( - 21 ) * + 87 AS col2
----
1827

query I rowsort
SELECT 65 * - 7
----
-455

query I rowsort
SELECT ALL 99 * - - 47 AS col2
----
4653

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT ( + - COUNT( * ) ) * - 30 * + ( COUNT( * ) ) * + 35
----
1050

skipif mysql # not compatible
query I rowsort label-24
SELECT ( + - COUNT ( * ) ) * - 30 * + ( COUNT ( * ) ) * + 35
----
1050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-25
SELECT + CAST( + - 67 AS SIGNED ) * + + 64 * + - 0 + + + 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-25
SELECT + CAST ( + - 67 AS INTEGER ) * + + 64 * + - 0 + + + 83 AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT ALL 57 + 58 DIV - 90
----
57

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL 57 + 58 / - 90
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT ALL 92 + 24 * - COALESCE ( - + COALESCE ( ( + 96 ), - + ( 70 ) * + 44 - - COUNT( * ) ), + + 73 + - 63, - ( - 73 ) ) * + 21 + 0 col0
----
48476

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL 92 + 24 * - COALESCE ( - + COALESCE ( ( + 96 ), - + ( 70 ) * + 44 - - COUNT ( * ) ), + + 73 + - 63, - ( - 73 ) ) * + 21 + 0 col0
----
48476

query I rowsort
SELECT 17 + + 84
----
101

query I rowsort
SELECT DISTINCT 27 + + 41 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL - SUM( - 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL - SUM ( - 52 ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-32
SELECT COALESCE ( + 25, COUNT( * ) DIV + - CAST( + 15 AS SIGNED ) + + 40 + 93 - 45 + + + ( + + 97 ) * - 15 DIV AVG ( DISTINCT - - 84 ) * - ( + 26 ) DIV - 94 * + - 51 * - - COUNT( * ) ) * - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-32
SELECT COALESCE ( + 25, COUNT ( * ) / + - CAST ( + 15 AS INTEGER ) + + 40 + 93 - 45 + + + ( + + 97 ) * - 15 / AVG ( DISTINCT - - 84 ) * - ( + 26 ) / - 94 * + - 51 * - - COUNT ( * ) ) * - COUNT ( * )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-33
SELECT ALL CAST( NULL AS SIGNED ) * - NULLIF ( + 56, - 93 / + 51 + 67 * + ( - 6 ) ) * + NULLIF ( - 52, 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL CAST ( NULL AS INTEGER ) * - NULLIF ( + 56, - 93 / + 51 + 67 * + ( - 6 ) ) * + NULLIF ( - 52, 63 )
----
NULL

query II rowsort
SELECT DISTINCT + 60 + - 69, - 65 AS col0
----
-9
-65

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-39
SELECT 31 + - 81 DIV - 79 + + - ( - - 1 ), - ( AVG ( DISTINCT CAST( NULL AS SIGNED ) ) ) col1
----
31
NULL

skipif mysql # not compatible
query II rowsort label-39
SELECT 31 + - 81 / - 79 + + - ( - - 1 ), - ( AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) ) col1
----
31
NULL

query I rowsort
SELECT 80 * - + ( + 83 )
----
-6640

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL + 6 - COUNT( * ) * - 43 * + - 70
----
-3004

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL + 6 - COUNT ( * ) * - 43 * + - 70
----
-3004

query I rowsort
SELECT - - 61 * - ( 63 )
----
-3843

query I rowsort
SELECT ALL - 56 * + 0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-45
SELECT - 88 + + - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), + 49 / + 97 * - CAST( + 58 AS SIGNED ) - + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), + 49 / + 97 * - CAST ( + 58 AS INTEGER ) - + 13 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT - 5 DIV - 4 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-47
SELECT - 5 / - 4 AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-48
SELECT + COUNT ( ALL 78 ) AS col2
----
1

query I rowsort
SELECT DISTINCT ( 51 ) * - 38 + 25 + + 18 * - + 99
----
-3695

query I rowsort
SELECT ALL 44 * + 82 + - - 30
----
3638

query II rowsort
SELECT + 62 * - 35 + - - 2 AS col0, - 68 - + - 49
----
-2168
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL NULLIF ( 16, - + 31 * + + COUNT( * ) ) * - 54 * + + 54
----
-46656

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL NULLIF ( 16, - + 31 * + + COUNT ( * ) ) * - 54 * + + 54
----
-46656

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT + COUNT( ALL NULLIF ( - COALESCE ( - 91, - 24 + - 24 ), 23 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-53
SELECT + COUNT ( ALL NULLIF ( - COALESCE ( - 91, - 24 + - 24 ), 23 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT DISTINCT ( - - 26 ) * - + 23 + + - SUM( 6 ) * 77 AS col2
----
-1060

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT ( - - 26 ) * - + 23 + + - SUM ( 6 ) * 77 AS col2
----
-1060

query I rowsort
SELECT ALL - 43 * + CASE WHEN 40 IS NOT NULL THEN - 99 WHEN 96 > NULL THEN NULL ELSE NULL END + 83
----
4340

query I rowsort
SELECT ALL NULLIF ( 18, - 39 + + - 7 ) * - COALESCE ( + + 39, + + ( + - 55 ), + 1 * + 10 - - - 31 ) AS col0
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT + 21 * - - COUNT( DISTINCT - + 54 ) * + COUNT( - + 11 ) * - + 73
----
-1533

skipif mysql # not compatible
query I rowsort label-57
SELECT + 21 * - - COUNT ( DISTINCT - + 54 ) * + COUNT ( - + 11 ) * - + 73
----
-1533

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

skipif mysql # not compatible
query I rowsort label-58
SELECT MIN ( + 8 )
----
8

query I rowsort
SELECT ALL - 73 * - - 59 col2
----
-4307

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

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

query I rowsort
SELECT ALL - 85 * - - 28 * 19 - - 37 + 47 + 45 * 13 AS col1
----
-44551

query II rowsort
SELECT + 78, 38 + - - 84 AS col2
----
78
122

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

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

query I rowsort
SELECT ALL 42 * + 4
----
168

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

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

query II rowsort
SELECT - 86 + - + 79 * + 50, ( 60 ) AS col2
----
-4036
60

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT - CASE - + COUNT( * ) WHEN + 5 - - 32 THEN NULL ELSE - MAX( - 25 ) END * - 93
----
2325

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - CASE - + COUNT ( * ) WHEN + 5 - - 32 THEN NULL ELSE - MAX ( - 25 ) END * - 93
----
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT + - 15 + - 39 * SUM( - - 30 )
----
-1185

skipif mysql # not compatible
query I rowsort label-68
SELECT + - 15 + - 39 * SUM ( - - 30 )
----
-1185

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT + 38 * + - NULLIF ( + - 19, 23 * + - COUNT( * ) + - 41 ) AS col1
----
722

skipif mysql # not compatible
query I rowsort label-69
SELECT + 38 * + - NULLIF ( + - 19, 23 * + - COUNT ( * ) + - 41 ) AS col1
----
722

query I rowsort
SELECT - + 51 * + + 30
----
-1530

query I rowsort
SELECT + 63 * + 0 + 27 + + - 82
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL + 35 * - + ( - - 96 ) * - 40 - + - 55 * COUNT( ALL 83 ) AS col1
----
134455

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL + 35 * - + ( - - 96 ) * - 40 - + - 55 * COUNT ( ALL 83 ) AS col1
----
134455

query I rowsort
SELECT DISTINCT 26 * + 15
----
390

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT ALL - - 96 DIV 33 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL - - 96 / 33 AS col1
----
2

query I rowsort
SELECT - 88 * 10 AS col1
----
-880

query I rowsort
SELECT DISTINCT - CASE + + ( 67 ) WHEN 49 THEN + 44 WHEN + - 58 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-77
SELECT - 11 + + COUNT ( * ) + 87 AS col2
----
77

query I rowsort
SELECT - COALESCE ( + + 17, - + 75 - + 87 * + + 68 - + 27 * 34 )
----
-17

query II rowsort
SELECT + ( + + 4 ) * + + 53, 59 AS col1
----
212
59

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - 70 + + 3 * + 18 + COUNT( ALL - + 26 ) + + - 13 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-80
SELECT - 70 + + 3 * + 18 + COUNT ( ALL - + 26 ) + + - 13 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT - 82 + - COUNT( * ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-81
SELECT - 82 + - COUNT ( * ) AS col1
----
-83

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-83
SELECT - CASE - 21 WHEN COUNT( * ) THEN + MAX( DISTINCT 1 ) + + - COUNT( * ) * + 27 + - 85 + 18 * - + MAX( - 77 ) - 95 * SUM( DISTINCT - 23 ) + + 69 WHEN 56 * - ( - + NULLIF ( - + 84, + COUNT( * ) + - 32 ) ) DIV + + COUNT( * ) THEN NULL WHEN 88 * - ( 18 ) + COALESCE ( COUNT( * ), 44 ) THEN 3 + 21 * COALESCE ( + 59 * + 45 + - NULLIF ( 34, NULLIF ( - CASE - ( 39 ) WHEN 39 + 31 THEN + COALESCE ( 56, 87 + - 79 * - 73 ) * ( 65 + + 93 * 63 ) WHEN 30 * + COUNT( * ) THEN NULL END, - 90 + + 59 DIV - 37 ) - + 67 * + 31 ), 33 + 25 DIV - 60 ) ELSE + COUNT( * ) * - 88 - COUNT( * ) END + - COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-83
SELECT - CASE - 21 WHEN COUNT ( * ) THEN + MAX ( DISTINCT 1 ) + + - COUNT ( * ) * + 27 + - 85 + 18 * - + MAX ( - 77 ) - 95 * SUM ( DISTINCT - 23 ) + + 69 WHEN 56 * - ( - + NULLIF ( - + 84, + COUNT ( * ) + - 32 ) ) / + + COUNT ( * ) THEN NULL WHEN 88 * - ( 18 ) + COALESCE ( COUNT ( * ), 44 ) THEN 3 + 21 * COALESCE ( + 59 * + 45 + - NULLIF ( 34, NULLIF ( - CASE - ( 39 ) WHEN 39 + 31 THEN + COALESCE ( 56, 87 + - 79 * - 73 ) * ( 65 + + 93 * 63 ) WHEN 30 * + COUNT ( * ) THEN NULL END, - 90 + + 59 / - 37 ) - + 67 * + 31 ), 33 + 25 / - 60 ) ELSE + COUNT ( * ) * - 88 - COUNT ( * ) END + - COUNT ( * ) AS col2
----
88

query II rowsort
SELECT ALL ( + 87 ) AS col2, ( + + 11 ) AS col0
----
87
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-85
SELECT DISTINCT 81 + - 9 * - 3 * - 20 AS col2, 2 * + MIN( - 35 ) + + 95 DIV - - COALESCE ( - 56, + - 71 * + SUM( ALL + + 15 ) + + 81 ) AS col0
----
-459
-71

skipif mysql # not compatible
query II rowsort label-85
SELECT DISTINCT 81 + - 9 * - 3 * - 20 AS col2, 2 * + MIN ( - 35 ) + + 95 / - - COALESCE ( - 56, + - 71 * + SUM ( ALL + + 15 ) + + 81 ) AS col0
----
-459
-71

query I rowsort
SELECT ALL - 8 * - 74
----
592

query I rowsort
SELECT DISTINCT - 26 * + NULLIF ( + ( 26 ), - - 87 ) AS col0
----
-676

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

skipif mysql # not compatible
query I rowsort label-88
SELECT - 98 * - COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT DISTINCT + MIN( ALL 61 )
----
61

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT + MIN ( ALL 61 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT ALL + COALESCE ( + 83, 91 + 54 + + - 88 * - 33, - - 35 ) DIV 2 * + + 20 - 51 - + - 80 * + 5
----
1169

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL + COALESCE ( + 83, 91 + 54 + + - 88 * - 33, - - 35 ) / 2 * + + 20 - 51 - + - 80 * + 5
----
1169

query I rowsort
SELECT - 68 * - 46
----
3128

query I rowsort
SELECT + 74 * + 51 * 45
----
169830

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT ALL - 89 DIV COALESCE ( + + 43, - - 78 ) - - 1 + 56 * - 47 + - 94 + 49 + + 83 * + 40 AS col1
----
642

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL - 89 / COALESCE ( + + 43, - - 78 ) - - 1 + 56 * - 47 + - 94 + 49 + + 83 * + 40 AS col1
----
642

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT SUM( 22 ) * + ( - 81 )
----
-1782

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT SUM ( 22 ) * + ( - 81 )
----
-1782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-95
SELECT ALL NULLIF ( - 96, + 75 ) * - 24 - + 39 + 97 + COALESCE ( - 13, 81 + + - 59 - 79, - 97 * COALESCE ( + 26, - CASE - + 0 WHEN - 87 DIV + + NULLIF ( 75, 26 * - - 83 + - NULLIF ( + CASE + 98 WHEN NULLIF ( COUNT( * ), COALESCE ( + 21, - 19 DIV - CAST( NULL AS SIGNED ) ) ) + 46 THEN NULL ELSE - SUM( ALL - CAST( + 77 AS SIGNED ) ) + - 57 END, + 22 ) ) + - COUNT( ALL + 46 ) THEN + 38 * CAST( NULL AS SIGNED ) ELSE NULL END + 30 * COALESCE ( COUNT( * ), + 96 ), + 21 * 62 + + 48 DIV + COUNT( * ) ) - + 40 )
----
2349

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL NULLIF ( - 96, + 75 ) * - 24 - + 39 + 97 + COALESCE ( - 13, 81 + + - 59 - 79, - 97 * COALESCE ( + 26, - CASE - + 0 WHEN - 87 / + + NULLIF ( 75, 26 * - - 83 + - NULLIF ( + CASE + 98 WHEN NULLIF ( COUNT ( * ), COALESCE ( + 21, - 19 / - CAST ( NULL AS INTEGER ) ) ) + 46 THEN NULL ELSE - SUM ( ALL - CAST ( + 77 AS INTEGER ) ) + - 57 END, + 22 ) ) + - COUNT ( ALL + 46 ) THEN + 38 * CAST ( NULL AS INTEGER ) ELSE NULL END + 30 * COALESCE ( COUNT ( * ), + 96 ), + 21 * 62 + + 48 / + COUNT ( * ) ) - + 40 )
----
2349

query I rowsort
SELECT - 38 * - 56 AS col0
----
2128

query II rowsort
SELECT DISTINCT ( + ( - 5 ) ) * + - NULLIF ( - 91, 47 / 38 ), - 19 AS col2
----
-455
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-98
SELECT - ( - + 60 ) - 29 DIV + 8 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-98
SELECT - ( - + 60 ) - 29 / + 8 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-99
SELECT - + 61 * - 99 + - + COALESCE ( + 21, + - COALESCE ( + CAST( NULL AS SIGNED ), - 63 * 32 - - 45 + + 94 - + 21 * - 14, + COUNT( DISTINCT 29 ) * 91 + - - ( + COUNT( * ) ) ) - + ( 91 ), ( + COUNT( * ) ) ) + + 63 + - + ( - 22 ) * 58 DIV 55
----
6104

skipif mysql # not compatible
query I rowsort label-99
SELECT - + 61 * - 99 + - + COALESCE ( + 21, + - COALESCE ( + CAST ( NULL AS INTEGER ), - 63 * 32 - - 45 + + 94 - + 21 * - 14, + COUNT ( DISTINCT 29 ) * 91 + - - ( + COUNT ( * ) ) ) - + ( 91 ), ( + COUNT ( * ) ) ) + + 63 + - + ( - 22 ) * 58 / 55
----
6104

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT - NULLIF ( + + 76, 12 / + MAX( - 94 ) * - CASE + - 21 WHEN + ( + 77 ) THEN + + 42 + - - ( + COUNT( * ) ) WHEN + 75 * + + 15 + + 83 THEN NULL ELSE NULL END + + 82 + + 14 - 64 + 62 * + COUNT( ALL - ( NULLIF ( - 87, + 58 / + 67 ) ) ) * - 60 + - COUNT( * ) * ( 53 ) - + CASE - 67 WHEN 32 + - 31 THEN 39 + + 35 WHEN 23 + - 35 / - COALESCE ( ( + 8 ), 69 ) THEN NULL ELSE AVG ( - 96 ) END ) * - SUM( ALL + 30 ) + COUNT( * ) * - COUNT( * ) col1
----
2279

skipif mysql # not compatible
query I rowsort label-100
SELECT - NULLIF ( + + 76, 12 / + MAX ( - 94 ) * - CASE + - 21 WHEN + ( + 77 ) THEN + + 42 + - - ( + COUNT ( * ) ) WHEN + 75 * + + 15 + + 83 THEN NULL ELSE NULL END + + 82 + + 14 - 64 + 62 * + COUNT ( ALL - ( NULLIF ( - 87, + 58 / + 67 ) ) ) * - 60 + - COUNT ( * ) * ( 53 ) - + CASE - 67 WHEN 32 + - 31 THEN 39 + + 35 WHEN 23 + - 35 / - COALESCE ( ( + 8 ), 69 ) THEN NULL ELSE AVG ( - 96 ) END ) * - SUM ( ALL + 30 ) + COUNT ( * ) * - COUNT ( * ) col1
----
2279

query I rowsort
SELECT ALL + + COALESCE ( - ( - 50 ), + + 42 )
----
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT NULLIF ( + SUM( 4 ), + 20 + - COUNT( * ) - 80 )
----
4

skipif mysql # not compatible
query I rowsort label-103
SELECT NULLIF ( + SUM ( 4 ), + 20 + - COUNT ( * ) - 80 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-104
SELECT + 61 * + - NULLIF ( - 10, COUNT( * ) + 64 ) - - - 81 / COUNT( DISTINCT - 25 ) * + 60 - - 5 - - 60 + 24 * + 27 + 59 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT + 61 * + - NULLIF ( - 10, COUNT ( * ) + 64 ) - - - 81 / COUNT ( DISTINCT - 25 ) * + 60 - - 5 - - 60 + 24 * + 27 + 59 * + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT - NULLIF ( + - 21, + COUNT ( * ) + + + 47 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT DISTINCT - 67 * - 62 * - - 74 + + ( - - SUM( DISTINCT + 80 ) ) - - 9 * - + 24
----
307260

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT - 67 * - 62 * - - 74 + + ( - - SUM ( DISTINCT + 80 ) ) - - 9 * - + 24
----
307260

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

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

query I rowsort
SELECT 73 * + 16 AS col0
----
1168

query I rowsort
SELECT - NULLIF ( - 64, 4 ) AS col0
----
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-111
SELECT + 39 DIV + 22 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-111
SELECT + 39 / + 22 AS col0
----
1

query I rowsort
SELECT 9 * 40 + - 94
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ALL + 85 + - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + 85 + - COUNT ( * )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT ( + - 29 ) DIV 2
----
-14

skipif mysql # not compatible
query I rowsort label-114
SELECT ( + - 29 ) / 2
----
-14

query I rowsort
SELECT ALL 40 + - - 66 AS col0
----
106

query II rowsort
SELECT ALL 19 AS col0, + 6 AS col0
----
19
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-117
SELECT ALL - 12 + - NULLIF ( - - 67, - CAST( NULL AS SIGNED ) + 60 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - 12 + - NULLIF ( - - 67, - CAST ( NULL AS INTEGER ) + 60 ) AS col2
----
-79

query I rowsort
SELECT CASE - + 74 WHEN + - 47 THEN - - 21 WHEN - 93 THEN NULL ELSE - + 3 + 30 * + 88 + + 11 * + 35 * + 99 END + - 11
----
40741

query I rowsort
SELECT 85 + 57 + - ( 76 ) * - 65 * 28
----
138462

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT 20 * - + MIN( - + 27 ) col1
----
540

skipif mysql # not compatible
query I rowsort label-120
SELECT 20 * - + MIN ( - + 27 ) col1
----
540

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

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

query I rowsort
SELECT 50 * - 81 + - + 64 + 32 AS col2
----
-4082

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT ALL COALESCE ( + 58, + + 9 * 58 + + + 40 + + ( - 47 ) DIV - AVG ( DISTINCT + + 54 ) DIV 91 DIV - COALESCE ( + + 88, - 71 ) ) - - 75
----
133

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL COALESCE ( + 58, + + 9 * 58 + + + 40 + + ( - 47 ) / - AVG ( DISTINCT + + 54 ) / 91 / - COALESCE ( + + 88, - 71 ) ) - - 75
----
133

query I rowsort
SELECT 29 + 36 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT ALL + 50 - + 47 * - + 98 + - CASE 45 WHEN AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + ( - 52 ) THEN 20 END + - CAST( + - 12 AS SIGNED ) + - 44 * + + 84 - + 4 * 19 - + + 81 / + 16 * COUNT( + - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL + 50 - + 47 * - + 98 + - CASE 45 WHEN AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + ( - 52 ) THEN 20 END + - CAST ( + - 12 AS INTEGER ) + - 44 * + + 84 - + 4 * 19 - + + 81 / + 16 * COUNT ( + - 77 )
----
NULL

query I rowsort
SELECT ALL + 78 * - 75 * + 34 AS col2
----
-198900

query I rowsort
SELECT 87 * - 97 + - - 65 + - 84
----
-8458

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-128
SELECT 45 - - 89 * 69 DIV CAST( - 85 AS SIGNED ) + + + 90
----
63

skipif mysql # not compatible
query I rowsort label-128
SELECT 45 - - 89 * 69 / CAST ( - 85 AS INTEGER ) + + + 90
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-129
SELECT + ( COALESCE ( + - 32, - + COALESCE ( + 97, COUNT( * ), + 48 + - 82 ), - - ( + + 37 ) ) ), COUNT( * ) + 36 AS col2
----
-32
37

skipif mysql # not compatible
query II rowsort label-129
SELECT + ( COALESCE ( + - 32, - + COALESCE ( + 97, COUNT ( * ), + 48 + - 82 ), - - ( + + 37 ) ) ), COUNT ( * ) + 36 AS col2
----
-32
37

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT - 21 DIV 29 + 27 * - - 23
----
621

skipif mysql # not compatible
query I rowsort label-130
SELECT - 21 / 29 + 27 * - - 23
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT + + 48 * - - COUNT( * ) * 86 - COUNT( * )
----
4127

skipif mysql # not compatible
query I rowsort label-131
SELECT + + 48 * - - COUNT ( * ) * 86 - COUNT ( * )
----
4127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-132
SELECT - 63 * + COUNT( * ) + + CAST( - 42 AS SIGNED ) - - COUNT( * ) * 85
----
-20

skipif mysql # not compatible
query I rowsort label-132
SELECT - 63 * + COUNT ( * ) + + CAST ( - 42 AS INTEGER ) - - COUNT ( * ) * 85
----
-20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-134
SELECT ALL + 29 * CASE 57 WHEN - 3 * + + 6 * COALESCE ( + - NULLIF ( - 59, + 29 ), - ( + 99 ) * - 77 * 35 + + + 9 + - - 98 * + + NULLIF ( - 73, - MAX( DISTINCT 73 ) * COUNT( * ) * 11 + - 86 ) + + COUNT( 20 ) + 65 ) - - 31 THEN NULL WHEN + COUNT( * ) THEN 21 * 60 WHEN - 55 * CASE + 72 WHEN - CASE - CAST( - ( + 63 ) AS SIGNED ) WHEN + NULLIF ( ( 61 ), + 18 ) THEN 32 WHEN 84 THEN NULL END / 31 THEN 71 WHEN 9 THEN 53 ELSE - 74 + - 83 * - 64 END THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + 29 * CASE 57 WHEN - 3 * + + 6 * COALESCE ( + - NULLIF ( - 59, + 29 ), - ( + 99 ) * - 77 * 35 + + + 9 + - - 98 * + + NULLIF ( - 73, - MAX ( DISTINCT 73 ) * COUNT ( * ) * 11 + - 86 ) + + COUNT ( 20 ) + 65 ) - - 31 THEN NULL WHEN + COUNT ( * ) THEN 21 * 60 WHEN - 55 * CASE + 72 WHEN - CASE - CAST ( - ( + 63 ) AS INTEGER ) WHEN + NULLIF ( ( 61 ), + 18 ) THEN 32 WHEN 84 THEN NULL END / 31 THEN 71 WHEN 9 THEN 53 ELSE - 74 + - 83 * - 64 END THEN NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-136
SELECT ALL + - 88 DIV - - 30 + - - COUNT( * ) AS col0
----
-1

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

query I rowsort
SELECT ALL + + 12 + - - ( - - 73 )
----
85

query I rowsort
SELECT ALL - 94 * - 35 col0
----
3290

query I rowsort
SELECT 88 + + 64 AS col0
----
152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-140
SELECT - 79 * - - CASE - 96 WHEN - - 35 * - - COUNT( * ) / - 18 + - 4 THEN - 82 * + CAST( + 37 AS DECIMAL ) ELSE NULL END, - 1 AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-140
SELECT - 79 * - - CASE - 96 WHEN - - 35 * - - COUNT ( * ) / - 18 + - 4 THEN - 82 * + CAST ( + 37 AS REAL ) ELSE NULL END, - 1 AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL - AVG ( ALL - 53 ) + - - COUNT( * ) - + 18 * + + CASE + 6 WHEN - COUNT( * ) + - 47 THEN + 30 WHEN + 7 THEN - + COALESCE ( - - 21, - + 77 + - + 35 + - 70 * + - ( - - 65 ) ) + 23 + - COUNT( * ) + + 59 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL - AVG ( ALL - 53 ) + - - COUNT ( * ) - + 18 * + + CASE + 6 WHEN - COUNT ( * ) + - 47 THEN + 30 WHEN + 7 THEN - + COALESCE ( - - 21, - + 77 + - + 35 + - 70 * + - ( - - 65 ) ) + 23 + - COUNT ( * ) + + 59 END col0
----
NULL

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

query I rowsort
SELECT ALL 62 + - 73 - + 90 * + - 9
----
799

query I rowsort
SELECT 65 + 8
----
73

query I rowsort
SELECT DISTINCT - 75 + - - 14
----
-61

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

query I rowsort
SELECT ALL - 80 + - 30
----
-110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT NULLIF ( - - 60, 87 ) * - - 16 - - MAX( DISTINCT - + 49 )
----
911

skipif mysql # not compatible
query I rowsort label-149
SELECT NULLIF ( - - 60, 87 ) * - - 16 - - MAX ( DISTINCT - + 49 )
----
911

onlyif mysql # aggregate syntax: 
query II rowsort label-150
SELECT ALL 19, 56 * - 79 * 77 + + 99 + - COUNT( * ) - + CASE COUNT( * ) WHEN 9 THEN - - 8 END AS col2
----
19
NULL

skipif mysql # not compatible
query II rowsort label-150
SELECT ALL 19, 56 * - 79 * 77 + + 99 + - COUNT ( * ) - + CASE COUNT ( * ) WHEN 9 THEN - - 8 END AS col2
----
19
NULL

query II rowsort
SELECT 49 col1, 56 * + + 90 AS col0
----
49
5040

query I rowsort
SELECT ( + 75 ) + 61 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT COUNT( * ) + - COALESCE ( 58, 94 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-153
SELECT COUNT ( * ) + - COALESCE ( 58, 94 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-154
SELECT - 32, CASE - 81 WHEN CASE - + 85 WHEN 31 THEN + - MAX( DISTINCT - - 99 ) END THEN - - 40 END + - - 2 AS col2
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-154
SELECT - 32, CASE - 81 WHEN CASE - + 85 WHEN 31 THEN + - MAX ( DISTINCT - - 99 ) END THEN - - 40 END + - - 2 AS col2
----
-32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ALL 27 * SUM( DISTINCT 59 ) * + 13
----
20709

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL 27 * SUM ( DISTINCT 59 ) * + 13
----
20709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-156
SELECT DISTINCT CASE + - 56 WHEN - 59 * + + CAST( NULL AS SIGNED ) THEN - 60 / - 41 END * + COUNT( * ) + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT CASE + - 56 WHEN - 59 * + + CAST ( NULL AS INTEGER ) THEN - 60 / - 41 END * + COUNT ( * ) + 72 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT ALL + 18 DIV - - 77 * + + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL + 18 / - - 77 * + + 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-159
SELECT ALL - 71, - 14 + - + COUNT( * ) col0
----
-71
-15

skipif mysql # not compatible
query II rowsort label-159
SELECT ALL - 71, - 14 + - + COUNT ( * ) col0
----
-71
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT COUNT( * ) * + MIN( DISTINCT - - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-160
SELECT COUNT ( * ) * + MIN ( DISTINCT - - 47 )
----
47

query II rowsort
SELECT 55 + 21 * - 24 * 72, 42 AS col2
----
-36233
42

query I rowsort
SELECT CASE - - AVG ( DISTINCT 93 ) WHEN 98 THEN + + 8 + - 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT + - MIN( - 61 ) col0
----
61

skipif mysql # not compatible
query I rowsort label-163
SELECT + - MIN ( - 61 ) col0
----
61

onlyif mysql # DIV for integer division: 
query II rowsort label-164
SELECT + - 54 AS col2, 71 DIV + + 92
----
-54
0

skipif mysql # not compatible
query II rowsort label-164
SELECT + - 54 AS col2, 71 / + + 92
----
-54
0

query I rowsort
SELECT - - 1 * + 45 + + 80 AS col1
----
125

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

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

query I rowsort
SELECT DISTINCT 39 * - 58 + - - 48
----
-2214

query I rowsort
SELECT - + 78 * + 57 + + - 45
----
-4491

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-170
SELECT ALL - CAST( NULL AS SIGNED ) * 1 + + COALESCE ( + 82, - + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL - CAST ( NULL AS INTEGER ) * 1 + + COALESCE ( + 82, - + 9 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL + - COUNT( * ) + - + 90 + 84 * + + 58 + + 32 AS col0
----
4813

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + - COUNT ( * ) + - + 90 + 84 * + + 58 + + 32 AS col0
----
4813

query I rowsort
SELECT DISTINCT + ( + + 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-174
SELECT ALL + - MAX( - 56 ) DIV + 29 + - COUNT( 84 ) * + 83 DIV + + 86 - + 87 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL + - MAX ( - 56 ) / + 29 + - COUNT ( 84 ) * + 83 / + + 86 - + 87 AS col2
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-175
SELECT - - 51 DIV + + 26 AS col1, 64 * 31 - + 63 + 40 * - 15 + 83
----
1
1404

skipif mysql # not compatible
query II rowsort label-175
SELECT - - 51 / + + 26 AS col1, 64 * 31 - + 63 + 40 * - 15 + 83
----
1
1404

query I rowsort
SELECT ALL - 46 + 11
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT ALL + - CASE 40 WHEN - + 75 THEN + - ( 73 ) + MIN( DISTINCT - + NULLIF ( 23, 89 ) ) + ( + - ( 82 ) ) - - 22 WHEN - - 61 THEN 14 + + - 56 + 99 END + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL + - CASE 40 WHEN - + 75 THEN + - ( 73 ) + MIN ( DISTINCT - + NULLIF ( 23, 89 ) ) + ( + - ( 82 ) ) - - 22 WHEN - - 61 THEN 14 + + - 56 + 99 END + - 17
----
NULL

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

skipif mysql # not compatible
query I rowsort label-178
SELECT - 29 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 76 * - 91
----
6916

query I rowsort
SELECT DISTINCT - 67 - - 14 * + 31
----
367

query I rowsort
SELECT - 64 * + 4 * - + 21 * - + 25
----
-134400

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT + 4 * - COUNT( * ) * 40 * - 72 AS col0
----
11520

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT + 4 * - COUNT ( * ) * 40 * - 72 AS col0
----
11520

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL - NULLIF ( 41, 33 ) - + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL - NULLIF ( 41, 33 ) - + COUNT ( * ) AS col1
----
-42

query I rowsort
SELECT ALL + 95 * 57 * - 56
----
-303240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-185
SELECT - 69 - CASE - - 48 WHEN - 67 THEN + 89 WHEN COUNT( * ) THEN + NULLIF ( + 52, + - CASE 13 WHEN - COUNT( * ) + - 5 THEN - + 10 * ( - NULLIF ( + 19, + ( 27 ) * - 59 + CAST( NULL AS SIGNED ) + - 78 ) ) WHEN 4 THEN - + 44 END ) * - 81 - - CAST( + 25 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT - 69 - CASE - - 48 WHEN - 67 THEN + 89 WHEN COUNT ( * ) THEN + NULLIF ( + 52, + - CASE 13 WHEN - COUNT ( * ) + - 5 THEN - + 10 * ( - NULLIF ( + 19, + ( 27 ) * - 59 + CAST ( NULL AS INTEGER ) + - 78 ) ) WHEN 4 THEN - + 44 END ) * - 81 - - CAST ( + 25 AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 78 col2
----
78

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

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

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

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

query I rowsort
SELECT - 86 + 78 col2
----
-8

query II rowsort
SELECT - 3 * 18, - 69 AS col1
----
-54
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT - 62 + - - 73 + SUM( 89 )
----
100

skipif mysql # not compatible
query I rowsort label-191
SELECT - 62 + - - 73 + SUM ( 89 )
----
100

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

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

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

skipif mysql # not compatible
query II rowsort label-193
SELECT - ( - 25 ) AS col0, COUNT ( * )
----
25
1

query I rowsort
SELECT + 44 * - 7 col1
----
-308

query I rowsort
SELECT + 56 + + ( - 10 ) * 66
----
-604

onlyif mysql # DIV for integer division: 
query I rowsort label-196
SELECT ALL + 62 * 56 DIV + 56 col1
----
62

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL + 62 * 56 / + 56 col1
----
62

query I rowsort
SELECT ALL + + 59 AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT - 54 DIV 40 + + ( + - 39 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-198
SELECT - 54 / 40 + + ( + - 39 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT DISTINCT - ( + 78 ) * SUM( + 20 )
----
-1560

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT - ( + 78 ) * SUM ( + 20 )
----
-1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-200
SELECT ALL 50 DIV - - 46 + + MAX( 30 ) * - 46 + + 3 DIV - - COUNT( * ) + 30, 3 * + 81 AS col1
----
-1346
243

skipif mysql # not compatible
query II rowsort label-200
SELECT ALL 50 / - - 46 + + MAX ( 30 ) * - 46 + + 3 / - - COUNT ( * ) + 30, 3 * + 81 AS col1
----
-1346
243

query I rowsort
SELECT + ( - + 22 ) * + 91 AS col2
----
-2002

query I rowsort
SELECT + 39 + + 6 + 48 AS col1
----
93

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-204
SELECT + - COUNT( * ) DIV + 76 * 89 * - 70 col1
----
0

skipif mysql # not compatible
query I rowsort label-204
SELECT + - COUNT ( * ) / + 76 * 89 * - 70 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-205
SELECT DISTINCT 20 * - + 33 + 4 col2, + 58 * MAX( - + 51 ) AS col1
----
-656
-2958

skipif mysql # not compatible
query II rowsort label-205
SELECT DISTINCT 20 * - + 33 + 4 col2, + 58 * MAX ( - + 51 ) AS col1
----
-656
-2958

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-206
SELECT + + COUNT( ALL - 58 ) AS col2, CAST( NULL AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-206
SELECT + + COUNT ( ALL - 58 ) AS col2, CAST ( NULL AS REAL )
----
1
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT - COALESCE ( COUNT( * ), 86, 9 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-208
SELECT - COALESCE ( COUNT ( * ), 86, 9 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT DISTINCT - + COUNT( * ) * - 24 - COUNT( * ) + - 87 * - 52 * - 61 + - COUNT( * ) - - 38 - - 77 * + 65 AS col0
----
-270899

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT - + COUNT ( * ) * - 24 - COUNT ( * ) + - 87 * - 52 * - 61 + - COUNT ( * ) - - 38 - - 77 * + 65 AS col0
----
-270899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-210
SELECT + - COUNT( DISTINCT - - 70 ) * 69 DIV + + MIN( DISTINCT - + 27 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-210
SELECT + - COUNT ( DISTINCT - - 70 ) * 69 / + + MIN ( DISTINCT - + 27 ) AS col1
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL 24 * + 94 * + SUM( 68 )
----
153408

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL 24 * + 94 * + SUM ( 68 )
----
153408

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT + MIN( DISTINCT - - 71 ) + - - 49
----
120

skipif mysql # not compatible
query I rowsort label-213
SELECT + MIN ( DISTINCT - - 71 ) + - - 49
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL 61 * + ( - + COUNT( * ) ) - - + 88 + + 11 * + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL 61 * + ( - + COUNT ( * ) ) - - + 88 + + 11 * + COUNT ( * )
----
38

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

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

query I rowsort
SELECT + 52 * + 58 AS col2
----
3016

onlyif mysql # aggregate syntax: 
query II rowsort label-217
SELECT - 70 + + + SUM( ALL + - 28 ), + MIN( 38 ) AS col2
----
-98
38

skipif mysql # not compatible
query II rowsort label-217
SELECT - 70 + + + SUM ( ALL + - 28 ), + MIN ( 38 ) AS col2
----
-98
38

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

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

query I rowsort
SELECT - 46 + + 24 * 93 AS col2
----
2186

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT ALL MIN( ALL - 52 ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL MIN ( ALL - 52 ) col0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-221
SELECT - 22 + - 3 + + 42 DIV - - 35 + 69 col1
----
45

skipif mysql # not compatible
query I rowsort label-221
SELECT - 22 + - 3 + + 42 / - - 35 + 69 col1
----
45

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT - 39 DIV - - COALESCE ( COUNT( * ), 73 )
----
-39

skipif mysql # not compatible
query I rowsort label-223
SELECT - 39 / - - COALESCE ( COUNT ( * ), 73 )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT DISTINCT - 46 DIV 38 col2
----
-1

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT - 46 / 38 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-225
SELECT ALL ( MAX( DISTINCT CAST( + 97 AS SIGNED ) ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL ( MAX ( DISTINCT CAST ( + 97 AS INTEGER ) ) ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT - MAX( 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-226
SELECT - MAX ( 17 ) AS col0
----
-17

query I rowsort
SELECT - 86 * - + 68 AS col0
----
5848

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-228
SELECT - 92 + + CAST( + ( - CAST( + 15 AS DECIMAL ) ) AS SIGNED ) AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-228
SELECT - 92 + + CAST ( + ( - CAST ( + 15 AS REAL ) ) AS INTEGER ) AS col1
----
-107

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT - 3 DIV + + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-230
SELECT - 3 / + + 58 AS col2
----
0

query I rowsort
SELECT ALL + ( + 41 ) * + + 71 + 44
----
2955

query II rowsort
SELECT 17 AS col0, ( - 80 ) + + 28
----
17
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT + ( + 10 ) * - COUNT( * ) AS col0, + NULLIF ( - ( + - 95 ), - SUM( ALL 28 ) )
----
-10
95

skipif mysql # not compatible
query II rowsort label-233
SELECT + ( + 10 ) * - COUNT ( * ) AS col0, + NULLIF ( - ( + - 95 ), - SUM ( ALL 28 ) )
----
-10
95

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL - 28 + - NULLIF ( + 72, - 87 + + - SUM( ALL - 84 ) * - 13 + ( COUNT( * ) ) + 6 ) * CASE - COUNT( * ) WHEN + CASE + NULLIF ( - + 0, - - 21 ) WHEN - COUNT( * ) / 93 THEN + 3 * ( - 81 ) * + + CASE - - CASE - NULLIF ( 59, - - 97 ) WHEN 74 THEN - AVG ( DISTINCT 56 ) / COUNT( * ) END WHEN - 7 THEN 44 * + 66 WHEN 73 THEN NULL ELSE - 77 * - 91 + - 66 END + + 3 ELSE 29 END THEN + 26 * - 13 - 95 ELSE ( ( 49 ) ) * - 50 END - - 99 AS col0
----
176471

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - 28 + - NULLIF ( + 72, - 87 + + - SUM ( ALL - 84 ) * - 13 + ( COUNT ( * ) ) + 6 ) * CASE - COUNT ( * ) WHEN + CASE + NULLIF ( - + 0, - - 21 ) WHEN - COUNT ( * ) / 93 THEN + 3 * ( - 81 ) * + + CASE - - CASE - NULLIF ( 59, - - 97 ) WHEN 74 THEN - AVG ( DISTINCT 56 ) / COUNT ( * ) END WHEN - 7 THEN 44 * + 66 WHEN 73 THEN NULL ELSE - 77 * - 91 + - 66 END + + 3 ELSE 29 END THEN + 26 * - 13 - 95 ELSE ( ( 49 ) ) * - 50 END - - 99 AS col0
----
176471

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-235
SELECT DISTINCT - 0 + - COUNT( * ) * - + 40 DIV - 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT - 0 + - COUNT ( * ) * - + 40 / - 50 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-236
SELECT - 65, - 58 DIV 41 * 79 AS col1
----
-65
-79

skipif mysql # not compatible
query II rowsort label-236
SELECT - 65, - 58 / 41 * 79 AS col1
----
-65
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT - - MIN( ALL 25 ) + - 44 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT - - MIN ( ALL 25 ) + - 44 AS col0
----
-19

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

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL - + COUNT ( + 90 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-240
SELECT + + CAST( NULL AS SIGNED ) col1, + 11 + - 61 * - - COALESCE ( - COUNT( * ), + - SUM( DISTINCT 93 ) - + - 40 + - + ( 1 ) * 41, - + 58 ) + 36
----
NULL
108

skipif mysql # not compatible
query II rowsort label-240
SELECT + + CAST ( NULL AS INTEGER ) col1, + 11 + - 61 * - - COALESCE ( - COUNT ( * ), + - SUM ( DISTINCT 93 ) - + - 40 + - + ( 1 ) * 41, - + 58 ) + 36
----
NULL
108

query I rowsort
SELECT 53 * 6
----
318

query I rowsort
SELECT ALL - 6 + 74
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-243
SELECT + NULLIF ( - COUNT( * ), - 51 ) AS col1, NULLIF ( - 34, + 53 )
----
-1
-34

skipif mysql # not compatible
query II rowsort label-243
SELECT + NULLIF ( - COUNT ( * ), - 51 ) AS col1, NULLIF ( - 34, + 53 )
----
-1
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-244
SELECT + 49 AS col0, COUNT( * ) + + 38 AS col2
----
49
39

skipif mysql # not compatible
query II rowsort label-244
SELECT + 49 AS col0, COUNT ( * ) + + 38 AS col2
----
49
39

query I rowsort
SELECT ALL 15 * + 82 AS col1
----
1230

query I rowsort
SELECT + 97 * + + 24 - 36 + + 43 * 45
----
4227

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-248
SELECT DISTINCT + 24 - + ( - + 86 ) + COUNT( * ) + 57 / + 55 * - + 48 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT + 24 - + ( - + 86 ) + COUNT ( * ) + 57 / + 55 * - + 48 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-249
SELECT DISTINCT - - COUNT( * ) AS col2, 62 * + - 68
----
1
-4216

skipif mysql # not compatible
query II rowsort label-249
SELECT DISTINCT - - COUNT ( * ) AS col2, 62 * + - 68
----
1
-4216

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

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

query I rowsort
SELECT + 48 + - + 27
----
21

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT - ( - 79 ) * 59 * + 31 * - + COUNT( * ) + - 85
----
-144576

skipif mysql # not compatible
query I rowsort label-254
SELECT - ( - 79 ) * 59 * + 31 * - + COUNT ( * ) + - 85
----
-144576

query I rowsort
SELECT 30 + + ( - 51 ) * + + 15 AS col1
----
-735

query I rowsort
SELECT ALL 40 * - 75
----
-3000

query I rowsort
SELECT DISTINCT 58 * - 78
----
-4524

query I rowsort
SELECT 30 * + + 50
----
1500

query I rowsort
SELECT ALL 4 * - 18
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL - 97 + + 37 + COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - 97 + + 37 + COUNT ( * ) AS col2
----
-59

query I rowsort
SELECT 45 * + 67
----
3015

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

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL + 88 / 37 * + COUNT ( ALL + 18 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT DISTINCT CASE - - NULLIF ( + 51, - 14 ) WHEN + 88 + - 5 + - - 84 + 13 - - COUNT( * ) THEN NULL ELSE 83 END + - 44
----
39

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT CASE - - NULLIF ( + 51, - 14 ) WHEN + 88 + - 5 + - - 84 + 13 - - COUNT ( * ) THEN NULL ELSE 83 END + - 44
----
39

query I rowsort
SELECT ALL - 24 + 89 col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-265
SELECT DISTINCT + 70 * - COUNT( * ), CASE WHEN NOT NULL <= 11 THEN NULLIF ( 22, 82 ) + - - 5 + 38 END AS col0
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-265
SELECT DISTINCT + 70 * - COUNT ( * ), CASE WHEN NOT NULL <= 11 THEN NULLIF ( 22, 82 ) + - - 5 + 38 END AS col0
----
-70
NULL

query I rowsort
SELECT DISTINCT - 54 + 46 AS col1
----
-8

query I rowsort
SELECT + COALESCE ( - 57, - 85 + - 16, - 37 ) + 92
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT COALESCE ( - + 69, - 92 + - 59 - + 61 ) * - - COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-268
SELECT COALESCE ( - + 69, - 92 + - 59 - + 61 ) * - - COUNT ( * ) AS col0
----
-69

query I rowsort
SELECT + 38 + - - 16 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-270
SELECT + 7 - - COUNT( * ) AS col0, + 78 * + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * - + 86 + - + 23 + + + 79 * - 61
----
8
NULL

skipif mysql # not compatible
query II rowsort label-270
SELECT + 7 - - COUNT ( * ) AS col0, + 78 * + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 86 + - + 23 + + + 79 * - 61
----
8
NULL

query I rowsort
SELECT ALL - + 74 * 19 AS col2
----
-1406

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + ( - 20 ) * - + COUNT( * ) * + 68 + 92 + - 10 AS col0
----
1442

skipif mysql # not compatible
query I rowsort label-272
SELECT + ( - 20 ) * - + COUNT ( * ) * + 68 + 92 + - 10 AS col0
----
1442

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

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

query I rowsort
SELECT ALL - - 40 AS col2
----
40

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT + COALESCE ( CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) / 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-276
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) / 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-277
SELECT - CAST( - + 51 AS SIGNED ) AS col2, 62
----
51
62

skipif mysql # not compatible
query II rowsort label-277
SELECT - CAST ( - + 51 AS INTEGER ) AS col2, 62
----
51
62

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT + NULLIF ( + 27, + + 81 * + 38 - - CASE + 51 WHEN - - 29 THEN 94 ELSE NULL END / COUNT( * ) - 40 ) + + 76 * + 72 + + - 33
----
5466

skipif mysql # not compatible
query I rowsort label-278
SELECT + NULLIF ( + 27, + + 81 * + 38 - - CASE + 51 WHEN - - 29 THEN 94 ELSE NULL END / COUNT ( * ) - 40 ) + + 76 * + 72 + + - 33
----
5466

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT 65 * - COUNT( * ) + - - COUNT( * ) + + CASE - 12 WHEN - 97 + 28 THEN COUNT( * ) * + - COUNT( * ) WHEN 36 + + - 6 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT 65 * - COUNT ( * ) + - - COUNT ( * ) + + CASE - 12 WHEN - 97 + 28 THEN COUNT ( * ) * + - COUNT ( * ) WHEN 36 + + - 6 THEN NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-282
SELECT ALL + 63 DIV + 79 * + COALESCE ( COUNT( * ), - 41 * + - 89 + COUNT( * ) * COUNT( * ) * - 18 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL + 63 / + 79 * + COALESCE ( COUNT ( * ), - 41 * + - 89 + COUNT ( * ) * COUNT ( * ) * - 18 ) AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT COALESCE ( 59, - 58 ) DIV - NULLIF ( + 76, - COALESCE ( + 45, + ( - 10 ) + - + 22, + 40 ) )
----
0

skipif mysql # not compatible
query I rowsort label-284
SELECT COALESCE ( 59, - 58 ) / - NULLIF ( + 76, - COALESCE ( + 45, + ( - 10 ) + - + 22, + 40 ) )
----
0

query I rowsort
SELECT 1 + + + 8 + - - 70 AS col2
----
79

query I rowsort
SELECT 10 + - 49 AS col2
----
-39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-288
SELECT ( + 82 ) DIV + ( + 28 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-288
SELECT ( + 82 ) / + ( + 28 ) AS col0
----
2

query I rowsort
SELECT + 80 + + + 4
----
84

query I rowsort
SELECT + 45 * - 85 * - + 88 AS col1
----
336600

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT 92 * CASE 38 WHEN - MAX( - + 13 ) * - 72 * COUNT( * ) + + 57 * + 48 THEN - 56 WHEN - + ( + 20 ) THEN NULL ELSE + 73 END + 85 AS col0
----
6801

skipif mysql # not compatible
query I rowsort label-291
SELECT 92 * CASE 38 WHEN - MAX ( - + 13 ) * - 72 * COUNT ( * ) + + 57 * + 48 THEN - 56 WHEN - + ( + 20 ) THEN NULL ELSE + 73 END + 85 AS col0
----
6801

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

onlyif mysql # aggregate syntax: 
query II rowsort label-293
SELECT + COUNT( * ) + + - 86 + - ( - 48 ) + - - 35 AS col1, + 75 AS col0
----
-2
75

skipif mysql # not compatible
query II rowsort label-293
SELECT + COUNT ( * ) + + - 86 + - ( - 48 ) + - - 35 AS col1, + 75 AS col0
----
-2
75

query II rowsort
SELECT + 9 + - + 68 * + 30 AS col2, - 87
----
-2031
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-295
SELECT 86 AS col1, - 1 * - 59 DIV - 24 AS col1
----
86
-2

skipif mysql # not compatible
query II rowsort label-295
SELECT 86 AS col1, - 1 * - 59 / - 24 AS col1
----
86
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT + 85 + + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-296
SELECT + 85 + + + COUNT ( * )
----
86

query I rowsort
SELECT DISTINCT 50 + 90 AS col2
----
140

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-299
SELECT - MIN( + - 31 ) + 8 * + MIN( + 52 ) col0, CAST( + 82 AS SIGNED )
----
447
82

skipif mysql # not compatible
query II rowsort label-299
SELECT - MIN ( + - 31 ) + 8 * + MIN ( + 52 ) col0, CAST ( + 82 AS INTEGER )
----
447
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-300
SELECT DISTINCT COUNT( * ), CAST( NULL AS DECIMAL ) + + 36 * COALESCE ( - - 97, + - CASE + 96 WHEN - 88 + 74 * + 96 + 1 THEN 49 * + 49 + - + 72 * + + MIN( DISTINCT 84 ) ELSE + - 81 END, - CASE + 79 WHEN + 85 THEN NULL ELSE 33 + + SUM( DISTINCT - ( 61 ) ) + - + 33 END ) + - 23 + + - 40 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-300
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS REAL ) + + 36 * COALESCE ( - - 97, + - CASE + 96 WHEN - 88 + 74 * + 96 + 1 THEN 49 * + 49 + - + 72 * + + MIN ( DISTINCT 84 ) ELSE + - 81 END, - CASE + 79 WHEN + 85 THEN NULL ELSE 33 + + SUM ( DISTINCT - ( 61 ) ) + - + 33 END ) + - 23 + + - 40 AS col1
----
1
NULL

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

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT - COUNT ( + 18 ) AS col0
----
-1

query I rowsort
SELECT + 58 * - 89 AS col2
----
-5162

query I rowsort
SELECT ALL - 79 * ( 54 )
----
-4266

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT - SUM( ALL - COALESCE ( - 77, - + ( + 90 ), 67 * + 49 ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-304
SELECT - SUM ( ALL - COALESCE ( - 77, - + ( + 90 ), 67 * + 49 ) ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-305
SELECT - CASE 87 WHEN - - COUNT( * ) + - + 36 + 99 / - - MIN( + - 29 ) THEN - - 47 * + 25 * COUNT( * ) WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col1, 70 AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-305
SELECT - CASE 87 WHEN - - COUNT ( * ) + - + 36 + 99 / - - MIN ( + - 29 ) THEN - - 47 * + 25 * COUNT ( * ) WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col1, 70 AS col0
----
NULL
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-306
SELECT DISTINCT + - 26 * COUNT( * ) DIV + 72 - - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT + - 26 * COUNT ( * ) / + 72 - - - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT + + 49 - + + 72 + - 46 + + COUNT( * ) * 98
----
29

skipif mysql # not compatible
query I rowsort label-307
SELECT + + 49 - + + 72 + - 46 + + COUNT ( * ) * 98
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-308
SELECT - COALESCE ( - 50, - - 92, - ( + + 3 ) DIV + - 97 * - ( - COUNT( * ) ) ) * + 10 AS col1
----
500

skipif mysql # not compatible
query I rowsort label-308
SELECT - COALESCE ( - 50, - - 92, - ( + + 3 ) / + - 97 * - ( - COUNT ( * ) ) ) * + 10 AS col1
----
500

query I rowsort
SELECT DISTINCT + - 34 * + - 59 AS col2
----
2006

query II rowsort
SELECT - 74 * + + 51 * + + 79 AS col2, - 58
----
-298146
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT - 44 * + - 90 * - SUM( + 8 ) + + 69 AS col2
----
-31611

skipif mysql # not compatible
query I rowsort label-311
SELECT - 44 * + - 90 * - SUM ( + 8 ) + + 69 AS col2
----
-31611

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-312
SELECT DISTINCT + + 4 * 50 * - 99 col1, CAST( NULL AS SIGNED )
----
-19800
NULL

skipif mysql # not compatible
query II rowsort label-312
SELECT DISTINCT + + 4 * 50 * - 99 col1, CAST ( NULL AS INTEGER )
----
-19800
NULL

query II rowsort
SELECT - 23 * + - 9 AS col0, 35 col2
----
207
35

query I rowsort
SELECT - 87 * - 82 * - 24 AS col1
----
-171216

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT - COALESCE ( - 19, + 65 ) * 2 + + - COUNT( * ) + CASE - - 10 WHEN + 19 THEN 75 * + + 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-315
SELECT - COALESCE ( - 19, + 65 ) * 2 + + - COUNT ( * ) + CASE - - 10 WHEN + 19 THEN 75 * + + 34 ELSE NULL END
----
NULL

query I rowsort
SELECT 5 * + + 34 - - 92
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT MAX( 74 ) * 33 * + + NULLIF ( COUNT( * ), - - 79 ) + + COUNT( * )
----
2443

skipif mysql # not compatible
query I rowsort label-317
SELECT MAX ( 74 ) * 33 * + + NULLIF ( COUNT ( * ), - - 79 ) + + COUNT ( * )
----
2443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL + COUNT( * ) * - 33 * + 25 + + 15 - - 69 + - - 96 + CASE 10 WHEN 93 * - 2 * + SUM( DISTINCT + + CAST( + 87 AS SIGNED ) ) - - - COUNT( * ) THEN - COUNT( ALL - 68 ) * + SUM( DISTINCT 95 ) WHEN 79 THEN - 30 * + + 87 + - - 50 * + + 1 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL + COUNT ( * ) * - 33 * + 25 + + 15 - - 69 + - - 96 + CASE 10 WHEN 93 * - 2 * + SUM ( DISTINCT + + CAST ( + 87 AS INTEGER ) ) - - - COUNT ( * ) THEN - COUNT ( ALL - 68 ) * + SUM ( DISTINCT 95 ) WHEN 79 THEN - 30 * + + 87 + - - 50 * + + 1 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT NULLIF ( + - 59, + CAST( + + ( + - 53 ) AS SIGNED ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-319
SELECT NULLIF ( + - 59, + CAST ( + + ( + - 53 ) AS INTEGER ) ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL CASE + COUNT( * ) WHEN + - 96 + - 34 THEN NULL ELSE + - 59 END * - 46 + COUNT( * )
----
2715

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL CASE + COUNT ( * ) WHEN + - 96 + - 34 THEN NULL ELSE + - 59 END * - 46 + COUNT ( * )
----
2715

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT - SUM( DISTINCT 26 ) * - 70
----
1820

skipif mysql # not compatible
query I rowsort label-321
SELECT - SUM ( DISTINCT 26 ) * - 70
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT + 43 * + + 60 * + - 65 * + + CASE + + 93 WHEN - 29 THEN NULL WHEN + 50 THEN + 62 * - 3 ELSE NULL END + - MIN( ALL - 23 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT + 43 * + + 60 * + - 65 * + + CASE + + 93 WHEN - 29 THEN NULL WHEN + 50 THEN + 62 * - 3 ELSE NULL END + - MIN ( ALL - 23 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-323
SELECT ALL + 19, MAX( - 25 ) AS col0
----
19
-25

skipif mysql # not compatible
query II rowsort label-323
SELECT ALL + 19, MAX ( - 25 ) AS col0
----
19
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT DISTINCT + 27 * COUNT( * ) + ( - 24 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT + 27 * COUNT ( * ) + ( - 24 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT MIN( DISTINCT - ( 52 ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-325
SELECT MIN ( DISTINCT - ( 52 ) ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT - 97 - - COUNT( * ) + 19
----
-77

skipif mysql # not compatible
query I rowsort label-326
SELECT - 97 - - COUNT ( * ) + 19
----
-77

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

skipif mysql # not compatible
query I rowsort label-327
SELECT MIN ( ALL 71 )
----
71

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT DISTINCT 2 DIV + + 51
----
0

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT 2 / + + 51
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-330
SELECT ALL 59 - NULLIF ( - + MAX( ALL + + 80 ), + 40 ) DIV 44 col0, - 97 + - 14
----
60
-111

skipif mysql # not compatible
query II rowsort label-330
SELECT ALL 59 - NULLIF ( - + MAX ( ALL + + 80 ), + 40 ) / 44 col0, - 97 + - 14
----
60
-111

query I rowsort
SELECT - - 88 * + ( - + 86 ) * ( 93 )
----
-703824

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-332
SELECT - - 90 col0, CAST( NULL AS DECIMAL ) + 39 - + + 97 + + + COUNT( * ) AS col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-332
SELECT - - 90 col0, CAST ( NULL AS REAL ) + 39 - + + 97 + + + COUNT ( * ) AS col1
----
90
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-334
SELECT ALL - CAST( - 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL - CAST ( - 18 AS INTEGER ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-335
SELECT DISTINCT + 66, - 32 DIV + 25 - - 48 * - CASE + + ( - 33 ) WHEN + 47 THEN NULL ELSE + - 8 * + + 52 * + - COUNT( * ) END AS col0
----
66
-19969

skipif mysql # not compatible
query II rowsort label-335
SELECT DISTINCT + 66, - 32 / + 25 - - 48 * - CASE + + ( - 33 ) WHEN + 47 THEN NULL ELSE + - 8 * + + 52 * + - COUNT ( * ) END AS col0
----
66
-19969

query I rowsort
SELECT ALL - 28 * + - 0 AS col0
----
0

query I rowsort
SELECT + 65 * - 85 - - - 21 AS col1
----
-5546

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-339
SELECT DISTINCT + NULLIF ( + SUM( ALL 5 ), + 65 ) col1, COUNT( * ) AS col0
----
5
1

skipif mysql # not compatible
query II rowsort label-339
SELECT DISTINCT + NULLIF ( + SUM ( ALL 5 ), + 65 ) col1, COUNT ( * ) AS col0
----
5
1

query I rowsort
SELECT + - 89 * + 88 + 38
----
-7794

query I rowsort
SELECT + 22 + 72 AS col0
----
94

query I rowsort
SELECT ALL 61 * - - 16 * - 87 AS col2
----
-84912

query I rowsort
SELECT + 5 - - 33 col2
----
38

query I rowsort
SELECT + 49 + - 30
----
19

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

query I rowsort
SELECT ( ( - 91 ) ) * - 33 + + + ( 78 ) AS col0
----
3081

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT ALL - - 31 DIV 12 * - 82
----
-164

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - - 31 / 12 * - 82
----
-164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-348
SELECT + ( + - NULLIF ( - ( CASE COALESCE ( + NULLIF ( - 12, ( 29 ) ), - 87 ) WHEN 72 + + ( - COUNT( * ) ) THEN 27 + ( ( + - 74 ) ) ELSE - + 89 END ), + + COUNT( DISTINCT - 34 ) + - - 84 + - - 79 ) ) DIV - 11 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-348
SELECT + ( + - NULLIF ( - ( CASE COALESCE ( + NULLIF ( - 12, ( 29 ) ), - 87 ) WHEN 72 + + ( - COUNT ( * ) ) THEN 27 + ( ( + - 74 ) ) ELSE - + 89 END ), + + COUNT ( DISTINCT - 34 ) + - - 84 + - - 79 ) ) / - 11 AS col1
----
8

query I rowsort
SELECT + 11 + + - 0
----
11

query I rowsort
SELECT + 70 * - - 39 AS col2
----
2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-351
SELECT - COUNT( * ) * CAST( + + ( - 20 ) AS SIGNED ) + 48 DIV + COUNT( * ) + 79 AS col0, 37 * + 70 AS col1
----
147
2590

skipif mysql # not compatible
query II rowsort label-351
SELECT - COUNT ( * ) * CAST ( + + ( - 20 ) AS INTEGER ) + 48 / + COUNT ( * ) + 79 AS col0, 37 * + 70 AS col1
----
147
2590

query I rowsort
SELECT ALL + ( - ( + NULLIF ( + 58, 8 ) ) ) + - 90
----
-148

query I rowsort
SELECT 28 * + 90 + + - 22
----
2498

query II rowsort
SELECT ALL - ( - - 12 ), 24 AS col0
----
-12
24

query I rowsort
SELECT 45 + 38 AS col1
----
83

query II rowsort
SELECT ALL ( - 61 ) + + 39 AS col1, 92 AS col0
----
-22
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-357
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-358
SELECT ALL - 29 - CAST( NULL AS SIGNED ) + + - 39, - COALESCE ( COUNT( * ), COUNT( * ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-358
SELECT ALL - 29 - CAST ( NULL AS INTEGER ) + + - 39, - COALESCE ( COUNT ( * ), COUNT ( * ) ) AS col1
----
NULL
-1

query I rowsort
SELECT 45 + - 91
----
-46

query I rowsort
SELECT 90 + - 7 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT + - 18 * + - 21 * - - 43 * 45 + ( + COUNT( * ) )
----
731431

skipif mysql # not compatible
query I rowsort label-361
SELECT + - 18 * + - 21 * - - 43 * 45 + ( + COUNT ( * ) )
----
731431

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT ( + COUNT( * ) ) + + NULLIF ( - COUNT( * ), ( - 84 ) * 71 + ( 34 ) )
----
0

skipif mysql # not compatible
query I rowsort label-362
SELECT ( + COUNT ( * ) ) + + NULLIF ( - COUNT ( * ), ( - 84 ) * 71 + ( 34 ) )
----
0

query I rowsort
SELECT 53 + - 16 * - 20 AS col0
----
373

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT - 29 * + COUNT( * ) * - + 77 AS col0
----
2233

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT - 29 * + COUNT ( * ) * - + 77 AS col0
----
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT DISTINCT CASE COUNT( * ) WHEN 25 THEN NULL ELSE NULLIF ( + + 56, - 38 * 77 - - + 67 ) END
----
56

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT CASE COUNT ( * ) WHEN 25 THEN NULL ELSE NULLIF ( + + 56, - 38 * 77 - - + 67 ) END
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-366
SELECT - AVG ( ALL 67 ) + + ( - CAST( CASE + + CASE + 30 WHEN - 63 THEN NULL WHEN + + 78 + - 53 THEN - + 55 * + 6 * 66 + - 69 - 64 * 77 END WHEN 92 THEN + COUNT( * ) / - 59 * - 38 * - - 39 * - MAX( - 31 ) - 75 + + COUNT( * ) * - ( + 37 ) * - 66 + 61 - - 32 ELSE NULL END AS SIGNED ) ) + - 81 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT - AVG ( ALL 67 ) + + ( - CAST ( CASE + + CASE + 30 WHEN - 63 THEN NULL WHEN + + 78 + - 53 THEN - + 55 * + 6 * 66 + - 69 - 64 * 77 END WHEN 92 THEN + COUNT ( * ) / - 59 * - 38 * - - 39 * - MAX ( - 31 ) - 75 + + COUNT ( * ) * - ( + 37 ) * - 66 + 61 - - 32 ELSE NULL END AS INTEGER ) ) + - 81 / - COUNT ( * )
----
NULL

query II rowsort
SELECT 76 + - 73 AS col0, - 28
----
3
-28

query I rowsort
SELECT - ( 49 ) * + 98 col0
----
-4802

onlyif mysql # DIV for integer division: 
query I rowsort label-369
SELECT ALL - COALESCE ( + + 61, - 96 ) DIV 55
----
-1

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL - COALESCE ( + + 61, - 96 ) / 55
----
-1

query I rowsort
SELECT ALL + 77 + - 12 AS col2
----
65

query I rowsort
SELECT ALL - 86 + 71 col2
----
-15

query I rowsort
SELECT DISTINCT + 22 + + - ( + + 53 ) AS col2
----
-31

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

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

query II rowsort
SELECT 81 - + 92, + 52 AS col2
----
-11
52

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT DISTINCT 40 + + - 85 + - 20 + + CASE 65 WHEN + ( - 34 ) THEN 28 + - 85 * + + 56 WHEN - - COUNT( * ) THEN + 94 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT 40 + + - 85 + - 20 + + CASE 65 WHEN + ( - 34 ) THEN 28 + - 85 * + + 56 WHEN - - COUNT ( * ) THEN + 94 END AS col2
----
NULL

query I rowsort
SELECT 13 * + 21
----
273

query I rowsort
SELECT 49 * - - 72
----
3528

query II rowsort
SELECT ALL - 65, + 48 AS col0
----
-65
48

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT DISTINCT 4 * COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT 4 * COUNT ( * ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-380
SELECT 33 * - COUNT( * ) DIV + + CAST( - COUNT( * ) AS SIGNED ) + ( + + 1 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-380
SELECT 33 * - COUNT ( * ) / + + CAST ( - COUNT ( * ) AS INTEGER ) + ( + + 1 ) AS col2
----
34

query I rowsort
SELECT ALL 39 - + - 97 * 3 * + 72 + 16
----
21007

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT DISTINCT - 51 DIV - 16 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT - 51 / - 16 AS col2
----
3

query I rowsort
SELECT ALL + 97 - 3 + + + 8 * - 89 * - + 98
----
69870

query I rowsort
SELECT ALL - 42 * 57
----
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT COUNT( + 68 ) * + 10 * + COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-385
SELECT COUNT ( + 68 ) * + 10 * + COUNT ( * ) AS col2
----
10

query I rowsort
SELECT 71 + + 27 col2
----
98

query I rowsort
SELECT + 83 * - 6 + - + NULLIF ( - + 14, 28 ) AS col2
----
-484

onlyif mysql # aggregate syntax: 
query II rowsort label-388
SELECT 88, MIN( ALL - + 50 ) * 16 * - 94 AS col1
----
88
75200

skipif mysql # not compatible
query II rowsort label-388
SELECT 88, MIN ( ALL - + 50 ) * 16 * - 94 AS col1
----
88
75200

query I rowsort
SELECT DISTINCT 91 * + - 77 AS col2
----
-7007

query II rowsort
SELECT DISTINCT - + 59, - 96 col0
----
-59
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT ALL 98 * 58 + + 5 - - MIN( 57 )
----
5746

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL 98 * 58 + + 5 - - MIN ( 57 )
----
5746

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-392
SELECT DISTINCT CAST( - + 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT CAST ( - + 83 AS INTEGER ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-393
SELECT DISTINCT COALESCE ( - 61, - COUNT( * ) ) AS col2, + COUNT( * ) AS col2
----
-61
1

skipif mysql # not compatible
query II rowsort label-393
SELECT DISTINCT COALESCE ( - 61, - COUNT ( * ) ) AS col2, + COUNT ( * ) AS col2
----
-61
1

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

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

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

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

query I rowsort
SELECT - 56 * 35 + 24 + - 55 * + - 99 AS col1
----
3509

onlyif mysql # aggregate syntax: 
query II rowsort label-397
SELECT - + 45 AS col1, COUNT( * ) * 6
----
-45
6

skipif mysql # not compatible
query II rowsort label-397
SELECT - + 45 AS col1, COUNT ( * ) * 6
----
-45
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-398
SELECT DISTINCT - + 89 * - 58 DIV - COUNT( * ) + - 85 AS col0
----
-5247

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT - + 89 * - 58 / - COUNT ( * ) + - 85 AS col0
----
-5247

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT DISTINCT + + COUNT( * ) + + - SUM( - 58 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT + + COUNT ( * ) + + - SUM ( - 58 ) AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-400
SELECT DISTINCT + 48 + CAST( 78 AS SIGNED ) + + + 92 col1
----
218

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT + 48 + CAST ( 78 AS INTEGER ) + + + 92 col1
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL + - 77 + + MIN( ALL 57 ) * + 10
----
493

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL + - 77 + + MIN ( ALL 57 ) * + 10
----
493

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT 70 - - MAX( ALL - + 30 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-402
SELECT 70 - - MAX ( ALL - + 30 ) AS col0
----
40

query I rowsort
SELECT ALL + - 60 + - 10 + - 53 * - - 87 * - 2 * + 45 * - 90 + - + 73
----
-37349243

query I rowsort
SELECT DISTINCT - 57 * - ( - + 28 )
----
-1596

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT 16 DIV - - 33
----
0

skipif mysql # not compatible
query I rowsort label-405
SELECT 16 / - - 33
----
0

query I rowsort
SELECT ALL - 35 + + 87
----
52

query I rowsort
SELECT ALL - + 47 * - 44
----
2068

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT + 90 - 37 + 98 * - - COUNT( * )
----
151

skipif mysql # not compatible
query I rowsort label-408
SELECT + 90 - 37 + 98 * - - COUNT ( * )
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-409
SELECT - - COUNT( ALL 15 ) + + 25 col0, + 71 col0
----
26
71

skipif mysql # not compatible
query II rowsort label-409
SELECT - - COUNT ( ALL 15 ) + + 25 col0, + 71 col0
----
26
71

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT + + 80 - COALESCE ( 34, 56 * + + NULLIF ( - ( - + 56 ), 73 ) * + 61 + + + 10 + - - SUM( - 15 ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-410
SELECT + + 80 - COALESCE ( 34, 56 * + + NULLIF ( - ( - + 56 ), 73 ) * + 61 + + + 10 + - - SUM ( - 15 ) ) AS col0
----
46

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-412
SELECT - 64 * + 85 AS col1, 94 DIV COUNT( * )
----
-5440
94

skipif mysql # not compatible
query II rowsort label-412
SELECT - 64 * + 85 AS col1, 94 / COUNT ( * )
----
-5440
94

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT + 29 - - 70 * + CASE - NULLIF ( MIN( + 15 ), SUM( - 7 ) + 12 + 84 * - 38 * + + ( - 31 ) ) WHEN + 83 THEN - 23 END * 29 * - + ( 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-413
SELECT + 29 - - 70 * + CASE - NULLIF ( MIN ( + 15 ), SUM ( - 7 ) + 12 + 84 * - 38 * + + ( - 31 ) ) WHEN + 83 THEN - 23 END * 29 * - + ( 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT COALESCE ( + COUNT( * ), - 75 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-414
SELECT COALESCE ( + COUNT ( * ), - 75 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT DISTINCT + ( CASE + + 86 WHEN - 80 THEN + 87 * 61 + - 95 + + + COUNT( * ) + - MAX( DISTINCT + - ( + 21 ) ) * + 38 * - + 5 WHEN - ( + + 79 ) THEN - 72 * - 29 * + 21 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT + ( CASE + + 86 WHEN - 80 THEN + 87 * 61 + - 95 + + + COUNT ( * ) + - MAX ( DISTINCT + - ( + 21 ) ) * + 38 * - + 5 WHEN - ( + + 79 ) THEN - 72 * - 29 * + 21 END )
----
NULL

query I rowsort
SELECT DISTINCT 22 * + - 2
----
-44

query I rowsort
SELECT - 98 + 87 AS col0
----
-11

query I rowsort
SELECT - 57 * - ( - 72 ) AS col1
----
-4104

query I rowsort
SELECT + 63 * - 6
----
-378

query I rowsort
SELECT DISTINCT 86 * - 10 * - - 23
----
-19780

query II rowsort
SELECT + 27 * + 14 * + 33 * + 65, 87 AS col1
----
810810
87

query I rowsort
SELECT - ( 94 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT COUNT( - CASE + 18 WHEN + 33 THEN NULL ELSE + 76 END ) * + - 13 - + + 68
----
-81

skipif mysql # not compatible
query I rowsort label-423
SELECT COUNT ( - CASE + 18 WHEN + 33 THEN NULL ELSE + 76 END ) * + - 13 - + + 68
----
-81

query I rowsort
SELECT + - ( 45 ) + 59 AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-425
SELECT ALL + 51 * - 25 + - 65 * + 81 DIV - - COUNT( * ) * - - COUNT( DISTINCT + + 32 )
----
-6540

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL + 51 * - 25 + - 65 * + 81 / - - COUNT ( * ) * - - COUNT ( DISTINCT + + 32 )
----
-6540

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT ALL + - 25 + - 81 * + + ( + COUNT( * ) )
----
-106

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + - 25 + - 81 * + + ( + COUNT ( * ) )
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT - - 79 * - + ( - + 87 ) + + COUNT( * ) * + + ( 21 ) - + - ( - 37 )
----
6857

skipif mysql # not compatible
query I rowsort label-429
SELECT - - 79 * - + ( - + 87 ) + + COUNT ( * ) * + + ( 21 ) - + - ( - 37 )
----
6857

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-431
SELECT DISTINCT 17 * - MAX( ALL - 2 ) + + - COUNT( * ) DIV + SUM( + - 39 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-431
SELECT DISTINCT 17 * - MAX ( ALL - 2 ) + + - COUNT ( * ) / + SUM ( + - 39 ) AS col2
----
34

query I rowsort
SELECT + + 89 * + ( - 87 ) AS col0
----
-7743

onlyif mysql # aggregate syntax: 
query II rowsort label-433
SELECT ( + 61 ), 23 * - COUNT( * ) col2
----
61
-23

skipif mysql # not compatible
query II rowsort label-433
SELECT ( + 61 ), 23 * - COUNT ( * ) col2
----
61
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-434
SELECT - 88 + + + CASE - 69 WHEN - - ( + + CAST( NULL AS DECIMAL ) ) * 91 - + - 51 THEN - - 86 + - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT - 88 + + + CASE - 69 WHEN - - ( + + CAST ( NULL AS REAL ) ) * 91 - + - 51 THEN - - 86 + - 29 END
----
NULL

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

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

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

query I rowsort
SELECT ALL + 69 * - 31
----
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT DISTINCT COUNT( ALL - - 53 ) - + 40 * SUM( ALL - 67 ) AS col0
----
2681

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT COUNT ( ALL - - 53 ) - + 40 * SUM ( ALL - 67 ) AS col0
----
2681

query I rowsort
SELECT DISTINCT - 96 - - 94 AS col0
----
-2

query I rowsort
SELECT ALL + 42 * - 2
----
-84

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

skipif mysql # not compatible
query I rowsort label-441
SELECT - COUNT ( * ) * - 6 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 69 * 45 AS col2
----
3105

query II rowsort
SELECT - 22, 77 AS col1
----
-22
77

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT + COALESCE ( + 79, + 33 DIV - 86, - + 17, + 81 ) * - ( + - NULLIF ( - 60, + 39 ) ) * 87 + - 47
----
-412427

skipif mysql # not compatible
query I rowsort label-444
SELECT + COALESCE ( + 79, + 33 / - 86, - + 17, + 81 ) * - ( + - NULLIF ( - 60, + 39 ) ) * 87 + - 47
----
-412427

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL COUNT ( * ) / 65 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT DISTINCT + ( NULLIF ( - SUM( 88 ), + 14 ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT + ( NULLIF ( - SUM ( 88 ), + 14 ) ) AS col0
----
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT + 29 + + ( - - 37 ) + ( - + COUNT( * ) ) * - 3 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-450
SELECT + 29 + + ( - - 37 ) + ( - + COUNT ( * ) ) * - 3 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-451
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * ( - - 78 ) * - 62 - - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * ( - - 78 ) * - 62 - - + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT COUNT( * ) * + 47 + - 69 col0
----
-22

skipif mysql # not compatible
query I rowsort label-452
SELECT COUNT ( * ) * + 47 + - 69 col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-453
SELECT ALL 17 * + + COUNT( DISTINCT 17 ), - 51 + + 40 + 20 * - COUNT( * ) * - 25 + + 52 AS col1
----
17
541

skipif mysql # not compatible
query II rowsort label-453
SELECT ALL 17 * + + COUNT ( DISTINCT 17 ), - 51 + + 40 + 20 * - COUNT ( * ) * - 25 + + 52 AS col1
----
17
541

query I rowsort
SELECT + + 28 * - 85
----
-2380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-455
SELECT ALL + - CAST( NULL AS SIGNED ) * - 11 + 82, + 69 AS col0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-455
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 11 + 82, + 69 AS col0
----
NULL
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-456
SELECT - 75 - SUM( ALL + 52 ) / - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-456
SELECT - 75 - SUM ( ALL + 52 ) / - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 87 + + 66
----
153

query I rowsort
SELECT 30 * - 65
----
-1950

query I rowsort
SELECT - 2 + + 35 + 83 - + 33
----
83

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-462
SELECT - COUNT( * ), + CASE COUNT( * ) WHEN 18 THEN - 53 END AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-462
SELECT - COUNT ( * ), + CASE COUNT ( * ) WHEN 18 THEN - 53 END AS col0
----
-1
NULL

query I rowsort
SELECT DISTINCT 90 - - - 68 AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT ALL + COALESCE ( 37, + 41 * - 72 + + 59 ) DIV 9 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL + COALESCE ( 37, + 41 * - 72 + + 59 ) / 9 AS col2
----
4

query I rowsort
SELECT ( + 52 ) - - 1 AS col0
----
53

query I rowsort
SELECT DISTINCT - 13 * 62
----
-806

query II rowsort
SELECT - 9 AS col0, 27 AS col0
----
-9
27

onlyif mysql # aggregate syntax: 
query II rowsort label-468
SELECT ALL 10 AS col0, + ( + 6 ) + - ( + COUNT( * ) ) col0
----
10
5

skipif mysql # not compatible
query II rowsort label-468
SELECT ALL 10 AS col0, + ( + 6 ) + - ( + COUNT ( * ) ) col0
----
10
5

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL ( MAX( DISTINCT ( 27 ) ) ) * - + 48 AS col2
----
-1296

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL ( MAX ( DISTINCT ( 27 ) ) ) * - + 48 AS col2
----
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT COALESCE ( + 18, + 98 ) + MAX( ALL 41 ) col2
----
59

skipif mysql # not compatible
query I rowsort label-470
SELECT COALESCE ( + 18, + 98 ) + MAX ( ALL 41 ) col2
----
59

query I rowsort
SELECT 64 * - 8 * + 32
----
-16384

query I rowsort
SELECT 74 - 63 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT - 20, - COALESCE ( - 42, - COUNT( * ) ) AS col1
----
-20
42

skipif mysql # not compatible
query II rowsort label-473
SELECT - 20, - COALESCE ( - 42, - COUNT ( * ) ) AS col1
----
-20
42

query II rowsort
SELECT 18, - ( 6 ) AS col0
----
18
-6

query I rowsort
SELECT 83 - - + 7 * 20 col1
----
223

query I rowsort
SELECT 90 * + 98 AS col0
----
8820

query II rowsort
SELECT 93 + 71 AS col2, - 55 - 55 AS col0
----
164
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-478
SELECT DISTINCT 79 AS col0, 91 * + + COALESCE ( + 17, - 68 * + MIN( + 63 ) * 39 * + SUM( ALL + - 18 ) * + + 79 * + 95 ) + 0
----
79
1547

skipif mysql # not compatible
query II rowsort label-478
SELECT DISTINCT 79 AS col0, 91 * + + COALESCE ( + 17, - 68 * + MIN ( + 63 ) * 39 * + SUM ( ALL + - 18 ) * + + 79 * + 95 ) + 0
----
79
1547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-479
SELECT 73 + + 4 + MIN( ALL 10 ) + CASE 41 WHEN - 70 THEN + 84 WHEN + 41 THEN + 63 * - 64 * - + 4 + + 33 * - - 87 WHEN + 96 THEN - CASE - 97 WHEN - 73 + - + 31 * - 51 - + - CAST( 74 AS SIGNED ) THEN NULL WHEN - - 55 THEN NULL ELSE - MIN( ( + - 71 ) ) END + 88 + 76 * - CAST( + + 4 AS SIGNED ) WHEN + + 0 THEN NULL ELSE NULL END + - - 72 * - 63 * - + 93 * + 99 * 34
----
1419959454

skipif mysql # not compatible
query I rowsort label-479
SELECT 73 + + 4 + MIN ( ALL 10 ) + CASE 41 WHEN - 70 THEN + 84 WHEN + 41 THEN + 63 * - 64 * - + 4 + + 33 * - - 87 WHEN + 96 THEN - CASE - 97 WHEN - 73 + - + 31 * - 51 - + - CAST ( 74 AS INTEGER ) THEN NULL WHEN - - 55 THEN NULL ELSE - MIN ( ( + - 71 ) ) END + 88 + 76 * - CAST ( + + 4 AS INTEGER ) WHEN + + 0 THEN NULL ELSE NULL END + - - 72 * - 63 * - + 93 * + 99 * 34
----
1419959454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-480
SELECT ( - 85 ) DIV - 28 DIV COUNT( * ) + - ( - 21 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-480
SELECT ( - 85 ) / - 28 / COUNT ( * ) + - ( - 21 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL - COUNT( 21 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - COUNT ( 21 ) AS col2
----
-1

query I rowsort
SELECT ALL + 21 + 13 + - - 53 * ( + ( 28 ) ) AS col1
----
1518

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-485
SELECT ALL - COUNT( * ) AS col1, - COUNT( * ) DIV + 97
----
-1
0

skipif mysql # not compatible
query II rowsort label-485
SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) / + 97
----
-1
0

query I rowsort
SELECT + 51 * - + 33 + 14
----
-1669

query II rowsort
SELECT 42 AS col2, 94
----
42
94

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

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

query I rowsort
SELECT ALL - 63 + 1 + - + NULLIF ( + 49, - - 28 + - 19 * + + 30 + - + 80 + + 81 ) AS col2
----
-111

query I rowsort
SELECT ( + + 9 ) * + ( + 63 ) + - COALESCE ( - 84, + + 33 + + - 7 ) AS col2
----
651

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL + - CASE - 65 WHEN - 29 THEN 98 * - - 51 WHEN + 22 THEN NULL END * + COUNT( * ) + 76 * + COUNT( 98 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL + - CASE - 65 WHEN - 29 THEN 98 * - - 51 WHEN + 22 THEN NULL END * + COUNT ( * ) + 76 * + COUNT ( 98 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-492
SELECT - 93 + - - ( + - 42 ) + - COUNT( * ) AS col1, MIN( DISTINCT 99 ) DIV 93 - - ( COUNT( * ) ) + + - 16
----
-136
-14

skipif mysql # not compatible
query II rowsort label-492
SELECT - 93 + - - ( + - 42 ) + - COUNT ( * ) AS col1, MIN ( DISTINCT 99 ) / 93 - - ( COUNT ( * ) ) + + - 16
----
-136
-14

query II rowsort
SELECT DISTINCT - 4 AS col1, + 15 col1
----
-4
15

query I rowsort
SELECT ALL - - ( 19 ) AS col2
----
19

query I rowsort
SELECT - 62 * - 71 + - - 57 + + 26 + + 28 AS col0
----
4513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-496
SELECT - - 85 * + - CAST( NULL AS SIGNED ) * - 55 * 73 - - - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-496
SELECT - - 85 * + - CAST ( NULL AS INTEGER ) * - 55 * 73 - - - 42
----
NULL

query II rowsort
SELECT ALL - ( - - 90 ), - 56 + 53 + - 34 AS col2
----
-90
-37

query I rowsort
SELECT ALL + 78 * + 8 AS col0
----
624

query II rowsort
SELECT + 17, 3 * - - 11 AS col1
----
17
33

query I rowsort
SELECT 45 + - 60 * - - 26 AS col1
----
-1515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-501
SELECT + CASE - 81 WHEN CAST( NULL AS SIGNED ) / - 56 THEN + AVG ( - 39 ) WHEN - 72 THEN - + 62 WHEN COUNT( * ) + 74 - + + AVG ( - ( + 29 ) ) - 48 * + - 49 * 86 THEN 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-501
SELECT + CASE - 81 WHEN CAST ( NULL AS INTEGER ) / - 56 THEN + AVG ( - 39 ) WHEN - 72 THEN - + 62 WHEN COUNT ( * ) + 74 - + + AVG ( - ( + 29 ) ) - 48 * + - 49 * 86 THEN 89 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL + COUNT ( * ) * + 73 * 88 AS col0
----
6424

onlyif mysql # aggregate syntax: 
query II rowsort label-503
SELECT DISTINCT - COUNT( ALL 67 ) col2, 60 + + - 35
----
-1
25

skipif mysql # not compatible
query II rowsort label-503
SELECT DISTINCT - COUNT ( ALL 67 ) col2, 60 + + - 35
----
-1
25

onlyif mysql # DIV for integer division: 
query I rowsort label-504
SELECT DISTINCT 28 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT 28 / 75
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-505
SELECT 48 * ( - 40 ) DIV - 86
----
22

skipif mysql # not compatible
query I rowsort label-505
SELECT 48 * ( - 40 ) / - 86
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-506
SELECT 83 + + CASE 7 WHEN 77 * + NULLIF ( + NULLIF ( 79, - 82 ), - MIN( ALL 82 ) ) THEN + - 50 WHEN - COUNT( * ) * - AVG ( - ( - 41 ) ) + COUNT( * ) THEN NULL END + CAST( 26 AS SIGNED ) * - - COUNT( * ) / - 20 + - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT 83 + + CASE 7 WHEN 77 * + NULLIF ( + NULLIF ( 79, - 82 ), - MIN ( ALL 82 ) ) THEN + - 50 WHEN - COUNT ( * ) * - AVG ( - ( - 41 ) ) + COUNT ( * ) THEN NULL END + CAST ( 26 AS INTEGER ) * - - COUNT ( * ) / - 20 + - + 95
----
NULL

query I rowsort
SELECT DISTINCT 63 + 89 AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT DISTINCT 92 + - + COUNT( * ) col0
----
91

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT 92 + - + COUNT ( * ) col0
----
91

query I rowsort
SELECT 73 * - 33 col2
----
-2409

query I rowsort
SELECT DISTINCT 68 + - 44 * - 24 * - 41
----
-43228

query I rowsort
SELECT DISTINCT 27 + + + 12
----
39

query I rowsort
SELECT ALL 62 + 0 col0
----
62

query I rowsort
SELECT 63 - - 39 * 89 AS col0
----
3534

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ( 34 ) - COUNT( * ) col0
----
33

skipif mysql # not compatible
query I rowsort label-514
SELECT ( 34 ) - COUNT ( * ) col0
----
33

query I rowsort
SELECT ALL - ( - 39 ) * + - 59 + - + 93
----
-2394

query I rowsort
SELECT + COALESCE ( 27, NULLIF ( + + 8, - + 28 ) )
----
27

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

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

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

query I rowsort
SELECT - + 46 * - - 99 AS col0
----
-4554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-521
SELECT - - 71 + + ( + - NULLIF ( - CAST( NULL AS SIGNED ), 1 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-521
SELECT - - 71 + + ( + - NULLIF ( - CAST ( NULL AS INTEGER ), 1 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 38 * + 95 AS col2
----
3610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT - 80 / - - 8 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT - 80 / - - 8 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT DISTINCT + COUNT( * ) * 60 - - - 47 * + - 67 * 80
----
251980

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT + COUNT ( * ) * 60 - - - 47 * + - 67 * 80
----
251980

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT - + ( - AVG ( - 4 ) ) / - - 69 * MIN( - CASE - 20 WHEN - 2 THEN + 71 WHEN - 51 - - - 12 THEN - 42 ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-525
SELECT - + ( - AVG ( - 4 ) ) / - - 69 * MIN ( - CASE - 20 WHEN - 2 THEN + 71 WHEN - 51 - - - 12 THEN - 42 ELSE NULL END ) col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT - - CASE + + 51 WHEN 44 THEN - ( - + 11 ) ELSE + MIN( + 12 ) END + 20 col2
----
32

skipif mysql # not compatible
query I rowsort label-527
SELECT - - CASE + + 51 WHEN 44 THEN - ( - + 11 ) ELSE + MIN ( + 12 ) END + 20 col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-528
SELECT - 75 * + 20 * COUNT( * ) * - 12 AS col2, 13
----
18000
13

skipif mysql # not compatible
query II rowsort label-528
SELECT - 75 * + 20 * COUNT ( * ) * - 12 AS col2, 13
----
18000
13

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT - COUNT( * ) + - 98 * - NULLIF ( - + 61, - + 42 ) AS col0
----
-5979

skipif mysql # not compatible
query I rowsort label-529
SELECT - COUNT ( * ) + - 98 * - NULLIF ( - + 61, - + 42 ) AS col0
----
-5979

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

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

query II rowsort
SELECT - 62 AS col0, ( + 42 )
----
-62
42

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

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

query I rowsort
SELECT ALL 22 + + 7 + - 8 * 74
----
-563

query I rowsort
SELECT - 28 - + 25 AS col0
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT DISTINCT - 39 + 29 * - + ( + 8 ) + COUNT( * ) AS col1
----
-270

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT - 39 + 29 * - + ( + 8 ) + COUNT ( * ) AS col1
----
-270

query II rowsort
SELECT 51 AS col0, + 64
----
51
64

query I rowsort
SELECT DISTINCT + 75 + - 76 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT ALL - 21 + - CASE - + 9 WHEN + - 39 THEN NULL WHEN - NULLIF ( 1, + 3 + + + ( - 65 ) + ( COUNT( DISTINCT - - ( + 49 ) ) ) ) THEN + 70 * + 52 END + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL - 21 + - CASE - + 9 WHEN + - 39 THEN NULL WHEN - NULLIF ( 1, + 3 + + + ( - 65 ) + ( COUNT ( DISTINCT - - ( + 49 ) ) ) ) THEN + 70 * + 52 END + - 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT - CASE COUNT( * ) WHEN 34 THEN NULL WHEN + 62 THEN NULL ELSE COALESCE ( - 75, 27, - + 87 ) END + - 7 * - + 74
----
593

skipif mysql # not compatible
query I rowsort label-540
SELECT - CASE COUNT ( * ) WHEN 34 THEN NULL WHEN + 62 THEN NULL ELSE COALESCE ( - 75, 27, - + 87 ) END + - 7 * - + 74
----
593

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT - 44 + 77 * MIN( ALL + - 56 ) col2
----
-4356

skipif mysql # not compatible
query I rowsort label-541
SELECT - 44 + 77 * MIN ( ALL + - 56 ) col2
----
-4356

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

skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT 73 + - - COUNT ( * ) + + COUNT ( * ) AS col2
----
75

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-545
SELECT ALL COUNT( * ) - + 88 + - + COUNT( * ), 24 * + - CAST( NULL AS SIGNED ) AS col2
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-545
SELECT ALL COUNT ( * ) - + 88 + - + COUNT ( * ), 24 * + - CAST ( NULL AS INTEGER ) AS col2
----
-88
NULL

query I rowsort
SELECT DISTINCT 37 - + 10 * + 88 - + 83 AS col0
----
-926

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-548
SELECT 61 AS col1, - 93 + 77 - + 48 DIV - 96 AS col0
----
61
-16

skipif mysql # not compatible
query II rowsort label-548
SELECT 61 AS col1, - 93 + 77 - + 48 / - 96 AS col0
----
61
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-549
SELECT ALL + 63 DIV + - 7 - + + 23 + - MIN( 76 ) + + 61 * - COUNT( * ) AS col1
----
-169

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL + 63 / + - 7 - + + 23 + - MIN ( 76 ) + + 61 * - COUNT ( * ) AS col1
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-550
SELECT + 66 / + 75 * 94 + CASE + 75 WHEN - 24 THEN 27 WHEN - COUNT( * ) / CAST( NULL AS SIGNED ) + - 89 THEN - + 0 / + + 2 + 24 - MIN( NULLIF ( 98, - 94 + + 28 ) ) + - + 71 END * ( + ( 62 ) ) * + 85 + - COUNT( 1 ) + COUNT( * ) * NULLIF ( + 7, + MAX( ALL 2 ) + + 27 - 24 * - 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT + 66 / + 75 * 94 + CASE + 75 WHEN - 24 THEN 27 WHEN - COUNT ( * ) / CAST ( NULL AS INTEGER ) + - 89 THEN - + 0 / + + 2 + 24 - MIN ( NULLIF ( 98, - 94 + + 28 ) ) + - + 71 END * ( + ( 62 ) ) * + 85 + - COUNT ( 1 ) + COUNT ( * ) * NULLIF ( + 7, + MAX ( ALL 2 ) + + 27 - 24 * - 1 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-551
SELECT + - 22 * 77 - + - CAST( NULL AS SIGNED ), + COUNT( ALL + ( + 53 ) ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-551
SELECT + - 22 * 77 - + - CAST ( NULL AS INTEGER ), + COUNT ( ALL + ( + 53 ) ) col2
----
NULL
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT + + COUNT( * ) + + 65
----
66

skipif mysql # not compatible
query I rowsort label-554
SELECT + + COUNT ( * ) + + 65
----
66

query II rowsort
SELECT ALL 38 * + + 35 * + 80 AS col0, + 65
----
106400
65

query I rowsort
SELECT 39 * - - 53 + - 12 AS col1
----
2055

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

query I rowsort
SELECT ALL - 95 * 73
----
-6935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-559
SELECT + - 90 + COALESCE ( - 70, + CAST( NULL AS SIGNED ) + 67, 46 + 18 * - - MIN( DISTINCT - - 91 ) ) AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-559
SELECT + - 90 + COALESCE ( - 70, + CAST ( NULL AS INTEGER ) + 67, 46 + 18 * - - MIN ( DISTINCT - - 91 ) ) AS col2
----
-160

query I rowsort
SELECT ALL + + 74 col0
----
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT + - 18 * + 32 * + ( + + 58 ) - + SUM( ALL + - 9 ) + - + 78 AS col2
----
-33477

skipif mysql # not compatible
query I rowsort label-562
SELECT + - 18 * + 32 * + ( + + 58 ) - + SUM ( ALL + - 9 ) + - + 78 AS col2
----
-33477

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT ALL 19 * - + 32 + + - 98 - CAST( NULL AS SIGNED ) + + + 47 * - 89 + + + ( 65 ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL 19 * - + 32 + + - 98 - CAST ( NULL AS INTEGER ) + + + 47 * - 89 + + + ( 65 ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-565
SELECT + - ( + CAST( + + 15 AS SIGNED ) ) * MAX( DISTINCT - + 27 ) + - 10 AS col1
----
395

skipif mysql # not compatible
query I rowsort label-565
SELECT + - ( + CAST ( + + 15 AS INTEGER ) ) * MAX ( DISTINCT - + 27 ) + - 10 AS col1
----
395

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT 24 * 38 + - - 40 + + 43 * - ( + 74 ) * - COUNT( * ) * + ( - 67 ) + - - 22 + + 12 AS col1
----
-212208

skipif mysql # not compatible
query I rowsort label-566
SELECT 24 * 38 + - - 40 + + 43 * - ( + 74 ) * - COUNT ( * ) * + ( - 67 ) + - - 22 + + 12 AS col1
----
-212208

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-568
SELECT - 40 + + - COUNT( * ) col0, + COUNT( * ) AS col1
----
-41
1

skipif mysql # not compatible
query II rowsort label-568
SELECT - 40 + + - COUNT ( * ) col0, + COUNT ( * ) AS col1
----
-41
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-569
SELECT ALL 28 * + CASE + 60 WHEN - + ( 38 ) - + - 83 * - - 63 THEN + 21 * - CAST( NULL AS SIGNED ) + + 24 ELSE NULL END + - COUNT( DISTINCT 22 ) - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL 28 * + CASE + 60 WHEN - + ( 38 ) - + - 83 * - - 63 THEN + 21 * - CAST ( NULL AS INTEGER ) + + 24 ELSE NULL END + - COUNT ( DISTINCT 22 ) - - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT + 46 * - - 21 + 33 + + CASE - - 0 WHEN - 19 * + 53 THEN 10 WHEN + + COUNT( * ) THEN - 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-570
SELECT + 46 * - - 21 + 33 + + CASE - - 0 WHEN - 19 * + 53 THEN 10 WHEN + + COUNT ( * ) THEN - 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT ALL 65 * 10 + - CASE - - 65 WHEN + 80 THEN - - ( - + 70 ) WHEN - 39 THEN NULL WHEN + + 24 + - COUNT( * ) + + 57 / + 95 + + 95 THEN NULL ELSE NULL END * - 10 * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL 65 * 10 + - CASE - - 65 WHEN + 80 THEN - - ( - + 70 ) WHEN - 39 THEN NULL WHEN + + 24 + - COUNT ( * ) + + 57 / + 95 + + 95 THEN NULL ELSE NULL END * - 10 * + 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-572
SELECT ALL + MIN( DISTINCT - 54 ) DIV 9 * + 86 * + - 66 * + 80 + + - 98 * + + COUNT( * )
----
2724382

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL + MIN ( DISTINCT - 54 ) / 9 * + 86 * + - 66 * + 80 + + - 98 * + + COUNT ( * )
----
2724382

query I rowsort
SELECT - ( 70 ) + - + ( 18 ) + + 44 + 31 col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-574
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * + + 43 + - 96 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + + 43 + - 96 AS col1
----
-53

query I rowsort
SELECT ALL ( - 88 ) AS col2
----
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT - CASE MIN( + + 24 ) WHEN - 9 / - - 8 THEN NULL ELSE - - 21 + 73 + - + 39 END
----
-55

skipif mysql # not compatible
query I rowsort label-577
SELECT - CASE MIN ( + + 24 ) WHEN - 9 / - - 8 THEN NULL ELSE - - 21 + 73 + - + 39 END
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-578
SELECT DISTINCT + COUNT( * ) + 42, 95 - - 64 + CAST( NULL AS SIGNED ) * 33 AS col2
----
43
NULL

skipif mysql # not compatible
query II rowsort label-578
SELECT DISTINCT + COUNT ( * ) + 42, 95 - - 64 + CAST ( NULL AS INTEGER ) * 33 AS col2
----
43
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-580
SELECT DISTINCT - MAX( DISTINCT + - 91 ) * 25 DIV 59 + + ( - 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT - MAX ( DISTINCT + - 91 ) * 25 / 59 + + ( - 19 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL - SUM( DISTINCT + + 67 ) * - 38 AS col0
----
2546

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL - SUM ( DISTINCT + + 67 ) * - 38 AS col0
----
2546

query I rowsort
SELECT - 8 + 30 + + 24
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ALL - COUNT( * ) - CASE 53 WHEN - - 86 + - 18 * - 0 THEN NULL WHEN + 12 THEN NULL WHEN + 22 THEN + + ( 62 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL - COUNT ( * ) - CASE 53 WHEN - - 86 + - 18 * - 0 THEN NULL WHEN + 12 THEN NULL WHEN + 22 THEN + + ( 62 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-584
SELECT DISTINCT + + 97 * + 96 + ( - - 30 ) col1, 0 + - 97 - + 61 * - + NULLIF ( - 47, + COUNT( + - 61 ) ) + + 25 * + 37 + 4 AS col0
----
9342
-2035

skipif mysql # not compatible
query II rowsort label-584
SELECT DISTINCT + + 97 * + 96 + ( - - 30 ) col1, 0 + - 97 - + 61 * - + NULLIF ( - 47, + COUNT ( + - 61 ) ) + + 25 * + 37 + 4 AS col0
----
9342
-2035

query I rowsort
SELECT - 86 * - 97 + + 71 AS col2
----
8413

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT - 95 + + MIN( DISTINCT + + 33 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-586
SELECT - 95 + + MIN ( DISTINCT + + 33 ) AS col1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-587
SELECT + 42 DIV 63 * 34 * 37 + + 44
----
44

skipif mysql # not compatible
query I rowsort label-587
SELECT + 42 / 63 * 34 * 37 + + 44
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-588
SELECT ALL 83 DIV + ( - - 97 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL 83 / + ( - - 97 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT - 53 DIV + - COUNT( * ) + - 53 + - + COALESCE ( + - 60, 62 DIV 24 + - 87 - + 67 * + 29, + 48 ) * 85 AS col1
----
5100

skipif mysql # not compatible
query I rowsort label-589
SELECT - 53 / + - COUNT ( * ) + - 53 + - + COALESCE ( + - 60, 62 / 24 + - 87 - + 67 * + 29, + 48 ) * 85 AS col1
----
5100

query I rowsort
SELECT + 80 - + 1 + - + 68
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT ALL + COALESCE ( - 80, 77 * - - 3 DIV - 89, + - 51 DIV + - 74 * - 65 + + 30 ) * 52
----
-4160

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL + COALESCE ( - 80, 77 * - - 3 / - 89, + - 51 / + - 74 * - 65 + + 30 ) * 52
----
-4160

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

query I rowsort
SELECT DISTINCT 68 * - 95 AS col1
----
-6460

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

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT + SUM( - 19 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-595
SELECT + SUM ( - 19 ) col0
----
-19

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

query I rowsort
SELECT - 69 * + - 40 AS col2
----
2760

query I rowsort
SELECT - 39 * + + 69 AS col1
----
-2691

query I rowsort
SELECT ALL + 72 + - 51 + 2 + - 9 AS col0
----
14

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

query I rowsort
SELECT ALL 52 + - - 93 AS col0
----
145

query I rowsort
SELECT CASE - - 91 WHEN + 93 THEN NULL ELSE 64 END * + 83 AS col2
----
5312

query I rowsort
SELECT ALL 10 + + + 21
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-604
SELECT DISTINCT - 12 AS col0, 4 DIV + 42 AS col0
----
-12
0

skipif mysql # not compatible
query II rowsort label-604
SELECT DISTINCT - 12 AS col0, 4 / + 42 AS col0
----
-12
0

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT ALL - NULLIF ( - 44, + 84 ) + + 50 DIV + 20
----
46

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL - NULLIF ( - 44, + 84 ) + + 50 / + 20
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-606
SELECT 0 col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-606
SELECT 0 col0, COUNT ( * )
----
0
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-609
SELECT 18 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-609
SELECT 18 / - 73
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-610
SELECT ALL + 58 - - - 26 - 10 * COUNT( * ) * 52 + - 39 - + 26 DIV - ( + 60 ) + - COUNT( * ) + + - 22 * ( + 94 ) * - 12 * 11
----
272448

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL + 58 - - - 26 - 10 * COUNT ( * ) * 52 + - 39 - + 26 / - ( + 60 ) + - COUNT ( * ) + + - 22 * ( + 94 ) * - 12 * 11
----
272448

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ALL 44 * + MAX( DISTINCT 40 ) * + 56 AS col1
----
98560

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL 44 * + MAX ( DISTINCT 40 ) * + 56 AS col1
----
98560

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT 8 + + 11 DIV - 86 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-612
SELECT 8 + + 11 / - 86 AS col0
----
8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-614
SELECT 14 * - 22 * - CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
308

skipif mysql # not compatible
query I rowsort label-614
SELECT 14 * - 22 * - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-615
SELECT 17 + + COALESCE ( 37, 0 DIV + 90, + MAX( DISTINCT + + 27 ) * + + COUNT( * ) + - - CAST( - - 33 AS SIGNED ) )
----
54

skipif mysql # not compatible
query I rowsort label-615
SELECT 17 + + COALESCE ( 37, 0 / + 90, + MAX ( DISTINCT + + 27 ) * + + COUNT ( * ) + - - CAST ( - - 33 AS INTEGER ) )
----
54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-617
SELECT 33 DIV + - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT 33 / + - 94 AS col2
----
0

query I rowsort
SELECT + 10 * + 68
----
680

query I rowsort
SELECT 45 + + 16
----
61

query I rowsort
SELECT - 84 - 45
----
-129

query I rowsort
SELECT 76 * 40 AS col2
----
3040

query I rowsort
SELECT 35 + 97
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT ALL + + 19 * + 57 + + 25 DIV + 4 AS col2
----
1089

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL + + 19 * + 57 + + 25 / + 4 AS col2
----
1089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-624
SELECT - CAST( + 64 AS SIGNED ) * ( - MIN( ALL + 75 ) ) AS col2
----
4800

skipif mysql # not compatible
query I rowsort label-624
SELECT - CAST ( + 64 AS INTEGER ) * ( - MIN ( ALL + 75 ) ) AS col2
----
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT - CAST( NULL AS SIGNED ) + - - MIN( DISTINCT 20 ) + COUNT( + + 15 ) * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT - CAST ( NULL AS INTEGER ) + - - MIN ( DISTINCT 20 ) + COUNT ( + + 15 ) * - 43
----
NULL

query I rowsort
SELECT 87 * 23 + 9 + - 90 * - 32 AS col1
----
4890

query I rowsort
SELECT + CASE - 31 WHEN + + 73 THEN - 39 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT - + 81 * + 3 * - + MAX( DISTINCT - 51 ) + 90 + - - 42
----
-12261

skipif mysql # not compatible
query I rowsort label-628
SELECT - + 81 * + 3 * - + MAX ( DISTINCT - 51 ) + 90 + - - 42
----
-12261

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

query I rowsort
SELECT ALL - 52 * + - 41 AS col2
----
2132

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

query I rowsort
SELECT ALL - 88 + ( NULLIF ( - 36, + 73 ) )
----
-124

query I rowsort
SELECT ALL - COALESCE ( + ( - - 37 ), - - 81, - 18 )
----
-37

query I rowsort
SELECT DISTINCT - 80 * + + ( + 45 ) AS col2
----
-3600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-635
SELECT ALL COUNT( - + 68 ) + + COALESCE ( + 47, 63 DIV + 71, + 48 + + COALESCE ( - + 98, + 89 * - 76 ) * - + 97, + 60 )
----
48

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL COUNT ( - + 68 ) + + COALESCE ( + 47, 63 / + 71, + 48 + + COALESCE ( - + 98, + 89 * - 76 ) * - + 97, + 60 )
----
48

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

skipif mysql # not compatible
query I rowsort label-636
SELECT 57 * - COUNT ( * )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-637
SELECT CAST( + NULLIF ( + 1, + + 47 + - 78 + + + COALESCE ( 84, - - 14 * + 89 * - CAST( NULL AS SIGNED ) + + + 61 ) - 44 / + 75 * 56 * - + 75 / - 2 + 45 - 58 ) AS SIGNED ) * + 90 + + 15 + SUM( DISTINCT 66 )
----
171

skipif mysql # not compatible
query I rowsort label-637
SELECT CAST ( + NULLIF ( + 1, + + 47 + - 78 + + + COALESCE ( 84, - - 14 * + 89 * - CAST ( NULL AS INTEGER ) + + + 61 ) - 44 / + 75 * 56 * - + 75 / - 2 + 45 - 58 ) AS INTEGER ) * + 90 + + 15 + SUM ( DISTINCT 66 )
----
171

query I rowsort
SELECT - 63 * 7 + 12 AS col1
----
-429

onlyif mysql # aggregate syntax: 
query II rowsort label-639
SELECT + 21 AS col1, 87 * - ( 18 ) + 78 * COUNT( * ) * + COUNT( * ) AS col2
----
21
-1488

skipif mysql # not compatible
query II rowsort label-639
SELECT + 21 AS col1, 87 * - ( 18 ) + 78 * COUNT ( * ) * + COUNT ( * ) AS col2
----
21
-1488

query I rowsort
SELECT 18 + + + 98
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-641
SELECT + COUNT( * ) AS col2, - NULLIF ( - CAST( - + 36 AS SIGNED ), + + 34 + + + 34 + + 83 ) * 47 + - 16
----
1
-1708

skipif mysql # not compatible
query II rowsort label-641
SELECT + COUNT ( * ) AS col2, - NULLIF ( - CAST ( - + 36 AS INTEGER ), + + 34 + + + 34 + + 83 ) * 47 + - 16
----
1
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL + 99 * - MAX( + 2 ) * 7 AS col0
----
-1386

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL + 99 * - MAX ( + 2 ) * 7 AS col0
----
-1386

query II rowsort
SELECT DISTINCT - 31 AS col1, 51 AS col1
----
-31
51

query I rowsort
SELECT DISTINCT ( - + 52 ) * + 80 AS col2
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL + ( + + COUNT( * ) ) - + ( + 12 ) + + - 18 - + COUNT( ( - 62 ) ) * + ( 92 )
----
-121

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL + ( + + COUNT ( * ) ) - + ( + 12 ) + + - 18 - + COUNT ( ( - 62 ) ) * + ( 92 )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT + 85 * - + MIN( 30 ) AS col2
----
-2550

skipif mysql # not compatible
query I rowsort label-646
SELECT + 85 * - + MIN ( 30 ) AS col2
----
-2550

onlyif mysql # aggregate syntax: 
query II rowsort label-647
SELECT - NULLIF ( - - 63, + 31 + - - COUNT( * ) ), + 30 + COUNT( * ) * 68 AS col2
----
-63
98

skipif mysql # not compatible
query II rowsort label-647
SELECT - NULLIF ( - - 63, + 31 + - - COUNT ( * ) ), + 30 + COUNT ( * ) * 68 AS col2
----
-63
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-648
SELECT - COUNT( * ), 29 - - - CASE AVG ( DISTINCT - 9 ) WHEN - 38 THEN NULL WHEN - 40 * 79 + 49 + 60 THEN + - 61 WHEN + + 11 THEN - 98 / MIN( ( + 14 ) ) / 8 + + - COALESCE ( + 61, - COALESCE ( - + ( + + 38 ), + CAST( - COALESCE ( + + 18, + 70 ) AS SIGNED ), - 79 * + - AVG ( DISTINCT - 21 ) / 57 * + 72 * + 30 + - 47 + 48 + - + 90 ) + + 97 ) / + + 8 ELSE NULL END / 51 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-648
SELECT - COUNT ( * ), 29 - - - CASE AVG ( DISTINCT - 9 ) WHEN - 38 THEN NULL WHEN - 40 * 79 + 49 + 60 THEN + - 61 WHEN + + 11 THEN - 98 / MIN ( ( + 14 ) ) / 8 + + - COALESCE ( + 61, - COALESCE ( - + ( + + 38 ), + CAST ( - COALESCE ( + + 18, + 70 ) AS INTEGER ), - 79 * + - AVG ( DISTINCT - 21 ) / 57 * + 72 * + 30 + - 47 + 48 + - + 90 ) + + 97 ) / + + 8 ELSE NULL END / 51 AS col0
----
-1
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-649
SELECT - - 54 + 63 + 46 * - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT - - 54 + 63 + 46 * - + CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 62 AS col2, 57
----
-62
57

query I rowsort
SELECT ALL + + 67 + 95 AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT DISTINCT SUM( - 29 ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT SUM ( - 29 ) col2
----
-29

query I rowsort
SELECT ALL 5 * + - ( + 1 ) AS col1
----
-5

query I rowsort
SELECT + 44 + COALESCE ( - - 4, 59 ) + - 45 * - 19 AS col0
----
903

query I rowsort
SELECT ALL + 72 + + 22 AS col0
----
94

query I rowsort
SELECT + ( NULLIF ( - - 67, - 81 - - 61 * 73 * 68 ) ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT - 60 * + - CAST( + NULLIF ( + - COUNT( + + 24 ), 20 ) AS SIGNED ) * + 76 AS col2
----
-4560

skipif mysql # not compatible
query I rowsort label-657
SELECT - 60 * + - CAST ( + NULLIF ( + - COUNT ( + + 24 ), 20 ) AS INTEGER ) * + 76 AS col2
----
-4560

query II rowsort
SELECT DISTINCT + 49, - 96 AS col2
----
49
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL + 76 * - 97 + 18 + + 35 * ( - COUNT( * ) ) * + + 82 * - + COUNT( * ) - + - 12 - + 9 * + MIN( - 29 ) * - 86 + - 0 * + ( - - 67 )
----
-26918

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + 76 * - 97 + 18 + + 35 * ( - COUNT ( * ) ) * + + 82 * - + COUNT ( * ) - + - 12 - + 9 * + MIN ( - 29 ) * - 86 + - 0 * + ( - - 67 )
----
-26918

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT COALESCE ( - - COUNT( * ), - 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-660
SELECT COALESCE ( - - COUNT ( * ), - 26 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-661
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), - ( 3 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), - ( 3 ) ) AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-662
SELECT ALL COUNT( * ) * + 49 - - + 2 * - COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL COUNT ( * ) * + 49 - - + 2 * - COUNT ( * ) - + CAST ( NULL AS REAL ) AS col0
----
NULL

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

query I rowsort
SELECT COALESCE ( 1, - - 54 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-665
SELECT DISTINCT ( - - 75 ) * - NULLIF ( + + MIN( ALL + 14 ), + 78 ) + - + 85 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT ( - - 75 ) * - NULLIF ( + + MIN ( ALL + 14 ), + 78 ) + - + 85 - + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 98 * - 53 * + 71 AS col0
----
368774

onlyif mysql # aggregate syntax: 
query II rowsort label-667
SELECT ALL 10 * - 69 AS col0, COUNT( * ) AS col0
----
-690
1

skipif mysql # not compatible
query II rowsort label-667
SELECT ALL 10 * - 69 AS col0, COUNT ( * ) AS col0
----
-690
1

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT - 15 - - COUNT( * ) - 27
----
-41

skipif mysql # not compatible
query I rowsort label-668
SELECT - 15 - - COUNT ( * ) - 27
----
-41

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

query I rowsort
SELECT ALL ( + 52 ) * - 7 AS col0
----
-364

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

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL - COUNT( * ) * - 28 col2
----
28

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL - COUNT ( * ) * - 28 col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT - COUNT( ALL + - 21 ) + + 53
----
52

skipif mysql # not compatible
query I rowsort label-673
SELECT - COUNT ( ALL + - 21 ) + + 53
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT + 85 DIV + 47 col1
----
1

skipif mysql # not compatible
query I rowsort label-674
SELECT + 85 / + 47 col1
----
1

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

skipif mysql # not compatible
query I rowsort label-675
SELECT COUNT ( 88 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL + MIN( DISTINCT + 0 ) * - 48
----
0

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL + MIN ( DISTINCT + 0 ) * - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT + COUNT( DISTINCT + - 16 ) - - 66 * - 80
----
-5279

skipif mysql # not compatible
query I rowsort label-677
SELECT + COUNT ( DISTINCT + - 16 ) - - 66 * - 80
----
-5279

query I rowsort
SELECT ALL ( 32 ) * + 38 * + 38
----
46208

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT - 73 * COUNT( * ) * - 74 AS col1
----
5402

skipif mysql # not compatible
query I rowsort label-679
SELECT - 73 * COUNT ( * ) * - 74 AS col1
----
5402

query I rowsort
SELECT 68 * - - COALESCE ( + + ( + - 65 ), - + 8 ) * + + 95 + + 37 * - 65
----
-422305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-681
SELECT - ( SUM( 88 ) ), CAST( NULL AS SIGNED ) AS col2
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-681
SELECT - ( SUM ( 88 ) ), CAST ( NULL AS INTEGER ) AS col2
----
-88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT MIN( - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-682
SELECT MIN ( - 29 )
----
-29

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

query I rowsort
SELECT ALL 45 + - 8
----
37

query I rowsort
SELECT ALL 50 + - 36 col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT DISTINCT CASE - - 6 WHEN - 99 * - 26 * - 44 - + - 0 / + 50 THEN + COUNT( * ) * - 43 * - COUNT( * ) WHEN - + 23 - + - 30 + + COUNT( * ) THEN + 24 ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT CASE - - 6 WHEN - 99 * - 26 * - 44 - + - 0 / + 50 THEN + COUNT ( * ) * - 43 * - COUNT ( * ) WHEN - + 23 - + - 30 + + COUNT ( * ) THEN + 24 ELSE NULL END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-687
SELECT + 33 + + + 28 AS col2, - 47 * + COUNT( * ) AS col2
----
61
-47

skipif mysql # not compatible
query II rowsort label-687
SELECT + 33 + + + 28 AS col2, - 47 * + COUNT ( * ) AS col2
----
61
-47

query I rowsort
SELECT ALL + 42 + ( - 84 ) + 51 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT + - SUM( ALL - ( - 11 ) ) * - 35 AS col1
----
385

skipif mysql # not compatible
query I rowsort label-689
SELECT + - SUM ( ALL - ( - 11 ) ) * - 35 AS col1
----
385

query I rowsort
SELECT ALL - 51 * - - 9 AS col1
----
-459

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT - + 82 + ( 19 ) - + 29 DIV + 22
----
-64

skipif mysql # not compatible
query I rowsort label-691
SELECT - + 82 + ( 19 ) - + 29 / + 22
----
-64

query I rowsort
SELECT - - ( 53 ) + - ( - 36 ) * + 33
----
1241

query II rowsort
SELECT DISTINCT - 74 + - + 39 + + 97 AS col0, 98
----
-16
98

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT DISTINCT 23 * - 9 AS col0, - SUM( DISTINCT 6 )
----
-207
-6

skipif mysql # not compatible
query II rowsort label-694
SELECT DISTINCT 23 * - 9 AS col0, - SUM ( DISTINCT 6 )
----
-207
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT + MIN( - 42 ) + - - 15 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-695
SELECT + MIN ( - 42 ) + - - 15 AS col0
----
-27

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

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL - - 85 / - ( + 80 ) - NULLIF ( - COUNT ( * ), - 62 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT + COALESCE ( + + COUNT( * ), COUNT( * ) + 98, - 5 + ( + 24 ) )
----
1

skipif mysql # not compatible
query I rowsort label-698
SELECT + COALESCE ( + + COUNT ( * ), COUNT ( * ) + 98, - 5 + ( + 24 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT + + 44 + + MAX( + + 94 ) * + 39 * + 11 + + - 98
----
40272

skipif mysql # not compatible
query I rowsort label-699
SELECT + + 44 + + MAX ( + + 94 ) * + 39 * + 11 + + - 98
----
40272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-700
SELECT CAST( NULL AS SIGNED ) / + - CAST( - MIN( ALL + 15 ) AS DECIMAL ) - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-700
SELECT CAST ( NULL AS INTEGER ) / + - CAST ( - MIN ( ALL + 15 ) AS REAL ) - 74 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-701
SELECT + NULLIF ( - 49, + CAST( NULL AS SIGNED ) + 93 ) * 43 + - 29 + + - 29 AS col2
----
-2165

skipif mysql # not compatible
query I rowsort label-701
SELECT + NULLIF ( - 49, + CAST ( NULL AS INTEGER ) + 93 ) * 43 + - 29 + + - 29 AS col2
----
-2165

query I rowsort
SELECT - 10 * 74 AS col1
----
-740

onlyif mysql # aggregate syntax: 
query II rowsort label-703
SELECT COUNT( * ) * 5 * - + 58 + 30 + + - 90 + - 6, 37 AS col0
----
-356
37

skipif mysql # not compatible
query II rowsort label-703
SELECT COUNT ( * ) * 5 * - + 58 + 30 + + - 90 + - 6, 37 AS col0
----
-356
37

query II rowsort
SELECT DISTINCT + 24, NULLIF ( + - 47, - 55 - - 31 - - 34 ) AS col0
----
24
-47

query I rowsort
SELECT - 92 + - 90 + 64 * + 15 * 67 AS col0
----
64138

query I rowsort
SELECT - 67 * + 63 + + 52
----
-4169

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

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

query I rowsort
SELECT 27 * 42
----
1134

onlyif mysql # aggregate syntax: 
query II rowsort label-709
SELECT 63 * + 64 + - COUNT( * ) AS col2, + 97 + 81
----
4031
178

skipif mysql # not compatible
query II rowsort label-709
SELECT 63 * + 64 + - COUNT ( * ) AS col2, + 97 + 81
----
4031
178

onlyif mysql # DIV for integer division: 
query II rowsort label-710
SELECT ALL - 69 AS col1, - 80 DIV - - 62
----
-69
-1

skipif mysql # not compatible
query II rowsort label-710
SELECT ALL - 69 AS col1, - 80 / - - 62
----
-69
-1

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

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

query I rowsort
SELECT 17 * - 5 AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-713
SELECT 53 + NULLIF ( ( - 57 ), - 53 * + COUNT( - CAST( + 4 AS SIGNED ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-713
SELECT 53 + NULLIF ( ( - 57 ), - 53 * + COUNT ( - CAST ( + 4 AS INTEGER ) ) )
----
-4

query I rowsort
SELECT ALL - 0 + - 44 AS col2
----
-44

query I rowsort
SELECT DISTINCT - 82 + 26
----
-56

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT SUM( ALL + 4 ) - - COUNT( * ) + - 41
----
-36

skipif mysql # not compatible
query I rowsort label-718
SELECT SUM ( ALL + 4 ) - - COUNT ( * ) + - 41
----
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-719
SELECT CAST( NULL AS DECIMAL ) * COUNT( DISTINCT - 53 ) + + 35 + - 29 + 28 + - + COUNT( ALL 19 ) + - + 33 * ( + 66 ) * - ( - 11 ) * - COUNT( DISTINCT + 55 ) + + 49 * - + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-719
SELECT CAST ( NULL AS REAL ) * COUNT ( DISTINCT - 53 ) + + 35 + - 29 + 28 + - + COUNT ( ALL 19 ) + - + 33 * ( + 66 ) * - ( - 11 ) * - COUNT ( DISTINCT + 55 ) + + 49 * - + 93 AS col2
----
NULL

query I rowsort
SELECT 43 * + - 59 * 19 AS col0
----
-48203

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

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

query I rowsort
SELECT DISTINCT - 22 * - + 76 + - + 61 + 60 col0
----
1671

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

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

query I rowsort
SELECT ALL 50 - - + 16 col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL 63 - - MAX( ALL + 49 )
----
112

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL 63 - - MAX ( ALL + 49 )
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-726
SELECT ALL - NULLIF ( + - 43, 67 ) AS col0, COUNT( * )
----
43
1

skipif mysql # not compatible
query II rowsort label-726
SELECT ALL - NULLIF ( + - 43, 67 ) AS col0, COUNT ( * )
----
43
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-728
SELECT 92 * + + 97 * + COUNT( * ) col0, - 52 AS col2
----
8924
-52

skipif mysql # not compatible
query II rowsort label-728
SELECT 92 * + + 97 * + COUNT ( * ) col0, - 52 AS col2
----
8924
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-729
SELECT DISTINCT + COALESCE ( - ( ( ( 47 ) ) ), + - 24 DIV - COUNT( * ) DIV + MIN( + 20 ) ) * - + 90 AS col1
----
4230

skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT + COALESCE ( - ( ( ( 47 ) ) ), + - 24 / - COUNT ( * ) / + MIN ( + 20 ) ) * - + 90 AS col1
----
4230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-730
SELECT MAX( + 33 ) * 25 + - - 1 + - NULLIF ( CAST( NULL AS SIGNED ), - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-730
SELECT MAX ( + 33 ) * 25 + - - 1 + - NULLIF ( CAST ( NULL AS INTEGER ), - 55 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT - 51 / AVG ( DISTINCT 96 ) + 10 + + 4 - + CASE + + COUNT( * ) WHEN - 30 THEN - - SUM( + 49 ) * + - 32 WHEN + COUNT( * ) THEN NULL END + 76 + + + ( + 12 ) * - MIN( + + 18 ) / + - 12 * + - 3 + - COUNT( * ) * + CAST( NULL AS SIGNED ) + + 93 * - 12 * - 81 + + COUNT( * ) + - 39 * ( + 64 ) * + 54 * + 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT - 51 / AVG ( DISTINCT 96 ) + 10 + + 4 - + CASE + + COUNT ( * ) WHEN - 30 THEN - - SUM ( + 49 ) * + - 32 WHEN + COUNT ( * ) THEN NULL END + 76 + + + ( + 12 ) * - MIN ( + + 18 ) / + - 12 * + - 3 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 93 * - 12 * - 81 + + COUNT ( * ) + - 39 * ( + 64 ) * + 54 * + 67 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT ALL COUNT( * ) * + 7 * + - 71 AS col1
----
-497

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL COUNT ( * ) * + 7 * + - 71 AS col1
----
-497

query II rowsort
SELECT DISTINCT 46 * + 58 AS col0, ( + - 92 ) AS col2
----
2668
-92

query I rowsort
SELECT ALL 80 * + 63
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL MAX( 10 ) * - COUNT( * ) * - - 79
----
-790

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL MAX ( 10 ) * - COUNT ( * ) * - - 79
----
-790

query I rowsort
SELECT DISTINCT + 86 + - 71
----
15

query I rowsort
SELECT 89 - + 39 AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-738
SELECT 27 DIV + 64 * COUNT( 22 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-738
SELECT 27 / + 64 * COUNT ( 22 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT + COUNT( * ) * + 87 * - ( + 58 ) - + - 0
----
-5046

skipif mysql # not compatible
query I rowsort label-739
SELECT + COUNT ( * ) * + 87 * - ( + 58 ) - + - 0
----
-5046

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-741
SELECT DISTINCT ( + - 29 ) + - + COALESCE ( 62, - 1 * COALESCE ( - - 60, - ( - ( + COUNT( * ) ) ) ) DIV - + 30 + - 8 * + 80 )
----
-91

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT ( + - 29 ) + - + COALESCE ( 62, - 1 * COALESCE ( - - 60, - ( - ( + COUNT ( * ) ) ) ) / - + 30 + - 8 * + 80 )
----
-91

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

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

query I rowsort
SELECT ALL + 68 + - + 56
----
12

query I rowsort
SELECT ALL 91 + - 77
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT 33 - + + COUNT( * ) + + 80 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-745
SELECT 33 - + + COUNT ( * ) + + 80 AS col1
----
112

query I rowsort
SELECT ALL - 96 * + ( + 98 ) AS col0
----
-9408

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

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT COUNT ( * ) + + 81 AS col1
----
82

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-749
SELECT ALL - + NULLIF ( - 15, + COALESCE ( + 8, ( - + MAX( + + CAST( NULL AS SIGNED ) ) ) / + + ( - ( 60 ) ), COUNT( * ) ) ) col0
----
15

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - + NULLIF ( - 15, + COALESCE ( + 8, ( - + MAX ( + + CAST ( NULL AS INTEGER ) ) ) / + + ( - ( 60 ) ), COUNT ( * ) ) ) col0
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL + 84 * - - MAX( DISTINCT 84 ) * 67 AS col1
----
472752

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL + 84 * - - MAX ( DISTINCT 84 ) * 67 AS col1
----
472752

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT - COUNT( * ) * 30 * 0 * - COUNT( * ) + - 24 * - 40 * - 4 + - 98
----
-3938

skipif mysql # not compatible
query I rowsort label-752
SELECT - COUNT ( * ) * 30 * 0 * - COUNT ( * ) + - 24 * - 40 * - 4 + - 98
----
-3938

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT 45 * - + 35 * COUNT( * ) * + 96 + + ( MIN( DISTINCT 87 ) ) + - 29
----
-151142

skipif mysql # not compatible
query I rowsort label-753
SELECT 45 * - + 35 * COUNT ( * ) * + 96 + + ( MIN ( DISTINCT 87 ) ) + - 29
----
-151142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-754
SELECT - 95 + CAST( 70 AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-754
SELECT - 95 + CAST ( 70 AS INTEGER ) AS col1
----
-25

query I rowsort
SELECT ALL - - 5 - 50
----
-45

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

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

query I rowsort
SELECT 37 + + 57
----
94

query I rowsort
SELECT ALL - - 13 - - + 30 AS col2
----
43

query I rowsort
SELECT DISTINCT - ( - + 17 ) * 64
----
1088

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-760
SELECT 17 / - - ( + CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT 17 / - - ( + CAST ( NULL AS REAL ) ) col2
----
NULL

query I rowsort
SELECT ALL + - 1 * - 17 AS col2
----
17

query I rowsort
SELECT 6 * - + 28 AS col2
----
-168

query I rowsort
SELECT DISTINCT - + 88 * - 74 * + 47 - - 5
----
306069

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-765
SELECT CAST( + COALESCE ( - COUNT( * ), + 65 + NULLIF ( + 13, - 40 ) + - COALESCE ( ( - + 38 ), 59, - 29 ) * 69 + + COUNT( * ) + - + 65 * COUNT( * ) ) AS SIGNED ) * - 86 col1, - CASE - COUNT( * ) WHEN - + 48 THEN NULL ELSE + - 18 END
----
86
18

skipif mysql # not compatible
query II rowsort label-765
SELECT CAST ( + COALESCE ( - COUNT ( * ), + 65 + NULLIF ( + 13, - 40 ) + - COALESCE ( ( - + 38 ), 59, - 29 ) * 69 + + COUNT ( * ) + - + 65 * COUNT ( * ) ) AS INTEGER ) * - 86 col1, - CASE - COUNT ( * ) WHEN - + 48 THEN NULL ELSE + - 18 END
----
86
18

query I rowsort
SELECT 92 * - - 70
----
6440

query I rowsort
SELECT ALL + 71 * - + 62
----
-4402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-768
SELECT 99 - COUNT( DISTINCT + 69 ) AS col0, NULLIF ( CAST( NULL AS SIGNED ), - + 75 * - - 16 * + 40 ) AS col0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-768
SELECT 99 - COUNT ( DISTINCT + 69 ) AS col0, NULLIF ( CAST ( NULL AS INTEGER ), - + 75 * - - 16 * + 40 ) AS col0
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT DISTINCT CASE 14 WHEN + + 23 * - SUM( - 78 ) THEN + 47 WHEN + COUNT( * ) THEN - - COUNT( ALL + - 99 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT CASE 14 WHEN + + 23 * - SUM ( - 78 ) THEN + 47 WHEN + COUNT ( * ) THEN - - COUNT ( ALL + - 99 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( 91, + + 24 * + 14 ) col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT + 69 * - SUM( ALL + 52 )
----
-3588

skipif mysql # not compatible
query I rowsort label-771
SELECT + 69 * - SUM ( ALL + 52 )
----
-3588

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-772
SELECT + CAST( NULL AS DECIMAL ) / 27 + + 63 / 34
----
NULL

skipif mysql # not compatible
query I rowsort label-772
SELECT + CAST ( NULL AS REAL ) / 27 + + 63 / 34
----
NULL

query I rowsort
SELECT NULLIF ( - 18, - - 49 * 80 ) col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT ALL + COUNT( * ) * + 50 * - NULLIF ( - COUNT( * ), - + 64 * - ( 79 ) * - ( + + AVG ( - + 9 ) ) + + - 42 ) + - 52 * - COALESCE ( 0, + + SUM( ALL 7 ) DIV COUNT( * ), - + 60, - 79 + - 94 DIV + 36 )
----
50

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + COUNT ( * ) * + 50 * - NULLIF ( - COUNT ( * ), - + 64 * - ( 79 ) * - ( + + AVG ( - + 9 ) ) + + - 42 ) + - 52 * - COALESCE ( 0, + + SUM ( ALL 7 ) / COUNT ( * ), - + 60, - 79 + - 94 / + 36 )
----
50

query I rowsort
SELECT - 56 + 15
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-776
SELECT 99 DIV - - COUNT( * ) - - COUNT( * ) - + 57 * - + 46 * + - COUNT( * ) col0
----
-2522

skipif mysql # not compatible
query I rowsort label-776
SELECT 99 / - - COUNT ( * ) - - COUNT ( * ) - + 57 * - + 46 * + - COUNT ( * ) col0
----
-2522

query I rowsort
SELECT - 58 * + 75 + + + 90
----
-4260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-778
SELECT ALL - 9 * + + CAST( + COUNT( * ) AS SIGNED ) + 43
----
34

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL - 9 * + + CAST ( + COUNT ( * ) AS INTEGER ) + 43
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL - MAX( DISTINCT + 32 ) * 16 * + 12 * + COALESCE ( + 79, + 60, + MIN( ALL - 33 ) + 10 ) + + 91 * + - COALESCE ( 51, - - 96 )
----
-490017

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL - MAX ( DISTINCT + 32 ) * 16 * + 12 * + COALESCE ( + 79, + 60, + MIN ( ALL - 33 ) + 10 ) + + 91 * + - COALESCE ( 51, - - 96 )
----
-490017

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT 0 * 29 * 44 + + - 56 + 25 DIV - 50
----
-56

skipif mysql # not compatible
query I rowsort label-780
SELECT 0 * 29 * 44 + + - 56 + 25 / - 50
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT DISTINCT + MAX( ALL - - 75 ) col2
----
75

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT + MAX ( ALL - - 75 ) col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-782
SELECT DISTINCT - CASE + + 51 WHEN CASE + + 47 WHEN 57 THEN 57 ELSE NULL END THEN + 46 ELSE NULL END * 48 / - - 30 + + 83 + - - COUNT( * ) + - MIN( - CAST( + 4 AS DECIMAL ) ) * 16 * - 53 + AVG ( 16 ), - COUNT( * ) * - - 84 * - - ( - 4 ) * 22 + + 11 AS col1
----
NULL
7403

skipif mysql # not compatible
query II rowsort label-782
SELECT DISTINCT - CASE + + 51 WHEN CASE + + 47 WHEN 57 THEN 57 ELSE NULL END THEN + 46 ELSE NULL END * 48 / - - 30 + + 83 + - - COUNT ( * ) + - MIN ( - CAST ( + 4 AS REAL ) ) * 16 * - 53 + AVG ( 16 ), - COUNT ( * ) * - - 84 * - - ( - 4 ) * 22 + + 11 AS col1
----
NULL
7403

query I rowsort
SELECT ALL + 82 * 34 + + 15 * - 47 * + 70
----
-46562

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-784
SELECT + 20 * 31 + + 84 * - 77 * - + 86 AS col2, - 91 - + COUNT( * ) DIV + - 7
----
556868
-91

skipif mysql # not compatible
query II rowsort label-784
SELECT + 20 * 31 + + 84 * - 77 * - + 86 AS col2, - 91 - + COUNT ( * ) / + - 7
----
556868
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT + 67 * + ( + - ( + + 72 ) ) * + COUNT( * ) + - COUNT( * )
----
-4825

skipif mysql # not compatible
query I rowsort label-785
SELECT + 67 * + ( + - ( + + 72 ) ) * + COUNT ( * ) + - COUNT ( * )
----
-4825

query II rowsort
SELECT DISTINCT + 94 AS col1, 32 + - + 74 * 64 + + 80
----
94
-4624

query I rowsort
SELECT + + 50 * + - 44 AS col2
----
-2200

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT ALL 96 DIV + + 71
----
1

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL 96 / + + 71
----
1

query I rowsort
SELECT - + 69 + + 99 - + 31
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL 66 * + + MIN( ALL - 23 ) - - 65 AS col1
----
-1453

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL 66 * + + MIN ( ALL - 23 ) - - 65 AS col1
----
-1453

query I rowsort
SELECT ALL + - 41 * - - 56 AS col0
----
-2296

query I rowsort
SELECT 92 * 11 + + 94 + 83 AS col1
----
1189

query II rowsort
SELECT + 29 AS col2, 22 AS col2
----
29
22

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

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

query II rowsort
SELECT - 79 AS col2, 9
----
-79
9

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT + + 73 - COALESCE ( + 23, - 50 * + COUNT( * ) ) * + - 13
----
372

skipif mysql # not compatible
query I rowsort label-796
SELECT + + 73 - COALESCE ( + 23, - 50 * + COUNT ( * ) ) * + - 13
----
372

onlyif mysql # aggregate syntax: 
query II rowsort label-797
SELECT - CASE + - 9 WHEN - - ( + MAX( DISTINCT - 65 ) ) + + 67 THEN + - SUM( - - 99 ) ELSE NULL END col0, + 54 + - 24
----
NULL
30

skipif mysql # not compatible
query II rowsort label-797
SELECT - CASE + - 9 WHEN - - ( + MAX ( DISTINCT - 65 ) ) + + 67 THEN + - SUM ( - - 99 ) ELSE NULL END col0, + 54 + - 24
----
NULL
30

query I rowsort
SELECT - + 51 + 5
----
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ALL + 96 + + + 72 * COUNT( 76 ) AS col1
----
168

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL + 96 + + + 72 * COUNT ( 76 ) AS col1
----
168

query I rowsort
SELECT - 27 + + - 64 * + 95
----
-6107

query II rowsort
SELECT DISTINCT 30, + 26 AS col2
----
30
26

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT ALL - 13 DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL - 13 / 23
----
0

query I rowsort
SELECT - 81 * + + ( 82 ) AS col2
----
-6642

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-807
SELECT 40 AS col2, 62 DIV - 98 * - - 85 * + COUNT( * ) * + 39 AS col2
----
40
0

skipif mysql # not compatible
query II rowsort label-807
SELECT 40 AS col2, 62 / - 98 * - - 85 * + COUNT ( * ) * + 39 AS col2
----
40
0

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

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

query I rowsort
SELECT DISTINCT - 86 + + ( 63 ) * - 25 AS col0
----
-1661

query II rowsort
SELECT - 16 + 0 col0, 64
----
-16
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-811
SELECT - 33 DIV + COUNT( * ) AS col1, + 21 AS col2
----
-33
21

skipif mysql # not compatible
query II rowsort label-811
SELECT - 33 / + COUNT ( * ) AS col1, + 21 AS col2
----
-33
21

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT + 39 + - 87 - COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-812
SELECT + 39 + - 87 - COUNT ( * ) AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-813
SELECT ALL + 13 * + COUNT( * ), + MAX( ALL + CAST( NULL AS SIGNED ) ) * 51 col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-813
SELECT ALL + 13 * + COUNT ( * ), + MAX ( ALL + CAST ( NULL AS INTEGER ) ) * 51 col0
----
13
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-814
SELECT 26 AS col2, 64 * - COUNT( * ) * + MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-814
SELECT 26 AS col2, 64 * - COUNT ( * ) * + MAX ( DISTINCT CAST ( NULL AS INTEGER ) )
----
26
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-815
SELECT ALL - 4 DIV + 75 + - 90 + - 95 * + COUNT( * ) AS col2
----
-185

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL - 4 / + 75 + - 90 + - 95 * + COUNT ( * ) AS col2
----
-185

query II rowsort
SELECT - 85 * 74, - 17 AS col2
----
-6290
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT ALL - MAX( + 97 ) DIV - + COALESCE ( - ( - 19 ), + 66, + 37 ) + 88 - - 23 - - 60 - - 14 * + COUNT( * ) AS col0
----
190

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - MAX ( + 97 ) / - + COALESCE ( - ( - 19 ), + 66, + 37 ) + 88 - - 23 - - 60 - - 14 * + COUNT ( * ) AS col0
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT + MIN( ALL 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-818
SELECT + MIN ( ALL 83 ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-819
SELECT ALL + 38 DIV - + 40 + 23 col2
----
23

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL + 38 / - + 40 + 23 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT DISTINCT + MIN( ALL + 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT + MIN ( ALL + 57 ) AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-821
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col1, 20 col0
----
1
20

skipif mysql # not compatible
query II rowsort label-821
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 20 col0
----
1
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT - 78 * - COUNT( * ) - - ( - 36 ) - + + 14
----
28

skipif mysql # not compatible
query I rowsort label-823
SELECT - 78 * - COUNT ( * ) - - ( - 36 ) - + + 14
----
28

query II rowsort
SELECT DISTINCT + 26, 96 * 54 * 19 AS col2
----
26
98496

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT ALL - - 34 DIV - 30 col0
----
-1

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL - - 34 / - 30 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT + 72 - 76 + + 6 * + 26 - + 6 DIV + - 62
----
152

skipif mysql # not compatible
query I rowsort label-826
SELECT + 72 - 76 + + 6 * + 26 - + 6 / + - 62
----
152

query I rowsort
SELECT DISTINCT - 2 * + 17 col2
----
-34

query II rowsort
SELECT ALL + - 16, - 54 AS col2
----
-16
-54

query II rowsort
SELECT ALL + 18 AS col2, - 23 + - 80 + + 33 * ( + - 1 )
----
18
-136

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

query II rowsort
SELECT - 35 AS col1, COALESCE ( - + 53, + ( - - 57 ), + 60 + + 88, - - 73 )
----
-35
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT + + MAX( + 3 ) + + 64 + - ( - 85 )
----
152

skipif mysql # not compatible
query I rowsort label-832
SELECT + + MAX ( + 3 ) + + 64 + - ( - 85 )
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-833
SELECT + + 72 * 3 + - 74 * + + 59 * + + 54 + + CAST( NULL AS SIGNED ) col1, + 68 + - COUNT( * ) AS col0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-833
SELECT + + 72 * 3 + - 74 * + + 59 * + + 54 + + CAST ( NULL AS INTEGER ) col1, + 68 + - COUNT ( * ) AS col0
----
NULL
67

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

query I rowsort
SELECT 2 * - + 0 + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT + - 97 - + + 95 + COUNT( * )
----
-191

skipif mysql # not compatible
query I rowsort label-836
SELECT + - 97 - + + 95 + COUNT ( * )
----
-191

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT + 75 DIV - + 26 col2
----
-2

skipif mysql # not compatible
query I rowsort label-837
SELECT + 75 / - + 26 col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT + + COUNT( * ) + 26 * - - 33
----
859

skipif mysql # not compatible
query I rowsort label-838
SELECT + + COUNT ( * ) + 26 * - - 33
----
859

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT DISTINCT - MAX( DISTINCT + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT - MAX ( DISTINCT + 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL + - SUM( DISTINCT - 32 ) + + + 8 col1
----
40

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + - SUM ( DISTINCT - 32 ) + + + 8 col1
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-841
SELECT ALL - 13 AS col1, 86 DIV 50 AS col2
----
-13
1

skipif mysql # not compatible
query II rowsort label-841
SELECT ALL - 13 AS col1, 86 / 50 AS col2
----
-13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT + 24 * - COALESCE ( + - ( + 1 ), + COALESCE ( - 28, 16 ), + 48 * - + 63 * - COUNT( + - ( ( 67 ) ) ) + + 65 + + 67 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-842
SELECT + 24 * - COALESCE ( + - ( + 1 ), + COALESCE ( - 28, 16 ), + 48 * - + 63 * - COUNT ( + - ( ( 67 ) ) ) + + 65 + + 67 ) AS col0
----
24

query I rowsort
SELECT 15 + - COALESCE ( - 50, ( 69 ) ) AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-844
SELECT ALL + ( + + 58 ) + + ( - 53 ) + - 61 + + COALESCE ( + - 78, - 14 * - CAST( NULL AS SIGNED ) )
----
-134

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL + ( + + 58 ) + + ( - 53 ) + - 61 + + COALESCE ( + - 78, - 14 * - CAST ( NULL AS INTEGER ) )
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT DISTINCT NULLIF ( 1, + + 57 ) * + COUNT( - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT NULLIF ( 1, + + 57 ) * + COUNT ( - 58 )
----
1

query I rowsort
SELECT ALL 51 * + 8 AS col1
----
408

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

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

query I rowsort
SELECT ALL 15 * 85 AS col1
----
1275

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

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT ALL NULLIF ( + 32, - 95 ) + + + 70 DIV - ( + 88 ) + - 89 + 88
----
31

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL NULLIF ( + 32, - 95 ) + + + 70 / - ( + 88 ) + - 89 + 88
----
31

query I rowsort
SELECT 43 + + - 73 + - + 21
----
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT DISTINCT - 64 DIV 63
----
-1

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT - 64 / 63
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT + 12 * + 94 - + COUNT( * )
----
1127

skipif mysql # not compatible
query I rowsort label-854
SELECT + 12 * + 94 - + COUNT ( * )
----
1127

query II rowsort
SELECT ALL + 74 - 99 AS col1, - 70 + + 15 AS col2
----
-25
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT 48 * - 33 * COUNT( + 36 ) * + - 89
----
140976

skipif mysql # not compatible
query I rowsort label-856
SELECT 48 * - 33 * COUNT ( + 36 ) * + - 89
----
140976

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

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

query I rowsort
SELECT 12 * + 22 AS col1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ALL - COUNT( + 64 ) * - - 87 * + 47 + 84 + 33 * 93 * - - 13 AS col1
----
35892

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL - COUNT ( + 64 ) * - - 87 * + 47 + 84 + 33 * 93 * - - 13 AS col1
----
35892

onlyif mysql # aggregate syntax: 
query II rowsort label-860
SELECT - 15 * - + 10 + - 64 * - - 37 + - - COUNT( 46 ) + - 46 * 35, - 73 * 42 AS col1
----
-3827
-3066

skipif mysql # not compatible
query II rowsort label-860
SELECT - 15 * - + 10 + - 64 * - - 37 + - - COUNT ( 46 ) + - 46 * 35, - 73 * 42 AS col1
----
-3827
-3066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-861
SELECT ALL - - CASE + - CAST( NULL AS SIGNED ) WHEN + 81 * - COUNT( * ) + + + 28 THEN ( + 93 ) WHEN + CAST( + CAST( - 75 AS SIGNED ) AS SIGNED ) * + + 76 + 31 * - - 49 * - 73 * - - 8 + + - 50 THEN - - 21 END AS col1, - COUNT( * ) + CASE WHEN - 79 IS NULL THEN NULL ELSE 84 END * - + 66 AS col2
----
NULL
-5545

skipif mysql # not compatible
query II rowsort label-861
SELECT ALL - - CASE + - CAST ( NULL AS INTEGER ) WHEN + 81 * - COUNT ( * ) + + + 28 THEN ( + 93 ) WHEN + CAST ( + CAST ( - 75 AS INTEGER ) AS INTEGER ) * + + 76 + 31 * - - 49 * - 73 * - - 8 + + - 50 THEN - - 21 END AS col1, - COUNT ( * ) + CASE WHEN - 79 IS NULL THEN NULL ELSE 84 END * - + 66 AS col2
----
NULL
-5545

query I rowsort
SELECT 58 + 3 - 84
----
-23

query I rowsort
SELECT ALL 3 * - 21 col2
----
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT ALL - 54 + COUNT( * ) + + 24 * 27 * 31 * - SUM( DISTINCT 33 )
----
-662957

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - 54 + COUNT ( * ) + + 24 * 27 * 31 * - SUM ( DISTINCT 33 )
----
-662957

query I rowsort
SELECT ALL - + ( ( - 70 ) ) * - 33 + - 70
----
-2380

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT ALL 92 + - SUM( DISTINCT - + 99 ) AS col1, 34 AS col2
----
191
34

skipif mysql # not compatible
query II rowsort label-867
SELECT ALL 92 + - SUM ( DISTINCT - + 99 ) AS col1, 34 AS col2
----
191
34

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT - 31 * 78 - COUNT( * ) * 22 AS col1
----
-2440

skipif mysql # not compatible
query I rowsort label-868
SELECT - 31 * 78 - COUNT ( * ) * 22 AS col1
----
-2440

query I rowsort
SELECT 1 - 55 col0
----
-54

query I rowsort
SELECT 43 + + - 84
----
-41

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-872
SELECT DISTINCT COUNT( * ) + - - MIN( + + 28 ) * + + 99, - ( 78 ) - - + 25 + 18 * + ( + ( + 63 ) ) * - 17 + + 42 col2
----
2773
-19289

skipif mysql # not compatible
query II rowsort label-872
SELECT DISTINCT COUNT ( * ) + - - MIN ( + + 28 ) * + + 99, - ( 78 ) - - + 25 + 18 * + ( + ( + 63 ) ) * - 17 + + 42 col2
----
2773
-19289

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

skipif mysql # not compatible
query II rowsort label-873
SELECT ALL 15 col2, COUNT ( * )
----
15
1

query I rowsort
SELECT 33 + + + 90 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT - MIN( DISTINCT 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-875
SELECT - MIN ( DISTINCT 45 ) AS col1
----
-45

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

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

query I rowsort
SELECT DISTINCT ( 0 ) - - 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT 68 + + COUNT( * ) + - 11 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-878
SELECT 68 + + COUNT ( * ) + - 11 AS col2
----
58

query I rowsort
SELECT DISTINCT 55 - - 50 AS col1
----
105

query II rowsort
SELECT 78 + - + COALESCE ( 21, - ( 9 ), + 75 ), + 98 - - 18 AS col0
----
57
116

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL - NULLIF ( - - COUNT( * ), 55 * 9 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL - NULLIF ( - - COUNT ( * ), 55 * 9 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-882
SELECT ALL - COUNT( * ) AS col1, COUNT( 81 ) + 34 + - + 47 + - - 30 * 88 * 55 * + MIN( DISTINCT - 41 )
----
-1
-5953212

skipif mysql # not compatible
query II rowsort label-882
SELECT ALL - COUNT ( * ) AS col1, COUNT ( 81 ) + 34 + - + 47 + - - 30 * 88 * 55 * + MIN ( DISTINCT - 41 )
----
-1
-5953212

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT DISTINCT - - CASE - - MIN( 74 ) WHEN ( - + SUM( + 44 ) ) THEN - COUNT( * ) WHEN COUNT( * ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT - - CASE - - MIN ( 74 ) WHEN ( - + SUM ( + 44 ) ) THEN - COUNT ( * ) WHEN COUNT ( * ) THEN COUNT ( * ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT DISTINCT - MAX( ALL + 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT - MAX ( ALL + 47 ) AS col2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-886
SELECT + 12 DIV + NULLIF ( + 17, - 6 ) + 89 col0
----
89

skipif mysql # not compatible
query I rowsort label-886
SELECT + 12 / + NULLIF ( + 17, - 6 ) + 89 col0
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL 67 * - - 21 + + COUNT( * ) - - 89 * - - 46
----
5502

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL 67 * - - 21 + + COUNT ( * ) - - 89 * - - 46
----
5502

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-889
SELECT 61 * + + 71 + 5 DIV + SUM( - - 24 ) + - - 73 AS col0
----
4404

skipif mysql # not compatible
query I rowsort label-889
SELECT 61 * + + 71 + 5 / + SUM ( - - 24 ) + - - 73 AS col0
----
4404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-890
SELECT ALL + - CAST( CASE - 6 WHEN - 61 * - 58 THEN NULL WHEN + - 39 THEN NULL WHEN + COALESCE ( + 8, + 98, + - AVG ( DISTINCT + + 0 ) ) THEN - - 64 END AS SIGNED ) * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL + - CAST ( CASE - 6 WHEN - 61 * - 58 THEN NULL WHEN + - 39 THEN NULL WHEN + COALESCE ( + 8, + 98, + - AVG ( DISTINCT + + 0 ) ) THEN - - 64 END AS INTEGER ) * - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT COUNT( * ) * 34 + 63 + - 69 * + 76
----
-5147

skipif mysql # not compatible
query I rowsort label-891
SELECT COUNT ( * ) * 34 + 63 + - 69 * + 76
----
-5147

onlyif mysql # aggregate syntax: 
query II rowsort label-892
SELECT + COUNT( * ), + 4 - - 50 AS col1
----
1
54

skipif mysql # not compatible
query II rowsort label-892
SELECT + COUNT ( * ), + 4 - - 50 AS col1
----
1
54

query II rowsort
SELECT ALL + 68 * 82 * + 4 + + + 55 AS col2, - 18 col2
----
22359
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT - + CASE + - 30 WHEN 57 THEN + 65 WHEN + - COUNT( * ) THEN MIN( + 42 ) END - + 47 * + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT - + CASE + - 30 WHEN 57 THEN + 65 WHEN + - COUNT ( * ) THEN MIN ( + 42 ) END - + 47 * + + 91
----
NULL

query I rowsort
SELECT ALL + 61 * 89 + - - 99 AS col0
----
5528

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT - 50 + 1 * + 33 DIV + 72
----
-50

skipif mysql # not compatible
query I rowsort label-896
SELECT - 50 + 1 * + 33 / + 72
----
-50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-898
SELECT ALL COALESCE ( - ( - + 50 ), - - 44 * + 67 * 74 * - + ( + 4 ) - + CASE ( - - CAST( NULL AS SIGNED ) ) WHEN + 71 THEN NULL WHEN - 48 + - 55 * + ( 81 ) - COUNT( * ) THEN - COALESCE ( ( - 48 ), 63, - 56 * + + COUNT( * ) ) ELSE - 71 END DIV COUNT( * ) ) col1
----
50

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL COALESCE ( - ( - + 50 ), - - 44 * + 67 * 74 * - + ( + 4 ) - + CASE ( - - CAST ( NULL AS INTEGER ) ) WHEN + 71 THEN NULL WHEN - 48 + - 55 * + ( 81 ) - COUNT ( * ) THEN - COALESCE ( ( - 48 ), 63, - 56 * + + COUNT ( * ) ) ELSE - 71 END / COUNT ( * ) ) col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT - 93 + - - 1 * NULLIF ( - 54, - COUNT( * ) ) * - 7 + 42
----
327

skipif mysql # not compatible
query I rowsort label-899
SELECT - 93 + - - 1 * NULLIF ( - 54, - COUNT ( * ) ) * - 7 + 42
----
327

query I rowsort
SELECT - 86 * 42
----
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT ALL + ( + MAX( ALL 29 ) ) * + 67 * 56 + + 65
----
108873

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL + ( + MAX ( ALL 29 ) ) * + 67 * 56 + + 65
----
108873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-902
SELECT DISTINCT + 64 * + COUNT( * ) * CAST( - 82 AS SIGNED )
----
-5248

skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT + 64 * + COUNT ( * ) * CAST ( - 82 AS INTEGER )
----
-5248

query I rowsort
SELECT - 50 * - 86 AS col0
----
4300

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ALL + NULLIF ( + ( - + 15 ), + CASE 39 WHEN - + COUNT( * ) + + 41 THEN NULL ELSE - MIN( 6 ) + + + CASE 90 WHEN - 69 THEN + + MAX( ALL 37 ) WHEN 39 THEN NULL END END ) * + 52
----
-780

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL + NULLIF ( + ( - + 15 ), + CASE 39 WHEN - + COUNT ( * ) + + 41 THEN NULL ELSE - MIN ( 6 ) + + + CASE 90 WHEN - 69 THEN + + MAX ( ALL 37 ) WHEN 39 THEN NULL END END ) * + 52
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT - 68 + + + COALESCE ( - 10, 26 + MAX( - 72 ), - 43 )
----
-78

skipif mysql # not compatible
query I rowsort label-905
SELECT - 68 + + + COALESCE ( - 10, 26 + MAX ( - 72 ), - 43 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-906
SELECT + COALESCE ( COUNT( * ), - ( 9 ) ) DIV - CAST( 31 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-906
SELECT + COALESCE ( COUNT ( * ), - ( 9 ) ) / - CAST ( 31 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT + ( + - 78 ) * + - 83
----
6474

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

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL ( - MAX ( 25 ) )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT DISTINCT 49 DIV - 7 * - - 90 DIV + - 79 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT 49 / - 7 * - - 90 / + - 79 AS col0
----
7

query I rowsort
SELECT + 14 + - - ( + + 5 )
----
19

query I rowsort
SELECT DISTINCT ( + + 1 ) AS col2
----
1

query I rowsort
SELECT + ( 14 ) + 20 - + 77 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL NULLIF ( + 14, - 45 ) + + 45 - + + ( + COUNT( * ) ) + + ( - 15 ) + + - 34 * 53 * 98 AS col1
----
-176553

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL NULLIF ( + 14, - 45 ) + + 45 - + + ( + COUNT ( * ) ) + + ( - 15 ) + + - 34 * 53 * 98 AS col1
----
-176553

onlyif mysql # aggregate syntax: 
query II rowsort label-914
SELECT 59 * 0 - - - 63 + + 8 AS col1, MIN( 91 ) * + + 28 AS col0
----
-55
2548

skipif mysql # not compatible
query II rowsort label-914
SELECT 59 * 0 - - - 63 + + 8 AS col1, MIN ( 91 ) * + + 28 AS col0
----
-55
2548

query I rowsort
SELECT + + 90 + 6
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-916
SELECT - CAST( NULL AS SIGNED ) / - ( 17 ) - - CASE - - ( - MAX( DISTINCT - - 20 ) ) WHEN - 43 THEN + 42 / + 15 * + 80 + - 65 * + - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT - CAST ( NULL AS INTEGER ) / - ( 17 ) - - CASE - - ( - MAX ( DISTINCT - - 20 ) ) WHEN - 43 THEN + 42 / + 15 * + 80 + - 65 * + - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-917
SELECT DISTINCT 73 * - 1 + - - 60 + - + 68 * - COUNT( * ) * - 30 * - CAST( 62 AS SIGNED ) + - 22 * + NULLIF ( - - 49, + 67 + - 87 ) AS col0
----
125389

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT 73 * - 1 + - - 60 + - + 68 * - COUNT ( * ) * - 30 * - CAST ( 62 AS INTEGER ) + - 22 * + NULLIF ( - - 49, + 67 + - 87 ) AS col0
----
125389

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT ALL + - 24 * - 9 + + 76 + - ( NULLIF ( - - 47, + 18 * + 84 / + 46 ) ) + + COUNT( * ) AS col2, - 82 AS col2
----
246
-82

skipif mysql # not compatible
query II rowsort label-918
SELECT ALL + - 24 * - 9 + + 76 + - ( NULLIF ( - - 47, + 18 * + 84 / + 46 ) ) + + COUNT ( * ) AS col2, - 82 AS col2
----
246
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT + 31 DIV - - 33 + - + 2 + - 23 * + 28 + + 79
----
-567

skipif mysql # not compatible
query I rowsort label-919
SELECT + 31 / - - 33 + - + 2 + - 23 * + 28 + + 79
----
-567

query I rowsort
SELECT + 21 * - + 80 AS col1
----
-1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-921
SELECT ALL - + NULLIF ( - COUNT( * ), + - SUM( DISTINCT - 35 ) ) * + + COUNT( * ) - - 44 + - 18 + + 69 DIV 50 * + - 11 + 54 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL - + NULLIF ( - COUNT ( * ), + - SUM ( DISTINCT - 35 ) ) * + + COUNT ( * ) - - 44 + - 18 + + 69 / 50 * + - 11 + 54 AS col0
----
70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT + - 13 DIV - - 81 * - 89
----
0

skipif mysql # not compatible
query I rowsort label-923
SELECT + - 13 / - - 81 * - 89
----
0

query I rowsort
SELECT ALL + + 47 * + + 56 AS col1
----
2632

query I rowsort
SELECT + + 97 * + 29 AS col1
----
2813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-926
SELECT + + COALESCE ( 68, 35 + COUNT( * ) DIV - 72 * + 87 DIV - NULLIF ( 25, - + 11 DIV + + 87 ) - - + 58 - + SUM( DISTINCT 50 ) + MIN( - + 63 ) + + + COUNT( * ) + + 79 + - - 42 - + ( 56 ), - + 60 * + ( + 55 ), 97 )
----
68

skipif mysql # not compatible
query I rowsort label-926
SELECT + + COALESCE ( 68, 35 + COUNT ( * ) / - 72 * + 87 / - NULLIF ( 25, - + 11 / + + 87 ) - - + 58 - + SUM ( DISTINCT 50 ) + MIN ( - + 63 ) + + + COUNT ( * ) + + 79 + - - 42 - + ( 56 ), - + 60 * + ( + 55 ), 97 )
----
68

query I rowsort
SELECT ALL - 49 * + + 76 - 79 AS col1
----
-3803

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

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

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

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

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

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

query I rowsort
SELECT COALESCE ( + 18, 86 )
----
18

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

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

query I rowsort
SELECT - 80 + - 48
----
-128

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

query I rowsort
SELECT - 27 - - 53 AS col2
----
26

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

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

query I rowsort
SELECT - 3 - - - 48 - - 69 * + 66
----
4503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-938
SELECT DISTINCT CAST( - CASE - + NULLIF ( + 18, + 22 ) WHEN - - COUNT( * ) THEN + + 62 / + + 22 + COALESCE ( 78, + 47 - 18 - - 32 + + 68 * - 84, + 18 * + - 53 * - 25 ) + 72 * - 55 WHEN + MIN( - 74 ) - + + 72 THEN NULLIF ( - + 74, + 28 - COUNT( * ) ) + - 14 * 78 * - + 4 ELSE - - 48 END AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT CAST ( - CASE - + NULLIF ( + 18, + 22 ) WHEN - - COUNT ( * ) THEN + + 62 / + + 22 + COALESCE ( 78, + 47 - 18 - - 32 + + 68 * - 84, + 18 * + - 53 * - 25 ) + 72 * - 55 WHEN + MIN ( - 74 ) - + + 72 THEN NULLIF ( - + 74, + 28 - COUNT ( * ) ) + - 14 * 78 * - + 4 ELSE - - 48 END AS INTEGER )
----
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-939
SELECT DISTINCT COALESCE ( + 73, - 75 ) AS col0, + ( 24 ) DIV + + 13 AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-939
SELECT DISTINCT COALESCE ( + 73, - 75 ) AS col0, + ( 24 ) / + + 13 AS col0
----
73
1

query I rowsort
SELECT ALL + 15 * + 59 AS col0
----
885

query I rowsort
SELECT DISTINCT 26 * 49 * - 99 col2
----
-126126

onlyif mysql # aggregate syntax: 
query II rowsort label-942
SELECT DISTINCT + 33 + COUNT( * ) * - 1 AS col2, - MAX( DISTINCT + 84 ) * + + ( + 85 ) + + + 11
----
32
-7129

skipif mysql # not compatible
query II rowsort label-942
SELECT DISTINCT + 33 + COUNT ( * ) * - 1 AS col2, - MAX ( DISTINCT + 84 ) * + + ( + 85 ) + + + 11
----
32
-7129

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

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

query I rowsort
SELECT ALL + 15 + + ( + 9 )
----
24

query I rowsort
SELECT DISTINCT + 98 + 25
----
123

query I rowsort
SELECT - 31 * + 3
----
-93

query I rowsort
SELECT DISTINCT 60 + + 11 * - 19 AS col1
----
-149

query I rowsort
SELECT ALL 19 + 33 AS col2
----
52

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

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL 95 + + COUNT ( * ) AS col0
----
96

query I rowsort
SELECT 93 * 65 AS col2
----
6045

query I rowsort
SELECT DISTINCT - 71 + - 74 AS col2
----
-145

query I rowsort
SELECT ALL 47 * 46 AS col1
----
2162

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

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

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

query I rowsort
SELECT + 79 * 17 + ( + 70 ) col1
----
1413

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ALL CASE + 39 WHEN NULLIF ( - 77, ( - ( - 25 ) ) * + 86 ) THEN 40 * + 20 + + MIN( ALL 5 ) * - 34 WHEN 23 THEN NULL ELSE NULL END * AVG ( ALL - ( - ( 38 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL CASE + 39 WHEN NULLIF ( - 77, ( - ( - 25 ) ) * + 86 ) THEN 40 * + 20 + + MIN ( ALL 5 ) * - 34 WHEN 23 THEN NULL ELSE NULL END * AVG ( ALL - ( - ( 38 ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL ( + 30 ) * 89
----
2670

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ( COUNT( * ) ) + - 38 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-958
SELECT ( COUNT ( * ) ) + - 38 AS col2
----
-37

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

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

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

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

query I rowsort
SELECT ALL COALESCE ( 65, 33 ) * ( - 87 ) col1
----
-5655

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT COUNT( * ) - + 73 * - 7 AS col2
----
512

skipif mysql # not compatible
query I rowsort label-962
SELECT COUNT ( * ) - + 73 * - 7 AS col2
----
512

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT ALL - 18 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - 18 / + 90
----
0

query I rowsort
SELECT 43 * + 69 AS col2
----
2967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-965
SELECT - 47 * CAST( NULL AS SIGNED ) + - CASE - 1 WHEN 72 * - 5 + COUNT( * ) THEN NULL ELSE 31 * ( MAX( DISTINCT - 94 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT - 47 * CAST ( NULL AS INTEGER ) + - CASE - 1 WHEN 72 * - 5 + COUNT ( * ) THEN NULL ELSE 31 * ( MAX ( DISTINCT - 94 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT 56 * MAX( + 48 )
----
2688

skipif mysql # not compatible
query I rowsort label-966
SELECT 56 * MAX ( + 48 )
----
2688

query I rowsort
SELECT 26 + + 41
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT 62 DIV COALESCE ( - 10 * + ( 36 ), - 57, 40 * 93 )
----
0

skipif mysql # not compatible
query I rowsort label-968
SELECT 62 / COALESCE ( - 10 * + ( 36 ), - 57, 40 * 93 )
----
0

query I rowsort
SELECT ALL 39 * 5 AS col0
----
195

query I rowsort
SELECT 33 * 30
----
990

query I rowsort
SELECT 71 - + 61
----
10

query I rowsort
SELECT DISTINCT - 1 * + 97 col2
----
-97

query I rowsort
SELECT DISTINCT + 46 * 10
----
460

query I rowsort
SELECT ALL - 92 * 15 AS col1
----
-1380

query I rowsort
SELECT ALL 3 * 84 AS col2
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL + 20 + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL + 20 + - COUNT ( * )
----
19

query I rowsort
SELECT DISTINCT 97 + + 96 * 3 AS col1
----
385

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT ALL - 56 DIV + 14 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL - 56 / + 14 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-979
SELECT 77 DIV - CASE - COUNT( DISTINCT - 89 ) * 30 WHEN + COALESCE ( 61, - 70 * - 27 ) THEN - 44 + COALESCE ( + 19 + 96, - 63 * - NULLIF ( ( + 52 ) * - CAST( 88 + 9 AS SIGNED ), CASE - 41 WHEN + 7 THEN - 17 + COUNT( 44 ) ELSE 24 * + 10 END ) ) ELSE + 9 END AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-979
SELECT 77 / - CASE - COUNT ( DISTINCT - 89 ) * 30 WHEN + COALESCE ( 61, - 70 * - 27 ) THEN - 44 + COALESCE ( + 19 + 96, - 63 * - NULLIF ( ( + 52 ) * - CAST ( 88 + 9 AS INTEGER ), CASE - 41 WHEN + 7 THEN - 17 + COUNT ( 44 ) ELSE 24 * + 10 END ) ) ELSE + 9 END AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT - COUNT( * ) + 62 * 59 AS col2
----
3657

skipif mysql # not compatible
query I rowsort label-980
SELECT - COUNT ( * ) + 62 * 59 AS col2
----
3657

query I rowsort
SELECT ALL - + 48 + 84 AS col0
----
36

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

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

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

skipif mysql # not compatible
query I rowsort label-983
SELECT + 23 + COUNT ( * ) * 96 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT NULLIF ( COUNT( * ), + COUNT( 60 ) * 46 ) + + 94 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-984
SELECT NULLIF ( COUNT ( * ), + COUNT ( 60 ) * 46 ) + + 94 AS col2
----
95

query I rowsort
SELECT ALL - + 56 + 46 * + 60
----
2704

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL ( + CASE COUNT( 86 ) WHEN 45 THEN 82 * 49 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL ( + CASE COUNT ( 86 ) WHEN 45 THEN 82 * 49 ELSE NULL END ) AS col2
----
NULL

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

query I rowsort
SELECT - 90 + 72 AS col1
----
-18

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

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

query I rowsort
SELECT 92 + - 57
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT 41 DIV + 87 - SUM( DISTINCT 24 ) col1
----
-24

skipif mysql # not compatible
query I rowsort label-991
SELECT 41 / + 87 - SUM ( DISTINCT 24 ) col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT - 84 * COUNT( * ) + 34 * 28 AS col2
----
868

skipif mysql # not compatible
query I rowsort label-992
SELECT - 84 * COUNT ( * ) + 34 * 28 AS col2
----
868

query I rowsort
SELECT 81 + 94 * 53 AS col1
----
5063

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT ALL 70 DIV + 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL 70 / + 8 AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT + 39 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-995
SELECT + 39 / + 76
----
0

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

query I rowsort
SELECT + 66 + 88 AS col0
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-998
SELECT ALL - 25 DIV + 19 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL - 25 / + 19 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT - SUM( DISTINCT - - 76 ) * 51 + 33 AS col0
----
-3843

skipif mysql # not compatible
query I rowsort label-999
SELECT - SUM ( DISTINCT - - 76 ) * 51 + 33 AS col0
----
-3843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1000
SELECT CAST( - - 51 AS SIGNED ) * - 56 AS col1
----
-2856

skipif mysql # not compatible
query I rowsort label-1000
SELECT CAST ( - - 51 AS INTEGER ) * - 56 AS col1
----
-2856

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

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

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

skipif mysql # not compatible
query I rowsort label-1002
SELECT + SUM ( + + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT - 42 * - - 99 + + COUNT( DISTINCT 40 )
----
-4157

skipif mysql # not compatible
query I rowsort label-1003
SELECT - 42 * - - 99 + + COUNT ( DISTINCT 40 )
----
-4157

query I rowsort
SELECT 71 + 97
----
168

query I rowsort
SELECT 42 * + 60
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT 33 + + - COUNT( + ( 79 ) ) + + 71 * 31
----
2233

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT 33 + + - COUNT ( + ( 79 ) ) + + 71 * 31
----
2233

query I rowsort
SELECT ALL 62 + 5
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1008
SELECT ALL 85 + - 59 DIV + 12 col0
----
81

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL 85 + - 59 / + 12 col0
----
81

query I rowsort
SELECT ( - 72 ) * + 63 + 19 AS col2
----
-4517

query I rowsort
SELECT DISTINCT 97 + - 20 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT 80 * SUM( - 15 ) AS col2
----
-1200

skipif mysql # not compatible
query I rowsort label-1011
SELECT 80 * SUM ( - 15 ) AS col2
----
-1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1012
SELECT 58 * + - CAST( NULL AS SIGNED ) * - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1012
SELECT 58 * + - CAST ( NULL AS INTEGER ) * - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ( + + NULLIF ( - 56, - 91 * - MIN( 27 ) ) ) - SUM( DISTINCT + 86 )
----
-142

skipif mysql # not compatible
query I rowsort label-1013
SELECT ( + + NULLIF ( - 56, - 91 * - MIN ( 27 ) ) ) - SUM ( DISTINCT + 86 )
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT - SUM( - + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-1014
SELECT - SUM ( - + 87 )
----
87

query I rowsort
SELECT 3 + + 1 AS col2
----
4

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

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT COUNT ( * ) + + - 73 AS col2
----
-72

query I rowsort
SELECT ALL - 52 + - 47
----
-99

query I rowsort
SELECT ALL + 33 * - 19 AS col2
----
-627

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

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

query I rowsort
SELECT + + 53 * ( ( + 41 ) ) AS col1
----
2173

query I rowsort
SELECT - - 78 - + 47
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL + MIN( ALL - 43 ) * COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL + MIN ( ALL - 43 ) * COUNT ( * )
----
-43

query I rowsort
SELECT + 74 * - + 52 * + 24 + 86 AS col2
----
-92266

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT + - 92 * - CASE - 95 WHEN + SUM( + 56 ) THEN 99 * - ( - 20 * 21 ) + - 66 WHEN - 7 THEN NULLIF ( + 36, - 96 ) ELSE NULL END + CASE - 90 - - 80 WHEN + 7 THEN - COUNT( * ) * - 19 + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT + - 92 * - CASE - 95 WHEN + SUM ( + 56 ) THEN 99 * - ( - 20 * 21 ) + - 66 WHEN - 7 THEN NULLIF ( + 36, - 96 ) ELSE NULL END + CASE - 90 - - 80 WHEN + 7 THEN - COUNT ( * ) * - 19 + 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT - SUM( DISTINCT - 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1025
SELECT - SUM ( DISTINCT - 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT + CASE - 93 WHEN 39 * + 75 THEN 63 ELSE + ( - MAX( - 2 ) ) END + - ( 68 )
----
-66

skipif mysql # not compatible
query I rowsort label-1026
SELECT + CASE - 93 WHEN 39 * + 75 THEN 63 ELSE + ( - MAX ( - 2 ) ) END + - ( 68 )
----
-66

query I rowsort
SELECT - COALESCE ( - 69, + 65 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL - MAX( + 25 ) - 83 * 86
----
-7163

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL - MAX ( + 25 ) - 83 * 86
----
-7163

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

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

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL ( - SUM ( ALL 44 ) )
----
-44

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

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

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

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

query I rowsort
SELECT DISTINCT - 96 * + + ( 83 ) AS col2
----
-7968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT CAST( 18 AS SIGNED ) * CASE 33 WHEN + NULLIF ( - 70, ( COUNT( * ) ) / 69 ) THEN NULL WHEN ( - CAST( NULL AS SIGNED ) ) * + 78 THEN 9 * - 96 + + ( 79 - + 84 ) END + ( 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT CAST ( 18 AS INTEGER ) * CASE 33 WHEN + NULLIF ( - 70, ( COUNT ( * ) ) / 69 ) THEN NULL WHEN ( - CAST ( NULL AS INTEGER ) ) * + 78 THEN 9 * - 96 + + ( 79 - + 84 ) END + ( 10 ) AS col2
----
NULL

query I rowsort
SELECT - 64 * + 18 * 62 AS col2
----
-71424

query I rowsort
SELECT DISTINCT - + 36 * 41 AS col2
----
-1476

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT ALL - 97 * + 28 * 19 + - COUNT( * )
----
-51605

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL - 97 * + 28 * 19 + - COUNT ( * )
----
-51605

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ALL 26 * - 13 + - 32 * - COUNT( * ) AS col1
----
-306

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL 26 * - 13 + - 32 * - COUNT ( * ) AS col1
----
-306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1039
SELECT - 38 DIV - 14 + + - 85 * NULLIF ( 49 + COUNT( - 16 ) * 84, + COUNT( * ) )
----
-11303

skipif mysql # not compatible
query I rowsort label-1039
SELECT - 38 / - 14 + + - 85 * NULLIF ( 49 + COUNT ( - 16 ) * 84, + COUNT ( * ) )
----
-11303

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT + SUM( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-1040
SELECT + SUM ( 0 )
----
0

query I rowsort
SELECT ALL + NULLIF ( - 65, 6 ) AS col2
----
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1042
SELECT DISTINCT - 3 * - CAST( NULL AS DECIMAL ) / + 36 * + 17 + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT - 3 * - CAST ( NULL AS REAL ) / + 36 * + 17 + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT NULLIF ( + NULLIF ( + 39, - MAX( + 41 ) / 69 ), 81 * - 98 ) col0
----
39

skipif mysql # not compatible
query I rowsort label-1043
SELECT NULLIF ( + NULLIF ( + 39, - MAX ( + 41 ) / 69 ), 81 * - 98 ) col0
----
39

query I rowsort
SELECT DISTINCT 7 * + - 34 + + 69
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT - 87 * - + COUNT( * ) + + 98 + + 57 * - 84
----
-4603

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT - 87 * - + COUNT ( * ) + + 98 + + 57 * - 84
----
-4603

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1047
SELECT DISTINCT + 74 DIV + 66
----
1

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + 74 / + 66
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL 19 * - + SUM( + 82 ) + - 34 * 24 col1
----
-2374

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL 19 * - + SUM ( + 82 ) + - 34 * 24 col1
----
-2374

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT 66 * + CASE + + 39 WHEN 36 THEN NULL WHEN - 10 THEN 65 ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT 66 * + CASE + + 39 WHEN 36 THEN NULL WHEN - 10 THEN 65 ELSE NULL END + COUNT ( * )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT + 37 * + COUNT( * ) + + COALESCE ( + COUNT( * ), + 79 * + 31 ) + 9 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1053
SELECT + 37 * + COUNT ( * ) + + COALESCE ( + COUNT ( * ), + 79 * + 31 ) + 9 AS col1
----
47

query I rowsort
SELECT + 96 - 87
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT MIN( DISTINCT + + NULLIF ( + 87, + 23 ) )
----
87

skipif mysql # not compatible
query I rowsort label-1055
SELECT MIN ( DISTINCT + + NULLIF ( + 87, + 23 ) )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1056
SELECT DISTINCT CAST( - 16 AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT CAST ( - 16 AS INTEGER ) AS col2
----
-16

query I rowsort
SELECT DISTINCT 7 - + 88
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1058
SELECT COALESCE ( 49, + 53 DIV + SUM( DISTINCT - 1 ) + + 32, 32 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1058
SELECT COALESCE ( 49, + 53 / + SUM ( DISTINCT - 1 ) + + 32, 32 ) AS col2
----
49

query I rowsort
SELECT + - 7 + 77 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT - 49 * - - MIN( DISTINCT + 22 ) AS col1
----
-1078

skipif mysql # not compatible
query I rowsort label-1060
SELECT - 49 * - - MIN ( DISTINCT + 22 ) AS col1
----
-1078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1061
SELECT - + 96, + 16 * - 60 * + 70 - CASE CAST( - COUNT( * ) AS SIGNED ) WHEN 92 THEN + 21 + + 55 ELSE NULL END col1
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-1061
SELECT - + 96, + 16 * - 60 * + 70 - CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN 92 THEN + 21 + + 55 ELSE NULL END col1
----
-96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT + + CASE ( + - 82 ) WHEN - ( + 17 ) THEN + CAST( + 42 AS SIGNED ) END + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1062
SELECT + + CASE ( + - 82 ) WHEN - ( + 17 ) THEN + CAST ( + 42 AS INTEGER ) END + 33 AS col2
----
NULL

query I rowsort
SELECT ALL CASE - 60 WHEN - 18 THEN NULL ELSE - 6 END AS col1
----
-6

query I rowsort
SELECT + - 5 + - - ( 45 ) AS col2
----
40

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

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

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

query II rowsort
SELECT 80 AS col0, - 38 * + 11 * 51 + - 65 AS col0
----
80
-21383

query I rowsort
SELECT ALL + 19 * + 93 + 95 AS col2
----
1862

onlyif mysql # DIV for integer division: 
query I rowsort label-1069
SELECT DISTINCT 64 DIV 23 + + 76
----
78

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT 64 / 23 + + 76
----
78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT + + 80 DIV - 92 - + 17 + - 39 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-1071
SELECT + + 80 / - 92 - + 17 + - 39 AS col1
----
-56

query II rowsort
SELECT ALL + 54 AS col2, 27
----
54
27

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

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

query II rowsort
SELECT ALL - 1 AS col1, - ( + + 67 )
----
-1
-67

query I rowsort
SELECT + 35 + - 70 col2
----
-35

query I rowsort
SELECT ALL 9 * - 21 col1
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1077
SELECT + MAX( - + 69 ) DIV + 89 * 47
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT + MAX ( - + 69 ) / + 89 * 47
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1079
SELECT - 62 + + COUNT ( * ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT ALL COUNT( * ) + - 21
----
-20

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL COUNT ( * ) + - 21
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1081
SELECT + 92 AS col1, - SUM( - 34 ) AS col2
----
92
34

skipif mysql # not compatible
query II rowsort label-1081
SELECT + 92 AS col1, - SUM ( - 34 ) AS col2
----
92
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT - ( - 57 ) + - + COALESCE ( - + ( - SUM( DISTINCT - 11 ) ), 25 + - ( - 7 ) ) - 57 * - 69
----
4001

skipif mysql # not compatible
query I rowsort label-1082
SELECT - ( - 57 ) + - + COALESCE ( - + ( - SUM ( DISTINCT - 11 ) ), 25 + - ( - 7 ) ) - 57 * - 69
----
4001

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT DISTINCT - 59 DIV + 62 + - 18
----
-18

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT - 59 / + 62 + - 18
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1084
SELECT ALL + 76 DIV + - COUNT( * ) + + - 77
----
-153

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL + 76 / + - COUNT ( * ) + + - 77
----
-153

query I rowsort
SELECT CASE ( 8 ) WHEN + 55 * 99 THEN 6 END / - 13 + 28 * 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT ALL + 61 * COALESCE ( - 14, + - 11 DIV - 16 ) AS col2
----
-854

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + 61 * COALESCE ( - 14, + - 11 / - 16 ) AS col2
----
-854

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

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

query I rowsort
SELECT - NULLIF ( - + NULLIF ( 4, + 93 ), + 1 ) * ( 17 + ( + 57 + 31 ) )
----
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1089
SELECT - ( CAST( + 69 AS SIGNED ) ) * + 31 + + 83 * + 14 AS col2
----
-977

skipif mysql # not compatible
query I rowsort label-1089
SELECT - ( CAST ( + 69 AS INTEGER ) ) * + 31 + + 83 * + 14 AS col2
----
-977

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT DISTINCT 21 DIV - 85 - - - 74 col2
----
-74

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT 21 / - 85 - - - 74 col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1091
SELECT DISTINCT - ( + - CAST( - - 25 AS SIGNED ) )
----
25

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT - ( + - CAST ( - - 25 AS INTEGER ) )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1092
SELECT ALL + 71 * - COALESCE ( + + COUNT( * ), - 30 * - 33, + 83 * - CASE - 95 WHEN + 77 + - MIN( + 76 ) THEN NULL WHEN - 89 DIV 63 THEN + 58 END ) DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + 71 * - COALESCE ( + + COUNT ( * ), - 30 * - 33, + 83 * - CASE - 95 WHEN + 77 + - MIN ( + 76 ) THEN NULL WHEN - 89 / 63 THEN + 58 END ) / 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1093
SELECT ALL + NULLIF ( 89, + - 5 ) DIV - 34 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL + NULLIF ( 89, + - 5 ) / - 34 AS col1
----
-2

query I rowsort
SELECT DISTINCT + 53 - 91 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT 26 * - + MAX( DISTINCT + 19 ) * + 80 * ( 60 ) + - 66 + + 45 * + 61
----
-2368521

skipif mysql # not compatible
query I rowsort label-1095
SELECT 26 * - + MAX ( DISTINCT + 19 ) * + 80 * ( 60 ) + - 66 + + 45 * + 61
----
-2368521

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT - 33 * - MAX( - 40 ) * - 43 * COUNT( * )
----
56760

skipif mysql # not compatible
query I rowsort label-1096
SELECT - 33 * - MAX ( - 40 ) * - 43 * COUNT ( * )
----
56760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1097
SELECT + ( + + 40 ) * COALESCE ( + - CAST( + 86 AS SIGNED ), - 57 ) * + 99
----
-340560

skipif mysql # not compatible
query I rowsort label-1097
SELECT + ( + + 40 ) * COALESCE ( + - CAST ( + 86 AS INTEGER ), - 57 ) * + 99
----
-340560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1098
SELECT ALL + 14 DIV - 8 AS col0, COUNT( * ) * 57 AS col2
----
-1
57

skipif mysql # not compatible
query II rowsort label-1098
SELECT ALL + 14 / - 8 AS col0, COUNT ( * ) * 57 AS col2
----
-1
57

query I rowsort
SELECT 67 * + 36 * - ( 41 ) * 98 + 86
----
-9691330

onlyif mysql # aggregate syntax: 
query II rowsort label-1100
SELECT MIN( + + 4 ) col0, 88 AS col1
----
4
88

skipif mysql # not compatible
query II rowsort label-1100
SELECT MIN ( + + 4 ) col0, 88 AS col1
----
4
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT + 60 - 42 DIV + COALESCE ( - 97, 89 DIV - 91 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-1101
SELECT + 60 - 42 / + COALESCE ( - 97, 89 / - 91 ) AS col0
----
60

query I rowsort
SELECT 87 + + 70 - - - 44 AS col1
----
113

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

query I rowsort
SELECT ALL + 90 * + + 92 * 17
----
140760

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT ALL + - SUM( DISTINCT 75 ) * - 59 + 22 AS col2
----
4447

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL + - SUM ( DISTINCT 75 ) * - 59 + 22 AS col2
----
4447

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ( - + 73 ) / - CASE 45 WHEN NULLIF ( + 49, NULLIF ( - 41, COUNT( * ) ) + 40 ) * ( 15 ) THEN - 42 + + 33 WHEN 91 THEN NULL END / - 23 + + ( - 23 + 19 * MAX( + COALESCE ( 83, 37 * COALESCE ( + 57 * 5, 14 ), 93 - - NULLIF ( + 22, - 93 * + ( 26 ) + - 70 ) * 87 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT ( - + 73 ) / - CASE 45 WHEN NULLIF ( + 49, NULLIF ( - 41, COUNT ( * ) ) + 40 ) * ( 15 ) THEN - 42 + + 33 WHEN 91 THEN NULL END / - 23 + + ( - 23 + 19 * MAX ( + COALESCE ( 83, 37 * COALESCE ( + 57 * 5, 14 ), 93 - - NULLIF ( + 22, - 93 * + ( 26 ) + - 70 ) * 87 ) ) )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT DISTINCT COUNT( * ) + - - 19 * + 25 AS col0
----
476

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT COUNT ( * ) + - - 19 * + 25 AS col0
----
476

query I rowsort
SELECT DISTINCT 10 * + 75 * + 91
----
68250

query I rowsort
SELECT ALL 69 + - 26 col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT DISTINCT - 47 + COUNT( * ) + + - ( + 87 ) AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT - 47 + COUNT ( * ) + + - ( + 87 ) AS col0
----
-133

query I rowsort
SELECT ALL 39 * - 44 col2
----
-1716

onlyif mysql # DIV for integer division: 
query I rowsort label-1114
SELECT 71 DIV - 32 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1114
SELECT 71 / - 32 AS col2
----
-2

query I rowsort
SELECT ALL 33 + - 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT 2 * + - 85 + + 10 + - - NULLIF ( + + 44, + 64 ) + CASE 53 + + 38 * - 0 WHEN + 10 THEN NULL WHEN - 49 THEN 89 END * - MAX( ALL 84 ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT 2 * + - 85 + + 10 + - - NULLIF ( + + 44, + 64 ) + CASE 53 + + 38 * - 0 WHEN + 10 THEN NULL WHEN - 49 THEN 89 END * - MAX ( ALL 84 ) * - 61
----
NULL

query I rowsort
SELECT 96 - + 82 AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT 6 * - 67 / 53 / + - 46 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT 6 * - 67 / 53 / + - 46 / CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1119
SELECT 80 + - 8 * COUNT ( * ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1120
SELECT ALL - 57 col1, + SUM( DISTINCT 75 ) + + SUM( ALL - 71 ) AS col2
----
-57
4

skipif mysql # not compatible
query II rowsort label-1120
SELECT ALL - 57 col1, + SUM ( DISTINCT 75 ) + + SUM ( ALL - 71 ) AS col2
----
-57
4

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

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

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

skipif mysql # not compatible
query II rowsort label-1122
SELECT 12 AS col2, COUNT ( * )
----
12
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT 39 * - CAST( NULL AS SIGNED ) * - 15 + + + 87 * - + ( ( ( SUM( DISTINCT 14 ) ) ) ) + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT 39 * - CAST ( NULL AS INTEGER ) * - 15 + + + 87 * - + ( ( ( SUM ( DISTINCT 14 ) ) ) ) + 40
----
NULL

query I rowsort
SELECT ALL - 47 col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT ALL + 40 * + CASE ( - 21 ) WHEN + - 75 * + 78 THEN COUNT( + 62 ) WHEN NULLIF ( + 58, - COUNT( 45 ) ) + 98 THEN NULL END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + 40 * + CASE ( - 21 ) WHEN + - 75 * + 78 THEN COUNT ( + 62 ) WHEN NULLIF ( + 58, - COUNT ( 45 ) ) + 98 THEN NULL END * CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT COUNT( * ) * + - ( - 95 ) + - COUNT( * ) * - 3 * 25 + COALESCE ( COUNT( * ), - 52 + 51 )
----
171

skipif mysql # not compatible
query I rowsort label-1127
SELECT COUNT ( * ) * + - ( - 95 ) + - COUNT ( * ) * - 3 * 25 + COALESCE ( COUNT ( * ), - 52 + 51 )
----
171

query I rowsort
SELECT 71 + + ( - - ( - - 57 ) ) AS col1
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT - 67 DIV + 18 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1129
SELECT - 67 / + 18 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL NULLIF ( - ( + 94 ), - NULLIF ( - SUM( DISTINCT - 76 ), 56 / 71 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL NULLIF ( - ( + 94 ), - NULLIF ( - SUM ( DISTINCT - 76 ), 56 / 71 ) )
----
-94

query I rowsort
SELECT ALL + + 34 + 74
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT ALL - 69 DIV - - 1
----
-69

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - 69 / - - 1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1133
SELECT DISTINCT + 0 + - + COUNT( * ) + - 6 * - MAX( ALL + 9 ) DIV COUNT( * ) DIV - 89 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT + 0 + - + COUNT ( * ) + - 6 * - MAX ( ALL + 9 ) / COUNT ( * ) / - 89 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT + 17 * + ( COUNT( * ) ), - 72 AS col0
----
17
-72

skipif mysql # not compatible
query II rowsort label-1134
SELECT + 17 * + ( COUNT ( * ) ), - 72 AS col0
----
17
-72

query II rowsort
SELECT ALL + ( - 10 ) + 10 AS col2, 12 AS col0
----
0
12

query II rowsort
SELECT - 56 + + + 2 + - 24 col1, ( - 31 )
----
-78
-31

query I rowsort
SELECT - 39 - 66 AS col1
----
-105

query I rowsort
SELECT ALL + 17 * - ( + - ( + 52 ) ) - + 49 - 32
----
803

query I rowsort
SELECT - 83 + + 59 AS col1
----
-24

query I rowsort
SELECT 50 * - - 40
----
2000

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

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

query I rowsort
SELECT ALL + 26 + + 91
----
117

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1144
SELECT DISTINCT NULLIF ( - 22, CAST( NULL AS SIGNED ) + + + 77 * + - 81 + MIN( + ( 41 ) ) )
----
-22

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT NULLIF ( - 22, CAST ( NULL AS INTEGER ) + + + 77 * + - 81 + MIN ( + ( 41 ) ) )
----
-22

query I rowsort
SELECT ALL 69 + + - 23 * - 57 - - 41 * 8 col0
----
1708

query I rowsort
SELECT CASE + - 79 WHEN 26 THEN + 77 * + - 60 * - ( 56 ) END + 68
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1147
SELECT DISTINCT 96, - CAST ( NULL AS INTEGER ) AS col2
----
96
NULL

query I rowsort
SELECT DISTINCT + 88 * 23
----
2024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1149
SELECT 81 + + + ( CAST( - 82 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1149
SELECT 81 + + + ( CAST ( - 82 AS INTEGER ) ) AS col1
----
-1

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

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

query I rowsort
SELECT 87 * + 87 * - 58 AS col1
----
-439002

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1153
SELECT ALL - 32, COUNT( * ) + - 3 - 87 - + - 97 * - + 8 - - 56 AS col2
----
-32
-809

skipif mysql # not compatible
query II rowsort label-1153
SELECT ALL - 32, COUNT ( * ) + - 3 - 87 - + - 97 * - + 8 - - 56 AS col2
----
-32
-809

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT + 97 + - COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1154
SELECT + 97 + - COUNT ( * ) AS col2
----
96

query I rowsort
SELECT + 9 * + + 18
----
162

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1157
SELECT ALL 55 * - 47 * + + CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL 55 * - 47 * + + CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT CASE COUNT( * ) WHEN 75 * + - 20 - 96 - 50 * 78 THEN NULLIF ( 44, + 43 ) WHEN 21 * - CAST( - 14 AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT CASE COUNT ( * ) WHEN 75 * + - 20 - 96 - 50 * 78 THEN NULLIF ( 44, + 43 ) WHEN 21 * - CAST ( - 14 AS INTEGER ) THEN NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 35, 99 AS col0
----
35
99

query I rowsort
SELECT DISTINCT 84 * 62 AS col2
----
5208

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT + ( - 32 ) * 26 DIV - ( - 90 )
----
-9

skipif mysql # not compatible
query I rowsort label-1161
SELECT + ( - 32 ) * 26 / - ( - 90 )
----
-9

query I rowsort
SELECT + 14 * 8
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1163
SELECT 71 DIV - COALESCE ( 19, 32 DIV MIN( + + 35 ) + - 49, COALESCE ( - 98, + 29, - 6 ) ) - 31 * 20
----
-623

skipif mysql # not compatible
query I rowsort label-1163
SELECT 71 / - COALESCE ( 19, 32 / MIN ( + + 35 ) + - 49, COALESCE ( - 98, + 29, - 6 ) ) - 31 * 20
----
-623

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1164
SELECT + 31 DIV + 54 * - + MAX( ALL - 50 ), 10 * - COUNT( ALL 6 ) col0
----
0
-10

skipif mysql # not compatible
query II rowsort label-1164
SELECT + 31 / + 54 * - + MAX ( ALL - 50 ), 10 * - COUNT ( ALL 6 ) col0
----
0
-10

query II rowsort
SELECT ALL + 37 AS col2, - 28
----
37
-28

query I rowsort
SELECT DISTINCT - - 34 * - 69 + - 22 AS col0
----
-2368

query I rowsort
SELECT DISTINCT - + 69 * 87 col0
----
-6003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1168
SELECT ALL + + COUNT( * ) + + 36 + + 96 - + 68 - - + 30 * - - CAST( 83 AS SIGNED )
----
2555

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL + + COUNT ( * ) + + 36 + + 96 - + 68 - - + 30 * - - CAST ( 83 AS INTEGER )
----
2555

query II rowsort
SELECT - 98 AS col0, 48 + + 90
----
-98
138

query I rowsort
SELECT DISTINCT + - 64 + - - ( + ( - 44 ) ) AS col2
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-1171
SELECT ( + 89 ) AS col0, ( + MIN( + - 55 ) ) * - - 86 + - COUNT( * ) * - 52
----
89
-4678

skipif mysql # not compatible
query II rowsort label-1171
SELECT ( + 89 ) AS col0, ( + MIN ( + - 55 ) ) * - - 86 + - COUNT ( * ) * - 52
----
89
-4678

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

query II rowsort
SELECT DISTINCT 77 AS col2, 49 AS col1
----
77
49

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

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

query I rowsort
SELECT ALL + 1 - + 77 AS col2
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT - COALESCE ( ( - + 95 ), 50 * + 74 * - - 13, + 49 ) DIV - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-1176
SELECT - COALESCE ( ( - + 95 ), 50 * + 74 * - - 13, + 49 ) / - COUNT ( * )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT DISTINCT + 29 DIV + - 39
----
0

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT + 29 / + - 39
----
0

query I rowsort
SELECT + 21 * 63 * - - 59
----
78057

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

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

query I rowsort
SELECT DISTINCT - 57 * + 83 AS col1
----
-4731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT - 85 - - CAST( 84 AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1181
SELECT - 85 - - CAST ( 84 AS INTEGER ) col0
----
-1

query I rowsort
SELECT ALL - 66 * 98 * - 62 col2
----
401016

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

query I rowsort
SELECT ALL - 39 * - 94
----
3666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1185
SELECT CAST( 40 AS SIGNED ) AS col1, + 52 DIV 96 + + 42 + + + COUNT( * )
----
40
43

skipif mysql # not compatible
query II rowsort label-1185
SELECT CAST ( 40 AS INTEGER ) AS col1, + 52 / 96 + + 42 + + + COUNT ( * )
----
40
43

query I rowsort
SELECT + 90 * + 3
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT 76 DIV + 95 + - 2 + + 56
----
54

skipif mysql # not compatible
query I rowsort label-1187
SELECT 76 / + 95 + - 2 + + 56
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1188
SELECT 40 * + 99 * + 19 - + 80 / + COALESCE ( + 10, + 94 + 16, 56 * 82 ) * 25 + - NULLIF ( CAST( NULL AS DECIMAL ), 79 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT 40 * + 99 * + 19 - + 80 / + COALESCE ( + 10, + 94 + 16, 56 * 82 ) * 25 + - NULLIF ( CAST ( NULL AS REAL ), 79 ) AS col1
----
NULL

query I rowsort
SELECT + - 13 + - 11 * - 71
----
768

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT ALL - + 63 DIV 62 col2
----
-1

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL - + 63 / 62 col2
----
-1

query I rowsort
SELECT DISTINCT - 73 * 86 + + + 73 + - + NULLIF ( + 32, + 28 ) AS col2
----
-6237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1192
SELECT COALESCE ( 96, - 76, + CASE 99 WHEN + + CASE MIN( DISTINCT 98 ) WHEN CAST( NULL AS SIGNED ) / - COUNT( + 18 ) + + 93 THEN 80 ELSE NULL END THEN NULL WHEN - COALESCE ( - 81, - 64 ) * - 81 THEN 14 * 24 END, + COUNT( * ) ) * 8 + 16
----
784

skipif mysql # not compatible
query I rowsort label-1192
SELECT COALESCE ( 96, - 76, + CASE 99 WHEN + + CASE MIN ( DISTINCT 98 ) WHEN CAST ( NULL AS INTEGER ) / - COUNT ( + 18 ) + + 93 THEN 80 ELSE NULL END THEN NULL WHEN - COALESCE ( - 81, - 64 ) * - 81 THEN 14 * 24 END, + COUNT ( * ) ) * 8 + 16
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT + 72 * COUNT( * ) + - 42
----
30

skipif mysql # not compatible
query I rowsort label-1193
SELECT + 72 * COUNT ( * ) + - 42
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL - SUM( + 91 ) * 65 + - 33
----
-5948

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - SUM ( + 91 ) * 65 + - 33
----
-5948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1195
SELECT + 43 DIV - - 69 * - SUM( - + CAST( + + 65 AS SIGNED ) ) AS col2, - 77 AS col2
----
0
-77

skipif mysql # not compatible
query II rowsort label-1195
SELECT + 43 / - - 69 * - SUM ( - + CAST ( + + 65 AS INTEGER ) ) AS col2, - 77 AS col2
----
0
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1196
SELECT DISTINCT CASE + 65 WHEN COUNT( * ) + - + 12 - - 89 + + AVG ( ALL 3 ) + 63 * CASE - 18 + 9 WHEN 96 THEN CASE - COUNT( - 25 ) WHEN COUNT( * ) THEN ( COUNT( * ) ) * - 22 END WHEN 48 THEN 71 * 17 + 99 END * - 92 THEN - 81 DIV 87 WHEN 47 THEN 64 WHEN + 40 * SUM( DISTINCT - 18 ) THEN NULL ELSE 51 END * 59 + - 29 * 0 AS col1
----
3009

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT CASE + 65 WHEN COUNT ( * ) + - + 12 - - 89 + + AVG ( ALL 3 ) + 63 * CASE - 18 + 9 WHEN 96 THEN CASE - COUNT ( - 25 ) WHEN COUNT ( * ) THEN ( COUNT ( * ) ) * - 22 END WHEN 48 THEN 71 * 17 + 99 END * - 92 THEN - 81 / 87 WHEN 47 THEN 64 WHEN + 40 * SUM ( DISTINCT - 18 ) THEN NULL ELSE 51 END * 59 + - 29 * 0 AS col1
----
3009

query I rowsort
SELECT ALL - 93 * 21 + 2 - - 4 - - ( - + 63 ) * + + 35 * 72 - NULLIF ( 45, + 60 * - 27 ) * 71
----
-163902

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

skipif mysql # not compatible
query I rowsort label-1198
SELECT + ( COUNT ( ALL + ( + - 57 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL - 35 * - - COUNT( * ) * - - 38
----
-1330

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL - 35 * - - COUNT ( * ) * - - 38
----
-1330

onlyif mysql # aggregate syntax: 
query II rowsort label-1200
SELECT + 98 * - 92 * - 17 AS col0, COUNT( * )
----
153272
1

skipif mysql # not compatible
query II rowsort label-1200
SELECT + 98 * - 92 * - 17 AS col0, COUNT ( * )
----
153272
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT - COUNT( * ) * - 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1201
SELECT - COUNT ( * ) * - 22 AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL 10 * + CAST( - 26 AS SIGNED ) * - 86
----
22360

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL 10 * + CAST ( - 26 AS INTEGER ) * - 86
----
22360

query I rowsort
SELECT 97 - + + 94
----
3

query II rowsort
SELECT 22 AS col0, 3 AS col2
----
22
3

query I rowsort
SELECT DISTINCT 56 * + 29
----
1624

query I rowsort
SELECT 87 + + 82 * - + 50 - - - 41
----
-4054

query II rowsort
SELECT 9, 68 AS col1
----
9
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1208
SELECT ALL 11, - NULLIF ( COUNT( * ), + 7 ) * - 23 + + - 81 col1
----
11
-58

skipif mysql # not compatible
query II rowsort label-1208
SELECT ALL 11, - NULLIF ( COUNT ( * ), + 7 ) * - 23 + + - 81 col1
----
11
-58

query I rowsort
SELECT 96 + 70 AS col1
----
166

query I rowsort
SELECT 6 + 74 AS col2
----
80

query I rowsort
SELECT 15 + 78
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1212
SELECT COUNT( * ) DIV - 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1212
SELECT COUNT ( * ) / - 54 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1213
SELECT ALL + ( - 55 ) + 14, 36 + - - SUM( + - NULLIF ( + + 4, 4 ) ) + - 53 col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-1213
SELECT ALL + ( - 55 ) + 14, 36 + - - SUM ( + - NULLIF ( + + 4, 4 ) ) + - 53 col1
----
-41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT COUNT( * ) + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-1214
SELECT COUNT ( * ) + - 15
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT 2 DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-1215
SELECT 2 / 26
----
0

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

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

query I rowsort
SELECT ALL - ( ( + + 13 ) ) + 37 + + - 75 col0
----
-51

query II rowsort
SELECT + 35, 61 AS col0
----
35
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1219
SELECT DISTINCT - 90 * - - NULLIF ( CAST( NULL AS SIGNED ), + + ( + + 90 ) + 30 ) * - 85 + - + 11 / 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - 90 * - - NULLIF ( CAST ( NULL AS INTEGER ), + + ( + + 90 ) + 30 ) * - 85 + - + 11 / 8
----
NULL

query II rowsort
SELECT ALL - 97 AS col2, + 50
----
-97
50

query I rowsort
SELECT DISTINCT + + 98 + ( + + 3 ) + + 86 * - - 46
----
4057

query I rowsort
SELECT ALL - 71 + - - 75
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1223
SELECT + 60 AS col1, MAX( DISTINCT - 74 )
----
60
-74

skipif mysql # not compatible
query II rowsort label-1223
SELECT + 60 AS col1, MAX ( DISTINCT - 74 )
----
60
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT SUM( 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1224
SELECT SUM ( 47 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT COUNT( * ) * - - 56 + - + 65 + - + 99 * - 90
----
8901

skipif mysql # not compatible
query I rowsort label-1225
SELECT COUNT ( * ) * - - 56 + - + 65 + - + 99 * - 90
----
8901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1226
SELECT - 52 / + + 36 / - 41 * + - ( + 75 ) * - ( - CAST( NULL AS SIGNED ) ) + ( 98 ) - ( 46 ) * 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1226
SELECT - 52 / + + 36 / - 41 * + - ( + 75 ) * - ( - CAST ( NULL AS INTEGER ) ) + ( 98 ) - ( 46 ) * 67 AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT + - COALESCE ( - + COUNT( DISTINCT - 33 ), - 78 * 88 - 24 )
----
1

skipif mysql # not compatible
query I rowsort label-1229
SELECT + - COALESCE ( - + COUNT ( DISTINCT - 33 ), - 78 * 88 - 24 )
----
1

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

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

query I rowsort
SELECT DISTINCT 75 - - + 88 AS col0
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1232
SELECT 59 * - CAST( - 38 AS SIGNED ) + + + COUNT( * ) * 47 AS col2
----
2289

skipif mysql # not compatible
query I rowsort label-1232
SELECT 59 * - CAST ( - 38 AS INTEGER ) + + + COUNT ( * ) * 47 AS col2
----
2289

query II rowsort
SELECT + - 5 AS col2, + 62 + + - 17 AS col2
----
-5
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1234
SELECT ALL 60 - - - NULLIF ( - - 76, + - 39 * 47 ) + - 28 DIV + COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL 60 - - - NULLIF ( - - 76, + - 39 * 47 ) + - 28 / + COUNT ( * ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT DISTINCT 64 * + COUNT( * ) * - - 70 * - 72 AS col2
----
-322560

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT 64 * + COUNT ( * ) * - - 70 * - 72 AS col2
----
-322560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1236
SELECT - AVG ( - ( CASE + 50 WHEN + 94 * + CAST( NULL AS SIGNED ) + ( CAST( 39 AS SIGNED ) ) + + 98 * 85 - 21 / + 83 THEN 55 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1236
SELECT - AVG ( - ( CASE + 50 WHEN + 94 * + CAST ( NULL AS INTEGER ) + ( CAST ( 39 AS INTEGER ) ) + + 98 * 85 - 21 / + 83 THEN 55 END ) ) AS col1
----
NULL

query I rowsort
SELECT + 52 * + - 39
----
-2028

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1238
SELECT CAST( CASE - + ( 82 ) WHEN + 41 * + 4 * - CAST( NULL AS DECIMAL ) + ( + 51 ) THEN + 82 + + 53 ELSE NULL END AS DECIMAL ) + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT CAST ( CASE - + ( 82 ) WHEN + 41 * + 4 * - CAST ( NULL AS REAL ) + ( + 51 ) THEN + 82 + + 53 ELSE NULL END AS REAL ) + 79
----
NULL

query I rowsort
SELECT 15 * 65 AS col1
----
975

query I rowsort
SELECT DISTINCT 26 + 96
----
122

query I rowsort
SELECT ALL + ( NULLIF ( + 49, 77 * 75 ) ) + - 62 + + - 51 * - + 19 AS col2
----
956

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT COUNT( * ) * 81 * + MIN( 27 )
----
2187

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT COUNT ( * ) * 81 * + MIN ( 27 )
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT COUNT( * ) - - 24 + - 65 * 46 AS col1
----
-2965

skipif mysql # not compatible
query I rowsort label-1243
SELECT COUNT ( * ) - - 24 + - 65 * 46 AS col1
----
-2965

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL + COUNT( * ) + + ( ( - + ( + + 65 ) ) ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL + COUNT ( * ) + + ( ( - + ( + + 65 ) ) ) col0
----
-64

query I rowsort
SELECT ALL ( + 2 ) + + 92 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT - 25 * - COUNT( * ) + 37 * + - 78 * 53
----
-152933

skipif mysql # not compatible
query I rowsort label-1246
SELECT - 25 * - COUNT ( * ) + 37 * + - 78 * 53
----
-152933

query I rowsort
SELECT - NULLIF ( + 80, 72 + 90 ) AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1248
SELECT - 12 * 31 * - 8 + + CASE + + MIN( ALL 31 ) WHEN 63 THEN + ( + + CAST( NULL AS DECIMAL ) ) + 6 / - MIN( ALL + 36 ) WHEN 31 * MAX( DISTINCT 63 ) THEN NULL WHEN + 1 + - 39 THEN NULL WHEN ( 69 ) THEN 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT - 12 * 31 * - 8 + + CASE + + MIN ( ALL 31 ) WHEN 63 THEN + ( + + CAST ( NULL AS REAL ) ) + 6 / - MIN ( ALL + 36 ) WHEN 31 * MAX ( DISTINCT 63 ) THEN NULL WHEN + 1 + - 39 THEN NULL WHEN ( 69 ) THEN 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT + + 56 * - 94 - + 16 - - + 49 / ( - + 5 ) * CASE 96 WHEN + COALESCE ( 89, + 55, ( - ( 93 ) ) + 59 / 72 ) + 1 THEN COALESCE ( 94, 54 * - CASE COALESCE ( COUNT( ALL + 92 ), - 25 ) WHEN - COUNT( * ) / + 89 + - 55 THEN - 70 + 36 ELSE 89 END - 70, 49 - - 86 * - ( - ( + 89 ) ) ) + - NULLIF ( 28, - 63 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1249
SELECT + + 56 * - 94 - + 16 - - + 49 / ( - + 5 ) * CASE 96 WHEN + COALESCE ( 89, + 55, ( - ( 93 ) ) + 59 / 72 ) + 1 THEN COALESCE ( 94, 54 * - CASE COALESCE ( COUNT ( ALL + 92 ), - 25 ) WHEN - COUNT ( * ) / + 89 + - 55 THEN - 70 + 36 ELSE 89 END - 70, 49 - - 86 * - ( - ( + 89 ) ) ) + - NULLIF ( 28, - 63 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1250
SELECT ALL + 92 * + + COUNT( * ) - + + ( - - 79 ) + - 11 + + CAST( + MAX( + + 72 ) AS SIGNED ) - 74 col2
----
0

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL + 92 * + + COUNT ( * ) - + + ( - - 79 ) + - 11 + + CAST ( + MAX ( + + 72 ) AS INTEGER ) - 74 col2
----
0

query I rowsort
SELECT - 34 * - + 63 AS col1
----
2142

query I rowsort
SELECT 74 * + 99
----
7326

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1253
SELECT 4 * + 27 * + NULLIF ( + + 91, - 87 ) + + 56 - - MAX( + 84 ) * - 87 DIV + COUNT( * ) + SUM( ALL 98 ) * 67 AS col2
----
9142

skipif mysql # not compatible
query I rowsort label-1253
SELECT 4 * + 27 * + NULLIF ( + + 91, - 87 ) + + 56 - - MAX ( + 84 ) * - 87 / + COUNT ( * ) + SUM ( ALL 98 ) * 67 AS col2
----
9142

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT + - SUM( ALL + 31 ), + 22 AS col1
----
-31
22

skipif mysql # not compatible
query II rowsort label-1254
SELECT + - SUM ( ALL + 31 ), + 22 AS col1
----
-31
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1255
SELECT + CAST( - - 63 AS SIGNED ) * AVG ( ALL 45 ) + - 27 * 68 + + CAST( NULL AS SIGNED ) - ( + 81 ) * 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1255
SELECT + CAST ( - - 63 AS INTEGER ) * AVG ( ALL 45 ) + - 27 * 68 + + CAST ( NULL AS INTEGER ) - ( + 81 ) * 9 AS col1
----
NULL

query I rowsort
SELECT - 50 * - + 11
----
550

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1259
SELECT + 62 + + + CASE + 67 WHEN + 49 THEN NULL WHEN - + COUNT( * ) - - - CAST( NULL AS SIGNED ) THEN 34 * + - 83 + - - 36 END * - + 78 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1259
SELECT + 62 + + + CASE + 67 WHEN + 49 THEN NULL WHEN - + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) THEN 34 * + - 83 + - - 36 END * - + 78 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1260
SELECT ALL - 7 DIV + + CAST( + 52 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL - 7 / + + CAST ( + 52 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1261
SELECT ALL CASE - 97 WHEN + 97 + - 96 THEN NULL ELSE + - 52 * - 77 * - 0 * 29 + - CAST( + 36 AS SIGNED ) + + 0 END
----
-36

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL CASE - 97 WHEN + 97 + - 96 THEN NULL ELSE + - 52 * - 77 * - 0 * 29 + - CAST ( + 36 AS INTEGER ) + + 0 END
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT + 15 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-1262
SELECT + 15 / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL 21 + - - COUNT( + ( 89 ) )
----
22

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL 21 + - - COUNT ( + ( 89 ) )
----
22

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1265
SELECT 77 AS col1, 98 + - MIN( DISTINCT + - 50 )
----
77
148

skipif mysql # not compatible
query II rowsort label-1265
SELECT 77 AS col1, 98 + - MIN ( DISTINCT + - 50 )
----
77
148

query I rowsort
SELECT - ( + - 35 ) + - - 98 * - CASE WHEN NOT ( - 51 ) IS NULL THEN 9 * ( - ( - 91 ) ) END AS col1
----
-80227

query I rowsort
SELECT + 8 - 96
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT ALL NULLIF ( 71, + 68 * + 95 * 7 / 40 ) + 2 * + MIN( 95 ) col0
----
261

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL NULLIF ( 71, + 68 * + 95 * 7 / 40 ) + 2 * + MIN ( 95 ) col0
----
261

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT ALL - MIN( ALL 12 ) + 9 + COUNT( - 84 )
----
-2

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - MIN ( ALL 12 ) + 9 + COUNT ( - 84 )
----
-2

query I rowsort
SELECT + 96 * - 80
----
-7680

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT DISTINCT 8 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT 8 / 25
----
0

query I rowsort
SELECT DISTINCT 20 + + 13 + - 72 + 85
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT ALL COUNT( * ) + + - ( - COALESCE ( + 19, - 65 ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL COUNT ( * ) + + - ( - COALESCE ( + 19, - 65 ) ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1275
SELECT + 49 + - 35 * + CASE - + MIN( DISTINCT + ( + - 63 ) ) WHEN - 72 THEN + ( - COUNT( * ) ) * AVG ( - 4 ) * - 49 + + 81 WHEN 45 + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1275
SELECT + 49 + - 35 * + CASE - + MIN ( DISTINCT + ( + - 63 ) ) WHEN - 72 THEN + ( - COUNT ( * ) ) * AVG ( - 4 ) * - 49 + + 81 WHEN 45 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT ALL 55 + - CAST( + + 98 AS SIGNED ) * 70 AS col2
----
-6805

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL 55 + - CAST ( + + 98 AS INTEGER ) * 70 AS col2
----
-6805

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT + + COUNT( DISTINCT + 52 ) + 7 AS col0, 70
----
8
70

skipif mysql # not compatible
query II rowsort label-1277
SELECT + + COUNT ( DISTINCT + 52 ) + 7 AS col0, 70
----
8
70

query II rowsort
SELECT 14, - 7 AS col2
----
14
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1279
SELECT 20 AS col2, + 48 * - CAST( + 47 AS SIGNED ) AS col1
----
20
-2256

skipif mysql # not compatible
query II rowsort label-1279
SELECT 20 AS col2, + 48 * - CAST ( + 47 AS INTEGER ) AS col1
----
20
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL 35 * + 49 * - + 94 * + COUNT( * )
----
-161210

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL 35 * + 49 * - + 94 * + COUNT ( * )
----
-161210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1281
SELECT + - 57 * + + 34 + MAX( 48 ) - - + 78 AS col1, + AVG ( + CAST( NULL AS SIGNED ) ) * - + COALESCE ( 90, + 42 + 89 ) + ( - 19 ) AS col2
----
-1812
NULL

skipif mysql # not compatible
query II rowsort label-1281
SELECT + - 57 * + + 34 + MAX ( 48 ) - - + 78 AS col1, + AVG ( + CAST ( NULL AS INTEGER ) ) * - + COALESCE ( 90, + 42 + 89 ) + ( - 19 ) AS col2
----
-1812
NULL

query I rowsort
SELECT DISTINCT - ( 43 ) * + 44
----
-1892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT DISTINCT + + ( + COALESCE ( - 57, - + 26 + + + 73 + + + MAX( ALL CAST( NULL AS SIGNED ) ) + - 71 - COUNT( * ) ) )
----
-57

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT + + ( + COALESCE ( - 57, - + 26 + + + 73 + + + MAX ( ALL CAST ( NULL AS INTEGER ) ) + - 71 - COUNT ( * ) ) )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1284
SELECT - 68 * MAX( 56 ) - - 20 + - 72 AS col1, - 36
----
-3860
-36

skipif mysql # not compatible
query II rowsort label-1284
SELECT - 68 * MAX ( 56 ) - - 20 + - 72 AS col1, - 36
----
-3860
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL - - NULLIF ( - + 83, - 86 / + MIN( + + 94 ) + - - 39 ) * - 51 + + 75 AS col2
----
4308

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - - NULLIF ( - + 83, - 86 / + MIN ( + + 94 ) + - - 39 ) * - 51 + + 75 AS col2
----
4308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1286
SELECT - + 81 DIV + - MIN( ALL - 61 ) + + - CAST( - 30 AS SIGNED ) col0, CAST( NULL AS DECIMAL ) AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-1286
SELECT - + 81 / + - MIN ( ALL - 61 ) + + - CAST ( - 30 AS INTEGER ) col0, CAST ( NULL AS REAL ) AS col0
----
29
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1287
SELECT ALL + 75 DIV - - 40
----
1

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL + 75 / - - 40
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1288
SELECT - - NULLIF ( + - COUNT( * ), COUNT( * ) ) * + 75 * - - 8 * + 84 DIV - + NULLIF ( - 28, 99 ) - - 83
----
-1717

skipif mysql # not compatible
query I rowsort label-1288
SELECT - - NULLIF ( + - COUNT ( * ), COUNT ( * ) ) * + 75 * - - 8 * + 84 / - + NULLIF ( - 28, 99 ) - - 83
----
-1717

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ( COUNT( * ) ) * + ( 92 ) + - 75 + + + 18 + COUNT( * ) col0
----
36

skipif mysql # not compatible
query I rowsort label-1289
SELECT ( COUNT ( * ) ) * + ( 92 ) + - 75 + + + 18 + COUNT ( * ) col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT ALL + 21 * - - NULLIF ( - + ( SUM( - 10 ) ), + + 77 ) col2
----
210

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL + 21 * - - NULLIF ( - + ( SUM ( - 10 ) ), + + 77 ) col2
----
210

query I rowsort
SELECT - 39 * 20
----
-780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1292
SELECT ALL - 9 * MIN( DISTINCT + 50 ) + 97 AS col0, - 8 * + + CAST( NULL AS SIGNED ) + + COUNT( DISTINCT - - COALESCE ( - 25, 87 ) ) * 11 AS col0
----
-353
NULL

skipif mysql # not compatible
query II rowsort label-1292
SELECT ALL - 9 * MIN ( DISTINCT + 50 ) + 97 AS col0, - 8 * + + CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT - - COALESCE ( - 25, 87 ) ) * 11 AS col0
----
-353
NULL

query I rowsort
SELECT - 85 + 66
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT - 3 * 56 * - 55 * + - 45 * + - 5 * COUNT( * )
----
2079000

skipif mysql # not compatible
query I rowsort label-1294
SELECT - 3 * 56 * - 55 * + - 45 * + - 5 * COUNT ( * )
----
2079000

query I rowsort
SELECT + 9 + - - 54 col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT ALL CAST( + - 76 AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL CAST ( + - 76 AS INTEGER ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1297
SELECT DISTINCT COUNT( * ) * 67 + COALESCE ( + CAST( NULL AS SIGNED ), 54 * + - ( - 12 ) ) + + + 56 AS col2
----
771

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT COUNT ( * ) * 67 + COALESCE ( + CAST ( NULL AS INTEGER ), 54 * + - ( - 12 ) ) + + + 56 AS col2
----
771

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT ALL 67 + + 9 * + - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL 67 + + 9 * + - COUNT ( * ) AS col1
----
58

query I rowsort
SELECT - 73 * 70 AS col0
----
-5110

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1301
SELECT - MAX( 93 ) col2, 12 AS col2
----
-93
12

skipif mysql # not compatible
query II rowsort label-1301
SELECT - MAX ( 93 ) col2, 12 AS col2
----
-93
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT - 37 - 96 + - ( - + 35 ) + + 68 + MAX( ALL - 35 ) + + 1 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-1303
SELECT - 37 - 96 + - ( - + 35 ) + + 68 + MAX ( ALL - 35 ) + + 1 AS col2
----
-64

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

query I rowsort
SELECT + 78 * - - ( 6 )
----
468

onlyif mysql # aggregate syntax: 
query II rowsort label-1306
SELECT ALL 50 AS col0, MIN( - + 78 ) * - MAX( ALL - - ( + 7 ) ) AS col1
----
50
546

skipif mysql # not compatible
query II rowsort label-1306
SELECT ALL 50 AS col0, MIN ( - + 78 ) * - MAX ( ALL - - ( + 7 ) ) AS col1
----
50
546

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT DISTINCT - + COALESCE ( - 61, + 22, + 35 + - + 17, - - CASE + 99 WHEN + AVG ( ALL - 97 ) + 17 + + COUNT( * ) * 96 THEN NULL WHEN + 41 THEN + ( - COUNT( * ) ) * - 5 WHEN + 88 THEN NULL ELSE NULL END ) * + 71 AS col1
----
4331

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT - + COALESCE ( - 61, + 22, + 35 + - + 17, - - CASE + 99 WHEN + AVG ( ALL - 97 ) + 17 + + COUNT ( * ) * 96 THEN NULL WHEN + 41 THEN + ( - COUNT ( * ) ) * - 5 WHEN + 88 THEN NULL ELSE NULL END ) * + 71 AS col1
----
4331

query I rowsort
SELECT DISTINCT - ( - 13 ) - 98 col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT ALL + COUNT( * ) / + CASE 16 WHEN - + 15 THEN NULL WHEN - 40 THEN 63 + COUNT( * ) + - COUNT( ALL ( + 4 ) ) / + COUNT( * ) + + 63 * 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL + COUNT ( * ) / + CASE 16 WHEN - + 15 THEN NULL WHEN - 40 THEN 63 + COUNT ( * ) + - COUNT ( ALL ( + 4 ) ) / + COUNT ( * ) + + 63 * 82 END
----
NULL

query II rowsort
SELECT + + 37 - 35 AS col2, ( COALESCE ( + 34, 8, - - 26 * - + 74 ) ) AS col0
----
2
34

query I rowsort
SELECT + 29 - 36 + + 30 * + - 28 AS col1
----
-847

query I rowsort
SELECT - 69 * - + 65 AS col0
----
4485

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

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

query II rowsort
SELECT 34 col2, - 22 * + ( - 98 ) AS col1
----
34
2156

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

query I rowsort
SELECT - 57 * 68 - + + 86
----
-3962

query I rowsort
SELECT ALL 26 * - 37 AS col0
----
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT + COALESCE ( COUNT( * ), + ( + 51 ) - 65 ) * 44 * + 20
----
880

skipif mysql # not compatible
query I rowsort label-1318
SELECT + COALESCE ( COUNT ( * ), + ( + 51 ) - 65 ) * 44 * + 20
----
880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1319
SELECT + - 75 DIV 99 + - - 23 + CASE - ( + 77 ) WHEN COUNT( * ) THEN NULL WHEN + 29 THEN NULL ELSE - COUNT( * ) END + + COALESCE ( - 79, 17 + 42 * + CASE - 81 * - CASE + CAST( - 65 AS SIGNED ) WHEN + 74 THEN COUNT( * ) END + - COUNT( * ) WHEN + 53 * ( COUNT( * ) * - 65 ) THEN NULL WHEN + 4 * 21 - + 41 THEN - 60 + 17 END ) + - 47 * ( + ( 80 ) - 87 )
----
272

skipif mysql # not compatible
query I rowsort label-1319
SELECT + - 75 / 99 + - - 23 + CASE - ( + 77 ) WHEN COUNT ( * ) THEN NULL WHEN + 29 THEN NULL ELSE - COUNT ( * ) END + + COALESCE ( - 79, 17 + 42 * + CASE - 81 * - CASE + CAST ( - 65 AS INTEGER ) WHEN + 74 THEN COUNT ( * ) END + - COUNT ( * ) WHEN + 53 * ( COUNT ( * ) * - 65 ) THEN NULL WHEN + 4 * 21 - + 41 THEN - 60 + 17 END ) + - 47 * ( + ( 80 ) - 87 )
----
272

query II rowsort
SELECT ALL - + 49, + 16 AS col0
----
-49
16

query I rowsort
SELECT ALL CASE + 50 WHEN - - 99 THEN 65 + + 5 WHEN - - 85 / + 97 THEN NULL END + + 84 + - - 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1322
SELECT ALL - - 15 AS col1, COUNT( * ) * + CASE + COUNT( * ) WHEN 65 THEN - COALESCE ( CAST( - - 64 AS SIGNED ), + 2 ) ELSE + 63 * 35 END AS col1
----
15
2205

skipif mysql # not compatible
query II rowsort label-1322
SELECT ALL - - 15 AS col1, COUNT ( * ) * + CASE + COUNT ( * ) WHEN 65 THEN - COALESCE ( CAST ( - - 64 AS INTEGER ), + 2 ) ELSE + 63 * 35 END AS col1
----
15
2205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT DISTINCT - 97 + + COALESCE ( - 20, - CAST( + 71 AS SIGNED ) - + 54 ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT - 97 + + COALESCE ( - 20, - CAST ( + 71 AS INTEGER ) - + 54 ) AS col1
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT CAST( CASE - 70 WHEN 23 * - - COALESCE ( - 21, - + 24, CASE - COUNT( * ) WHEN - 39 * + 10 * - - ( 64 ) * 7 + + 88 * - 29 THEN + ( 78 ) WHEN + 69 + + 87 * CAST( NULL AS SIGNED ) THEN NULL END ) THEN NULL WHEN 33 THEN + 61 * + COUNT( 98 ) + 81 / 76 WHEN 21 THEN 1 + 36 WHEN + 62 THEN NULL ELSE NULL END AS SIGNED ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT CAST ( CASE - 70 WHEN 23 * - - COALESCE ( - 21, - + 24, CASE - COUNT ( * ) WHEN - 39 * + 10 * - - ( 64 ) * 7 + + 88 * - 29 THEN + ( 78 ) WHEN + 69 + + 87 * CAST ( NULL AS INTEGER ) THEN NULL END ) THEN NULL WHEN 33 THEN + 61 * + COUNT ( 98 ) + 81 / 76 WHEN 21 THEN 1 + 36 WHEN + 62 THEN NULL ELSE NULL END AS INTEGER ) + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT COUNT( + - 74 ) * COUNT( * ) - 62 - - ( - 82 ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-1325
SELECT COUNT ( + - 74 ) * COUNT ( * ) - 62 - - ( - 82 ) AS col2
----
-143

query I rowsort
SELECT ALL 44 + 84 * - 92
----
-7684

query I rowsort
SELECT 15 * + - 28 * ( + 73 )
----
-30660

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

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + ( - 98 ) * + + 92 + + COUNT ( * ) AS col1
----
-9015

query I rowsort
SELECT - ( + + 49 ) * - 22 - - 48 + + 21 - 64 + - - 70
----
1153

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT DISTINCT MIN( - 34 ) + + 23 + 58
----
47

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT MIN ( - 34 ) + + 23 + 58
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT 31 + + COUNT( DISTINCT 10 )
----
32

skipif mysql # not compatible
query I rowsort label-1331
SELECT 31 + + COUNT ( DISTINCT 10 )
----
32

query I rowsort
SELECT ( - - 60 ) + - + 87 - + + 15
----
-42

query I rowsort
SELECT 14 * - 33 * + + 49 AS col0
----
-22638

query I rowsort
SELECT 21 + - + 89
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT 56 - - COUNT( ALL - 20 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-1335
SELECT 56 - - COUNT ( ALL - 20 ) AS col1
----
57

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1337
SELECT - 87 * COUNT( * ) DIV - COUNT( DISTINCT + - 63 ) - - 84 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-1337
SELECT - 87 * COUNT ( * ) / - COUNT ( DISTINCT + - 63 ) - - 84 AS col1
----
171

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

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

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

skipif mysql # not compatible
query II rowsort label-1339
SELECT + 53 / - COUNT ( * ) AS col1, + 48
----
-53
48

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

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

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

query I rowsort
SELECT ALL + 20 * - CASE + 14 WHEN + + 50 THEN 92 END * - NULLIF ( 43, - 46 * 88 ) + - 84 AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT - + COALESCE ( - 65, - ( - 72 ) + 49, - 15 )
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1345
SELECT CAST( + + 11 AS SIGNED ) DIV - 61 * + - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1345
SELECT CAST ( + + 11 AS INTEGER ) / - 61 * + - 39 AS col1
----
0

query I rowsort
SELECT ALL 60 + - 16 * + + 48 + - 27 + + 9 AS col2
----
-726

query II rowsort
SELECT DISTINCT + 26 + - 40 AS col1, - 73 AS col2
----
-14
-73

query II rowsort
SELECT + 39 AS col1, + 90 AS col0
----
39
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1349
SELECT ALL - 60 AS col2, 79 + COUNT( 46 )
----
-60
80

skipif mysql # not compatible
query II rowsort label-1349
SELECT ALL - 60 AS col2, 79 + COUNT ( 46 )
----
-60
80

query I rowsort
SELECT 99 - + + 77
----
22

query I rowsort
SELECT DISTINCT 3 * + 83
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col2
----
1

query II rowsort
SELECT ALL - 76, - ( 7 ) * - 46 AS col2
----
-76
322

onlyif mysql # aggregate syntax: 
query II rowsort label-1354
SELECT COALESCE ( + - 93, 64 ) * 4 AS col1, 93 * 60 + + COUNT( * )
----
-372
5581

skipif mysql # not compatible
query II rowsort label-1354
SELECT COALESCE ( + - 93, 64 ) * 4 AS col1, 93 * 60 + + COUNT ( * )
----
-372
5581

query II rowsort
SELECT 50 * - 54 * + + 24 AS col2, 57 AS col1
----
-64800
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT 56 + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-1356
SELECT 56 + COUNT ( * )
----
57

query II rowsort
SELECT ALL 80 AS col2, 48 col2
----
80
48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1358
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) * - NULLIF ( + + 6, 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) * - NULLIF ( + + 6, 59 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 87 * + 44 AS col0
----
3828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1360
SELECT - + COUNT( * ) col0, COALESCE ( - 42, - - COUNT( * ) * - ( ( - 80 ) ) + ( ( + 59 ) ) + + CAST( NULL AS SIGNED ) DIV 14 ) AS col0
----
-1
-42

skipif mysql # not compatible
query II rowsort label-1360
SELECT - + COUNT ( * ) col0, COALESCE ( - 42, - - COUNT ( * ) * - ( ( - 80 ) ) + ( ( + 59 ) ) + + CAST ( NULL AS INTEGER ) / 14 ) AS col0
----
-1
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1361
SELECT 63 DIV - - 61
----
1

skipif mysql # not compatible
query I rowsort label-1361
SELECT 63 / - - 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT + ( - 53 ) * + + 37 + 74 + + 34 * - COUNT( * )
----
-1921

skipif mysql # not compatible
query I rowsort label-1362
SELECT + ( - 53 ) * + + 37 + 74 + + 34 * - COUNT ( * )
----
-1921

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL + + MAX( DISTINCT + 59 ) + 35
----
94

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL + + MAX ( DISTINCT + 59 ) + 35
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT ALL + + 6 + - MIN( ALL 64 ) + 46 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL + + 6 + - MIN ( ALL 64 ) + 46 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT - 78 + CASE + - 81 WHEN - MAX( + 62 ) THEN NULL ELSE - ( + 70 ) END + 86 + 43 DIV 16 + MAX( ALL + 49 ) DIV - 31
----
-61

skipif mysql # not compatible
query I rowsort label-1366
SELECT - 78 + CASE + - 81 WHEN - MAX ( + 62 ) THEN NULL ELSE - ( + 70 ) END + 86 + 43 / 16 + MAX ( ALL + 49 ) / - 31
----
-61

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1368
SELECT DISTINCT + - 56 + - SUM( DISTINCT + 99 ) + + 58 / - 46 * + 13 + - COALESCE ( + 24, - CASE ( - ( + 67 ) ) WHEN - + AVG ( + 63 ) * 42 + - AVG ( 95 ) THEN NULL ELSE - 95 END, ( + 80 ) ) * CASE - CASE + MIN( ALL - CAST( + 3 AS SIGNED ) ) WHEN - 74 + - 23 THEN NULL WHEN 95 THEN - 23 ELSE 60 + 19 END * 76 WHEN 66 + + 98 THEN 50 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT + - 56 + - SUM ( DISTINCT + 99 ) + + 58 / - 46 * + 13 + - COALESCE ( + 24, - CASE ( - ( + 67 ) ) WHEN - + AVG ( + 63 ) * 42 + - AVG ( 95 ) THEN NULL ELSE - 95 END, ( + 80 ) ) * CASE - CASE + MIN ( ALL - CAST ( + 3 AS INTEGER ) ) WHEN - 74 + - 23 THEN NULL WHEN 95 THEN - 23 ELSE 60 + 19 END * 76 WHEN 66 + + 98 THEN 50 END col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 15, - 36 + + - 56, 6 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL + COUNT( * ) + + CASE + - 20 WHEN + ( 36 ) * + 72 - - - 12 THEN + - 2 ELSE + - MIN( DISTINCT - - 77 ) * - COALESCE ( - 64, + + 88 ) END AS col0
----
-4927

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL + COUNT ( * ) + + CASE + - 20 WHEN + ( 36 ) * + 72 - - - 12 THEN + - 2 ELSE + - MIN ( DISTINCT - - 77 ) * - COALESCE ( - 64, + + 88 ) END AS col0
----
-4927

query I rowsort
SELECT ALL + - 81 * + + ( + CASE + 9 WHEN 73 THEN NULL ELSE - 53 END ) * 97 + 39 * + 53 + + 85
----
418573

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT ALL - - COUNT( * ) + NULLIF ( 76, + 38 )
----
77

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL - - COUNT ( * ) + NULLIF ( 76, + 38 )
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1373
SELECT - CAST( NULL AS DECIMAL ), ( 55 ) AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-1373
SELECT - CAST ( NULL AS REAL ), ( 55 ) AS col1
----
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT + NULLIF ( - MAX( DISTINCT - 84 ), - + 46 * + COUNT( * ) + - - 54 * COUNT( * ) * - + ( ( - - 1 ) ) + - - 38 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1374
SELECT + NULLIF ( - MAX ( DISTINCT - 84 ), - + 46 * + COUNT ( * ) + - - 54 * COUNT ( * ) * - + ( ( - - 1 ) ) + - - 38 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1375
SELECT ALL - 9 * COUNT( * ) * - 2 + - + 81 AS col2, 86 + CAST( NULL AS DECIMAL ) col0
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-1375
SELECT ALL - 9 * COUNT ( * ) * - 2 + - + 81 AS col2, 86 + CAST ( NULL AS REAL ) col0
----
-63
NULL

query I rowsort
SELECT ( 28 ) * + - 95 + 9 + 36 AS col1
----
-2615

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

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT + ( + 17 ) DIV 46 + 83
----
83

skipif mysql # not compatible
query I rowsort label-1378
SELECT + ( + 17 ) / 46 + 83
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1379
SELECT ALL COALESCE ( + 78, 73 + + 27 + 86 * 35 * 32, - + COALESCE ( - NULLIF ( CAST( - 6 AS SIGNED ), 4 + - 64 + - CAST( - 66 AS SIGNED ) * + CASE CAST( CAST( COALESCE ( + 89, - 26 - - 73 ) AS SIGNED ) AS SIGNED ) WHEN + 68 THEN + COUNT( * ) END ), 0 + 15 * COUNT( * ) ) * - CAST( NULL AS SIGNED ) ) * + ( COALESCE ( 53, - 41 * 33, - 25 ) ) - ( - 12 )
----
4146

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL COALESCE ( + 78, 73 + + 27 + 86 * 35 * 32, - + COALESCE ( - NULLIF ( CAST ( - 6 AS INTEGER ), 4 + - 64 + - CAST ( - 66 AS INTEGER ) * + CASE CAST ( CAST ( COALESCE ( + 89, - 26 - - 73 ) AS INTEGER ) AS INTEGER ) WHEN + 68 THEN + COUNT ( * ) END ), 0 + 15 * COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) ) * + ( COALESCE ( 53, - 41 * 33, - 25 ) ) - ( - 12 )
----
4146

query I rowsort
SELECT ALL + 28 * - 73 - + - 43
----
-2001

query II rowsort
SELECT NULLIF ( - + 33, 94 + - 55 ) col2, + 98
----
-33
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL + MIN( ALL - 35 ) * - COALESCE ( + - 25, + 7 ) AS col2
----
-875

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL + MIN ( ALL - 35 ) * - COALESCE ( + - 25, + 7 ) AS col2
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT 63 * COUNT( ALL 33 ) + - - NULLIF ( - 81, - 90 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1383
SELECT 63 * COUNT ( ALL 33 ) + - - NULLIF ( - 81, - 90 ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1384
SELECT ALL 44 DIV + 34
----
1

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL 44 / + 34
----
1

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

skipif mysql # not compatible
query II rowsort label-1385
SELECT DISTINCT - COUNT ( * ) / - 3 AS col2, 9
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ALL + CASE COUNT( * ) WHEN + 53 THEN NULL WHEN - + 70 * + + 89 THEN 6 / + 50 * - 55 / 98 WHEN + ( - + 89 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL + CASE COUNT ( * ) WHEN + 53 THEN NULL WHEN - + 70 * + + 89 THEN 6 / + 50 * - 55 / 98 WHEN + ( - + 89 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT - 20 * 29 DIV 75
----
-7

skipif mysql # not compatible
query I rowsort label-1387
SELECT - 20 * 29 / 75
----
-7

query I rowsort
SELECT NULLIF ( - 79, 42 ) col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT + COALESCE ( + MAX( + 26 ), - 12 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-1389
SELECT + COALESCE ( + MAX ( + 26 ), - 12 ) AS col1
----
26

query I rowsort
SELECT - 14 + - 94 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT + MAX( ALL - - ( 50 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1391
SELECT + MAX ( ALL - - ( 50 ) ) AS col1
----
50

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

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

query I rowsort
SELECT ALL 37 * - 51 * + 26 AS col1
----
-49062

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL ( NULLIF ( - + 87, 32 ) ) * + COUNT( * ) * 99
----
-8613

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL ( NULLIF ( - + 87, 32 ) ) * + COUNT ( * ) * 99
----
-8613

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT DISTINCT + 75 * - COUNT( * ) + + 11 col0
----
-64

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT + 75 * - COUNT ( * ) + + 11 col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL CASE - 37 WHEN + + 81 THEN NULL ELSE 50 + - 97 + 89 * + COUNT( * ) * - ( NULLIF ( - 19, + 85 - + 32 + - CASE - - COUNT( * ) WHEN 66 THEN NULL WHEN COUNT( * ) * - 55 THEN NULL WHEN - 26 THEN + COUNT( * ) END ) ) * + ( 70 * 52 + + 93 ) + - 90 END
----
6312366

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL CASE - 37 WHEN + + 81 THEN NULL ELSE 50 + - 97 + 89 * + COUNT ( * ) * - ( NULLIF ( - 19, + 85 - + 32 + - CASE - - COUNT ( * ) WHEN 66 THEN NULL WHEN COUNT ( * ) * - 55 THEN NULL WHEN - 26 THEN + COUNT ( * ) END ) ) * + ( 70 * 52 + + 93 ) + - 90 END
----
6312366

onlyif mysql # aggregate syntax: 
query III rowsort label-1399
SELECT + - 75 + + 5 AS col0, COUNT( * ) + - 91 * 45 AS col0, + + 8
----
-70
-4094
8

skipif mysql # not compatible
query III rowsort label-1399
SELECT + - 75 + + 5 AS col0, COUNT ( * ) + - 91 * 45 AS col0, + + 8
----
-70
-4094
8

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

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

query I rowsort
SELECT + 49 + 26 * + + 23 AS col0
----
647

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

skipif mysql # not compatible
query I rowsort label-1402
SELECT + 18 - + COUNT ( * ) - 90 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT ALL 93 + + - SUM( + 48 )
----
45

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL 93 + + - SUM ( + 48 )
----
45

query I rowsort
SELECT + CASE + - 67 WHEN + - 13 - + + 73 - 71 THEN - + 77 END + + + 35
----
NULL

query II rowsort
SELECT ALL 32 + + 87 + + 19 + 37, 12 - - 70 AS col1
----
175
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT DISTINCT ( - - CAST( CASE - + 78 WHEN NULLIF ( - + 77, - - MAX( + - 95 ) * + 55 ) THEN + 34 + 8 WHEN + + 76 * 20 - - 55 THEN - 12 ELSE 39 * - 30 END AS SIGNED ) )
----
-1170

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT ( - - CAST ( CASE - + 78 WHEN NULLIF ( - + 77, - - MAX ( + - 95 ) * + 55 ) THEN + 34 + 8 WHEN + + 76 * 20 - - 55 THEN - 12 ELSE 39 * - 30 END AS INTEGER ) )
----
-1170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1407
SELECT ALL + 28 + - + COALESCE ( - 80, + CAST( + 43 AS SIGNED ) ) - - NULLIF ( - + 57, + COUNT( * ) ) + - 78 * - 44 AS col0
----
3483

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL + 28 + - + COALESCE ( - 80, + CAST ( + 43 AS INTEGER ) ) - - NULLIF ( - + 57, + COUNT ( * ) ) + - 78 * - 44 AS col0
----
3483

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1408
SELECT ALL + 59 DIV - ( CAST( + - 99 AS SIGNED ) ) + + 76 + + 38 DIV - 66 * - - 20
----
76

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + 59 / - ( CAST ( + - 99 AS INTEGER ) ) + + 76 + + 38 / - 66 * - - 20
----
76

query I rowsort
SELECT ALL + 79 * + 80 AS col2
----
6320

query I rowsort
SELECT ALL - 68 + 72 * - 27 + + - 75 col1
----
-2087

query I rowsort
SELECT DISTINCT - COALESCE ( 34, - 18 + - 65 )
----
-34

query I rowsort
SELECT - + 98 + - 29 AS col2
----
-127

query I rowsort
SELECT DISTINCT - 35 * 61
----
-2135

query I rowsort
SELECT + 78 * + 79 - - - 77
----
6085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1415
SELECT + + ( 79 ) + + - CAST( - 36 AS SIGNED ) + COUNT( * ) * 56
----
171

skipif mysql # not compatible
query I rowsort label-1415
SELECT + + ( 79 ) + + - CAST ( - 36 AS INTEGER ) + COUNT ( * ) * 56
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT COUNT( * ) * - 34 * + 0 * + NULLIF ( + - 63, + 94 * + 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT COUNT ( * ) * - 34 * + 0 * + NULLIF ( + - 63, + 94 * + 89 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL + SUM( DISTINCT - 85 ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL + SUM ( DISTINCT - 85 ) col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT DISTINCT + MIN( ALL + 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT + MIN ( ALL + 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1419
SELECT ALL - COUNT( * ) DIV - COUNT( * ) - + + 46
----
-45

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

query I rowsort
SELECT - 26 + - 84 + 69 col1
----
-41

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT ALL + CASE + + 88 WHEN MAX( ALL 99 ) THEN ( 55 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL + CASE + + 88 WHEN MAX ( ALL 99 ) THEN ( 55 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 73 - + 48
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT - 79 DIV ( + + 83 ) * COALESCE ( 44, + 8 ) DIV + + 26 * - 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1425
SELECT - 79 / ( + + 83 ) * COALESCE ( 44, + 8 ) / + + 26 * - 20 AS col0
----
0

query I rowsort
SELECT - 90 * + + 80 AS col2
----
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT - 25 * + - 92 - - 0 + - NULLIF ( - ( + - 4 ), + 1 + + COALESCE ( + 15, - CASE - CASE 34 WHEN COUNT( * ) * 64 + - 4 - 66 THEN - 45 END WHEN - CASE 53 WHEN + 33 THEN NULL ELSE + COUNT( * ) END THEN NULL ELSE + ( + COALESCE ( 61, + 56 * 47 + COUNT( * ) ) ) END * COUNT( 8 ) ) ) + ( + ( - 23 ) ) * - 3 AS col1
----
2365

skipif mysql # not compatible
query I rowsort label-1427
SELECT - 25 * + - 92 - - 0 + - NULLIF ( - ( + - 4 ), + 1 + + COALESCE ( + 15, - CASE - CASE 34 WHEN COUNT ( * ) * 64 + - 4 - 66 THEN - 45 END WHEN - CASE 53 WHEN + 33 THEN NULL ELSE + COUNT ( * ) END THEN NULL ELSE + ( + COALESCE ( 61, + 56 * 47 + COUNT ( * ) ) ) END * COUNT ( 8 ) ) ) + ( + ( - 23 ) ) * - 3 AS col1
----
2365

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL + CASE - MAX( - 73 ) WHEN + 78 + - - 37 / + 92 * - 60 + + NULLIF ( - 52, + COUNT( * ) ) + COUNT( ALL 25 ) + - 56 THEN + - 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + CASE - MAX ( - 73 ) WHEN + 78 + - - 37 / + 92 * - 60 + + NULLIF ( - 52, + COUNT ( * ) ) + COUNT ( ALL 25 ) + - 56 THEN + - 76 END AS col2
----
NULL

query I rowsort
SELECT ( - - 7 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT ALL COUNT( * ) * - ( + SUM( + 9 ) ) + - 11 AS col2, + 62
----
-20
62

skipif mysql # not compatible
query II rowsort label-1430
SELECT ALL COUNT ( * ) * - ( + SUM ( + 9 ) ) + - 11 AS col2, + 62
----
-20
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1431
SELECT ALL - 69 DIV + 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - 69 / + 51 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1432
SELECT + COALESCE ( - + 56, - + COUNT( * ) DIV + + 6 + + - 65 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1432
SELECT + COALESCE ( - + 56, - + COUNT ( * ) / + + 6 + + - 65 ) AS col2
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT - NULLIF ( - COUNT( DISTINCT - 91 ), + 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1434
SELECT - NULLIF ( - COUNT ( DISTINCT - 91 ), + 80 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT DISTINCT - 30 + + MAX( ALL + 40 ) * + 65 col2
----
2570

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT - 30 + + MAX ( ALL + 40 ) * + 65 col2
----
2570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1436
SELECT CAST( ( ( 38 ) ) AS SIGNED ) + 31 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1436
SELECT CAST ( ( ( 38 ) ) AS INTEGER ) + 31 AS col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1437
SELECT - 96 DIV - CASE - ( + 45 ) WHEN 59 THEN - 72 ELSE 38 END
----
2

skipif mysql # not compatible
query I rowsort label-1437
SELECT - 96 / - CASE - ( + 45 ) WHEN 59 THEN - 72 ELSE 38 END
----
2

query I rowsort
SELECT 13 * 80
----
1040

onlyif mysql # aggregate syntax: 
query II rowsort label-1439
SELECT DISTINCT COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1439
SELECT DISTINCT COUNT ( * ), COUNT ( * )
----
1
1

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

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

query I rowsort
SELECT DISTINCT ( - 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT - 63 + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-1442
SELECT - 63 + COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1443
SELECT + 32 DIV COUNT( 98 )
----
32

skipif mysql # not compatible
query I rowsort label-1443
SELECT + 32 / COUNT ( 98 )
----
32

query I rowsort
SELECT ALL + 56 - + 81 + + 73
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1445
SELECT + 90 + + COUNT( * ) + - 84 + + - 1 + + 14 * + + 9 + - 51 + + 97 - 96 DIV + 93 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-1445
SELECT + 90 + + COUNT ( * ) + - 84 + + - 1 + + 14 * + + 9 + - 51 + + 97 - 96 / + 93 AS col1
----
177

query II rowsort
SELECT ALL 28, 10 AS col1
----
28
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1447
SELECT + 99 DIV - ( COUNT( * ) ) * + COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-1447
SELECT + 99 / - ( COUNT ( * ) ) * + COUNT ( * ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT DISTINCT COUNT( + 5 ) * + + 35 * - 27
----
-945

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT COUNT ( + 5 ) * + + 35 * - 27
----
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT DISTINCT 80 DIV - 22 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT 80 / - 22 AS col1
----
-3

query I rowsort
SELECT 99 + - - 44 + - 6 AS col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1451
SELECT NULLIF ( 68, + CASE + + 46 WHEN + 68 THEN MAX( ( - NULLIF ( - + 17, + 42 ) ) ) WHEN + 37 THEN NULL ELSE COUNT( * ) END * NULLIF ( - 16, + 93 + NULLIF ( 69, + 10 ) * + 91 ) * ( 2 + 30 ) ) + 88 * ( 15 * - CAST( MAX( DISTINCT 0 ) AS SIGNED ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1451
SELECT NULLIF ( 68, + CASE + + 46 WHEN + 68 THEN MAX ( ( - NULLIF ( - + 17, + 42 ) ) ) WHEN + 37 THEN NULL ELSE COUNT ( * ) END * NULLIF ( - 16, + 93 + NULLIF ( 69, + 10 ) * + 91 ) * ( 2 + 30 ) ) + 88 * ( 15 * - CAST ( MAX ( DISTINCT 0 ) AS INTEGER ) ) AS col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1452
SELECT COUNT( * ) DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1452
SELECT COUNT ( * ) / - 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT 50 * + ( - + ( - COUNT( * ) ) ) * + 54 + + 39
----
2739

skipif mysql # not compatible
query I rowsort label-1453
SELECT 50 * + ( - + ( - COUNT ( * ) ) ) * + 54 + + 39
----
2739

query II rowsort
SELECT + 59, 70 AS col0
----
59
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT 33 + 3 * + COUNT( - 43 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1455
SELECT 33 + 3 * + COUNT ( - 43 ) AS col2
----
36

query I rowsort
SELECT ALL 73 + - - 7 + 24 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT ALL COALESCE ( - + 86, 87, - 72, + COALESCE ( CASE 65 WHEN 54 + + - SUM( 22 ) THEN 24 END, + COUNT( * ) * - + 88 ) ) + + COALESCE ( - 89, 35 ) + 29 col2
----
-146

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL COALESCE ( - + 86, 87, - 72, + COALESCE ( CASE 65 WHEN 54 + + - SUM ( 22 ) THEN 24 END, + COUNT ( * ) * - + 88 ) ) + + COALESCE ( - 89, 35 ) + 29 col2
----
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-1458
SELECT DISTINCT - 17 AS col0, SUM( DISTINCT + + 13 ) AS col1
----
-17
13

skipif mysql # not compatible
query II rowsort label-1458
SELECT DISTINCT - 17 AS col0, SUM ( DISTINCT + + 13 ) AS col1
----
-17
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT ALL + 28 + 79 + + CASE + 51 WHEN - - 2 THEN 89 WHEN - - 66 THEN - CASE - 62 WHEN ( + COUNT( * ) ) THEN + 83 WHEN + 62 * 7 + - SUM( ALL 58 ) THEN NULL END * + 53 ELSE - COUNT( * ) END AS col1
----
106

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL + 28 + 79 + + CASE + 51 WHEN - - 2 THEN 89 WHEN - - 66 THEN - CASE - 62 WHEN ( + COUNT ( * ) ) THEN + 83 WHEN + 62 * 7 + - SUM ( ALL 58 ) THEN NULL END * + 53 ELSE - COUNT ( * ) END AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT DISTINCT ( + COUNT( * ) ) + - - 94 + ( + 36 ) + 72 AS col0
----
203

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT ( + COUNT ( * ) ) + - - 94 + ( + 36 ) + 72 AS col0
----
203

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

skipif mysql # not compatible
query I rowsort label-1461
SELECT 30 / + 86 * 25 AS col0
----
0

query I rowsort
SELECT 65 * - 37
----
-2405

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

skipif mysql # not compatible
query II rowsort label-1463
SELECT DISTINCT - 83 / - CAST ( NULL AS INTEGER ) col1, - COUNT ( * ) col0
----
NULL
-1

query I rowsort
SELECT ALL + 28 + - - 48
----
76

query I rowsort
SELECT ALL - 65 * - - 7 * + + 1 AS col1
----
-455

query I rowsort
SELECT 55 + - 47
----
8

query I rowsort
SELECT + 87 * - 28
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT DISTINCT - COUNT( * ) * + - 32 * COUNT( * ) - - COUNT( * ) * - - 64 * + 48 * - 13
----
-39904

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT - COUNT ( * ) * + - 32 * COUNT ( * ) - - COUNT ( * ) * - - 64 * + 48 * - 13
----
-39904

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT ALL - 92 * - + ( - - NULLIF ( + + COUNT( * ), COALESCE ( - - 74, 26 + - - 34 * + - 21 * + + 62 ) ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL - 92 * - + ( - - NULLIF ( + + COUNT ( * ), COALESCE ( - - 74, 26 + - - 34 * + - 21 * + + 62 ) ) ) AS col0
----
92

query I rowsort
SELECT DISTINCT + 34 + - 0 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT COUNT( * ) + - 84 + CASE - ( 34 ) WHEN + 13 THEN + 88 * + 45 WHEN 12 - + - 54 THEN NULL WHEN - COUNT( * ) * MIN( 20 ) * + 25 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT COUNT ( * ) + - 84 + CASE - ( 34 ) WHEN + 13 THEN + 88 * + 45 WHEN 12 - + - 54 THEN NULL WHEN - COUNT ( * ) * MIN ( 20 ) * + 25 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT ALL - COUNT( * ) - 38 * - 74
----
2811

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL - COUNT ( * ) - 38 * - 74
----
2811

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - CASE - AVG ( + 95 ) WHEN 99 THEN NULL WHEN - + 65 THEN - 43 * + + 35 + COUNT( DISTINCT 9 ) ELSE NULL END + - - 53 + + - 46 + + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT - CASE - AVG ( + 95 ) WHEN 99 THEN NULL WHEN - + 65 THEN - 43 * + + 35 + COUNT ( DISTINCT 9 ) ELSE NULL END + - - 53 + + - 46 + + 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1474
SELECT ALL COUNT( * ) AS col2, - 49 + - + 33
----
1
-82

skipif mysql # not compatible
query II rowsort label-1474
SELECT ALL COUNT ( * ) AS col2, - 49 + - + 33
----
1
-82

query I rowsort
SELECT 46 * + 30 + + 83
----
1463

query I rowsort
SELECT + 3 * + 52 * - 19 AS col0
----
-2964

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

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

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

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

query II rowsort
SELECT ALL + 61 AS col2, 53
----
61
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT ALL 0 - + 90 - - - 96 DIV - 88 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL 0 - + 90 - - - 96 / - 88 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT - SUM( ALL 35 ) * - 34 + - + 11 AS col2
----
1179

skipif mysql # not compatible
query I rowsort label-1481
SELECT - SUM ( ALL 35 ) * - 34 + - + 11 AS col2
----
1179

query I rowsort
SELECT + 87 * + 43 AS col2
----
3741

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1484
SELECT ALL - + 3 * 65 DIV - 54 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL - + 3 * 65 / - 54 AS col0
----
3

query I rowsort
SELECT + 36 * 97 - 35
----
3457

query I rowsort
SELECT ( - 74 ) + + 28 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT 59 + 19 + + COUNT( * ) * + 32 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-1487
SELECT 59 + 19 + + COUNT ( * ) * + 32 AS col1
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-1488
SELECT DISTINCT SUM( - 28 ) AS col1, 2 AS col0
----
-28
2

skipif mysql # not compatible
query II rowsort label-1488
SELECT DISTINCT SUM ( - 28 ) AS col1, 2 AS col0
----
-28
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT ALL 61 DIV - 19
----
-3

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL 61 / - 19
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL + COUNT( * ) * + + 52 + + NULLIF ( + - 34, - ( + AVG ( - - 55 ) ) / 92 ) + 10 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL + COUNT ( * ) * + + 52 + + NULLIF ( + - 34, - ( + AVG ( - - 55 ) ) / 92 ) + 10 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ALL - COUNT( * ) * + 65 * 42 + - 35 col0
----
-2765

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL - COUNT ( * ) * + 65 * 42 + - 35 col0
----
-2765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1492
SELECT ALL COALESCE ( - 39, + 66, 19 + + 97 + 40 ) * + + COUNT( ALL - 55 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL COALESCE ( - 39, + 66, 19 + + 97 + 40 ) * + + COUNT ( ALL - 55 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 17 * 86 + 75
----
1537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1494
SELECT CASE 84 WHEN - + 39 + + - 36 + + COALESCE ( + 35, COUNT( * ) * + CASE + NULLIF ( 11, - - NULLIF ( + 1, + 38 + + 13 + ( 87 ) - - + 80 DIV + 97 ) ) WHEN + COUNT( * ) THEN 25 END DIV - 56 + 93 + COUNT( * ) ) * 84 THEN NULL WHEN 87 THEN NULL ELSE 41 DIV - 9 + - COUNT( DISTINCT - 96 ) END * + 98 AS col0
----
-490

skipif mysql # not compatible
query I rowsort label-1494
SELECT CASE 84 WHEN - + 39 + + - 36 + + COALESCE ( + 35, COUNT ( * ) * + CASE + NULLIF ( 11, - - NULLIF ( + 1, + 38 + + 13 + ( 87 ) - - + 80 / + 97 ) ) WHEN + COUNT ( * ) THEN 25 END / - 56 + 93 + COUNT ( * ) ) * 84 THEN NULL WHEN 87 THEN NULL ELSE 41 / - 9 + - COUNT ( DISTINCT - 96 ) END * + 98 AS col0
----
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT ALL ( - 72 ) DIV 83 + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL ( - 72 ) / 83 + - 8
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1496
SELECT CASE - - CAST( NULL AS SIGNED ) WHEN - + CASE - - 95 WHEN 46 THEN - - 42 WHEN 92 * - 19 THEN NULL ELSE NULL END THEN 0 - 54 + + 17 * 31 * - 82 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT CASE - - CAST ( NULL AS INTEGER ) WHEN - + CASE - - 95 WHEN 46 THEN - - 42 WHEN 92 * - 19 THEN NULL ELSE NULL END THEN 0 - 54 + + 17 * 31 * - 82 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1497
SELECT + MIN( ALL - 53 ) DIV - - 10 + - 38 * - - COUNT( + 93 ) DIV 58 + 27 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1497
SELECT + MIN ( ALL - 53 ) / - - 10 + - 38 * - - COUNT ( + 93 ) / 58 + 27 AS col1
----
22

query I rowsort
SELECT DISTINCT 60 * - + 27
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL MAX( ALL - 96 ) * 94 * - 57 * COALESCE ( - COUNT( * ), ( - 26 ), + - 85 ) + - 96 - 10 + + COUNT( * ) * + 10
----
-514464

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL MAX ( ALL - 96 ) * 94 * - 57 * COALESCE ( - COUNT ( * ), ( - 26 ), + - 85 ) + - 96 - 10 + + COUNT ( * ) * + 10
----
-514464

onlyif mysql # aggregate syntax: 
query II rowsort label-1500
SELECT + MIN( ALL - 87 ), 49 + - + 8 AS col0
----
-87
41

skipif mysql # not compatible
query II rowsort label-1500
SELECT + MIN ( ALL - 87 ), 49 + - + 8 AS col0
----
-87
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1501
SELECT + MIN( - 41 ) AS col2, 98 * CAST( + CAST( - 11 AS SIGNED ) AS SIGNED ) AS col2
----
-41
-1078

skipif mysql # not compatible
query II rowsort label-1501
SELECT + MIN ( - 41 ) AS col2, 98 * CAST ( + CAST ( - 11 AS INTEGER ) AS INTEGER ) AS col2
----
-41
-1078

query I rowsort
SELECT + 60 - + - 97 AS col2
----
157

query I rowsort
SELECT ALL + 29 col0
----
29

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

skipif mysql # not compatible
query I rowsort label-1504
SELECT MAX ( DISTINCT ( - - 48 ) )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1505
SELECT ALL CAST( NULL AS SIGNED ) * + + COUNT( * ) + + + 90 AS col2, + COUNT( DISTINCT - - 16 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1505
SELECT ALL CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + + + 90 AS col2, + COUNT ( DISTINCT - - 16 )
----
NULL
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + 42 * + + 48 * COUNT( * ) AS col1
----
2016

skipif mysql # not compatible
query I rowsort label-1507
SELECT + 42 * + + 48 * COUNT ( * ) AS col1
----
2016

query I rowsort
SELECT - + 35 * 67 * 70 AS col1
----
-164150

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT ALL + MAX( DISTINCT + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL + MAX ( DISTINCT + 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT - MAX( DISTINCT + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1510
SELECT - MAX ( DISTINCT + 44 ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1511
SELECT + - 91 * - - COUNT( * ) AS col0, - CAST( + 18 AS SIGNED ) AS col2
----
-91
-18

skipif mysql # not compatible
query II rowsort label-1511
SELECT + - 91 * - - COUNT ( * ) AS col0, - CAST ( + 18 AS INTEGER ) AS col2
----
-91
-18

query II rowsort
SELECT DISTINCT - + 93 - + 1, 68 + 44 AS col1
----
-94
112

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT ALL + 36 DIV - ( 99 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL + 36 / - ( 99 ) AS col1
----
0

query I rowsort
SELECT ALL + - 80 * - + 77 * 14 AS col2
----
86240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1517
SELECT ALL COUNT( * ) * + 52 + + 44 AS col0, 23 * - 57 + 77 - COUNT( * ) + + MIN( ALL - ( CAST( 74 AS SIGNED ) ) ) DIV + 74
----
96
-1236

skipif mysql # not compatible
query II rowsort label-1517
SELECT ALL COUNT ( * ) * + 52 + + 44 AS col0, 23 * - 57 + 77 - COUNT ( * ) + + MIN ( ALL - ( CAST ( 74 AS INTEGER ) ) ) / + 74
----
96
-1236

query I rowsort
SELECT ALL 18 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT - - 51 * + - 85 * - 52 - - + COUNT( * )
----
225421

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT - - 51 * + - 85 * - 52 - - + COUNT ( * )
----
225421

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL ( + COUNT( + - 84 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL ( + COUNT ( + - 84 ) ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1521
SELECT + + 90 + + 70 + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / ( + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT + + 90 + + 70 + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / ( + 2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1522
SELECT DISTINCT COALESCE ( + + ( 3 ), - 72 + - + 10, + 56 + + - 68 + CAST( NULL AS SIGNED ) + 25 )
----
3

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT COALESCE ( + + ( 3 ), - 72 + - + 10, + 56 + + - 68 + CAST ( NULL AS INTEGER ) + 25 )
----
3

query I rowsort
SELECT + 62 * 66
----
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL + COALESCE ( ( 94 ), + + COUNT( * ) * - 25, - - 16 ) + + 31 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL + COALESCE ( ( 94 ), + + COUNT ( * ) * - 25, - - 16 ) + + 31 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT ALL + MAX( 73 ) + + 46 * + - 53 * + 75 + + 90 AS col1
----
-182687

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL + MAX ( 73 ) + + 46 * + - 53 * + 75 + + 90 AS col1
----
-182687

query I rowsort
SELECT DISTINCT 20 * - 99
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - 26 + - SUM( DISTINCT 8 ) + + 49
----
15

skipif mysql # not compatible
query I rowsort label-1527
SELECT - 26 + - SUM ( DISTINCT 8 ) + + 49
----
15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1529
SELECT DISTINCT - CAST( 24 AS SIGNED ) + - 53 * - 28 AS col0
----
1460

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT - CAST ( 24 AS INTEGER ) + - 53 * - 28 AS col0
----
1460

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

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

query I rowsort
SELECT + 20 + - 5 * 10 * + + 50
----
-2480

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

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

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

query I rowsort
SELECT - 90 * 27
----
-2430

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1536
SELECT CAST( ( + COUNT( * ) ) AS SIGNED ), + 48 + - 24 AS col0
----
1
24

skipif mysql # not compatible
query II rowsort label-1536
SELECT CAST ( ( + COUNT ( * ) ) AS INTEGER ), + 48 + - 24 AS col0
----
1
24

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

skipif mysql # not compatible
query I rowsort label-1537
SELECT + 0 / + 75 + + - COUNT ( * ) col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-1538
SELECT + CAST ( + 17 AS INTEGER ) * + 3
----
51

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

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

query I rowsort
SELECT + 36 + + - 35 AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1542
SELECT ALL + 45 AS col1, ( + ( + COUNT( * ) ) ) * + 8 * - - 10
----
45
80

skipif mysql # not compatible
query II rowsort label-1542
SELECT ALL + 45 AS col1, ( + ( + COUNT ( * ) ) ) * + 8 * - - 10
----
45
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1543
SELECT DISTINCT + 61 DIV - 4 - - MAX( - ( 27 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT + 61 / - 4 - - MAX ( - ( 27 ) ) AS col0
----
-42

query I rowsort
SELECT 6 * - 89 + + 8 + - - 24 AS col2
----
-502

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1546
SELECT + 61, + SUM( ALL + 2 ) AS col2
----
61
2

skipif mysql # not compatible
query II rowsort label-1546
SELECT + 61, + SUM ( ALL + 2 ) AS col2
----
61
2

query I rowsort
SELECT ALL + - COALESCE ( - 55, - 57 )
----
55

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

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

query I rowsort
SELECT + 2 + - + 80 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT + 76 * MAX( 42 )
----
3192

skipif mysql # not compatible
query I rowsort label-1550
SELECT + 76 * MAX ( 42 )
----
3192

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT + 15 + - - COALESCE ( + - 63, - 60 DIV 2 * + + 20, + 99 ) - 83
----
-131

skipif mysql # not compatible
query I rowsort label-1551
SELECT + 15 + - - COALESCE ( + - 63, - 60 / 2 * + + 20, + 99 ) - 83
----
-131

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

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 14 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 3 * + 86 AS col0
----
258

query I rowsort
SELECT + + CASE + ( 79 ) WHEN - 23 THEN - - ( + 14 ) ELSE NULL END + + 13 * + 9 + 33 * - 14 col0
----
NULL

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

query I rowsort
SELECT - - 13 + + 83
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT + SUM( DISTINCT + 48 ) * - + CASE - SUM( ALL 19 ) WHEN - 30 THEN - ( 8 ) ELSE + 69 + - - 57 - + NULLIF ( - 27, + - COALESCE ( + COUNT( - + 35 ), COUNT( * ) + + 42, - + 25 ) - COUNT( * ) ) END + 49 AS col1
----
-7295

skipif mysql # not compatible
query I rowsort label-1557
SELECT + SUM ( DISTINCT + 48 ) * - + CASE - SUM ( ALL 19 ) WHEN - 30 THEN - ( 8 ) ELSE + 69 + - - 57 - + NULLIF ( - 27, + - COALESCE ( + COUNT ( - + 35 ), COUNT ( * ) + + 42, - + 25 ) - COUNT ( * ) ) END + 49 AS col1
----
-7295

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT ALL + - 77 * - COUNT( * ) + + 39
----
116

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL + - 77 * - COUNT ( * ) + + 39
----
116

query I rowsort
SELECT DISTINCT + 75 * + 6
----
450

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT - NULLIF ( + 70, - MAX( 90 ) ) * - 52 - - ( - 87 ) AS col2
----
3553

skipif mysql # not compatible
query I rowsort label-1563
SELECT - NULLIF ( + 70, - MAX ( 90 ) ) * - 52 - - ( - 87 ) AS col2
----
3553

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL 50 * + 67 * - COUNT( * ) AS col2
----
-3350

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL 50 * + 67 * - COUNT ( * ) AS col2
----
-3350

query I rowsort
SELECT 59 + - + 63 - 32 col1
----
-36

query I rowsort
SELECT DISTINCT + 96 + 61 + - - 54 AS col0
----
211

query I rowsort
SELECT ALL - 42 + + 14
----
-28

query I rowsort
SELECT ALL + 78 + - 29 + - + 63 * 30
----
-1841

query I rowsort
SELECT 49 * - 28 * + 63 * 14 AS col0
----
-1210104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1570
SELECT ALL + 79 - + COALESCE ( - + 85, + COUNT( * ) * - 49 * + 49, - + NULLIF ( NULLIF ( + 25, + - 2 ), 98 / 63 + 76 - + 31 + CASE CAST( + 11 AS SIGNED ) WHEN - 85 + ( CAST( 78 AS SIGNED ) ) / + 3 THEN NULL ELSE 62 / + 11 + 88 END * 47 * - AVG ( 74 ) + + 53 ) ) - + 85 * 82 AS col1
----
-6806

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + 79 - + COALESCE ( - + 85, + COUNT ( * ) * - 49 * + 49, - + NULLIF ( NULLIF ( + 25, + - 2 ), 98 / 63 + 76 - + 31 + CASE CAST ( + 11 AS INTEGER ) WHEN - 85 + ( CAST ( 78 AS INTEGER ) ) / + 3 THEN NULL ELSE 62 / + 11 + 88 END * 47 * - AVG ( 74 ) + + 53 ) ) - + 85 * 82 AS col1
----
-6806

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT DISTINCT + COUNT( * ) * - 4 * - 54 AS col1
----
216

skipif mysql # not compatible
query I rowsort label-1571
SELECT DISTINCT + COUNT ( * ) * - 4 * - 54 AS col1
----
216

query I rowsort
SELECT DISTINCT + 52 * + 99
----
5148

query II rowsort
SELECT - 33 + 66, - 34 col1
----
33
-34

query I rowsort
SELECT DISTINCT + 13 * + 51 + + 37 AS col2
----
700

query II rowsort
SELECT ALL - 55 - + ( - 84 ) - - 64 AS col1, - 98 AS col1
----
93
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT - 91 - + - COUNT( * ) + + 43
----
-47

skipif mysql # not compatible
query I rowsort label-1576
SELECT - 91 - + - COUNT ( * ) + + 43
----
-47

query I rowsort
SELECT 93 * + - 85 + - - 59
----
-7846

onlyif mysql # aggregate syntax: 
query II rowsort label-1578
SELECT ALL - MIN( ALL - - 39 ), 4 AS col1
----
-39
4

skipif mysql # not compatible
query II rowsort label-1578
SELECT ALL - MIN ( ALL - - 39 ), 4 AS col1
----
-39
4

query I rowsort
SELECT DISTINCT - - 92 col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL + COUNT( ALL - 54 ) * + MIN( ( + + 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL + COUNT ( ALL - 54 ) * + MIN ( ( + + 15 ) )
----
15

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

query I rowsort
SELECT DISTINCT - 70 + - - 18
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1583
SELECT 52 DIV - + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1583
SELECT 52 / - + 55 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT 95 * - SUM( ALL + 16 )
----
-1520

skipif mysql # not compatible
query I rowsort label-1584
SELECT 95 * - SUM ( ALL + 16 )
----
-1520

query I rowsort
SELECT DISTINCT 50 + + 36
----
86

query I rowsort
SELECT DISTINCT + 46 * + + 63 AS col1
----
2898

query I rowsort
SELECT ALL - 76 + + - 80 + - - 1
----
-155

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

skipif mysql # not compatible
query I rowsort label-1588
SELECT ( - 11 ) * 59 + CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1590
SELECT ALL 62 + + - 94 * - - ( + CAST( NULL AS SIGNED ) ) + + 90 / 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL 62 + + - 94 * - - ( + CAST ( NULL AS INTEGER ) ) + + 90 / 58 AS col1
----
NULL

query II rowsort
SELECT 72 AS col1, 94
----
72
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1592
SELECT DISTINCT ( - 26 ) * + CAST( + 35 AS SIGNED ) * + 8 col2
----
-7280

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT ( - 26 ) * + CAST ( + 35 AS INTEGER ) * + 8 col2
----
-7280

query I rowsort
SELECT ALL 39 + + 37 + - 49 AS col2
----
27

query I rowsort
SELECT ALL 3 + 3 AS col2
----
6

query I rowsort
SELECT 49 + 72
----
121

query I rowsort
SELECT 84 * + - 40
----
-3360

query I rowsort
SELECT ALL 96 * - 7 AS col1
----
-672

query I rowsort
SELECT ALL ( 49 ) - - 79 * - 6 AS col2
----
-425

query I rowsort
SELECT ALL - 20 * - 58
----
1160

query I rowsort
SELECT 68 + - - ( + - COALESCE ( - 46, + CASE + 78 WHEN AVG ( + - 53 ) THEN NULL WHEN 0 THEN + NULLIF ( 32, - + 98 * - 71 ) ELSE NULL END ) )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT ALL 43 * NULLIF ( + + SUM( 35 ), - + 66 + - + 2 * - + 99 )
----
1505

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL 43 * NULLIF ( + + SUM ( 35 ), - + 66 + - + 2 * - + 99 )
----
1505

query I rowsort
SELECT ALL - 11 - 34 AS col2
----
-45

query I rowsort
SELECT ALL 60 * 9 * 92 AS col1
----
49680

query I rowsort
SELECT 64 * 52 AS col1
----
3328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1605
SELECT 0 * CAST( + + COUNT( * ) AS SIGNED ) * + 32 + 94 * - COUNT( * ) + - 66
----
-160

skipif mysql # not compatible
query I rowsort label-1605
SELECT 0 * CAST ( + + COUNT ( * ) AS INTEGER ) * + 32 + 94 * - COUNT ( * ) + - 66
----
-160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1606
SELECT 3 + - + COUNT( DISTINCT + + 36 ) + - 71 DIV 59 * - - 84
----
-82

skipif mysql # not compatible
query I rowsort label-1606
SELECT 3 + - + COUNT ( DISTINCT + + 36 ) + - 71 / 59 * - - 84
----
-82

query I rowsort
SELECT 72 * + + 82
----
5904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT ALL - - 49 / 98 + - 61 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL - - 49 / 98 + - 61 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1609
SELECT CAST( NULL AS DECIMAL ) * 90 + 83 + 45 + + + 76 - + + 4 * + + COALESCE ( + + 99, - + 14 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT CAST ( NULL AS REAL ) * 90 + 83 + 45 + + + 76 - + + 4 * + + COALESCE ( + + 99, - + 14 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT ALL - + MIN( DISTINCT + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL - + MIN ( DISTINCT + 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1611
SELECT ALL - CAST( - 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - CAST ( - 78 AS INTEGER )
----
78

query II rowsort
SELECT ALL - - 81, 33 + - - 72 AS col0
----
81
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1613
SELECT ALL - 68 * - COALESCE ( + - CAST( NULL AS SIGNED ), + 86 * 47, + - 1 * + 98 ) + + 60 AS col1
----
274916

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL - 68 * - COALESCE ( + - CAST ( NULL AS INTEGER ), + 86 * 47, + - 1 * + 98 ) + + 60 AS col1
----
274916

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT - MIN( - - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT - MIN ( - - 42 ) AS col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL - + 42 * + - CAST( - 70 AS SIGNED ) + 40 AS col0
----
-2900

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL - + 42 * + - CAST ( - 70 AS INTEGER ) + 40 AS col0
----
-2900

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

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

query II rowsort
SELECT DISTINCT - 15 * 78 + + + 82 AS col2, 99 AS col0
----
-1088
99

query I rowsort
SELECT ALL + 66 + - 8 AS col0
----
58

query I rowsort
SELECT ALL - - 94 + - 39 + + 45 * - + 93
----
-4130

query I rowsort
SELECT 97 + - 24
----
73

query I rowsort
SELECT DISTINCT - - 39 AS col2
----
39

query I rowsort
SELECT + 13 + 4
----
17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1624
SELECT 36 * - + CAST( 97 AS SIGNED ) + ( + 59 )
----
-3433

skipif mysql # not compatible
query I rowsort label-1624
SELECT 36 * - + CAST ( 97 AS INTEGER ) + ( + 59 )
----
-3433

query I rowsort
SELECT ALL 66 + - 64 AS col1
----
2

query I rowsort
SELECT + 3 * - 23 * - 72 col2
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT ALL 15 * COUNT( * ) * 30
----
450

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL 15 * COUNT ( * ) * 30
----
450

query I rowsort
SELECT + 21 + 78
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT ALL 3 - - 42 - + COUNT( * ) * COUNT( 16 ) col1
----
44

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL 3 - - 42 - + COUNT ( * ) * COUNT ( 16 ) col1
----
44

query I rowsort
SELECT DISTINCT 62 * 7 AS col1
----
434

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT ( 98 ) * + 9 * + 97 + - - 8 - - - CASE + 24 WHEN AVG ( ALL 26 ) THEN + - SUM( - ( + + 70 ) ) END + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1632
SELECT ( 98 ) * + 9 * + 97 + - - 8 - - - CASE + 24 WHEN AVG ( ALL 26 ) THEN + - SUM ( - ( + + 70 ) ) END + 58 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT + CASE + - 52 WHEN COUNT( * ) THEN 31 * + 29 + + - 37 + 18 + + ( - 10 ) * - 45 END / 69 * 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1634
SELECT + CASE + - 52 WHEN COUNT ( * ) THEN 31 * + 29 + + - 37 + 18 + + ( - 10 ) * - 45 END / 69 * 14 AS col1
----
NULL

query I rowsort
SELECT ALL 97 * - ( 9 ) * 45
----
-39285

query II rowsort
SELECT 52, 54 AS col0
----
52
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ALL - ( 32 ) - COUNT( DISTINCT 44 )
----
-33

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL - ( 32 ) - COUNT ( DISTINCT 44 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT - SUM( ALL - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1638
SELECT - SUM ( ALL - 0 ) AS col1
----
0

query I rowsort
SELECT ALL 19 * - 29 col1
----
-551

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT + 31 * - COUNT( - 60 ) * - - NULLIF ( + + COUNT( * ), + ( 32 ) ) * - - 47 AS col2
----
-1457

skipif mysql # not compatible
query I rowsort label-1640
SELECT + 31 * - COUNT ( - 60 ) * - - NULLIF ( + + COUNT ( * ), + ( 32 ) ) * - - 47 AS col2
----
-1457

query II rowsort
SELECT ALL 19 AS col1, 49
----
19
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1642
SELECT - 71 AS col0, COUNT( * ) AS col1
----
-71
1

skipif mysql # not compatible
query II rowsort label-1642
SELECT - 71 AS col0, COUNT ( * ) AS col1
----
-71
1

query II rowsort
SELECT 82 AS col0, - 60 AS col2
----
82
-60

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1645
SELECT - NULLIF ( - COUNT( * ), + CASE - NULLIF ( COUNT( DISTINCT + 91 ), 23 ) WHEN + + COALESCE ( - 32, + ( 70 ), + CAST( NULL AS SIGNED ) * 12 * - CAST( - + 12 AS SIGNED ) ) THEN + ( 97 ) END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1645
SELECT - NULLIF ( - COUNT ( * ), + CASE - NULLIF ( COUNT ( DISTINCT + 91 ), 23 ) WHEN + + COALESCE ( - 32, + ( 70 ), + CAST ( NULL AS INTEGER ) * 12 * - CAST ( - + 12 AS INTEGER ) ) THEN + ( 97 ) END ) AS col0
----
1

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

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

query I rowsort
SELECT + 1 * 4 AS col0
----
4

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

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - COUNT ( + 25 ) AS col1
----
-1

query I rowsort
SELECT + 68 + 67
----
135

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

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT COUNT ( + - 87 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT DISTINCT - 31 + 42 DIV - 35 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT - 31 + 42 / - 35 AS col1
----
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-1652
SELECT ALL 42 AS col1, 38 DIV - 77 AS col2
----
42
0

skipif mysql # not compatible
query II rowsort label-1652
SELECT ALL 42 AS col1, 38 / - 77 AS col2
----
42
0

query II rowsort
SELECT ALL 64 AS col0, + 69 AS col0
----
64
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL - 75 * + COUNT( * ) + + 8 + 62 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - 75 * + COUNT ( * ) + + 8 + 62 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1655
SELECT - - 18 DIV - + 25 + + 17 + 64 - ( + + 26 ) + - 36 * ( + + 79 ) + 47 * - 98 + COUNT( * )
----
-7394

skipif mysql # not compatible
query I rowsort label-1655
SELECT - - 18 / - + 25 + + 17 + 64 - ( + + 26 ) + - 36 * ( + + 79 ) + 47 * - 98 + COUNT ( * )
----
-7394

query I rowsort
SELECT DISTINCT - + 43 * - 57 * + 47 + - ( + 33 ) AS col2
----
115164

query I rowsort
SELECT - + 1 + - 80 + 9
----
-72

query I rowsort
SELECT ALL + 46 * - ( - 37 ) + 12 * + 51
----
2314

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1660
SELECT + - CAST( NULL AS SIGNED ) col1, COALESCE ( - + 7, 88 ) DIV + 47 * - 57
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1660
SELECT + - CAST ( NULL AS INTEGER ) col1, COALESCE ( - + 7, 88 ) / + 47 * - 57
----
NULL
0

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

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL + + ( COUNT ( ALL - 78 ) ) AS col1
----
1

query I rowsort
SELECT + 98 * CASE AVG ( DISTINCT + 41 ) WHEN + 20 + + + 23 THEN NULL WHEN + 60 THEN - - 93 ELSE NULL END col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL 29 * - + COUNT( * ) + 16 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL 29 * - + COUNT ( * ) + 16 AS col2
----
-13

query I rowsort
SELECT DISTINCT - ( + - 60 ) * + 98
----
5880

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL - 5 * + 31 - + + COUNT( ALL + - 32 ) * 14 - - 85
----
-84

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL - 5 * + 31 - + + COUNT ( ALL + - 32 ) * 14 - - 85
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1668
SELECT NULLIF ( + 84, - - 69 ), - CASE ( - - 6 ) WHEN + AVG ( + 27 ) * 74 THEN NULL ELSE - + 81 END DIV MIN( + 44 ) * - 96 + + + 69 + - MIN( - 67 ) - - NULLIF ( + 64, + 89 ) AS col2
----
84
104

skipif mysql # not compatible
query II rowsort label-1668
SELECT NULLIF ( + 84, - - 69 ), - CASE ( - - 6 ) WHEN + AVG ( + 27 ) * 74 THEN NULL ELSE - + 81 END / MIN ( + 44 ) * - 96 + + + 69 + - MIN ( - 67 ) - - NULLIF ( + 64, + 89 ) AS col2
----
84
104

query I rowsort
SELECT NULLIF ( CASE - 84 WHEN 27 THEN - 51 ELSE - 62 * + 5 + 95 END, 89 * + ( + 3 ) )
----
-215

query II rowsort
SELECT - 9 - - - 66, + 65 AS col0
----
-75
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT DISTINCT - 37 * SUM( DISTINCT 3 ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT - 37 * SUM ( DISTINCT 3 ) AS col1
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1672
SELECT COALESCE ( + 2, 16 + + + ( + 16 ) * CAST( NULL AS SIGNED ) + + COUNT( * ) + + - 24 + - - 21 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1672
SELECT COALESCE ( + 2, 16 + + + ( + 16 ) * CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + - 24 + - - 21 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT + MIN( ALL ( - 43 ) ) * + 3 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-1673
SELECT + MIN ( ALL ( - 43 ) ) * + 3 AS col2
----
-129

query I rowsort
SELECT ALL + COALESCE ( - - 82, + + 2 * 50 ) AS col2
----
82

query I rowsort
SELECT DISTINCT + 38 * - 4 AS col2
----
-152

onlyif mysql # DIV for integer division: 
query II rowsort label-1676
SELECT DISTINCT 8 DIV - + 25 AS col2, ( - 83 )
----
0
-83

skipif mysql # not compatible
query II rowsort label-1676
SELECT DISTINCT 8 / - + 25 AS col2, ( - 83 )
----
0
-83

query II rowsort
SELECT DISTINCT ( + 43 ), 53 * + + 16 AS col2
----
43
848

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

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

query I rowsort
SELECT - 2 + NULLIF ( - 29, - 38 * 70 + + 76 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT - COALESCE ( - 18, - + 80 * ( + + COUNT( * ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-1680
SELECT - COALESCE ( - 18, - + 80 * ( + + COUNT ( * ) ) )
----
18

query II rowsort
SELECT - 19 * 37 AS col1, 85 * + - 38 AS col2
----
-703
-3230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1682
SELECT + 84 * CASE - - 33 WHEN 13 + + 50 THEN MIN( ALL - 31 ) WHEN - COUNT( * ) THEN - ( - MIN( - CAST( - ( 48 ) AS SIGNED ) ) ) * MAX( ALL + 87 ) + 62 * - 33 * 24 WHEN + + COUNT( * ) THEN - 13 * + - 43 + + 4 + + 66 * 41 ELSE 74 END
----
6216

skipif mysql # not compatible
query I rowsort label-1682
SELECT + 84 * CASE - - 33 WHEN 13 + + 50 THEN MIN ( ALL - 31 ) WHEN - COUNT ( * ) THEN - ( - MIN ( - CAST ( - ( 48 ) AS INTEGER ) ) ) * MAX ( ALL + 87 ) + 62 * - 33 * 24 WHEN + + COUNT ( * ) THEN - 13 * + - 43 + + 4 + + 66 * 41 ELSE 74 END
----
6216

query I rowsort
SELECT ALL 66 + - 62 + 84 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT ALL COALESCE ( 90, + 53 ) + - 26 DIV + 44 col1
----
90

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL COALESCE ( 90, + 53 ) + - 26 / + 44 col1
----
90

query I rowsort
SELECT - - 32 col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1686
SELECT DISTINCT + + 65 + COALESCE ( COUNT( * ), - 38 * 11 * + 26 DIV + + 85 + 62 ) DIV - + 30
----
65

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT + + 65 + COALESCE ( COUNT ( * ), - 38 * 11 * + 26 / + + 85 + 62 ) / - + 30
----
65

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

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

query I rowsort
SELECT ALL - 90 * + - 48 + - - 96
----
4416

query I rowsort
SELECT - + 52 * - ( - 66 )
----
-3432

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT - COALESCE ( 63, + 78 * - 20 DIV + + 21 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1691
SELECT - COALESCE ( 63, + 78 * - 20 / + + 21 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT + + 72 + + CASE 9 WHEN - 53 + - - 95 THEN + COUNT( * ) * COUNT( * ) * 79 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT + + 72 + + CASE 9 WHEN - 53 + - - 95 THEN + COUNT ( * ) * COUNT ( * ) * 79 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ( 30 ), 61 AS col0
----
30
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT ALL + 56 DIV ( - ( + 77 ) ) * - 82 - + 51 * 36 * + - 63 + + 57 AS col2
----
115725

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + 56 / ( - ( + 77 ) ) * - 82 - + 51 * 36 * + - 63 + + 57 AS col2
----
115725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1695
SELECT DISTINCT + NULLIF ( NULLIF ( - 43, COUNT( * ) ), - 76 + - - 60 + + MIN( ALL + 8 ) * + - 56 ) DIV - - 61 + + - MAX( - - 13 ) + + COUNT( * ) DIV 46
----
-13

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT + NULLIF ( NULLIF ( - 43, COUNT ( * ) ), - 76 + - - 60 + + MIN ( ALL + 8 ) * + - 56 ) / - - 61 + + - MAX ( - - 13 ) + + COUNT ( * ) / 46
----
-13

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

query I rowsort
SELECT ALL 39 * 19 * - + 69
----
-51129

query I rowsort
SELECT + + 20 * - 60 * 88
----
-105600

onlyif mysql # aggregate syntax: 
query II rowsort label-1699
SELECT ALL + 14 * - CASE + 59 WHEN - 93 THEN NULL WHEN - - 64 THEN + - CASE - 88 WHEN + + MIN( 34 ) - 50 THEN NULL ELSE 67 END - - COUNT( * ) ELSE + - COUNT( * ) END AS col1, + COALESCE ( + - 92, - COALESCE ( + 13, 76, - 63 * + 56 + 98 ), 7 * - COUNT( * ) + + 77 * - 83 ) * 89 + - 89 col1
----
14
-8277

skipif mysql # not compatible
query II rowsort label-1699
SELECT ALL + 14 * - CASE + 59 WHEN - 93 THEN NULL WHEN - - 64 THEN + - CASE - 88 WHEN + + MIN ( 34 ) - 50 THEN NULL ELSE 67 END - - COUNT ( * ) ELSE + - COUNT ( * ) END AS col1, + COALESCE ( + - 92, - COALESCE ( + 13, 76, - 63 * + 56 + 98 ), 7 * - COUNT ( * ) + + 77 * - 83 ) * 89 + - 89 col1
----
14
-8277

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1700
SELECT ALL - ( 17 ) AS col1, CAST( + ( + 29 ) AS SIGNED )
----
-17
29

skipif mysql # not compatible
query II rowsort label-1700
SELECT ALL - ( 17 ) AS col1, CAST ( + ( + 29 ) AS INTEGER )
----
-17
29

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

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

query I rowsort
SELECT ALL ( - ( - 6 ) ) - - - COALESCE ( + 77, 64 )
----
-71

query I rowsort
SELECT ALL + 64 * + 38 AS col2
----
2432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT - 24 * 4 + 98 + + - 85 DIV COUNT( * ) + + - 24 + - - ( 65 ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-1704
SELECT - 24 * 4 + 98 + + - 85 / COUNT ( * ) + + - 24 + - - ( 65 ) col2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT ALL + 78 DIV - + 90
----
0

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + 78 / - + 90
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT DISTINCT - COUNT( * ) AS col2, 43 + SUM( + + ( - - 44 ) ) col1
----
-1
87

skipif mysql # not compatible
query II rowsort label-1706
SELECT DISTINCT - COUNT ( * ) AS col2, 43 + SUM ( + + ( - - 44 ) ) col1
----
-1
87

query II rowsort
SELECT ALL - 49, + 50 AS col1
----
-49
50

query II rowsort
SELECT ALL - 20, + ( 62 ) AS col1
----
-20
62

query I rowsort
SELECT 94 + - 20
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT 77 * + SUM( DISTINCT 50 ) AS col0
----
3850

skipif mysql # not compatible
query I rowsort label-1710
SELECT 77 * + SUM ( DISTINCT 50 ) AS col0
----
3850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1711
SELECT - 4 * + MAX( ALL - NULLIF ( + NULLIF ( 53, 73 + - - 86 ), + + 7 / + 84 ) ) + + + 30 * - 70 / + CAST( NULL AS SIGNED ) * - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1711
SELECT - 4 * + MAX ( ALL - NULLIF ( + NULLIF ( 53, 73 + - - 86 ), + + 7 / + 84 ) ) + + + 30 * - 70 / + CAST ( NULL AS INTEGER ) * - 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1712
SELECT DISTINCT 21 AS col2, - 83 - - COALESCE ( - COUNT( * ), - 44 ) AS col2
----
21
-84

skipif mysql # not compatible
query II rowsort label-1712
SELECT DISTINCT 21 AS col2, - 83 - - COALESCE ( - COUNT ( * ), - 44 ) AS col2
----
21
-84

query II rowsort
SELECT - 25 AS col1, 43 + - - 98 AS col2
----
-25
141

query I rowsort
SELECT DISTINCT - 44 + 9 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT ALL + 89 + - COUNT( - 55 )
----
88

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL + 89 + - COUNT ( - 55 )
----
88

query II rowsort
SELECT 47 AS col2, 6
----
47
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT ALL - 56 + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - 56 + - COUNT ( * )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1718
SELECT 85, + MIN( + CAST( - 35 AS SIGNED ) ) DIV - 60 - - - COUNT( * ) AS col2
----
85
-1

skipif mysql # not compatible
query II rowsort label-1718
SELECT 85, + MIN ( + CAST ( - 35 AS INTEGER ) ) / - 60 - - - COUNT ( * ) AS col2
----
85
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT CASE + 22 WHEN + ( + + 77 ) THEN + 19 WHEN - 6 THEN - - 35 END / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT CASE + 22 WHEN + ( + + 77 ) THEN + 19 WHEN - 6 THEN - - 35 END / + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1720
SELECT DISTINCT + 53 + + ( + 86 ) AS col1, + COUNT( * ) AS col2, - COUNT( * ) * + 25 + - - COALESCE ( + - 37, 30 ) * + - 15 AS col1
----
139
1
530

skipif mysql # not compatible
query III rowsort label-1720
SELECT DISTINCT + 53 + + ( + 86 ) AS col1, + COUNT ( * ) AS col2, - COUNT ( * ) * + 25 + - - COALESCE ( + - 37, 30 ) * + - 15 AS col1
----
139
1
530

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1721
SELECT ALL + 59 AS col1, - 46 DIV + COUNT( * ) col1
----
59
-46

skipif mysql # not compatible
query II rowsort label-1721
SELECT ALL + 59 AS col1, - 46 / + COUNT ( * ) col1
----
59
-46

query I rowsort
SELECT ALL - + 87 + + - ( 42 ) + - 88 AS col2
----
-217

query I rowsort
SELECT - 57 - 91 AS col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - ( - COUNT( * ) ) * + + COALESCE ( + + COALESCE ( - ( + + 49 ), + 73 + - 97 * - 25 * - 71, - + 4 ), 46 + + 74 )
----
-49

skipif mysql # not compatible
query I rowsort label-1724
SELECT - ( - COUNT ( * ) ) * + + COALESCE ( + + COALESCE ( - ( + + 49 ), + 73 + - 97 * - 25 * - 71, - + 4 ), 46 + + 74 )
----
-49

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

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

query I rowsort
SELECT 64 * - + 44 + - 79 AS col0
----
-2895

query II rowsort
SELECT ALL + 29 * - - 33 + + 48 AS col1, + COALESCE ( - - 77, 51 )
----
1005
77

query II rowsort
SELECT 71 col0, + 67 * - + 55 * + + 42 * 65 AS col0
----
71
-10060050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT ALL + - 58 * CAST( + SUM( + 19 ) AS SIGNED )
----
-1102

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + - 58 * CAST ( + SUM ( + 19 ) AS INTEGER )
----
-1102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1730
SELECT - COUNT( * ), - CAST( NULL AS SIGNED ) * + - 72 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1730
SELECT - COUNT ( * ), - CAST ( NULL AS INTEGER ) * + - 72 AS col1
----
-1
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1732
SELECT + 66 DIV + - 71 + - 1 + + 90 + + + ( - 81 ) DIV + 98
----
89

skipif mysql # not compatible
query I rowsort label-1732
SELECT + 66 / + - 71 + - 1 + + 90 + + + ( - 81 ) / + 98
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1733
SELECT + + 21 col0, 88 * - COUNT( * )
----
21
-88

skipif mysql # not compatible
query II rowsort label-1733
SELECT + + 21 col0, 88 * - COUNT ( * )
----
21
-88

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

query I rowsort
SELECT - ( + 6 ) * - - 58 + + 48 - + 82
----
-382

query I rowsort
SELECT + + 98 col1
----
98

query I rowsort
SELECT 52 + 87 col0
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1738
SELECT DISTINCT - CAST( + 18 AS SIGNED ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT - CAST ( + 18 AS INTEGER ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-1739
SELECT ALL COUNT( * ) * + NULLIF ( + COUNT( * ), - - 23 ), + 69 AS col0
----
1
69

skipif mysql # not compatible
query II rowsort label-1739
SELECT ALL COUNT ( * ) * + NULLIF ( + COUNT ( * ), - - 23 ), + 69 AS col0
----
1
69

query I rowsort
SELECT ( - + 40 ) * + + 39 col0
----
-1560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1741
SELECT ALL 44 / CAST( NULL AS SIGNED ), - 34 AS col0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-1741
SELECT ALL 44 / CAST ( NULL AS INTEGER ), - 34 AS col0
----
NULL
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1742
SELECT DISTINCT CASE + + 96 WHEN - + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) - 4 * + COUNT( * ) / + 46 + ( 57 ) THEN NULL WHEN - 0 THEN + CASE 6 WHEN + + 23 - + - 58 THEN NULL WHEN - + 66 THEN 67 + - 8 + - 72 ELSE NULL END * - + SUM( 53 ) ELSE NULL END * - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT CASE + + 96 WHEN - + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) - 4 * + COUNT ( * ) / + 46 + ( 57 ) THEN NULL WHEN - 0 THEN + CASE 6 WHEN + + 23 - + - 58 THEN NULL WHEN - + 66 THEN 67 + - 8 + - 72 ELSE NULL END * - + SUM ( 53 ) ELSE NULL END * - + 96
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1744
SELECT 94 * CAST( 68 AS SIGNED ) AS col2
----
6392

skipif mysql # not compatible
query I rowsort label-1744
SELECT 94 * CAST ( 68 AS INTEGER ) AS col2
----
6392

query I rowsort
SELECT ALL 90 + + 4 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT COUNT( DISTINCT 74 ) - - MAX( DISTINCT + ( - 37 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-1746
SELECT COUNT ( DISTINCT 74 ) - - MAX ( DISTINCT + ( - 37 ) )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1747
SELECT 13 DIV + 6, 20 DIV + + 81 + - 24 + + + 77 + - COUNT( * ) * - - CASE + MAX( DISTINCT 74 ) WHEN - ( AVG ( + + 3 ) ) THEN + 68 * + + 99 DIV + - MAX( DISTINCT 65 ) - - 29 WHEN 49 + + COUNT( * ) THEN 4 ELSE NULL END DIV + 62 + + NULLIF ( - 3, + 27 ) + 37 * 87 AS col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-1747
SELECT 13 / + 6, 20 / + + 81 + - 24 + + + 77 + - COUNT ( * ) * - - CASE + MAX ( DISTINCT 74 ) WHEN - ( AVG ( + + 3 ) ) THEN + 68 * + + 99 / + - MAX ( DISTINCT 65 ) - - 29 WHEN 49 + + COUNT ( * ) THEN 4 ELSE NULL END / + 62 + + NULLIF ( - 3, + 27 ) + 37 * 87 AS col0
----
2
NULL

query II rowsort
SELECT ALL 66 + - + 59 AS col2, 35
----
7
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT ( 2 ) * + - 32 / 98 - + CASE + + 34 WHEN COUNT( * ) THEN NULL WHEN - 43 * - - COUNT( * ) + 38 + + COALESCE ( 19, + 14 + - + 42 / - COUNT( * ) ) THEN - 11 ELSE NULL END - - 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT ( 2 ) * + - 32 / 98 - + CASE + + 34 WHEN COUNT ( * ) THEN NULL WHEN - 43 * - - COUNT ( * ) + 38 + + COALESCE ( 19, + 14 + - + 42 / - COUNT ( * ) ) THEN - 11 ELSE NULL END - - 69 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1750
SELECT DISTINCT 84 DIV COALESCE ( 34, + 1 + - 23 + + ( + + 32 ) * - 4 ) * - 65 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT 84 / COALESCE ( 34, + 1 + - 23 + + ( + + 32 ) * - 4 ) * - 65 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT - COUNT( ALL - - 14 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1751
SELECT - COUNT ( ALL - - 14 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT 3 DIV 54 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-1752
SELECT 3 / 54 / 67
----
0

query I rowsort
SELECT ALL 30 + 30 * - 42 AS col0
----
-1230

query I rowsort
SELECT ALL + 58 + - 72 - + 27 - - 94 * 97 * - 10 AS col2
----
-91221

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT - 75 - + 66 + - 80 + - + 58 + - 59 + + + COUNT( * ) - - 64 AS col0
----
-273

skipif mysql # not compatible
query I rowsort label-1755
SELECT - 75 - + 66 + - 80 + - + 58 + - 59 + + + COUNT ( * ) - - 64 AS col0
----
-273

query I rowsort
SELECT 10 + + 15 AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1757
SELECT ( ( + - CASE CAST( NULL AS SIGNED ) WHEN + - 20 THEN NULL ELSE - 96 * - - 75 + + 12 + - + 68 * 90 * - ( - ( 31 ) ) * 19 * - - COUNT( * ) END ) )
----
3611868

skipif mysql # not compatible
query I rowsort label-1757
SELECT ( ( + - CASE CAST ( NULL AS INTEGER ) WHEN + - 20 THEN NULL ELSE - 96 * - - 75 + + 12 + - + 68 * 90 * - ( - ( 31 ) ) * 19 * - - COUNT ( * ) END ) )
----
3611868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1758
SELECT ALL + + 35 + + 61 col0, 2 * - + 77 + NULLIF ( - 94, 20 * + 9 + 51 * + 37 + - 15 + - + 67 / 37 * - 21 + - - CAST( - COUNT( * ) AS SIGNED ) ) * + + 94 AS col2
----
96
-8990

skipif mysql # not compatible
query II rowsort label-1758
SELECT ALL + + 35 + + 61 col0, 2 * - + 77 + NULLIF ( - 94, 20 * + 9 + 51 * + 37 + - 15 + - + 67 / 37 * - 21 + - - CAST ( - COUNT ( * ) AS INTEGER ) ) * + + 94 AS col2
----
96
-8990

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT NULLIF ( 69, + 20 ) + - - CASE MAX( ALL + 53 ) WHEN + 98 THEN + COUNT( * ) * + 36 WHEN + + 17 THEN NULL END + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1759
SELECT NULLIF ( 69, + 20 ) + - - CASE MAX ( ALL + 53 ) WHEN + 98 THEN + COUNT ( * ) * + 36 WHEN + + 17 THEN NULL END + 3 AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1761
SELECT + SUM ( DISTINCT 34 ) + - 60 AS col2
----
-26

query II rowsort
SELECT + 64 * - 12 AS col2, 56
----
-768
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT ALL - 8 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL - 8 / + 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1764
SELECT - 30 * - - COALESCE ( - - 9, + 85 * + - ( + COALESCE ( MIN( DISTINCT - CAST( NULL AS SIGNED ) ), + - 3 + - 53 ) ) + + COUNT( DISTINCT + - 32 ) ) - 2 AS col1
----
-272

skipif mysql # not compatible
query I rowsort label-1764
SELECT - 30 * - - COALESCE ( - - 9, + 85 * + - ( + COALESCE ( MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ), + - 3 + - 53 ) ) + + COUNT ( DISTINCT + - 32 ) ) - 2 AS col1
----
-272

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT - 18 + NULLIF ( + SUM( DISTINCT + + ( + 27 ) ), + ( + 6 ) ) * + 51
----
1359

skipif mysql # not compatible
query I rowsort label-1766
SELECT - 18 + NULLIF ( + SUM ( DISTINCT + + ( + 27 ) ), + ( + 6 ) ) * + 51
----
1359

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1768
SELECT + + 37 DIV - MAX( 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1768
SELECT + + 37 / - MAX ( 19 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT - + NULLIF ( NULLIF ( - 6, 32 ), - 59 ) + 2 - + + SUM( 15 )
----
-7

skipif mysql # not compatible
query I rowsort label-1769
SELECT - + NULLIF ( NULLIF ( - 6, 32 ), - 59 ) + 2 - + + SUM ( 15 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT + COALESCE ( + 19, 92 * - COUNT( * ) )
----
19

skipif mysql # not compatible
query I rowsort label-1770
SELECT + COALESCE ( + 19, 92 * - COUNT ( * ) )
----
19

query II rowsort
SELECT ALL + 57 * - 69 AS col1, 24 + 74
----
-3933
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT NULLIF ( + 98, 29 + + + COUNT( * ) * 5 )
----
98

skipif mysql # not compatible
query I rowsort label-1772
SELECT NULLIF ( + 98, 29 + + + COUNT ( * ) * 5 )
----
98

query II rowsort
SELECT ALL + 33, - 20 AS col2
----
33
-20

query I rowsort
SELECT ALL + 33 * - + 99
----
-3267

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ALL 28 * + - 17 * 13 + COALESCE ( - 85, + COUNT( * ) ) col1
----
-6273

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL 28 * + - 17 * 13 + COALESCE ( - 85, + COUNT ( * ) ) col1
----
-6273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1776
SELECT + CAST( NULL AS SIGNED ) - 35 + 68 + + 45 * - + ( 22 ) * + - COUNT( * ) + - + 28 + 40 / COUNT( * ), + 62 * + 10 * 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1776
SELECT + CAST ( NULL AS INTEGER ) - 35 + 68 + + 45 * - + ( 22 ) * + - COUNT ( * ) + - + 28 + 40 / COUNT ( * ), + 62 * + 10 * 0 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1777
SELECT DISTINCT 91 * + 4 + 83 AS col0, - ( - 86 ) * 19 * - 43 - - COUNT( * ) + + 0 * - 47
----
447
-70261

skipif mysql # not compatible
query II rowsort label-1777
SELECT DISTINCT 91 * + 4 + 83 AS col0, - ( - 86 ) * 19 * - 43 - - COUNT ( * ) + + 0 * - 47
----
447
-70261

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1778
SELECT NULLIF ( + 27, COUNT( - - 36 ) + - COUNT( * ) ), ( + 57 ) + + 42 + + 72 * CAST( NULL AS DECIMAL ) * - COUNT( ALL - - 34 ) AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-1778
SELECT NULLIF ( + 27, COUNT ( - - 36 ) + - COUNT ( * ) ), ( + 57 ) + + 42 + + 72 * CAST ( NULL AS REAL ) * - COUNT ( ALL - - 34 ) AS col2
----
27
NULL

query II rowsort
SELECT + 85 * ( - + 64 ) AS col0, - 59 AS col1
----
-5440
-59

query I rowsort
SELECT ALL 43 * + - 87
----
-3741

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT COALESCE ( - 94, 13 + 68 ) * + 25 + - 18 * + 98 * + - CASE - 21 WHEN - COUNT( * ) THEN - - 75 WHEN - - 7 THEN NULL WHEN - 92 THEN NULL END * - 82 * + NULLIF ( 66, COUNT( * ) * CASE COALESCE ( + COALESCE ( + 77, + MAX( ALL - 61 ) * - 53 ), + 10 ) WHEN + 1 THEN ( + 13 ) / - MAX( + 51 ) ELSE + COUNT( * ) END + - 75 ) - + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT COALESCE ( - 94, 13 + 68 ) * + 25 + - 18 * + 98 * + - CASE - 21 WHEN - COUNT ( * ) THEN - - 75 WHEN - - 7 THEN NULL WHEN - 92 THEN NULL END * - 82 * + NULLIF ( 66, COUNT ( * ) * CASE COALESCE ( + COALESCE ( + 77, + MAX ( ALL - 61 ) * - 53 ), + 10 ) WHEN + 1 THEN ( + 13 ) / - MAX ( + 51 ) ELSE + COUNT ( * ) END + - 75 ) - + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT ALL NULLIF ( + NULLIF ( COUNT( * ), + - 31 * - + 54 * - + 48 ), 80 ) * COUNT( * ) + + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL NULLIF ( + NULLIF ( COUNT ( * ), + - 31 * - + 54 * - + 48 ), 80 ) * COUNT ( * ) + + 70 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT MAX( 7 )
----
7

skipif mysql # not compatible
query I rowsort label-1783
SELECT MAX ( 7 )
----
7

query I rowsort
SELECT ALL - 16 * + - 88 + + 86 - 85 AS col1
----
1409

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT + 19 + 90 * SUM( - 58 )
----
-5201

skipif mysql # not compatible
query I rowsort label-1785
SELECT + 19 + 90 * SUM ( - 58 )
----
-5201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT + 95 + + - CASE - 21 WHEN - 12 THEN - ( + 88 ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - + ( - NULLIF ( 86, 56 ) ) * - - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT + 95 + + - CASE - 21 WHEN - 12 THEN - ( + 88 ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - + ( - NULLIF ( 86, 56 ) ) * - - 59 END
----
NULL

query I rowsort
SELECT + + COALESCE ( 0, - 91 * - - 84 ) * + 7 + - 3 AS col2
----
-3

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

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - COUNT ( * ) / + 28 + - 93 - 11 AS col2
----
-104

query I rowsort
SELECT ALL 9 - - 0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1790
SELECT DISTINCT - 71 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT - 71 / - 99
----
0

query I rowsort
SELECT DISTINCT - 60 - + 84
----
-144

query I rowsort
SELECT + + 46 * - 41 col2
----
-1886

query I rowsort
SELECT - + 41 * + 70 AS col1
----
-2870

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT + COUNT( * ) * - + 88 + + 55 - - 23 + + 93 * + 56 * - ( - ( 54 ) ) col2
----
281222

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT + COUNT ( * ) * - + 88 + + 55 - - 23 + + 93 * + 56 * - ( - ( 54 ) ) col2
----
281222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT ALL + ( CAST( - ( + ( - - COALESCE ( + MAX( - - 66 ), 34 ) ) ) AS SIGNED ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL + ( CAST ( - ( + ( - - COALESCE ( + MAX ( - - 66 ), 34 ) ) ) AS INTEGER ) ) AS col2
----
-66

query I rowsort
SELECT DISTINCT - ( - 34 ) * + 94 * - 18 AS col0
----
-57528

query I rowsort
SELECT + + 97 - 53
----
44

query II rowsort
SELECT ALL + 37 AS col2, 85 AS col1
----
37
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL + - 3 + + + 15 + + COUNT( * ) - - - 82 * 14
----
-1135

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + - 3 + + + 15 + + COUNT ( * ) - - - 82 * 14
----
-1135

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

query II rowsort
SELECT - 33 AS col0, 50 * + 48 col2
----
-33
2400

query I rowsort
SELECT ALL NULLIF ( - 40, + ( + + 56 ) + - 81 - + ( - + 71 ) * - ( - 1 ) ) AS col0
----
-40

query I rowsort
SELECT 20 * - 6 + + - 75
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1804
SELECT - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) - + - NULLIF ( - CASE + - COUNT( * ) WHEN ( - - ( + 0 ) ) THEN + COUNT( * ) END, - 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) - + - NULLIF ( - CASE + - COUNT ( * ) WHEN ( - - ( + 0 ) ) THEN + COUNT ( * ) END, - 49 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1805
SELECT DISTINCT COUNT( * ) / + 7 + + 71 * - + 92 + CAST( NULL AS DECIMAL ) / 10 * + + COUNT( * ) / COUNT( * ) + COUNT( * ) * - - 52 * - + 20 + + ( - - 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT COUNT ( * ) / + 7 + + 71 * - + 92 + CAST ( NULL AS REAL ) / 10 * + + COUNT ( * ) / COUNT ( * ) + COUNT ( * ) * - - 52 * - + 20 + + ( - - 2 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1806
SELECT ALL 87 DIV + 57 + - 78
----
-77

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL 87 / + 57 + - 78
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT - 85 DIV + 64 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1807
SELECT - 85 / + 64 AS col0
----
-1

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

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

query I rowsort
SELECT ALL + 30 * 39 AS col1
----
1170

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT ALL 98 DIV - + 75 + - 40 DIV 34 - + - 68 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL 98 / - + 75 + - 40 / 34 - + - 68 AS col0
----
66

query II rowsort
SELECT DISTINCT + ( - 27 ) AS col1, 81 AS col2
----
-27
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT ALL - 21 DIV 69 + + + 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL - 21 / 69 + + + 10 AS col1
----
10

query I rowsort
SELECT DISTINCT - 85 * - + 70
----
5950

query I rowsort
SELECT ALL + 30 * 21 * - 79 AS col1
----
-49770

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT - 7 * - CAST( CAST( - 76 AS SIGNED ) AS SIGNED )
----
-532

skipif mysql # not compatible
query I rowsort label-1816
SELECT - 7 * - CAST ( CAST ( - 76 AS INTEGER ) AS INTEGER )
----
-532

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1817
SELECT + 75, - 66 + + ( - ( - 22 ) ) DIV COUNT( * ) AS col2
----
75
-44

skipif mysql # not compatible
query II rowsort label-1817
SELECT + 75, - 66 + + ( - ( - 22 ) ) / COUNT ( * ) AS col2
----
75
-44

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

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

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

query I rowsort
SELECT - 42 * COALESCE ( - + 57, - + 62 )
----
2394

onlyif mysql # aggregate syntax: 
query II rowsort label-1821
SELECT + ( - + 99 ) AS col2, COUNT( * ) * - 76 * 59 * - + 27 + 80 * - COUNT( * ) col0
----
-99
120988

skipif mysql # not compatible
query II rowsort label-1821
SELECT + ( - + 99 ) AS col2, COUNT ( * ) * - 76 * 59 * - + 27 + 80 * - COUNT ( * ) col0
----
-99
120988

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1822
SELECT ALL + 11, 55 * + 70 / + CAST( NULL AS DECIMAL ) + + 77 AS col1
----
11
NULL

skipif mysql # not compatible
query II rowsort label-1822
SELECT ALL + 11, 55 * + 70 / + CAST ( NULL AS REAL ) + + 77 AS col1
----
11
NULL

query II rowsort
SELECT ALL + - 54, 63 col1
----
-54
63

query II rowsort
SELECT DISTINCT - 75 * - 10 col1, 70 * COALESCE ( + 83, - + 98 ) + COALESCE ( - - 25, 70 )
----
750
5835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT ALL 76 * + COUNT( * ) + 1 + + MIN( ALL ( + 56 ) ) + + CAST( + 31 AS SIGNED ) + + 20 * + 56 AS col1
----
1284

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL 76 * + COUNT ( * ) + 1 + + MIN ( ALL ( + 56 ) ) + + CAST ( + 31 AS INTEGER ) + + 20 * + 56 AS col1
----
1284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT + NULLIF ( - - CAST( NULL AS SIGNED ), + 19 ) / 30 * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT + NULLIF ( - - CAST ( NULL AS INTEGER ), + 19 ) / 30 * + 79
----
NULL

query II rowsort
SELECT ALL + 6, 78 * - + 61 AS col2
----
6
-4758

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1828
SELECT + CAST( NULL AS DECIMAL ) + + 81 - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT + CAST ( NULL AS REAL ) + + 81 - - 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1829
SELECT + 74, - CAST( - 2 AS SIGNED ) * - - ( + 41 ) AS col2
----
74
82

skipif mysql # not compatible
query II rowsort label-1829
SELECT + 74, - CAST ( - 2 AS INTEGER ) * - - ( + 41 ) AS col2
----
74
82

query I rowsort
SELECT ALL - 60 col1
----
-60

query I rowsort
SELECT 19 + + + 88
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT 49 DIV 34 col1
----
1

skipif mysql # not compatible
query I rowsort label-1832
SELECT 49 / 34 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT - MIN( 88 ) + + 48 * 29 + + 75 AS col1
----
1379

skipif mysql # not compatible
query I rowsort label-1833
SELECT - MIN ( 88 ) + + 48 * 29 + + 75 AS col1
----
1379

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

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

query I rowsort
SELECT DISTINCT 50 + - + 13
----
37

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

skipif mysql # not compatible
query I rowsort label-1836
SELECT - + NULLIF ( + COUNT ( * ), - 51 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT COUNT( + 22 ) + - 57 + - + 58 + - 38 - + - 21 * + 44 - + - 57 * 9 AS col1
----
1285

skipif mysql # not compatible
query I rowsort label-1837
SELECT COUNT ( + 22 ) + - 57 + - + 58 + - 38 - + - 21 * + 44 - + - 57 * 9 AS col1
----
1285

query I rowsort
SELECT DISTINCT 15 + 2 + - 38 AS col0
----
-21

query I rowsort
SELECT ALL 74 + + - 93
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT SUM( + ( ( + + 71 ) ) ) + 15 * - MAX( ALL 57 ) - NULLIF ( 29, ( 70 ) * - + MIN( + - ( + + 15 ) ) + + 55 + + 11 ) + + 20 col2
----
-793

skipif mysql # not compatible
query I rowsort label-1840
SELECT SUM ( + ( ( + + 71 ) ) ) + 15 * - MAX ( ALL 57 ) - NULLIF ( 29, ( 70 ) * - + MIN ( + - ( + + 15 ) ) + + 55 + + 11 ) + + 20 col2
----
-793

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL - CASE 45 WHEN - + ( + 52 ) THEN + CASE - + NULLIF ( CASE + + MIN( ALL + - 92 ) WHEN - 32 * - 39 THEN COUNT( * ) * + - 53 ELSE NULL END, - - COUNT( * ) / - 11 + - 75 ) WHEN 77 THEN NULL WHEN - - 97 + - CASE - 57 WHEN - 27 + - 98 * - + 95 THEN NULL ELSE - + 81 END THEN 59 * - - CASE 7 WHEN NULLIF ( - COUNT( * ), 79 ) THEN 77 WHEN 77 THEN NULL END + 57 END + COUNT( * ) ELSE - 88 END
----
88

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - CASE 45 WHEN - + ( + 52 ) THEN + CASE - + NULLIF ( CASE + + MIN ( ALL + - 92 ) WHEN - 32 * - 39 THEN COUNT ( * ) * + - 53 ELSE NULL END, - - COUNT ( * ) / - 11 + - 75 ) WHEN 77 THEN NULL WHEN - - 97 + - CASE - 57 WHEN - 27 + - 98 * - + 95 THEN NULL ELSE - + 81 END THEN 59 * - - CASE 7 WHEN NULLIF ( - COUNT ( * ), 79 ) THEN 77 WHEN 77 THEN NULL END + 57 END + COUNT ( * ) ELSE - 88 END
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT DISTINCT - SUM( - 45 ) + - 41 + 19
----
23

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT - SUM ( - 45 ) + - 41 + 19
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1843
SELECT ALL + 25 - ( - 3 ) * 85 DIV - SUM( ALL + 69 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + 25 - ( - 3 ) * 85 / - SUM ( ALL + 69 ) AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT ALL - CAST( 10 AS SIGNED ) - + 95 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL - CAST ( 10 AS INTEGER ) - + 95 AS col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1845
SELECT 19 + - - NULLIF ( + 21, + + COALESCE ( + NULLIF ( - ( - 56 ), - 5 * + 32 + COALESCE ( + 42, + + 87 ) ), + 76, - CAST( NULL AS SIGNED ) + + 66 * + - 63 + 30 / - - CAST( NULL AS SIGNED ) ) ) col2, - CASE - 72 WHEN 78 * + NULLIF ( - + COUNT( * ), 78 ) - - - 94 + + MIN( DISTINCT 23 ) / + 53 THEN - 17 END AS col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-1845
SELECT 19 + - - NULLIF ( + 21, + + COALESCE ( + NULLIF ( - ( - 56 ), - 5 * + 32 + COALESCE ( + 42, + + 87 ) ), + 76, - CAST ( NULL AS INTEGER ) + + 66 * + - 63 + 30 / - - CAST ( NULL AS INTEGER ) ) ) col2, - CASE - 72 WHEN 78 * + NULLIF ( - + COUNT ( * ), 78 ) - - - 94 + + MIN ( DISTINCT 23 ) / + 53 THEN - 17 END AS col0
----
40
NULL

query I rowsort
SELECT 22 * + 57 AS col0
----
1254

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

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

query II rowsort
SELECT 9 + 38 AS col2, 56 + - 79 AS col2
----
47
-23

query I rowsort
SELECT 12 * 39 * + 56 col1
----
26208

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

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

query I rowsort
SELECT ALL + CASE 17 WHEN + 56 THEN + - 24 + - 62 END * + 73 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT 18 + + ( + 1 ) * - - 39 DIV - 86 - - + 80 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1852
SELECT 18 + + ( + 1 ) * - - 39 / - 86 - - + 80 AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1853
SELECT ALL MAX( ALL - + 44 ) DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL MAX ( ALL - + 44 ) / 74 AS col1
----
0

query I rowsort
SELECT - 32 * 37 + - - 71 * - 53
----
-4947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT 85 * - 17 + + ( - + 13 ) * + + 96 * 12 * + 35 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1855
SELECT 85 * - 17 + + ( - + 13 ) * + + 96 * 12 * + 35 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1856
SELECT - 20 * 35 * - 85 * - - 34 * + - 14 * - 78 / - 61 + - 68 + + 62 + + 60 * COUNT( DISTINCT 41 ) + MIN( 5 ) * + ( - - 1 ) + 18 * - CASE CAST( - - 12 AS SIGNED ) WHEN + 49 THEN - 48 WHEN CAST( + COUNT( * ) AS SIGNED ) THEN - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT - 20 * 35 * - 85 * - - 34 * + - 14 * - 78 / - 61 + - 68 + + 62 + + 60 * COUNT ( DISTINCT 41 ) + MIN ( 5 ) * + ( - - 1 ) + 18 * - CASE CAST ( - - 12 AS INTEGER ) WHEN + 49 THEN - 48 WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN - 47 END
----
NULL

query I rowsort
SELECT ALL - + 49 * + - 24
----
1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT + - COUNT( + - NULLIF ( CAST( - 77 AS SIGNED ), 64 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1858
SELECT + - COUNT ( + - NULLIF ( CAST ( - 77 AS INTEGER ), 64 ) ) AS col2
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT + + 21 * + + 35 + + + 35 * + ( - CAST( NULL AS SIGNED ) ) * + ( - + 44 ) * - + 45 * 22 * 10 * - CASE + 43 WHEN + - 37 / + 13 THEN COALESCE ( - + 34, 99 ) WHEN + 96 THEN NULL WHEN CASE - - 60 WHEN + ( - 56 ) + + COUNT( * ) THEN NULL ELSE - - ( + CAST( - + CAST( + 95 AS SIGNED ) AS SIGNED ) ) END THEN + 36 END + + COUNT( DISTINCT - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT + + 21 * + + 35 + + + 35 * + ( - CAST ( NULL AS INTEGER ) ) * + ( - + 44 ) * - + 45 * 22 * 10 * - CASE + 43 WHEN + - 37 / + 13 THEN COALESCE ( - + 34, 99 ) WHEN + 96 THEN NULL WHEN CASE - - 60 WHEN + ( - 56 ) + + COUNT ( * ) THEN NULL ELSE - - ( + CAST ( - + CAST ( + 95 AS INTEGER ) AS INTEGER ) ) END THEN + 36 END + + COUNT ( DISTINCT - 11 )
----
NULL

query I rowsort
SELECT NULLIF ( + - 12, + + 98 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL - - MIN( ALL - 69 ) + - - 41 + - 6 + + 76 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - - MIN ( ALL - 69 ) + - - 41 + - 6 + + 76 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1863
SELECT ALL 68 + 45 + 22 * + - 93 * 32 * + 99 * CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL 68 + 45 + 22 * + - 93 * 32 * + 99 * CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 69 * 76 * - 29
----
152076

query I rowsort
SELECT ALL + - 32 + - - 5
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL + ( - + CAST( + 47 AS SIGNED ) ) + + 54 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + ( - + CAST ( + 47 AS INTEGER ) ) + + 54 AS col1
----
7

query I rowsort
SELECT - NULLIF ( - 97, 94 ) AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1868
SELECT COUNT( * ) - + + COUNT( * ), COUNT( * ) * - COUNT( * ) DIV + 92
----
0
0

skipif mysql # not compatible
query II rowsort label-1868
SELECT COUNT ( * ) - + + COUNT ( * ), COUNT ( * ) * - COUNT ( * ) / + 92
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1869
SELECT - CAST( + - 62 AS SIGNED ) + + COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1869
SELECT - CAST ( + - 62 AS INTEGER ) + + COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1870
SELECT MIN( + + 62 ) - - 50 + - ( - 32 ) DIV 98 - - 8 * - 77
----
-504

skipif mysql # not compatible
query I rowsort label-1870
SELECT MIN ( + + 62 ) - - 50 + - ( - 32 ) / 98 - - 8 * - 77
----
-504

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

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

query I rowsort
SELECT ALL 26 + 68
----
94

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1875
SELECT 61, + 50 * + CASE - 88 WHEN + - COUNT( - 68 ) + + CASE - COUNT( * ) WHEN + + 38 + + NULLIF ( - 86, + 9 * + 78 + + + 54 / - CAST( NULL AS SIGNED ) + - 52 * + 90 ) + CAST( NULL AS SIGNED ) + 8 THEN - + MIN( DISTINCT + 67 ) WHEN + - 42 * + 91 THEN NULL END - + - 3 THEN NULL ELSE + ( - 92 ) END * - 1 AS col2
----
61
4600

skipif mysql # not compatible
query II rowsort label-1875
SELECT 61, + 50 * + CASE - 88 WHEN + - COUNT ( - 68 ) + + CASE - COUNT ( * ) WHEN + + 38 + + NULLIF ( - 86, + 9 * + 78 + + + 54 / - CAST ( NULL AS INTEGER ) + - 52 * + 90 ) + CAST ( NULL AS INTEGER ) + 8 THEN - + MIN ( DISTINCT + 67 ) WHEN + - 42 * + 91 THEN NULL END - + - 3 THEN NULL ELSE + ( - 92 ) END * - 1 AS col2
----
61
4600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1876
SELECT ALL ( MAX( DISTINCT 37 ) ) DIV - + 1
----
-37

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL ( MAX ( DISTINCT 37 ) ) / - + 1
----
-37

query I rowsort
SELECT ( + + 53 ) * + - 54 + + 79 + + 72 AS col2
----
-2711

query II rowsort
SELECT ALL 54 AS col0, ( - - 85 ) + + - COALESCE ( + 29, + + 21 - - + 38 ) * + ( 39 )
----
54
-1046

query I rowsort
SELECT NULLIF ( + ( - + 11 ), - + 46 ) + + 35
----
24

query I rowsort
SELECT DISTINCT - 6 * + 43 - - 20
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT CASE 95 WHEN - COALESCE ( - 60, + COUNT( * ) + - 86 + - ( - - 61 ) + - + 84 * - 62 ) * 28 - - AVG ( DISTINCT + 77 ) THEN - 54 * + - 60 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT CASE 95 WHEN - COALESCE ( - 60, + COUNT ( * ) + - 86 + - ( - - 61 ) + - + 84 * - 62 ) * 28 - - AVG ( DISTINCT + 77 ) THEN - 54 * + - 60 END AS col0
----
NULL

query II rowsort
SELECT ALL - 67 AS col2, 42 AS col1
----
-67
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT COUNT( * ) * - + 32 * + - 12 AS col1
----
384

skipif mysql # not compatible
query I rowsort label-1883
SELECT COUNT ( * ) * - + 32 * + - 12 AS col1
----
384

query I rowsort
SELECT CASE - 6 WHEN - 46 + - 88 THEN NULL WHEN - + 76 THEN - 76 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1885
SELECT CASE + + 43 WHEN + 99 + - + 4 - 36 * - ( CAST( - + 12 AS SIGNED ) ) / + + MAX( - 62 ) THEN + AVG ( + 5 ) / - 88 END AS col0, + 31 AS col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-1885
SELECT CASE + + 43 WHEN + 99 + - + 4 - 36 * - ( CAST ( - + 12 AS INTEGER ) ) / + + MAX ( - 62 ) THEN + AVG ( + 5 ) / - 88 END AS col0, + 31 AS col1
----
NULL
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT DISTINCT ( - 77 ) * - 33, 62 * 19 * + COUNT( * ) + + - ( + + 2 ) AS col2
----
2541
1176

skipif mysql # not compatible
query II rowsort label-1886
SELECT DISTINCT ( - 77 ) * - 33, 62 * 19 * + COUNT ( * ) + + - ( + + 2 ) AS col2
----
2541
1176

onlyif mysql # aggregate syntax: 
query II rowsort label-1887
SELECT ALL COUNT( * ) * - COUNT( - 36 ) col0, + 26 + - 30 + + - ( 21 ) AS col0
----
-1
-25

skipif mysql # not compatible
query II rowsort label-1887
SELECT ALL COUNT ( * ) * - COUNT ( - 36 ) col0, + 26 + - 30 + + - ( 21 ) AS col0
----
-1
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT SUM( + - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-1888
SELECT SUM ( + - 80 )
----
-80

query I rowsort
SELECT ALL + CASE + 86 WHEN - + ( - 44 ) THEN - 29 END
----
NULL

query II rowsort
SELECT + 2 AS col0, - 98 AS col1
----
2
-98

query I rowsort
SELECT - 55 * - + 85 * 71
----
331925

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

query I rowsort
SELECT ALL - 79 + - 62
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT DISTINCT 82 DIV + 30 col2
----
2

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT 82 / + 30 col2
----
2

query I rowsort
SELECT - + 9 + + + 12 AS col1
----
3

query I rowsort
SELECT DISTINCT + 40 * - 61 - 96 * - + 45
----
1880

onlyif mysql # DIV for integer division: 
query I rowsort label-1897
SELECT - - 34 * 24 DIV + 64 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1897
SELECT - - 34 * 24 / + 64 AS col0
----
12

query I rowsort
SELECT ALL + 29 + + + 7
----
36

query I rowsort
SELECT - NULLIF ( + 53, 38 ) - 14
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT - NULLIF ( 9, + + MIN( ALL 73 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-1900
SELECT - NULLIF ( 9, + + MIN ( ALL 73 ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT - 2 + + 89 * + 28 * - 90 * + - 87 + + 61 + COUNT( * )
----
19512420

skipif mysql # not compatible
query I rowsort label-1901
SELECT - 2 + + 89 * + 28 * - 90 * + - 87 + + 61 + COUNT ( * )
----
19512420

query I rowsort
SELECT + + 44 * + + 97 + - 28
----
4240

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

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

query I rowsort
SELECT - - 82 + 97
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL ( - COALESCE ( + 63, - ( + CASE AVG ( ALL NULLIF ( 90, + 41 ) ) WHEN - COUNT( * ) THEN + 8 END ) ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL ( - COALESCE ( + 63, - ( + CASE AVG ( ALL NULLIF ( 90, + 41 ) ) WHEN - COUNT ( * ) THEN + 8 END ) ) ) AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT - CAST( NULL AS SIGNED ) + 70 * 14 * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT - CAST ( NULL AS INTEGER ) + 70 * 14 * - 6
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1907
SELECT ALL + 70 - 2 DIV - 18 + + 17 AS col1, 40
----
87
40

skipif mysql # not compatible
query II rowsort label-1907
SELECT ALL + 70 - 2 / - 18 + + 17 AS col1, 40
----
87
40

query I rowsort
SELECT - 2 * - 50
----
100

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

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

query I rowsort
SELECT DISTINCT + 26 * + 69
----
1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1911
SELECT - CASE - - 20 WHEN + 58 + - - MAX( - 91 ) THEN + 17 WHEN 51 DIV - 20 * - COUNT( * ) * - 26 + + + 88 - - 9 + - 26 * CASE + + ( - + 40 ) WHEN - 16 * - ( - - 12 ) + - COALESCE ( + 92, + 95 - + CASE COUNT( * ) WHEN + 23 + - 32 THEN NULL ELSE - NULLIF ( + - 35, + - 39 * + 52 ) + + 60 DIV + 91 END + 48, + 35 ) THEN - 58 * - 90 ELSE + MIN( DISTINCT + 61 ) + ( 52 - + 91 * 89 ) * 72 END * 38 + - CAST( NULL AS SIGNED ) * - CAST( - ( 80 ) + - 67 AS SIGNED ) THEN NULL WHEN - COUNT( * ) + - CAST( NULL AS SIGNED ) THEN 22 + COUNT( * ) DIV 31 ELSE + CAST( + CAST( - COUNT( * ) AS DECIMAL ) AS SIGNED ) END
----
1

skipif mysql # not compatible
query I rowsort label-1911
SELECT - CASE - - 20 WHEN + 58 + - - MAX ( - 91 ) THEN + 17 WHEN 51 / - 20 * - COUNT ( * ) * - 26 + + + 88 - - 9 + - 26 * CASE + + ( - + 40 ) WHEN - 16 * - ( - - 12 ) + - COALESCE ( + 92, + 95 - + CASE COUNT ( * ) WHEN + 23 + - 32 THEN NULL ELSE - NULLIF ( + - 35, + - 39 * + 52 ) + + 60 / + 91 END + 48, + 35 ) THEN - 58 * - 90 ELSE + MIN ( DISTINCT + 61 ) + ( 52 - + 91 * 89 ) * 72 END * 38 + - CAST ( NULL AS INTEGER ) * - CAST ( - ( 80 ) + - 67 AS INTEGER ) THEN NULL WHEN - COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN 22 + COUNT ( * ) / 31 ELSE + CAST ( + CAST ( - COUNT ( * ) AS REAL ) AS INTEGER ) END
----
1

query I rowsort
SELECT + 55 + 20
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT - 66 * - + CAST( + 91 AS SIGNED )
----
6006

skipif mysql # not compatible
query I rowsort label-1913
SELECT - 66 * - + CAST ( + 91 AS INTEGER )
----
6006

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1914
SELECT - 84 + + 12 * 92 + - 28 + + CAST( - 99 AS SIGNED ) DIV - 82 + + CAST( + 32 AS SIGNED ) AS col1
----
1025

skipif mysql # not compatible
query I rowsort label-1914
SELECT - 84 + + 12 * 92 + - 28 + + CAST ( - 99 AS INTEGER ) / - 82 + + CAST ( + 32 AS INTEGER ) AS col1
----
1025

onlyif mysql # aggregate syntax: 
query II rowsort label-1915
SELECT - 60 + + + ( + CASE + 93 WHEN 65 + - - COUNT( * ) THEN - 53 END ) / - COALESCE ( + 90, + COUNT( * ) * + 71 * + 96 + + 83 + + 16 ), + COUNT( * ) - - + ( 13 ) + + 79 + + 38 * - + 37 * COUNT( * ) AS col0
----
NULL
-1313

skipif mysql # not compatible
query II rowsort label-1915
SELECT - 60 + + + ( + CASE + 93 WHEN 65 + - - COUNT ( * ) THEN - 53 END ) / - COALESCE ( + 90, + COUNT ( * ) * + 71 * + 96 + + 83 + + 16 ), + COUNT ( * ) - - + ( 13 ) + + 79 + + 38 * - + 37 * COUNT ( * ) AS col0
----
NULL
-1313

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1916
SELECT ALL 48 DIV - COUNT( * ), - 38 * 4 DIV 52 AS col1
----
-48
-2

skipif mysql # not compatible
query II rowsort label-1916
SELECT ALL 48 / - COUNT ( * ), - 38 * 4 / 52 AS col1
----
-48
-2

query I rowsort
SELECT + 12 * - - 40 * + 14
----
6720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1918
SELECT ALL + CAST( - + 12 AS SIGNED ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL + CAST ( - + 12 AS INTEGER ) AS col0
----
-12

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

query I rowsort
SELECT - 0 * + 45 AS col0
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT + 65 * + 58 + + CAST( NULL AS SIGNED ) + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT + 65 * + 58 + + CAST ( NULL AS INTEGER ) + - 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT - COUNT( * ) * - 28 + - 21 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1924
SELECT - COUNT ( * ) * - 28 + - 21 AS col2
----
7

query I rowsort
SELECT ALL 69 * - - 76 + - 21 * 84 + + 9
----
3489

query I rowsort
SELECT + - ( - 82 ) + 62 AS col2
----
144

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1928
SELECT DISTINCT + + CAST( + 69 AS SIGNED ), - COALESCE ( + + ( 9 ), + 91 * + COUNT( ALL 41 ) + - NULLIF ( 89, + 55 + - 16 * - + 90 * ( - 82 ) ), + + CAST( CASE + 51 WHEN + - 60 THEN + - 49 * - ( + - 7 ) - NULLIF ( - 25, + 88 ) * + - COALESCE ( - 36, 31 ) WHEN + COALESCE ( - NULLIF ( 8, ( 58 ) + + 16 ), + CAST( NULL AS DECIMAL ) / 92 ) * 74 THEN NULL WHEN 32 THEN 6 ELSE 58 * - 40 END AS SIGNED ) ) AS col0
----
69
-9

skipif mysql # not compatible
query II rowsort label-1928
SELECT DISTINCT + + CAST ( + 69 AS INTEGER ), - COALESCE ( + + ( 9 ), + 91 * + COUNT ( ALL 41 ) + - NULLIF ( 89, + 55 + - 16 * - + 90 * ( - 82 ) ), + + CAST ( CASE + 51 WHEN + - 60 THEN + - 49 * - ( + - 7 ) - NULLIF ( - 25, + 88 ) * + - COALESCE ( - 36, 31 ) WHEN + COALESCE ( - NULLIF ( 8, ( 58 ) + + 16 ), + CAST ( NULL AS REAL ) / 92 ) * 74 THEN NULL WHEN 32 THEN 6 ELSE 58 * - 40 END AS INTEGER ) ) AS col0
----
69
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT DISTINCT + 83 * - COUNT( * ) + - + CASE 18 WHEN 46 * + - 58 - 58 THEN NULL ELSE + - 83 * 34 END * 99
----
279295

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT + 83 * - COUNT ( * ) + - + CASE 18 WHEN 46 * + - 58 - 58 THEN NULL ELSE + - 83 * 34 END * 99
----
279295

query I rowsort
SELECT + + 50 col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT - ( + + 12 ) + - 58 - - 60 * - MAX( + NULLIF ( + + ( - + 16 ), + 82 ) )
----
890

skipif mysql # not compatible
query I rowsort label-1931
SELECT - ( + + 12 ) + - 58 - - 60 * - MAX ( + NULLIF ( + + ( - + 16 ), + 82 ) )
----
890

query II rowsort
SELECT ALL 77 * 86 * 13 + - 94 AS col0, - 34
----
85992
-34

query I rowsort
SELECT + - 86 * + 34
----
-2924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1934
SELECT - - CASE CASE + + 22 WHEN COUNT( * ) * 82 THEN - 81 / - 25 * - - 37 * ( + + NULLIF ( + - ( + 95 ), 53 + 73 ) ) + 70 WHEN + 65 + 70 THEN NULL END WHEN + + AVG ( - 14 ) THEN + CAST( NULL AS SIGNED ) END * - + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT - - CASE CASE + + 22 WHEN COUNT ( * ) * 82 THEN - 81 / - 25 * - - 37 * ( + + NULLIF ( + - ( + 95 ), 53 + 73 ) ) + 70 WHEN + 65 + 70 THEN NULL END WHEN + + AVG ( - 14 ) THEN + CAST ( NULL AS INTEGER ) END * - + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + SUM( + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-1935
SELECT + SUM ( + 23 )
----
23

query I rowsort
SELECT ALL - 2 * - 39
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1937
SELECT DISTINCT 56 DIV 11 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT 56 / 11 AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT ALL - 11 * + - CAST( NULL AS SIGNED ) - - 72 * NULLIF ( - 94, + + 42 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL - 11 * + - CAST ( NULL AS INTEGER ) - - 72 * NULLIF ( - 94, + + 42 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT - CASE + 18 WHEN - COUNT( * ) THEN NULL WHEN 56 THEN ( + + CASE + - 10 WHEN - ( + + 12 ) THEN 1 + + + SUM( 99 ) ELSE - + 60 END ) ELSE NULL END * - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT - CASE + 18 WHEN - COUNT ( * ) THEN NULL WHEN 56 THEN ( + + CASE + - 10 WHEN - ( + + 12 ) THEN 1 + + + SUM ( 99 ) ELSE - + 60 END ) ELSE NULL END * - + COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + COUNT ( * ) * - - 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT + COUNT( * ) * + 33 * - NULLIF ( + COUNT( * ), + COUNT( * ) + - 70 * - - 8 * - 86 + - COUNT( * ) * 46 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-1941
SELECT + COUNT ( * ) * + 33 * - NULLIF ( + COUNT ( * ), + COUNT ( * ) + - 70 * - - 8 * - 86 + - COUNT ( * ) * 46 ) AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1942
SELECT + CAST( + 85 AS SIGNED ) + + + 82 + - - 24 - - - 61 DIV + MIN( ALL - 73 )
----
191

skipif mysql # not compatible
query I rowsort label-1942
SELECT + CAST ( + 85 AS INTEGER ) + + + 82 + - - 24 - - - 61 / + MIN ( ALL - 73 )
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT - 96 + + + 73 - COALESCE ( + - 54, + ( - MAX( ALL + ( - + ( + 99 ) ) ) ) ) * + 46 AS col2
----
2461

skipif mysql # not compatible
query I rowsort label-1943
SELECT - 96 + + + 73 - COALESCE ( + - 54, + ( - MAX ( ALL + ( - + ( + 99 ) ) ) ) ) * + 46 AS col2
----
2461

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT - 43 - + ( + 8 ) * ( COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-1945
SELECT - 43 - + ( + 8 ) * ( COUNT ( * ) )
----
-51

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

query I rowsort
SELECT 21 - + 41
----
-20

query I rowsort
SELECT ALL + 68 + - 90
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1949
SELECT ALL 24 + CAST( NULL AS DECIMAL ) * 70 + - 88 * + 67, 62 AS col2
----
NULL
62

skipif mysql # not compatible
query II rowsort label-1949
SELECT ALL 24 + CAST ( NULL AS REAL ) * 70 + - 88 * + 67, 62 AS col2
----
NULL
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT 27 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-1950
SELECT 27 / - 55
----
0

query I rowsort
SELECT 63 * - 44 AS col1
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT + SUM( + + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-1952
SELECT + SUM ( + + 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL + - 29 + + 5 + + ( ( + + 39 ) ) + - COUNT( + 84 ) * 26 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + - 29 + + 5 + + ( ( + + 39 ) ) + - COUNT ( + 84 ) * 26 AS col0
----
-11

query I rowsort
SELECT ALL - 53 * + + 59 col1
----
-3127

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT 93 DIV - 11
----
-8

skipif mysql # not compatible
query I rowsort label-1955
SELECT 93 / - 11
----
-8

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT ALL + + COUNT( * ) + ( + + 48 ), - 78 * - + 21 AS col0
----
49
1638

skipif mysql # not compatible
query II rowsort label-1957
SELECT ALL + + COUNT ( * ) + ( + + 48 ), - 78 * - + 21 AS col0
----
49
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT + 13 * - 49 + - - COUNT( * ) * - 68
----
-705

skipif mysql # not compatible
query I rowsort label-1958
SELECT + 13 * - 49 + - - COUNT ( * ) * - 68
----
-705

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

query I rowsort
SELECT 19 + - - 47
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1961
SELECT 62 * - MAX( DISTINCT 36 ) * 1 DIV - 4
----
558

skipif mysql # not compatible
query I rowsort label-1961
SELECT 62 * - MAX ( DISTINCT 36 ) * 1 / - 4
----
558

onlyif mysql # aggregate syntax: 
query II rowsort label-1962
SELECT - COUNT( * ), - 80 + COUNT( * ) col0
----
-1
-79

skipif mysql # not compatible
query II rowsort label-1962
SELECT - COUNT ( * ), - 80 + COUNT ( * ) col0
----
-1
-79

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

skipif mysql # not compatible
query I rowsort label-1963
SELECT MAX ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT COUNT( * ) * - 91 - + 11 + 93 + - - ( 59 )
----
50

skipif mysql # not compatible
query I rowsort label-1964
SELECT COUNT ( * ) * - 91 - + 11 + 93 + - - ( 59 )
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-1965
SELECT ALL - ( + - ( - COUNT( * ) ) ) col1, 54 + 12 AS col1
----
-1
66

skipif mysql # not compatible
query II rowsort label-1965
SELECT ALL - ( + - ( - COUNT ( * ) ) ) col1, 54 + 12 AS col1
----
-1
66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT - 20 + 87 + + 84 + - - COALESCE ( - 91, 72 + 79 ) DIV 45 AS col0
----
149

skipif mysql # not compatible
query I rowsort label-1967
SELECT - 20 + 87 + + 84 + - - COALESCE ( - 91, 72 + 79 ) / 45 AS col0
----
149

query I rowsort
SELECT DISTINCT 50 * - 73 col0
----
-3650

query II rowsort
SELECT - 84 AS col2, - 88 AS col1
----
-84
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1970
SELECT 87 + - CAST( NULL AS SIGNED ) * + + COUNT( - 41 ) / ( + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT 87 + - CAST ( NULL AS INTEGER ) * + + COUNT ( - 41 ) / ( + 31 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT 93 * + - COUNT( DISTINCT - 24 ) * - 16 AS col1
----
1488

skipif mysql # not compatible
query I rowsort label-1971
SELECT 93 * + - COUNT ( DISTINCT - 24 ) * - 16 AS col1
----
1488

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

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

query I rowsort
SELECT 32 + 6 + 60 * + 42 * 52 - 52 * 33 AS col0
----
129362

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1974
SELECT 41 + + CAST( NULL AS DECIMAL ) + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT 41 + + CAST ( NULL AS REAL ) + 83 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL COUNT ( * ) / + 93 * + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT COUNT( * ) + + 46 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1976
SELECT COUNT ( * ) + + 46 AS col1
----
47

query II rowsort
SELECT DISTINCT 0 AS col2, - 81 AS col2
----
0
-81

query I rowsort
SELECT 22 + 46 + + 8
----
76

query II rowsort
SELECT ALL 4 AS col1, + 20 * + 17 + - 14 + + 34 AS col0
----
4
360

query I rowsort
SELECT ALL 43 + + - 54 AS col0
----
-11

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

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL COUNT ( * ) + 46 AS col0
----
47

query II rowsort
SELECT 9, + ( + 44 ) AS col2
----
9
44

query II rowsort
SELECT ALL 15 AS col2, 92 col1
----
15
92

query I rowsort
SELECT 18 + - + 54 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1985
SELECT COALESCE ( - 2, 54, - 79 + + + 16 ) * COUNT( * ) AS col1, + 15 * + 96
----
-2
1440

skipif mysql # not compatible
query II rowsort label-1985
SELECT COALESCE ( - 2, 54, - 79 + + + 16 ) * COUNT ( * ) AS col1, + 15 * + 96
----
-2
1440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT - MIN( ALL + 60 ) * 72 AS col2
----
-4320

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT - MIN ( ALL + 60 ) * 72 AS col2
----
-4320

query I rowsort
SELECT 16 + + - ( - ( - - 23 ) )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1989
SELECT ALL 71 AS col0, + CAST( NULL AS SIGNED ) AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-1989
SELECT ALL 71 AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
71
NULL

query I rowsort
SELECT DISTINCT + 24 * - 85
----
-2040

onlyif mysql # DIV for integer division: 
query I rowsort label-1991
SELECT 97 DIV 47 + - - 11 + - 30 col0
----
-17

skipif mysql # not compatible
query I rowsort label-1991
SELECT 97 / 47 + - - 11 + - 30 col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT DISTINCT - 82 * + - COUNT( * ) * - - COUNT( * ) + - - 69 + 74 * - + 21 AS col2
----
-1403

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT - 82 * + - COUNT ( * ) * - - COUNT ( * ) + - - 69 + 74 * - + 21 AS col2
----
-1403

query I rowsort
SELECT + 1 * + COALESCE ( - - 14, + 72 + + 21 + + 61 ) AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1994
SELECT ALL - COUNT( * ) AS col0, SUM( - + 87 ) DIV + 5 + 39 + + - 20 AS col2
----
-1
2

skipif mysql # not compatible
query II rowsort label-1994
SELECT ALL - COUNT ( * ) AS col0, SUM ( - + 87 ) / + 5 + 39 + + - 20 AS col2
----
-1
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT - 10 + - ( + COUNT( * ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1996
SELECT - 10 + - ( + COUNT ( * ) ) AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1997
SELECT - COUNT( * ) DIV - 32 + 71 - + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-1997
SELECT - COUNT ( * ) / - 32 + 71 - + - COUNT ( * )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1998
SELECT - - 3 * - - CAST( - NULLIF ( - COUNT( * ), + ( - + CASE + 6 WHEN + - 27 THEN NULL ELSE + ( + COUNT( * ) ) END ) * + 41 + - ( COUNT( * ) ) ) AS SIGNED ) + 14 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1998
SELECT - - 3 * - - CAST ( - NULLIF ( - COUNT ( * ), + ( - + CASE + 6 WHEN + - 27 THEN NULL ELSE + ( + COUNT ( * ) ) END ) * + 41 + - ( COUNT ( * ) ) ) AS INTEGER ) + 14 AS col2
----
17

query I rowsort
SELECT ALL - - NULLIF ( - - 33, + 6 )
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL + COUNT( * ) * + ( + + 31 ) * COUNT( DISTINCT ( - 23 ) ) - + + 5
----
26

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL + COUNT ( * ) * + ( + + 31 ) * COUNT ( DISTINCT ( - 23 ) ) - + + 5
----
26

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

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

query I rowsort
SELECT ALL - ( - + 57 ) col1
----
57

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

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

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

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

query I rowsort
SELECT 87 * - 76 * + - 35 AS col0
----
231420

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2007
SELECT COALESCE ( - - 7, - 99 ) + + COUNT( * ) + + 86 col1, 13 DIV + 24 AS col0
----
94
0

skipif mysql # not compatible
query II rowsort label-2007
SELECT COALESCE ( - - 7, - 99 ) + + COUNT ( * ) + + 86 col1, 13 / + 24 AS col0
----
94
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2008
SELECT 93 DIV - 49, - CAST( COUNT( ALL - 71 ) AS SIGNED )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-2008
SELECT 93 / - 49, - CAST ( COUNT ( ALL - 71 ) AS INTEGER )
----
-1
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT - MIN( + 30 ) AS col0, + 95 + - 23
----
-30
72

skipif mysql # not compatible
query II rowsort label-2010
SELECT - MIN ( + 30 ) AS col0, + 95 + - 23
----
-30
72

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

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT COUNT ( DISTINCT + + 97 ) * 4 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT DISTINCT + COUNT( - 76 ) + + + CAST( - - 35 AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT + COUNT ( - 76 ) + + + CAST ( - - 35 AS INTEGER ) AS col0
----
36

query I rowsort
SELECT + 37 * 19
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT COUNT( 9 ) * COUNT( * ) + - 54 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT COUNT ( 9 ) * COUNT ( * ) + - 54 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL 84 + + 25 + + 61 * - COUNT( + CASE - 89 WHEN + ( + 39 ) THEN + 77 END ) * - 29 * 60
----
109

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL 84 + + 25 + + 61 * - COUNT ( + CASE - 89 WHEN + ( + 39 ) THEN + 77 END ) * - 29 * 60
----
109

query I rowsort
SELECT DISTINCT 54 + - 7 AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2017
SELECT + 60 + 33 - - NULLIF ( + 76, 6 - - 2 - 48 ) + + 11 DIV 63 AS col2
----
169

skipif mysql # not compatible
query I rowsort label-2017
SELECT + 60 + 33 - - NULLIF ( + 76, 6 - - 2 - 48 ) + + 11 / 63 AS col2
----
169

query I rowsort
SELECT + 83 + + 58 + - + 38 AS col0
----
103

query I rowsort
SELECT ALL 89 + 24 + - 57 + + 96 col2
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2020
SELECT - MAX( ALL - + CASE + 59 WHEN - 9 THEN NULL WHEN - 77 * CAST( 82 AS SIGNED ) + - - CAST( - 20 AS SIGNED ) THEN NULL WHEN - + 0 THEN 98 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT - MAX ( ALL - + CASE + 59 WHEN - 9 THEN NULL WHEN - 77 * CAST ( 82 AS INTEGER ) + - - CAST ( - 20 AS INTEGER ) THEN NULL WHEN - + 0 THEN 98 END )
----
NULL

query II rowsort
SELECT + 30 - 98, 29 col2
----
-68
29

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

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

query II rowsort
SELECT ALL + ( + 1 ) - + 17, 90 AS col0
----
-16
90

query I rowsort
SELECT - - ( - NULLIF ( 41, + 72 ) ) * 38 * 17 AS col0
----
-26486

query I rowsort
SELECT ALL 55 * + 32 * + ( - - 66 ) AS col1
----
116160

onlyif mysql # aggregate syntax: 
query II rowsort label-2026
SELECT DISTINCT NULLIF ( + MAX( - 18 ), - 23 * + 86 ), 87 col2
----
-18
87

skipif mysql # not compatible
query II rowsort label-2026
SELECT DISTINCT NULLIF ( + MAX ( - 18 ), - 23 * + 86 ), 87 col2
----
-18
87

query I rowsort
SELECT ALL - + ( + 22 ) * + + 3 AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT + 52 / - CAST( - CASE NULLIF ( - + 42, + 5 ) WHEN + 87 THEN 70 * + 81 WHEN + COUNT( * ) THEN NULL ELSE NULL END AS SIGNED ) * 41 - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT + 52 / - CAST ( - CASE NULLIF ( - + 42, + 5 ) WHEN + 87 THEN 70 * + 81 WHEN + COUNT ( * ) THEN NULL ELSE NULL END AS INTEGER ) * 41 - - 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2029
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col1, + 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-2029
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1, + 21
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT + ( + + ( 62 ) ) * - + AVG ( DISTINCT + 69 ) + - 53 + - - 75 * + SUM( ALL - 67 ) - + COUNT( * ) - - 88 + - CASE 55 WHEN + + NULLIF ( + ( - 36 ), 53 ) THEN ( + SUM( ALL + + 54 ) ) ELSE NULL END * + - CASE - 78 WHEN COUNT( * ) * + 53 + 75 / + 25 + - 56 - ( - - 59 ) THEN - - 3 WHEN + - 81 / + + 80 + + 83 THEN NULL ELSE - 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT + ( + + ( 62 ) ) * - + AVG ( DISTINCT + 69 ) + - 53 + - - 75 * + SUM ( ALL - 67 ) - + COUNT ( * ) - - 88 + - CASE 55 WHEN + + NULLIF ( + ( - 36 ), 53 ) THEN ( + SUM ( ALL + + 54 ) ) ELSE NULL END * + - CASE - 78 WHEN COUNT ( * ) * + 53 + 75 / + 25 + - 56 - ( - - 59 ) THEN - - 3 WHEN + - 81 / + + 80 + + 83 THEN NULL ELSE - 33 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2031
SELECT ALL + CASE 3 WHEN - + 98 THEN NULL WHEN + 44 + + MAX( - 53 ) * + 36 * + 89 THEN + NULLIF ( + 85, + 55 + - - COUNT( * ) ) * - 61 ELSE + + COUNT( DISTINCT 30 ) DIV - + 77 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL + CASE 3 WHEN - + 98 THEN NULL WHEN + 44 + + MAX ( - 53 ) * + 36 * + 89 THEN + NULLIF ( + 85, + 55 + - - COUNT ( * ) ) * - 61 ELSE + + COUNT ( DISTINCT 30 ) / - + 77 END AS col1
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT + COALESCE ( - COUNT( * ), - - ( MIN( + 20 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT + COALESCE ( - COUNT ( * ), - - ( MIN ( + 20 ) ) ) AS col2
----
-1

query I rowsort
SELECT + 20 * - 45 + + - 9
----
-909

query I rowsort
SELECT - 56 * 94 AS col2
----
-5264

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ALL + MIN( DISTINCT - 74 ) * - 77 * - COUNT( + 44 ) AS col1
----
-5698

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL + MIN ( DISTINCT - 74 ) * - 77 * - COUNT ( + 44 ) AS col1
----
-5698

query I rowsort
SELECT COALESCE ( - + 94, 24 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT NULLIF ( + + SUM( DISTINCT + + 59 ), - - 41 + + 52 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-2040
SELECT NULLIF ( + + SUM ( DISTINCT + + 59 ), - - 41 + + 52 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT 81 * - + 99 + - COALESCE ( COUNT( * ), + ( + COUNT( * ) ) ) + 37
----
-7983

skipif mysql # not compatible
query I rowsort label-2041
SELECT 81 * - + 99 + - COALESCE ( COUNT ( * ), + ( + COUNT ( * ) ) ) + 37
----
-7983

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

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

query I rowsort
SELECT - 20 + - - 37 col1
----
17

query I rowsort
SELECT - 96 + 12 * + + 53 * - 54 AS col1
----
-34440

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2045
SELECT - 90 - - + ( - CAST( NULL AS DECIMAL ) ) + - 33 / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT - 90 - - + ( - CAST ( NULL AS REAL ) ) + - 33 / - - COUNT ( * )
----
NULL

query I rowsort
SELECT + 25 * - 11 + - 93 + + 14 AS col0
----
-354

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

skipif mysql # not compatible
query II rowsort label-2047
SELECT COUNT ( * ) AS col1, - 92
----
1
-92

query I rowsort
SELECT + 42 + - 64
----
-22

query I rowsort
SELECT - 54 * + 66
----
-3564

onlyif mysql # aggregate syntax: 
query II rowsort label-2050
SELECT DISTINCT - ( + + MAX( 48 ) ) + COUNT( * ) AS col0, - 97 * + MAX( DISTINCT - 45 ) AS col0
----
-47
4365

skipif mysql # not compatible
query II rowsort label-2050
SELECT DISTINCT - ( + + MAX ( 48 ) ) + COUNT ( * ) AS col0, - 97 * + MAX ( DISTINCT - 45 ) AS col0
----
-47
4365

query II rowsort
SELECT ALL 42 * 49 * 98, + 72 col1
----
201684
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2052
SELECT - MIN( - CAST( NULL AS SIGNED ) ) col0
----
NULL

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

query I rowsort
SELECT ALL - 19 - - 50 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT ALL CASE + 18 WHEN + 95 + + 7 * - - ( + + COUNT( * ) ) + - CAST( - 53 AS SIGNED ) THEN NULL WHEN - + 5 / 46 * + 61 THEN 44 * + - 79 - - SUM( ALL - 40 ) END - - 16 * + - 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL CASE + 18 WHEN + 95 + + 7 * - - ( + + COUNT ( * ) ) + - CAST ( - 53 AS INTEGER ) THEN NULL WHEN - + 5 / 46 * + 61 THEN 44 * + - 79 - - SUM ( ALL - 40 ) END - - 16 * + - 45 col2
----
NULL

query II rowsort
SELECT - - 37 AS col1, 78 * - + 31 AS col2
----
37
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT - 9 + - 26 - - + COUNT( * ) * - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-2056
SELECT - 9 + - 26 - - + COUNT ( * ) * - COUNT ( * )
----
-36

query I rowsort
SELECT + 23 * - 5
----
-115

query II rowsort
SELECT - - 14 AS col2, 4 - - - 97
----
14
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2059
SELECT ALL CASE - 13 WHEN + 54 + - 69 / + 11 THEN + + MAX( ALL - - 93 ) * + - 85 + ( - + 13 ) ELSE NULL END - - + CAST( + COUNT( + 25 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL CASE - 13 WHEN + 54 + - 69 / + 11 THEN + + MAX ( ALL - - 93 ) * + - 85 + ( - + 13 ) ELSE NULL END - - + CAST ( + COUNT ( + 25 ) AS INTEGER )
----
NULL

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

query I rowsort
SELECT ALL + + COALESCE ( - + 31, - 4 ) col1
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2062
SELECT + ( - 89 ) DIV - - 35 + + + NULLIF ( + NULLIF ( + 98, + + 48 * - 19 + - 39 + + - 64 * - + MAX( + 63 ) * - + 91 + - 29 * - 68 + - + 72 ), + + 5 )
----
96

skipif mysql # not compatible
query I rowsort label-2062
SELECT + ( - 89 ) / - - 35 + + + NULLIF ( + NULLIF ( + 98, + + 48 * - 19 + - 39 + + - 64 * - + MAX ( + 63 ) * - + 91 + - 29 * - 68 + - + 72 ), + + 5 )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT ALL 56 DIV + 8 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL 56 / + 8 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT + 95 + 84 * ( + COUNT( * ) )
----
179

skipif mysql # not compatible
query I rowsort label-2064
SELECT + 95 + 84 * ( + COUNT ( * ) )
----
179

query I rowsort
SELECT ALL + 7 * + 18
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2066
SELECT + CASE + + CAST( + 69 AS SIGNED ) WHEN ( + + 9 ) THEN + - 0 * + CAST( NULL AS SIGNED ) * + 73 + 11 * + COUNT( * ) + - 97 + + COUNT( ALL 61 ) END / + 50 + - 32 + - + 61 + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT + CASE + + CAST ( + 69 AS INTEGER ) WHEN ( + + 9 ) THEN + - 0 * + CAST ( NULL AS INTEGER ) * + 73 + 11 * + COUNT ( * ) + - 97 + + COUNT ( ALL 61 ) END / + 50 + - 32 + - + 61 + - 5
----
NULL

query II rowsort
SELECT + - ( 9 ) * 82 AS col2, + 37 AS col1
----
-738
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2068
SELECT - 66 / + 39 * + + 2 + - CASE - ( 87 ) WHEN + 30 THEN NULL ELSE + 61 + + CASE - CAST( NULL AS SIGNED ) WHEN - + 6 * - SUM( DISTINCT CAST( 30 AS SIGNED ) ) THEN NULL WHEN CASE 58 WHEN COUNT( * ) + + 49 THEN NULL ELSE - ( - 66 ) END THEN NULL WHEN + 41 * + 82 THEN COALESCE ( + 3, - + COUNT( * ), - + 22 ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT - 66 / + 39 * + + 2 + - CASE - ( 87 ) WHEN + 30 THEN NULL ELSE + 61 + + CASE - CAST ( NULL AS INTEGER ) WHEN - + 6 * - SUM ( DISTINCT CAST ( 30 AS INTEGER ) ) THEN NULL WHEN CASE 58 WHEN COUNT ( * ) + + 49 THEN NULL ELSE - ( - 66 ) END THEN NULL WHEN + 41 * + 82 THEN COALESCE ( + 3, - + COUNT ( * ), - + 22 ) END END AS col1
----
NULL

query I rowsort
SELECT ALL - 22 + 54
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT + ( - 20 ) + COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT + ( - 20 ) + COUNT ( * ) AS col0
----
-19

query I rowsort
SELECT 31 * - 98 AS col2
----
-3038

query I rowsort
SELECT ALL + 49 + 56 + - 60 + + - 20
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL - MAX( DISTINCT + ( 39 ) ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL - MAX ( DISTINCT + ( 39 ) ) col2
----
-39

query I rowsort
SELECT 57 * + 68
----
3876

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL - ( - 31 ) + + + CASE - + MIN( ALL - - 58 ) WHEN - 73 / + 6 THEN 26 / 78 + - 6 + + + 79 * - 1 * + - ( + - 60 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - ( - 31 ) + + + CASE - + MIN ( ALL - - 58 ) WHEN - 73 / + 6 THEN 26 / 78 + - 6 + + + 79 * - 1 * + - ( + - 60 ) END
----
NULL

query I rowsort
SELECT DISTINCT - 32 * 79 AS col2
----
-2528

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT ALL 36 * - 21 * ( 81 ) * + COUNT( * )
----
-61236

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL 36 * - 21 * ( 81 ) * + COUNT ( * )
----
-61236

query II rowsort
SELECT 53 + - 69 + - 22 * - 60 AS col2, 54
----
1304
54

query I rowsort
SELECT DISTINCT - 5 - 91 * 19
----
-1734

query I rowsort
SELECT DISTINCT - ( - 43 ) * + 95
----
4085

query I rowsort
SELECT 72 * - 40 * 53
----
-152640

query II rowsort
SELECT 46 + 95 AS col2, + 40 * - 79
----
141
-3160

query I rowsort
SELECT + 63 + + 69 + 98 AS col0
----
230

onlyif mysql # DIV for integer division: 
query I rowsort label-2084
SELECT ALL - + 16 DIV 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL - + 16 / 75 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2085
SELECT CAST( - 56 AS SIGNED ) + - - 34 * - ( NULLIF ( CASE + 81 WHEN + CAST( + - ( MAX( - - 75 ) ) AS SIGNED ) THEN + 4 * - 91 + - 21 ELSE NULL END, 66 ) ) + + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT CAST ( - 56 AS INTEGER ) + - - 34 * - ( NULLIF ( CASE + 81 WHEN + CAST ( + - ( MAX ( - - 75 ) ) AS INTEGER ) THEN + 4 * - 91 + - 21 ELSE NULL END, 66 ) ) + + + 2 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT + 90 * - 38 * - COUNT( * )
----
3420

skipif mysql # not compatible
query I rowsort label-2087
SELECT + 90 * - 38 * - COUNT ( * )
----
3420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2088
SELECT DISTINCT - 30 * - - 0 DIV - - COUNT( * ) * - ( + 49 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT - 30 * - - 0 / - - COUNT ( * ) * - ( + 49 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2089
SELECT + 48 + - COUNT( * ) AS col1, 27 * - COUNT( * ) + - 40 col1, + - 84
----
47
-67
-84

skipif mysql # not compatible
query III rowsort label-2089
SELECT + 48 + - COUNT ( * ) AS col1, 27 * - COUNT ( * ) + - 40 col1, + - 84
----
47
-67
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT ALL - + 11 + - - 73 + + CAST( ( - - ( - - 50 ) ) AS SIGNED )
----
112

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL - + 11 + - - 73 + + CAST ( ( - - ( - - 50 ) ) AS INTEGER )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT - 69 + 91 * + - NULLIF ( + + 34, 77 * - 80 ) + 46 + - + COUNT( * ) + + 24 + 14 AS col2
----
-3080

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT - 69 + 91 * + - NULLIF ( + + 34, 77 * - 80 ) + 46 + - + COUNT ( * ) + + 24 + 14 AS col2
----
-3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT + CAST( NULL AS SIGNED ) * + - 42 * 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT + CAST ( NULL AS INTEGER ) * + - 42 * 65 AS col1
----
NULL

query I rowsort
SELECT 31 * - + 58 AS col0
----
-1798

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

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

query I rowsort
SELECT - - 75 * + 45 - + 57 col0
----
3318

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

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

query I rowsort
SELECT ALL 90 + 71
----
161

query I rowsort
SELECT 11 * + 45 AS col1
----
495

query I rowsort
SELECT ALL - 75 + + 8
----
-67

query I rowsort
SELECT DISTINCT 74 + - - 95 AS col1
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2101
SELECT ALL CAST( NULL AS SIGNED ) + + MAX( ALL + - 71 ) + 17 * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL CAST ( NULL AS INTEGER ) + + MAX ( ALL + - 71 ) + 17 * - 7
----
NULL

query I rowsort
SELECT ALL 3 + - 11
----
-8

query I rowsort
SELECT 38 * - 89 AS col0
----
-3382

query I rowsort
SELECT DISTINCT 26 * 67
----
1742

onlyif mysql # DIV for integer division: 
query I rowsort label-2105
SELECT 21 + + 25 + + - 23 * 0 DIV 78
----
46

skipif mysql # not compatible
query I rowsort label-2105
SELECT 21 + + 25 + + - 23 * 0 / 78
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2106
SELECT SUM( DISTINCT + - 48 ) DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2106
SELECT SUM ( DISTINCT + - 48 ) / + 99 AS col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT - 74 * - 69 + CAST( NULL AS SIGNED ) - + 17 * 28 * + - 45 * 13 / + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT - 74 * - 69 + CAST ( NULL AS INTEGER ) - + 17 * 28 * + - 45 * 13 / + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT 37 + COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2109
SELECT 37 + COUNT ( * ) AS col2
----
38

query I rowsort
SELECT DISTINCT 78 * + 93
----
7254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2111
SELECT ALL NULLIF ( + MAX( 41 ), COUNT( * ) + - COUNT( * ) + - 86 + - 47 ) * + - 47 + + 20 DIV COUNT( DISTINCT + ( + + 77 ) )
----
-1907

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL NULLIF ( + MAX ( 41 ), COUNT ( * ) + - COUNT ( * ) + - 86 + - 47 ) * + - 47 + + 20 / COUNT ( DISTINCT + ( + + 77 ) )
----
-1907

query I rowsort
SELECT 56 + - 54 AS col0
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ( - 91 ) + - 23 + + SUM( DISTINCT 7 ) - - + 97
----
-10

skipif mysql # not compatible
query I rowsort label-2114
SELECT ( - 91 ) + - 23 + + SUM ( DISTINCT 7 ) - - + 97
----
-10

query I rowsort
SELECT DISTINCT - NULLIF ( - ( - 36 ), + 61 + AVG ( + + 22 ) ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT 81 + - - MIN( DISTINCT + 6 ) + 50 * - 82 * + 76 * + 9 AS col2
----
-2804313

skipif mysql # not compatible
query I rowsort label-2116
SELECT 81 + - - MIN ( DISTINCT + 6 ) + 50 * - 82 * + 76 * + 9 AS col2
----
-2804313

onlyif mysql # aggregate syntax: 
query II rowsort label-2117
SELECT 52 * + 75 * + + COUNT( * ), 65 AS col2
----
3900
65

skipif mysql # not compatible
query II rowsort label-2117
SELECT 52 * + 75 * + + COUNT ( * ), 65 AS col2
----
3900
65

query II rowsort
SELECT ALL + 64, - 28 AS col0
----
64
-28

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

skipif mysql # not compatible
query I rowsort label-2119
SELECT ( 18 ) + COUNT ( * ) * - 98
----
-80

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

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL - 92 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 85 * - 63 + - - 34
----
-5321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT DISTINCT - 81 / - 32 * - 49 - - - 18 / - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + - - 60 + - - NULLIF ( - + ( - 89 ), 56 * - 89 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - 81 / - 32 * - 49 - - - 18 / - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 60 + - - NULLIF ( - + ( - 89 ), 56 * - 89 ) AS col2
----
NULL

query I rowsort
SELECT 46 + + 37 AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2124
SELECT 77 DIV - COALESCE ( + 72, COUNT( * ) + 61 ), - ( + 50 ) col0
----
-1
-50

skipif mysql # not compatible
query II rowsort label-2124
SELECT 77 / - COALESCE ( + 72, COUNT ( * ) + 61 ), - ( + 50 ) col0
----
-1
-50

query I rowsort
SELECT ALL + - 9 + - 30
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT 54 - + SUM( + 82 ) + - COUNT( * ) - + 72 * - 99 - - MIN( - 65 ) + + 35 + + - 77 * + + 33
----
4528

skipif mysql # not compatible
query I rowsort label-2126
SELECT 54 - + SUM ( + 82 ) + - COUNT ( * ) - + 72 * - 99 - - MIN ( - 65 ) + + 35 + + - 77 * + + 33
----
4528

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ( - MAX( ALL + - 37 ) ) + 71 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-2127
SELECT ( - MAX ( ALL + - 37 ) ) + 71 AS col1
----
108

query I rowsort
SELECT - 30 + 79 * - + 97 AS col0
----
-7693

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL + - 96 + COUNT( * ) - 59 * 49 * + 34
----
-98389

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL + - 96 + COUNT ( * ) - 59 * 49 * + 34
----
-98389

query I rowsort
SELECT ALL + - 79 + 42 AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT DISTINCT + 88 DIV + - 4
----
-22

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT + 88 / + - 4
----
-22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT DISTINCT + 10 * - ( + 53 ) + COUNT( * )
----
-529

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + 10 * - ( + 53 ) + COUNT ( * )
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT CASE + + ( - 67 ) WHEN - - COUNT( * ) THEN + 80 ELSE - - 10 END col2
----
10

skipif mysql # not compatible
query I rowsort label-2134
SELECT CASE + + ( - 67 ) WHEN - - COUNT ( * ) THEN + 80 ELSE - - 10 END col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT ALL - CAST( + 49 AS SIGNED ) * 27 * - 18 * + - 29 AS col1
----
-690606

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL - CAST ( + 49 AS INTEGER ) * 27 * - 18 * + - 29 AS col1
----
-690606

query I rowsort
SELECT + 7 * 29 + 55 AS col2
----
258

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT CASE - - 76 WHEN - 51 * + - 50 THEN NULL WHEN + + 26 + - + 76 THEN - 46 / COUNT( * ) / 71 + - + 62 + + 71 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT CASE - - 76 WHEN - 51 * + - 50 THEN NULL WHEN + + 26 + - + 76 THEN - 46 / COUNT ( * ) / 71 + - + 62 + + 71 END AS col1
----
NULL

query I rowsort
SELECT ALL + CASE + 42 WHEN + + 95 THEN 26 WHEN + + ( - + 37 ) + + 83 THEN + + 14 END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 88 col2, - 37 * + 17 AS col0
----
88
-629

query I rowsort
SELECT ALL 76 * + 80 - + 14
----
6066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2142
SELECT DISTINCT + CASE - 16 WHEN + 6 / + 42 THEN NULL WHEN 90 * 93 THEN - COUNT( * ) * + COUNT( * ) * - + 50 - + 90 * 1 / - COUNT( * ) + 40 + - 94 * 46 ELSE CAST( NULL AS SIGNED ) + - 89 + + + 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + CASE - 16 WHEN + 6 / + 42 THEN NULL WHEN 90 * 93 THEN - COUNT ( * ) * + COUNT ( * ) * - + 50 - + 90 * 1 / - COUNT ( * ) + 40 + - 94 * 46 ELSE CAST ( NULL AS INTEGER ) + - 89 + + + 5 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2143
SELECT DISTINCT 48 DIV COALESCE ( - CAST( NULL AS SIGNED ), - ( + 2 ), - + 65 )
----
-24

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT 48 / COALESCE ( - CAST ( NULL AS INTEGER ), - ( + 2 ), - + 65 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2144
SELECT + MIN( - - 13 ) * 47 * CAST( NULL AS SIGNED ) + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT + MIN ( - - 13 ) * 47 * CAST ( NULL AS INTEGER ) + 11 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + 65 * - MIN( 6 ) AS col2
----
-390

skipif mysql # not compatible
query I rowsort label-2146
SELECT + 65 * - MIN ( 6 ) AS col2
----
-390

query I rowsort
SELECT DISTINCT 77 * - 93
----
-7161

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL 61 * CASE + 57 WHEN - COUNT( * ) THEN NULL WHEN - 71 + - COUNT( * ) * + AVG ( ALL - 49 ) THEN + 26 + - 38 + + 87 + - + 61 * 88 END * 71 / - 72 * CASE - 73 WHEN - CASE - - CASE + + 71 WHEN - - 69 * 63 / 12 - - 13 THEN + 35 ELSE + COUNT( * ) END WHEN - 59 * + 85 + - 16 THEN - + ( + + 59 ) - + 26 ELSE - 82 END * - 51 THEN 7 ELSE - 63 END - 64 + 58 + 47 / 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL 61 * CASE + 57 WHEN - COUNT ( * ) THEN NULL WHEN - 71 + - COUNT ( * ) * + AVG ( ALL - 49 ) THEN + 26 + - 38 + + 87 + - + 61 * 88 END * 71 / - 72 * CASE - 73 WHEN - CASE - - CASE + + 71 WHEN - - 69 * 63 / 12 - - 13 THEN + 35 ELSE + COUNT ( * ) END WHEN - 59 * + 85 + - 16 THEN - + ( + + 59 ) - + 26 ELSE - 82 END * - 51 THEN 7 ELSE - 63 END - 64 + 58 + 47 / 35
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2149
SELECT ALL - 52 * + ( + - 87 ) + + - 27 + + 29 - - 15 DIV 24 + - COUNT( * ) * - - COUNT( ALL + 9 ) AS col2
----
4525

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL - 52 * + ( + - 87 ) + + - 27 + + 29 - - 15 / 24 + - COUNT ( * ) * - - COUNT ( ALL + 9 ) AS col2
----
4525

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT DISTINCT 77 * + - 24 + + - COALESCE ( + ( - MIN( - 69 ) ), + + 41 )
----
-1917

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT 77 * + - 24 + + - COALESCE ( + ( - MIN ( - 69 ) ), + + 41 )
----
-1917

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT + COUNT( NULLIF ( 67, - 5 * - 17 ) ) * + COUNT( - 13 ) * - - 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-2153
SELECT + COUNT ( NULLIF ( 67, - 5 * - 17 ) ) * + COUNT ( - 13 ) * - - 12 AS col0
----
12

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

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

query I rowsort
SELECT - + 16 - - 31 * - + 84 AS col2
----
-2620

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2156
SELECT - 61 + + + CAST( NULL AS DECIMAL ) + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT - 61 + + + CAST ( NULL AS REAL ) + 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2157
SELECT DISTINCT 59, + CAST( NULL AS SIGNED ) AS col0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-2157
SELECT DISTINCT 59, + CAST ( NULL AS INTEGER ) AS col0
----
59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + + 44 + + + COUNT( * ) + 10 * 94
----
985

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + + 44 + + + COUNT ( * ) + 10 * 94
----
985

query II rowsort
SELECT - 15 AS col1, 58
----
-15
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2160
SELECT DISTINCT + 86 + + COUNT( * ) DIV 41
----
86

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT + 86 + + COUNT ( * ) / 41
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2161
SELECT + COUNT( * ) + 5 + + - SUM( DISTINCT 33 ) DIV 79 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2161
SELECT + COUNT ( * ) + 5 + + - SUM ( DISTINCT 33 ) / 79 AS col0
----
6

query I rowsort
SELECT ALL + 75 * + 97 * - + 79 - - 63 + + - 45
----
-574707

query II rowsort
SELECT ALL + 59 + + 51 + 4 * - 62 col0, - 57 AS col1
----
-138
-57

query II rowsort
SELECT ALL + 97 col0, + 35 AS col0
----
97
35

query I rowsort
SELECT DISTINCT + + 2 - - 79 * - 61 + - + 93 AS col1
----
-4910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2166
SELECT - MIN( - 2 ) DIV + 81 + 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2166
SELECT - MIN ( - 2 ) / + 81 + 91 AS col0
----
91

query I rowsort
SELECT ALL COALESCE ( - - 69, + - 90 * - - 85 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT - 38 * - - SUM( 87 )
----
-3306

skipif mysql # not compatible
query I rowsort label-2168
SELECT - 38 * - - SUM ( 87 )
----
-3306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2169
SELECT ALL + 91 DIV - 34 * - COUNT( * ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL + 91 / - 34 * - COUNT ( * ) * COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT - MIN( ALL + 95 ) * + 82 - - + 46 AS col2
----
-7744

skipif mysql # not compatible
query I rowsort label-2170
SELECT - MIN ( ALL + 95 ) * + 82 - - + 46 AS col2
----
-7744

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - NULLIF ( - 91, COUNT( * ) ) * - 39
----
-3549

skipif mysql # not compatible
query I rowsort label-2173
SELECT - NULLIF ( - 91, COUNT ( * ) ) * - 39
----
-3549

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

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

query I rowsort
SELECT ALL + 19 * + 63 * - + 39 * + + 74 AS col1
----
-3454542

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2178
SELECT ALL + 1 * 39 * 75 AS col2, + 89 DIV - + 35 + - 96 col0
----
2925
-98

skipif mysql # not compatible
query II rowsort label-2178
SELECT ALL + 1 * 39 * 75 AS col2, + 89 / - + 35 + - 96 col0
----
2925
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT - COUNT( * ) + + 40 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2179
SELECT - COUNT ( * ) + + 40 AS col2
----
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + ( COUNT( * ) ) * 68 col2
----
68

skipif mysql # not compatible
query I rowsort label-2181
SELECT + ( COUNT ( * ) ) * 68 col2
----
68

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2184
SELECT DISTINCT CASE + + 13 WHEN - 55 THEN 90 WHEN 15 THEN + + 58 + - 1 ELSE ( + 12 ) + 7 END * - NULLIF ( + + 81, + CASE ( + COUNT( * ) ) WHEN + 49 THEN NULL WHEN + 88 THEN - + COUNT( + ( 54 ) ) ELSE - - CAST( NULL AS SIGNED ) END DIV COUNT( * ) - + + 92 ) + - 90 DIV + - 38 - 23 - - SUM( DISTINCT ( + 50 ) )
----
-1510

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT CASE + + 13 WHEN - 55 THEN 90 WHEN 15 THEN + + 58 + - 1 ELSE ( + 12 ) + 7 END * - NULLIF ( + + 81, + CASE ( + COUNT ( * ) ) WHEN + 49 THEN NULL WHEN + 88 THEN - + COUNT ( + ( 54 ) ) ELSE - - CAST ( NULL AS INTEGER ) END / COUNT ( * ) - + + 92 ) + - 90 / + - 38 - 23 - - SUM ( DISTINCT ( + 50 ) )
----
-1510

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL 17 * - NULLIF ( - 80, + + COUNT( * ) ) + - COUNT( - 84 ) - 29 AS col1
----
1330

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL 17 * - NULLIF ( - 80, + + COUNT ( * ) ) + - COUNT ( - 84 ) - 29 AS col1
----
1330

query I rowsort
SELECT + + 37 + + ( - 17 ) + - 26 col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT ALL + 27 * - - AVG ( DISTINCT + - CAST( - CASE CAST( NULL AS SIGNED ) WHEN 64 * - ( + 36 ) + - 99 THEN NULL WHEN 99 - - CAST( - 62 AS SIGNED ) THEN NULL ELSE CAST( NULL AS SIGNED ) END AS SIGNED ) ) + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + 27 * - - AVG ( DISTINCT + - CAST ( - CASE CAST ( NULL AS INTEGER ) WHEN 64 * - ( + 36 ) + - 99 THEN NULL WHEN 99 - - CAST ( - 62 AS INTEGER ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS INTEGER ) ) + + 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT DISTINCT + CASE + 75 WHEN + + 97 * - NULLIF ( - - 2, + CASE - ( COUNT( + + 20 ) ) WHEN - + CASE + COUNT( * ) WHEN - - 91 + - CASE - ( - 14 ) WHEN + ( + 0 ) + AVG ( DISTINCT + 52 ) * - 5 THEN - + 37 / - SUM( 42 ) + - 8 ELSE + SUM( DISTINCT - + 23 ) * 73 - 96 + 72 * + + 77 + 82 * - 45 END THEN NULL ELSE - 86 END / 83 * - 64 THEN NULL WHEN + + NULLIF ( + - 45, 13 + - 76 ) / + 8 THEN NULL WHEN 39 * + 13 + - 72 * 87 THEN 0 - 79 * - 62 END + MIN( DISTINCT 60 - 86 ) * + 6 ) + + CASE 14 WHEN COALESCE ( - MAX( + 29 ), - COUNT( * ) ) THEN NULL ELSE 95 * - COALESCE ( 22, 89 ) END THEN 98 WHEN 67 THEN NULL END * - 66 + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT + CASE + 75 WHEN + + 97 * - NULLIF ( - - 2, + CASE - ( COUNT ( + + 20 ) ) WHEN - + CASE + COUNT ( * ) WHEN - - 91 + - CASE - ( - 14 ) WHEN + ( + 0 ) + AVG ( DISTINCT + 52 ) * - 5 THEN - + 37 / - SUM ( 42 ) + - 8 ELSE + SUM ( DISTINCT - + 23 ) * 73 - 96 + 72 * + + 77 + 82 * - 45 END THEN NULL ELSE - 86 END / 83 * - 64 THEN NULL WHEN + + NULLIF ( + - 45, 13 + - 76 ) / + 8 THEN NULL WHEN 39 * + 13 + - 72 * 87 THEN 0 - 79 * - 62 END + MIN ( DISTINCT 60 - 86 ) * + 6 ) + + CASE 14 WHEN COALESCE ( - MAX ( + 29 ), - COUNT ( * ) ) THEN NULL ELSE 95 * - COALESCE ( 22, 89 ) END THEN 98 WHEN 67 THEN NULL END * - 66 + + 17
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT ALL 93 DIV 41
----
2

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL 93 / 41
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT - + SUM( 50 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2191
SELECT - + SUM ( 50 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2192
SELECT + + 29 * 50 AS col0, COUNT( * )
----
1450
1

skipif mysql # not compatible
query II rowsort label-2192
SELECT + + 29 * 50 AS col0, COUNT ( * )
----
1450
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL - 49 * COUNT( 40 ) - + 90
----
-139

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - 49 * COUNT ( 40 ) - + 90
----
-139

query I rowsort
SELECT ALL - 90 + CASE - - 9 WHEN 13 THEN - 34 WHEN - COALESCE ( - 79, - 16 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 62 * - - 76
----
4712

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT + 17 DIV + 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-2198
SELECT + 17 / + 79 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL - 55 - + COUNT( * ) + - 63 * + 13 AS col0
----
-875

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - 55 - + COUNT ( * ) + - 63 * + 13 AS col0
----
-875

query I rowsort
SELECT - 66 * + + ( + 93 ) - - ( + 70 ) + - + 78
----
-6146

query I rowsort
SELECT ( - + 27 ) * - - 32 AS col2
----
-864

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

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

query I rowsort
SELECT DISTINCT + 87 * 33 * - + 99 AS col1
----
-284229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2204
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + 38 / + - COUNT( * ) + - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 38 / + - COUNT ( * ) + - 65 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2206
SELECT + 49 DIV - 93 * + - 44 * - 34 DIV + + MAX( ALL + - 7 ) + + 94 DIV + 86 + + - 33 DIV - 4
----
9

skipif mysql # not compatible
query I rowsort label-2206
SELECT + 49 / - 93 * + - 44 * - 34 / + + MAX ( ALL + - 7 ) + + 94 / + 86 + + - 33 / - 4
----
9

query II rowsort
SELECT ALL - 11 AS col0, - 73 AS col2
----
-11
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT 82 + + + MIN( 59 ) * - + 77
----
-4461

skipif mysql # not compatible
query I rowsort label-2208
SELECT 82 + + + MIN ( 59 ) * - + 77
----
-4461

query I rowsort
SELECT 56 * - 42 * - 73
----
171696

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

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

query I rowsort
SELECT 65 * 24
----
1560

query I rowsort
SELECT ALL + 97 + + + 21 * 18 * + 10
----
3877

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2213
SELECT 5 AS col1, - 50 + + ( - 97 ) DIV COALESCE ( - MAX( ALL + + 42 ), + 37 )
----
5
-48

skipif mysql # not compatible
query II rowsort label-2213
SELECT 5 AS col1, - 50 + + ( - 97 ) / COALESCE ( - MAX ( ALL + + 42 ), + 37 )
----
5
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL 6 + - COUNT( * ) * + + 65 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL 6 + - COUNT ( * ) * + + 65 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT DISTINCT 65 + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT 65 + COUNT ( * ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2216
SELECT ALL + CASE CAST( - 23 AS SIGNED ) WHEN - - AVG ( ALL + CAST( NULL AS SIGNED ) ) * 13 * - 29 THEN + - 75 + - + COUNT( * ) + + - 93 * - + 25 + ( 60 ) * + MAX( - 53 ) * MAX( DISTINCT + 80 ) * - MAX( - 92 ) * - 25 / + - 83 + - 3 + + COUNT( * ) END + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + CASE CAST ( - 23 AS INTEGER ) WHEN - - AVG ( ALL + CAST ( NULL AS INTEGER ) ) * 13 * - 29 THEN + - 75 + - + COUNT ( * ) + + - 93 * - + 25 + ( 60 ) * + MAX ( - 53 ) * MAX ( DISTINCT + 80 ) * - MAX ( - 92 ) * - 25 / + - 83 + - 3 + + COUNT ( * ) END + + 36
----
NULL

query I rowsort
SELECT ALL + 97 + + - 66
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT DISTINCT - 43 DIV + 13 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT - 43 / + 13 AS col1
----
-3

query I rowsort
SELECT NULLIF ( - + 1, - 35 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2220
SELECT + + 29, - CAST( + + 48 AS SIGNED ) col0
----
29
-48

skipif mysql # not compatible
query II rowsort label-2220
SELECT + + 29, - CAST ( + + 48 AS INTEGER ) col0
----
29
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT + ( CASE - + COUNT( * ) WHEN COUNT( * ) + + MIN( ALL - 60 ) THEN + 11 * + - ( + 26 ) + 77 WHEN 81 THEN ( + 60 ) ELSE + 15 END ) * - - 36 * 35 + + 40
----
18940

skipif mysql # not compatible
query I rowsort label-2222
SELECT + ( CASE - + COUNT ( * ) WHEN COUNT ( * ) + + MIN ( ALL - 60 ) THEN + 11 * + - ( + 26 ) + 77 WHEN 81 THEN ( + 60 ) ELSE + 15 END ) * - - 36 * 35 + + 40
----
18940

query I rowsort
SELECT DISTINCT + 53 + 19
----
72

query I rowsort
SELECT ALL - + 89 + - - 64 * - 81 AS col1
----
-5273

query I rowsort
SELECT + + COALESCE ( + 50, + + 89 )
----
50

query II rowsort
SELECT 97 AS col2, 42 * 74
----
97
3108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2227
SELECT + CASE 87 WHEN - 14 THEN CAST( NULL AS SIGNED ) * 91 WHEN + + 64 + + 37 + + 93 + - - NULLIF ( + AVG ( 34 ), - CAST( NULL AS SIGNED ) + - - 37 + - CAST( - COUNT( ALL 78 ) AS DECIMAL ) + + 73 / 15 ) * + 79 + - - COALESCE ( + 31, + + NULLIF ( - CAST( NULL AS SIGNED ), 40 ) * 70, + 69 ) THEN 45 / - 79 * 43 + 77 WHEN 68 * - + 6 + - 14 + - 13 + - + 81 THEN NULL WHEN - - 52 * + 96 + - - 52 + - 55 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT + CASE 87 WHEN - 14 THEN CAST ( NULL AS INTEGER ) * 91 WHEN + + 64 + + 37 + + 93 + - - NULLIF ( + AVG ( 34 ), - CAST ( NULL AS INTEGER ) + - - 37 + - CAST ( - COUNT ( ALL 78 ) AS REAL ) + + 73 / 15 ) * + 79 + - - COALESCE ( + 31, + + NULLIF ( - CAST ( NULL AS INTEGER ), 40 ) * 70, + 69 ) THEN 45 / - 79 * 43 + 77 WHEN 68 * - + 6 + - 14 + - 13 + - + 81 THEN NULL WHEN - - 52 * + 96 + - - 52 + - 55 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 19 + - 61 AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2229
SELECT + 87 - 17 + - CAST( - 88 AS SIGNED ) AS col2, 82
----
158
82

skipif mysql # not compatible
query II rowsort label-2229
SELECT + 87 - 17 + - CAST ( - 88 AS INTEGER ) AS col2, 82
----
158
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2230
SELECT DISTINCT + - ( - COUNT( * ) ) - + - 35 AS col2, 6 * + CAST( 34 AS SIGNED ) * + COUNT( * ) AS col1
----
36
204

skipif mysql # not compatible
query II rowsort label-2230
SELECT DISTINCT + - ( - COUNT ( * ) ) - + - 35 AS col2, 6 * + CAST ( 34 AS INTEGER ) * + COUNT ( * ) AS col1
----
36
204

query I rowsort
SELECT DISTINCT ( - 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2232
SELECT ALL CAST( + SUM( + 44 ) AS SIGNED ) - 79 * + 58 AS col2
----
-4538

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL CAST ( + SUM ( + 44 ) AS INTEGER ) - 79 * + 58 AS col2
----
-4538

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT DISTINCT - 9 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT - 9 / 76
----
0

query I rowsort
SELECT - 81 + - + 57 AS col2
----
-138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT ALL COUNT( * ) * + 40 - + 52 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL COUNT ( * ) * + 40 - + 52 AS col1
----
-12

query I rowsort
SELECT - ( 55 )
----
-55

query I rowsort
SELECT ALL 9 * + 71
----
639

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT SUM( ALL - + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT SUM ( ALL - + 48 )
----
-48

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

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

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

skipif mysql # not compatible
query I rowsort label-2242
SELECT - SUM ( ALL - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT - COUNT( ALL - 22 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2243
SELECT - COUNT ( ALL - 22 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 1 + + 96
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2245
SELECT SUM( ALL 60 ) - - COALESCE ( 19, + 97 + 15 * - 3, - 27 ) + - COUNT( * ) AS col1, 80 * - MIN( ALL COALESCE ( - 96, - + 39 ) )
----
78
7680

skipif mysql # not compatible
query II rowsort label-2245
SELECT SUM ( ALL 60 ) - - COALESCE ( 19, + 97 + 15 * - 3, - 27 ) + - COUNT ( * ) AS col1, 80 * - MIN ( ALL COALESCE ( - 96, - + 39 ) )
----
78
7680

query I rowsort
SELECT 1 * 62 * + 25
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT COUNT( * ) * 97 - + - 53 col0
----
150

skipif mysql # not compatible
query I rowsort label-2247
SELECT COUNT ( * ) * 97 - + - 53 col0
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT MIN( ALL + + 34 ) AS col2, 55 AS col0
----
34
55

skipif mysql # not compatible
query II rowsort label-2248
SELECT MIN ( ALL + + 34 ) AS col2, 55 AS col0
----
34
55

query I rowsort
SELECT ALL - NULLIF ( + 9, - - 76 ) * + + 32 col2
----
-288

query I rowsort
SELECT 91 * - - 5 AS col2
----
455

query I rowsort
SELECT ALL 44 * 8 + 78
----
430

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

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

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

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

query I rowsort
SELECT 0 + + 68 + 66 AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT + + 34 + + 11 + - SUM( ALL - ( - 20 ) ) * + + 39
----
-735

skipif mysql # not compatible
query I rowsort label-2255
SELECT + + 34 + + 11 + - SUM ( ALL - ( - 20 ) ) * + + 39
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL - - 75 * + + CASE - - 97 WHEN - + COUNT( * ) * + ( - 77 ) THEN - 41 END * - + 62 * + - 11 + - 88 + - SUM( DISTINCT 27 ) - + 16 - 6 + COUNT( * ) * - COUNT( * ) + 35 / 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL - - 75 * + + CASE - - 97 WHEN - + COUNT ( * ) * + ( - 77 ) THEN - 41 END * - + 62 * + - 11 + - 88 + - SUM ( DISTINCT 27 ) - + 16 - 6 + COUNT ( * ) * - COUNT ( * ) + 35 / 78 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT - SUM( DISTINCT - 37 ) * - ( + 74 ) * + ( + + COUNT( * ) ) + - 92 col0
----
-2830

skipif mysql # not compatible
query I rowsort label-2257
SELECT - SUM ( DISTINCT - 37 ) * - ( + 74 ) * + ( + + COUNT ( * ) ) + - 92 col0
----
-2830

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT ALL - - 37 DIV - 19 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL - - 37 / - 19 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2259
SELECT + ( - + COUNT( * ) ), + 35 - 88 AS col1
----
-1
-53

skipif mysql # not compatible
query II rowsort label-2259
SELECT + ( - + COUNT ( * ) ), + 35 - 88 AS col1
----
-1
-53

query I rowsort
SELECT - - 77 * + + 70
----
5390

onlyif mysql # DIV for integer division: 
query I rowsort label-2261
SELECT ALL + ( - + 18 ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + ( - + 18 ) / + 82
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2263
SELECT + + CAST( + 31 AS SIGNED ) AS col1, - ( - 23 )
----
31
23

skipif mysql # not compatible
query II rowsort label-2263
SELECT + + CAST ( + 31 AS INTEGER ) AS col1, - ( - 23 )
----
31
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT DISTINCT - 80 * ( - 92 ) * 4 + + 71 + ( + - CAST( NULL AS SIGNED ) ) - - 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT - 80 * ( - 92 ) * 4 + + 71 + ( + - CAST ( NULL AS INTEGER ) ) - - 67 col2
----
NULL

query I rowsort
SELECT ALL - - 82 * 88
----
7216

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

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

query I rowsort
SELECT - 57 * - 14 * - 24 + 52
----
-19100

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT ALL - CAST( NULL AS SIGNED ) * 27 / 48 * - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL - CAST ( NULL AS INTEGER ) * 27 / 48 * - 90 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2270
SELECT DISTINCT COALESCE ( - CAST( - + MAX( DISTINCT 17 ) AS SIGNED ), 14 * + NULLIF ( 57, + COUNT( ALL - + 81 ) ) )
----
17

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT COALESCE ( - CAST ( - + MAX ( DISTINCT 17 ) AS INTEGER ), 14 * + NULLIF ( 57, + COUNT ( ALL - + 81 ) ) )
----
17

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT - 73 + - 44 - - + 54 DIV + - 74 - + 4 AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-2272
SELECT - 73 + - 44 - - + 54 / + - 74 - + 4 AS col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT + COUNT( + - 36 ) + 69 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-2273
SELECT + COUNT ( + - 36 ) + 69 AS col0
----
70

query I rowsort
SELECT ALL 60 + 82 AS col0
----
142

query I rowsort
SELECT ALL 19 * - ( + 77 )
----
-1463

query II rowsort
SELECT DISTINCT 97, 73 AS col1
----
97
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT DISTINCT 54 * 58 * 1 * - MIN( DISTINCT - 13 ) * - - COUNT( * ) * + + 63
----
2565108

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT 54 * 58 * 1 * - MIN ( DISTINCT - 13 ) * - - COUNT ( * ) * + + 63
----
2565108

query I rowsort
SELECT ALL 13 + - 55 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT + 19 + MIN( - - ( - 60 ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2279
SELECT + 19 + MIN ( - - ( - 60 ) ) AS col1
----
-41

query I rowsort
SELECT ALL - 97 + - + 42 + - - 67 col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT + CASE + ( - COUNT( * ) ) WHEN + - 4 THEN - - 87 END + + 47 / + - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT + CASE + ( - COUNT ( * ) ) WHEN + - 4 THEN - - 87 END + + 47 / + - 52 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2282
SELECT ALL COUNT( * ) + + 6 DIV COALESCE ( COUNT( * ), - CAST( - + 93 AS SIGNED ) + + - 25 ) * - 70 + - 38 + + CASE - - 73 WHEN MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) THEN - ( + COUNT( * ) ) * + 92 WHEN - 66 DIV + + 74 * - + 8 + + 15 THEN + 79 WHEN NULLIF ( - - 34, - 3 + + 88 ) - - + 19 * + 31 THEN - 58 ELSE + 82 END AS col1
----
-375

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL COUNT ( * ) + + 6 / COALESCE ( COUNT ( * ), - CAST ( - + 93 AS INTEGER ) + + - 25 ) * - 70 + - 38 + + CASE - - 73 WHEN MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) THEN - ( + COUNT ( * ) ) * + 92 WHEN - 66 / + + 74 * - + 8 + + 15 THEN + 79 WHEN NULLIF ( - - 34, - 3 + + 88 ) - - + 19 * + 31 THEN - 58 ELSE + 82 END AS col1
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT + ( + - 23 ) * + + COUNT( * ) + + ( - CASE ( - COUNT( * ) ) WHEN - - 65 THEN NULL WHEN + + 39 + + 20 + 5 + + 90 THEN NULL ELSE + 28 END )
----
-51

skipif mysql # not compatible
query I rowsort label-2283
SELECT + ( + - 23 ) * + + COUNT ( * ) + + ( - CASE ( - COUNT ( * ) ) WHEN - - 65 THEN NULL WHEN + + 39 + + 20 + 5 + + 90 THEN NULL ELSE + 28 END )
----
-51

query I rowsort
SELECT ALL 77 * + 54 AS col1
----
4158

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT 98 DIV + 44 + - 37 + - - 4 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-2286
SELECT 98 / + 44 + - 37 + - - 4 AS col0
----
-31

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

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

query I rowsort
SELECT + 65 + 29
----
94

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

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

query I rowsort
SELECT + 18 * - 32 + - + 30 * - 61 col0
----
1254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2291
SELECT ALL - + 98 DIV - 71 + + - MAX( - 64 ) - 79 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - + 98 / - 71 + + - MAX ( - 64 ) - 79 AS col2
----
-14

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2293
SELECT - 31 DIV + 15 + - CAST( 82 AS SIGNED ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-2293
SELECT - 31 / + 15 + - CAST ( 82 AS INTEGER ) AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT DISTINCT 68 * - - 90 * - 65 - + + 14 + 98 * - CAST( + + 78 AS SIGNED )
----
-405458

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT 68 * - - 90 * - 65 - + + 14 + 98 * - CAST ( + + 78 AS INTEGER )
----
-405458

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL ( - COUNT( * ) ) * + 2 - + 28 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL ( - COUNT ( * ) ) * + 2 - + 28 AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2296
SELECT ALL - 50 * - - 42 * - - 77 + 56 - 33 DIV - 2 * + - ( + COUNT( * ) ), - 83 AS col1
----
-161660
-83

skipif mysql # not compatible
query II rowsort label-2296
SELECT ALL - 50 * - - 42 * - - 77 + 56 - 33 / - 2 * + - ( + COUNT ( * ) ), - 83 AS col1
----
-161660
-83

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT ALL + NULLIF ( - 17, 46 * + 27 + 3 - 63 / - + CAST( 67 AS SIGNED ) + - 98 ) * - - 88
----
-1496

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + NULLIF ( - 17, 46 * + 27 + 3 - 63 / - + CAST ( 67 AS INTEGER ) + - 98 ) * - - 88
----
-1496

query II rowsort
SELECT + - 37 - + 61 + 16 AS col0, 94
----
-82
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2300
SELECT + 5 DIV CAST( - 13 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2300
SELECT + 5 / CAST ( - 13 AS INTEGER )
----
0

query I rowsort
SELECT + 45 * + 28
----
1260

query II rowsort
SELECT + 51 AS col1, 20
----
51
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - COUNT( * ) + - 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2303
SELECT - COUNT ( * ) + - 25 AS col1
----
-26

query I rowsort
SELECT ALL + + 11 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT + CAST( - 27 AS SIGNED ) - + 28
----
-55

skipif mysql # not compatible
query I rowsort label-2305
SELECT + CAST ( - 27 AS INTEGER ) - + 28
----
-55

query I rowsort
SELECT ALL - 34 * - ( - - 6 ) - + 76 * 6 + - + 68
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - - COUNT( * ) - + 91 * + 70 AS col1
----
-6369

skipif mysql # not compatible
query I rowsort label-2307
SELECT - - COUNT ( * ) - + 91 * + 70 AS col1
----
-6369

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

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

query I rowsort
SELECT DISTINCT - 91 col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2310
SELECT - - CASE - CASE - 43 WHEN + 94 THEN NULL WHEN - CAST( NULLIF ( - - ( - 22 ), - CAST( + + 0 AS DECIMAL ) - + 3 * - - COUNT( * ) * + COUNT( * ) ) AS SIGNED ) - + + 82 THEN NULL ELSE 84 END WHEN + SUM( 5 ) THEN - - MAX( + 92 ) - + 97 ELSE - + CASE + 84 WHEN 27 THEN - - NULLIF ( - + COUNT( * ), - + 63 + + - MIN( - CAST( NULL AS SIGNED ) ) / - 58 ) END * - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT - - CASE - CASE - 43 WHEN + 94 THEN NULL WHEN - CAST ( NULLIF ( - - ( - 22 ), - CAST ( + + 0 AS REAL ) - + 3 * - - COUNT ( * ) * + COUNT ( * ) ) AS INTEGER ) - + + 82 THEN NULL ELSE 84 END WHEN + SUM ( 5 ) THEN - - MAX ( + 92 ) - + 97 ELSE - + CASE + 84 WHEN 27 THEN - - NULLIF ( - + COUNT ( * ), - + 63 + + - MIN ( - CAST ( NULL AS INTEGER ) ) / - 58 ) END * - 55 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL 6 * CAST( NULL AS SIGNED ) + - - 95 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL 6 * CAST ( NULL AS INTEGER ) + - - 95 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2312
SELECT - 79 AS col2, - 4 DIV - - COUNT( * ) + - + 49 col1
----
-79
-53

skipif mysql # not compatible
query II rowsort label-2312
SELECT - 79 AS col2, - 4 / - - COUNT ( * ) + - + 49 col1
----
-79
-53

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

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

query I rowsort
SELECT DISTINCT + 28 + + 92 AS col1
----
120

query I rowsort
SELECT ALL - 74 * - 83 AS col2
----
6142

query I rowsort
SELECT ALL + 10 + - + 97 AS col2
----
-87

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

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

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

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL + 1 + - COUNT ( * ) + 0 AS col1
----
0

query I rowsort
SELECT DISTINCT 49 + 18
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2320
SELECT ALL CAST( NULL AS SIGNED ), - 30 col1
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-2320
SELECT ALL CAST ( NULL AS INTEGER ), - 30 col1
----
NULL
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2321
SELECT ALL - 65 + - - 33 DIV + 16 DIV + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - 65 + - - 33 / + 16 / + COUNT ( * )
----
-63

query I rowsort
SELECT DISTINCT + 56 * 28 AS col1
----
1568

query I rowsort
SELECT ALL - 65 + 12 AS col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT ALL CAST( - CASE 71 WHEN - ( + + 84 ) THEN + 70 * - - CAST( COALESCE ( - NULLIF ( + + COUNT( * ), 36 ), - + MAX( ALL 41 ) + + COUNT( * ), 80 * + 48 ) AS SIGNED ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL CAST ( - CASE 71 WHEN - ( + + 84 ) THEN + 70 * - - CAST ( COALESCE ( - NULLIF ( + + COUNT ( * ), 36 ), - + MAX ( ALL 41 ) + + COUNT ( * ), 80 * + 48 ) AS INTEGER ) END AS INTEGER )
----
NULL

query I rowsort
SELECT - 89 * - + 34 AS col1
----
3026

query I rowsort
SELECT - NULLIF ( + 34, + 74 ) AS col2
----
-34

query I rowsort
SELECT 81 + - 89
----
-8

query I rowsort
SELECT 97 - 71 * - + 4
----
381

query I rowsort
SELECT ALL - COALESCE ( 74, + 58 ) AS col0
----
-74

query I rowsort
SELECT + 74 * - - 20 - 84
----
1396

query II rowsort
SELECT ALL - + 10 AS col0, + 80 AS col0
----
-10
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT - 87 DIV - 2 + + - 62 + + - 64 col2
----
-83

skipif mysql # not compatible
query I rowsort label-2332
SELECT - 87 / - 2 + + - 62 + + - 64 col2
----
-83

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

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

query I rowsort
SELECT DISTINCT + + 53 * - 2 + + 81 AS col2
----
-25

query I rowsort
SELECT - 76 * + 40 + 68 - - 45 * 44 AS col2
----
-992

query I rowsort
SELECT 86 * + 61 - + 93 + + 71 AS col1
----
5224

query II rowsort
SELECT ALL - 19 col0, + 2
----
-19
2

query I rowsort
SELECT + 43 * + 42
----
1806

query I rowsort
SELECT - - 9 * + - 34 + + 67
----
-239

query III rowsort
SELECT 65 AS col0, 37 AS col2, - 40 AS col2
----
65
37
-40

query I rowsort
SELECT 68 * 70 * 20
----
95200

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT ALL - 30 + - + 15 + - 43 - - - 30 DIV + 68
----
-88

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - 30 + - + 15 + - 43 - - - 30 / + 68
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT - + 30 * + COUNT( * ) + 65
----
35

skipif mysql # not compatible
query I rowsort label-2343
SELECT - + 30 * + COUNT ( * ) + 65
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2344
SELECT ALL - CASE 55 WHEN CASE + - MIN( ALL - 41 ) WHEN + + 70 - 82 + + CAST( + 63 AS SIGNED ) * - 98 THEN + + 40 ELSE + 65 END THEN 60 WHEN 82 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - CASE 55 WHEN CASE + - MIN ( ALL - 41 ) WHEN + + 70 - 82 + + CAST ( + 63 AS INTEGER ) * - 98 THEN + + 40 ELSE + 65 END THEN 60 WHEN 82 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL + 56 + - 35 + 41 + + 83 * 59 AS col1
----
4959

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2346
SELECT + 25, COUNT( * ) DIV - + 27 AS col1
----
25
0

skipif mysql # not compatible
query II rowsort label-2346
SELECT + 25, COUNT ( * ) / - + 27 AS col1
----
25
0

query I rowsort
SELECT ALL 36 + - 76 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT CASE 50 WHEN + - 77 * + - 80 * - MIN( ALL - 19 ) THEN + 46 - - ( 67 ) WHEN - 23 / 2 THEN NULL END + + 11 * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT CASE 50 WHEN + - 77 * + - 80 * - MIN ( ALL - 19 ) THEN + 46 - - ( 67 ) WHEN - 23 / 2 THEN NULL END + + 11 * 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT DISTINCT 9 + - + COUNT( * ) * 12
----
-3

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT 9 + - + COUNT ( * ) * 12
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT MIN( - 48 ) * - 66 + NULLIF ( 54, + + 20 )
----
3222

skipif mysql # not compatible
query I rowsort label-2350
SELECT MIN ( - 48 ) * - 66 + NULLIF ( 54, + + 20 )
----
3222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2351
SELECT CASE - MIN( ALL + 1 ) WHEN - - 38 THEN + + CAST( + + 90 AS SIGNED ) WHEN + 85 THEN NULL WHEN + + 41 THEN NULL ELSE - 40 END * CAST( 90 AS SIGNED ) * + + 9
----
-32400

skipif mysql # not compatible
query I rowsort label-2351
SELECT CASE - MIN ( ALL + 1 ) WHEN - - 38 THEN + + CAST ( + + 90 AS INTEGER ) WHEN + 85 THEN NULL WHEN + + 41 THEN NULL ELSE - 40 END * CAST ( 90 AS INTEGER ) * + + 9
----
-32400

query I rowsort
SELECT 95 + 95
----
190

query I rowsort
SELECT DISTINCT 90 + + 90 + + + 79
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL + COUNT( * ) + - + 79 * - - 98
----
-7741

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + COUNT ( * ) + - + 79 * - - 98
----
-7741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2355
SELECT CAST( - + 93 AS SIGNED ) * - + 92
----
8556

skipif mysql # not compatible
query I rowsort label-2355
SELECT CAST ( - + 93 AS INTEGER ) * - + 92
----
8556

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT + 97 + - - COUNT( DISTINCT + 50 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT + 97 + - - COUNT ( DISTINCT + 50 ) AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2358
SELECT ALL 77 DIV - COUNT( * ) AS col1, - ( + 98 )
----
-77
-98

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

query I rowsort
SELECT 71 + + + 81 * - 65 col1
----
-5194

query I rowsort
SELECT 7 - + 24 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT DISTINCT 95 * + COUNT( * ) AS col0, + ( - 32 ) AS col1
----
95
-32

skipif mysql # not compatible
query II rowsort label-2361
SELECT DISTINCT 95 * + COUNT ( * ) AS col0, + ( - 32 ) AS col1
----
95
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2362
SELECT 16 + + - 65 * - + CASE - SUM( ALL + 79 ) WHEN MIN( DISTINCT - + ( + 98 ) ) THEN NULL WHEN + + 74 - + 18 + - - 89 + CAST( + + 7 AS SIGNED ) THEN NULL ELSE + 70 END AS col0
----
4566

skipif mysql # not compatible
query I rowsort label-2362
SELECT 16 + + - 65 * - + CASE - SUM ( ALL + 79 ) WHEN MIN ( DISTINCT - + ( + 98 ) ) THEN NULL WHEN + + 74 - + 18 + - - 89 + CAST ( + + 7 AS INTEGER ) THEN NULL ELSE + 70 END AS col0
----
4566

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

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL + COUNT ( * ) - - 8 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT 97 + + SUM( 9 ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-2364
SELECT 97 + + SUM ( 9 ) AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT 0 * SUM( DISTINCT 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2365
SELECT 0 * SUM ( DISTINCT 17 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2366
SELECT ALL + 7 * - - 26 AS col0, NULLIF ( - 49, 43 / + - ( - ( + 36 ) ) + + + 13 + - + NULLIF ( + 86, - COUNT( * ) ) ) AS col2
----
182
-49

skipif mysql # not compatible
query II rowsort label-2366
SELECT ALL + 7 * - - 26 AS col0, NULLIF ( - 49, 43 / + - ( - ( + 36 ) ) + + + 13 + - + NULLIF ( + 86, - COUNT ( * ) ) ) AS col2
----
182
-49

query I rowsort
SELECT 6 + 93
----
99

query I rowsort
SELECT 75 + - 61 + + + 99 AS col2
----
113

query II rowsort
SELECT ALL + 92 * - - 66 + + - 20 + + 68 + 88 * + 2 + + - 84 AS col2, ( + + 61 )
----
6212
61

query I rowsort
SELECT 21 * + + 20 + + ( 21 ) * ( 62 ) AS col2
----
1722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2371
SELECT SUM( ALL 62 ) DIV - COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-2371
SELECT SUM ( ALL 62 ) / - COUNT ( * ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT + 74 + - 19 - - 61 * + SUM( - + 49 ) * - - 40 + 51
----
-119454

skipif mysql # not compatible
query I rowsort label-2372
SELECT + 74 + - 19 - - 61 * + SUM ( - + 49 ) * - - 40 + 51
----
-119454

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

skipif mysql # not compatible
query I rowsort label-2373
SELECT 13 / - ( 23 ) + - COUNT ( * )
----
-1

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

skipif mysql # not compatible
query I rowsort label-2374
SELECT COUNT ( * ) * 37
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2375
SELECT ALL + + 51 DIV 80 * - - 55 * + - 54 - + 59 + - - COALESCE ( + 70, - - MAX( DISTINCT ( + 80 ) ) + COUNT( DISTINCT - 25 ) ) * MIN( + ( 34 ) ) AS col1
----
2321

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL + + 51 / 80 * - - 55 * + - 54 - + 59 + - - COALESCE ( + 70, - - MAX ( DISTINCT ( + 80 ) ) + COUNT ( DISTINCT - 25 ) ) * MIN ( + ( 34 ) ) AS col1
----
2321

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

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

query I rowsort
SELECT + - 70 col2
----
-70

query I rowsort
SELECT DISTINCT - - 9 * - + 43 * 39 AS col0
----
-15093

query I rowsort
SELECT DISTINCT + 10 + + - 37
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2380
SELECT - 81 DIV 91 * 70 + + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-2380
SELECT - 81 / 91 * 70 + + - 38
----
-38

query I rowsort
SELECT + + 47 col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2382
SELECT ALL + - 96 + 82 DIV + 67 * + ( - COUNT( + 32 ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL + - 96 + 82 / + 67 * + ( - COUNT ( + 32 ) ) AS col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2383
SELECT COUNT( * ) - - ( + 24 ) - - 2 + - + 53 + - + NULLIF ( - + 61, - - COUNT( * ) ) DIV - 31
----
-27

skipif mysql # not compatible
query I rowsort label-2383
SELECT COUNT ( * ) - - ( + 24 ) - - 2 + - + 53 + - + NULLIF ( - + 61, - - COUNT ( * ) ) / - 31
----
-27

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

query I rowsort
SELECT DISTINCT 61 + - 58 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2386
SELECT ALL 96 + 60 DIV - 31, COUNT( 59 ) col1
----
95
1

skipif mysql # not compatible
query II rowsort label-2386
SELECT ALL 96 + 60 / - 31, COUNT ( 59 ) col1
----
95
1

query I rowsort
SELECT 75 - + 64 AS col0
----
11

query I rowsort
SELECT ALL 60 - + ( - 25 ) AS col1
----
85

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

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

query I rowsort
SELECT + 48 * 8
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL CASE + - NULLIF ( - + COALESCE ( + - COUNT( * ), - - ( 57 ) + - 27 * 53, 78 + + AVG ( ( - 42 ) ) ), + COUNT( ALL + - 9 ) ) WHEN - 12 THEN 48 END * 40 + COUNT( * ) + - 4 + + 92 + + - 98 * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL CASE + - NULLIF ( - + COALESCE ( + - COUNT ( * ), - - ( 57 ) + - 27 * 53, 78 + + AVG ( ( - 42 ) ) ), + COUNT ( ALL + - 9 ) ) WHEN - 12 THEN 48 END * 40 + COUNT ( * ) + - 4 + + 92 + + - 98 * + 15
----
NULL

query I rowsort
SELECT + 66 + 10 * + 80 * 58
----
46466

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

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

query I rowsort
SELECT + 12 * - 69
----
-828

query II rowsort
SELECT ALL 11 AS col0, 67 AS col0
----
11
67

query I rowsort
SELECT + 88 * + 72
----
6336

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT - 49 * 76 * 37 * ( + - 34 ) * + - 85 * - COUNT( * ) AS col1
----
398207320

skipif mysql # not compatible
query I rowsort label-2399
SELECT - 49 * 76 * 37 * ( + - 34 ) * + - 85 * - COUNT ( * ) AS col1
----
398207320

query I rowsort
SELECT + + 24 + 8
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT - - ( CASE - NULLIF ( + + COUNT( * ), + CASE 84 WHEN + - COUNT( DISTINCT + 26 ) THEN + + 51 * - 89 + - - 16 * + 90 * 42 WHEN - 64 * + - 82 THEN - 39 * 9 + 8 ELSE NULL END + - + 89 ) WHEN + - 94 THEN + 29 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT - - ( CASE - NULLIF ( + + COUNT ( * ), + CASE 84 WHEN + - COUNT ( DISTINCT + 26 ) THEN + + 51 * - 89 + - - 16 * + 90 * 42 WHEN - 64 * + - 82 THEN - 39 * 9 + 8 ELSE NULL END + - + 89 ) WHEN + - 94 THEN + 29 END ) AS col2
----
NULL

query I rowsort
SELECT ALL - 55 * 30 AS col2
----
-1650

query I rowsort
SELECT + - 49 + - 29 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - - 44 * COUNT( 53 ) * - + 4 AS col0
----
-176

skipif mysql # not compatible
query I rowsort label-2404
SELECT - - 44 * COUNT ( 53 ) * - + 4 AS col0
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL + + COUNT( * ) * + + ( - COUNT( * ) ) + 64 * + 93 * - 52 + - 50 + - COUNT( 72 ) + - + 58 * + 73 * + 24 * + 66 AS col1
----
-7016212

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL + + COUNT ( * ) * + + ( - COUNT ( * ) ) + 64 * + 93 * - 52 + - 50 + - COUNT ( 72 ) + - + 58 * + 73 * + 24 * + 66 AS col1
----
-7016212

query I rowsort
SELECT + + 75 * + 95 AS col2
----
7125

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

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

query I rowsort
SELECT + 25 - - ( + + 84 ) AS col0
----
109

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL + SUM( ALL - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL + SUM ( ALL - 18 ) AS col1
----
-18

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

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

query II rowsort
SELECT ALL + 26 AS col0, - 80 AS col0
----
26
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-2413
SELECT DISTINCT - 86 * 34 + - MAX( 7 ), - 65 AS col1
----
-2931
-65

skipif mysql # not compatible
query II rowsort label-2413
SELECT DISTINCT - 86 * 34 + - MAX ( 7 ), - 65 AS col1
----
-2931
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 59 + + - COALESCE ( 1, - - 3 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 59 + + - COALESCE ( 1, - - 3 ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2415
SELECT DISTINCT - ( 43 ) * 42 + - + NULLIF ( + 90, - 49 - + CAST( - - 99 AS DECIMAL ) ) DIV - + 7, 35 + + 55 AS col1
----
-1794
90

skipif mysql # not compatible
query II rowsort label-2415
SELECT DISTINCT - ( 43 ) * 42 + - + NULLIF ( + 90, - 49 - + CAST ( - - 99 AS REAL ) ) / - + 7, 35 + + 55 AS col1
----
-1794
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT 48 DIV COUNT( * ) - + 97 + - 88 * 43 + 13 AS col1
----
-3820

skipif mysql # not compatible
query I rowsort label-2416
SELECT 48 / COUNT ( * ) - + 97 + - 88 * 43 + 13 AS col1
----
-3820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2417
SELECT NULLIF ( 6, + 91 DIV + 83 + - 53 ) * + COALESCE ( 5, COALESCE ( 50, COALESCE ( + + 34, - + COUNT( * ) + 33 ), COUNT( * ) * + + 39 DIV + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * MAX( - + 96 ) * - 40 + + + 81 - 43, + - 60 ) - + + COALESCE ( - - 71, - - 9 + + 9 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-2417
SELECT NULLIF ( 6, + 91 / + 83 + - 53 ) * + COALESCE ( 5, COALESCE ( 50, COALESCE ( + + 34, - + COUNT ( * ) + 33 ), COUNT ( * ) * + + 39 / + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * MAX ( - + 96 ) * - 40 + + + 81 - 43, + - 60 ) - + + COALESCE ( - - 71, - - 9 + + 9 ) col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - + 73 + + MIN( - 69 ) * - 40
----
2687

skipif mysql # not compatible
query I rowsort label-2418
SELECT - + 73 + + MIN ( - 69 ) * - 40
----
2687

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT - - 93 + + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2420
SELECT - - 93 + + COUNT ( * ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT ALL + CASE + - 89 WHEN + ( COALESCE ( 22, - - 76 ) ) + 88 * - 85 THEN - 56 + - 14 WHEN - CAST( + 43 AS SIGNED ) THEN 84 ELSE CAST( NULL AS SIGNED ) / - 3 END * 46 - - 41 * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + CASE + - 89 WHEN + ( COALESCE ( 22, - - 76 ) ) + 88 * - 85 THEN - 56 + - 14 WHEN - CAST ( + 43 AS INTEGER ) THEN 84 ELSE CAST ( NULL AS INTEGER ) / - 3 END * 46 - - 41 * - 54
----
NULL

query I rowsort
SELECT - 26 * - + 10 * + 74 AS col0
----
19240

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL COALESCE ( - MIN( DISTINCT + + 37 ), CASE - - 82 WHEN - 41 THEN NULL ELSE + 67 END * COUNT( * ) + - COUNT( * ) * + 16 * - COALESCE ( 79, 43 + + + 69 * + - 17 * + - ( + 35 ) + 98 ), + 25 ) * - 33 - 37 - 69 AS col1
----
1115

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL COALESCE ( - MIN ( DISTINCT + + 37 ), CASE - - 82 WHEN - 41 THEN NULL ELSE + 67 END * COUNT ( * ) + - COUNT ( * ) * + 16 * - COALESCE ( 79, 43 + + + 69 * + - 17 * + - ( + 35 ) + 98 ), + 25 ) * - 33 - 37 - 69 AS col1
----
1115

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL + 52 * + COUNT( + 78 ) * 59 AS col2
----
3068

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL + 52 * + COUNT ( + 78 ) * 59 AS col2
----
3068

query I rowsort
SELECT DISTINCT - 97 * + 86 * + - 40
----
333680

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - ( COALESCE ( + 93, - + ( - 37 ) * - COUNT( * ) ) ) + 54 * - + 43
----
-2415

skipif mysql # not compatible
query I rowsort label-2428
SELECT - ( COALESCE ( + 93, - + ( - 37 ) * - COUNT ( * ) ) ) + 54 * - + 43
----
-2415

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT COUNT( * ) * + + 61 - + - 65 + 73 - ( - 82 ) * + 23 * + 32
----
60551

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT COUNT ( * ) * + + 61 - + - 65 + 73 - ( - 82 ) * + 23 * + 32
----
60551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2430
SELECT NULLIF ( - + 40, NULLIF ( + COUNT( DISTINCT 45 ), - 9 * + 30 - - - 89 ) ) * + 99 + 84 + + CAST( NULL AS SIGNED ) * + 69 * + ( + 20 ) + 79 + 89 + + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT NULLIF ( - + 40, NULLIF ( + COUNT ( DISTINCT 45 ), - 9 * + 30 - - - 89 ) ) * + 99 + 84 + + CAST ( NULL AS INTEGER ) * + 69 * + ( + 20 ) + 79 + 89 + + + 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2431
SELECT MIN( 74 ) AS col2, + 55
----
74
55

skipif mysql # not compatible
query II rowsort label-2431
SELECT MIN ( 74 ) AS col2, + 55
----
74
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2432
SELECT - 86 * ( + 90 ) DIV 4 + + CAST( + + COUNT( * ) AS SIGNED )
----
-1934

skipif mysql # not compatible
query I rowsort label-2432
SELECT - 86 * ( + 90 ) / 4 + + CAST ( + + COUNT ( * ) AS INTEGER )
----
-1934

onlyif mysql # DIV for integer division: 
query I rowsort label-2433
SELECT + 1 + 40 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-2433
SELECT + 1 + 40 / 53
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT - 30 + + 50 - + COUNT( * ) col2
----
19

skipif mysql # not compatible
query I rowsort label-2435
SELECT - 30 + + 50 - + COUNT ( * ) col2
----
19

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT ALL 0 * - - CAST( + 72 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL 0 * - - CAST ( + 72 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT + 6 + + 85
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2439
SELECT + 82 + + SUM( DISTINCT - 30 ) * - - 39 DIV COUNT( * ) AS col0
----
-1088

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 82 + + SUM ( DISTINCT - 30 ) * - - 39 / COUNT ( * ) AS col0
----
-1088

query I rowsort
SELECT ALL + COALESCE ( + 76, - + ( + 11 ) ) + 27
----
103

query I rowsort
SELECT + 59 * + ( + + 77 )
----
4543

query I rowsort
SELECT - - ( 39 ) * - ( 62 ) + - - 6
----
-2412

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT + 26 + ( - CASE + + 42 WHEN - 52 THEN 53 * 51 * 70 + - CASE + + COUNT( * ) WHEN ( - 44 ) THEN - 86 ELSE - - 83 END + + COUNT( * ) WHEN + + COUNT( * ) + - 67 + 94 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT + 26 + ( - CASE + + 42 WHEN - 52 THEN 53 * 51 * 70 + - CASE + + COUNT ( * ) WHEN ( - 44 ) THEN - 86 ELSE - - 83 END + + COUNT ( * ) WHEN + + COUNT ( * ) + - 67 + 94 THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2445
SELECT + 0 DIV SUM( ALL 36 )
----
0

skipif mysql # not compatible
query I rowsort label-2445
SELECT + 0 / SUM ( ALL 36 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT + 70 + - 21 DIV - 54 * - 93 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-2446
SELECT + 70 + - 21 / - 54 * - 93 AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT COALESCE ( - ( + 73 ), + 52 + - + COALESCE ( + - COUNT( * ), - 56 + 39, - COUNT( ALL - - 83 ) ) ), 36 + + 68 * - 52 - - 59 AS col1
----
-73
-3441

skipif mysql # not compatible
query II rowsort label-2447
SELECT COALESCE ( - ( + 73 ), + 52 + - + COALESCE ( + - COUNT ( * ), - 56 + 39, - COUNT ( ALL - - 83 ) ) ), 36 + + 68 * - 52 - - 59 AS col1
----
-73
-3441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2448
SELECT + - 12 + + 72 * - + CASE + + CAST( NULL AS SIGNED ) WHEN 71 + - - ( - 90 ) + 80 THEN - 64 * + COUNT( * ) + - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT + - 12 + + 72 * - + CASE + + CAST ( NULL AS INTEGER ) WHEN 71 + - - ( - 90 ) + 80 THEN - 64 * + COUNT ( * ) + - 93 END
----
NULL

query I rowsort
SELECT DISTINCT ( - - 61 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2450
SELECT ALL MIN( - 35 ) DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL MIN ( - 35 ) / + 45
----
0

query I rowsort
SELECT + + 38 + + 53
----
91

query I rowsort
SELECT ALL + 32 + - 27 - 69 AS col1
----
-64

query I rowsort
SELECT DISTINCT - 10 + + 95 * + 54
----
5120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2454
SELECT ALL + COUNT( 61 ) + + 40 + - 35, 11 + - COUNT( * ) * - 51 + - + ( COUNT( * ) ) DIV MAX( DISTINCT + + 55 ) AS col1
----
6
62

skipif mysql # not compatible
query II rowsort label-2454
SELECT ALL + COUNT ( 61 ) + + 40 + - 35, 11 + - COUNT ( * ) * - 51 + - + ( COUNT ( * ) ) / MAX ( DISTINCT + + 55 ) AS col1
----
6
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT ALL + 3 DIV + + 92 - + 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + 3 / + + 92 - + 44 AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT DISTINCT - ( - 45 ) * CASE CAST( + MIN( ALL + 68 ) AS SIGNED ) WHEN 12 + 95 THEN NULL WHEN 78 + + COUNT( * ) THEN NULL ELSE - + 81 END * - 83
----
302535

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT - ( - 45 ) * CASE CAST ( + MIN ( ALL + 68 ) AS INTEGER ) WHEN 12 + 95 THEN NULL WHEN 78 + + COUNT ( * ) THEN NULL ELSE - + 81 END * - 83
----
302535

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + + COUNT( * ) * - 82 col0
----
-82

skipif mysql # not compatible
query I rowsort label-2457
SELECT + + COUNT ( * ) * - 82 col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL + COALESCE ( - COUNT( * ), 46 + - - NULLIF ( + - 79, + 92 * + 37 ) * + 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL + COALESCE ( - COUNT ( * ), 46 + - - NULLIF ( + - 79, + 92 * + 37 ) * + 68 )
----
-1

query I rowsort
SELECT ALL 61 * + 74 * + - 21 AS col2
----
-94794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2460
SELECT ALL + CAST( - - 78 AS SIGNED ) DIV COUNT( * ) * - COUNT( * ) * + + MAX( DISTINCT - 12 ) - + 53 + - ( + 74 ) AS col2
----
809

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL + CAST ( - - 78 AS INTEGER ) / COUNT ( * ) * - COUNT ( * ) * + + MAX ( DISTINCT - 12 ) - + 53 + - ( + 74 ) AS col2
----
809

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2462
SELECT CAST( 94 AS SIGNED ) - + 35 DIV - - 27 + 22
----
115

skipif mysql # not compatible
query I rowsort label-2462
SELECT CAST ( 94 AS INTEGER ) - + 35 / - - 27 + 22
----
115

query I rowsort
SELECT ALL - COALESCE ( - 6, + 19 + - - 54 ) AS col2
----
6

query II rowsort
SELECT DISTINCT - 49, + 7 AS col2
----
-49
7

query I rowsort
SELECT 90 * - 33
----
-2970

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

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

query I rowsort
SELECT ALL + 48 * - - CASE - 63 WHEN - 83 - NULLIF ( + 45, 29 ) THEN 89 END
----
NULL

query I rowsort
SELECT ALL + 76 + + 44 AS col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2470
SELECT DISTINCT + COUNT( * ) + - - CAST( + - MIN( DISTINCT + - 54 ) AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT + COUNT ( * ) + - - CAST ( + - MIN ( DISTINCT + - 54 ) AS INTEGER )
----
55

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

query I rowsort
SELECT DISTINCT - 3 * - 2 * 10 * 93
----
5580

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL + NULLIF ( + 93, + COUNT( * ) * - + 58 ) + 20 * + 98 + + COUNT( * )
----
2054

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + NULLIF ( + 93, + COUNT ( * ) * - + 58 ) + 20 * + 98 + + COUNT ( * )
----
2054

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT 6 * - ( + 89 ) * + 41 * + + COUNT( * ) AS col0
----
-21894

skipif mysql # not compatible
query I rowsort label-2474
SELECT 6 * - ( + 89 ) * + 41 * + + COUNT ( * ) AS col0
----
-21894

query II rowsort
SELECT 9 + + - 22 + + 33 AS col1, + 73
----
20
73

query I rowsort
SELECT 15 * - 84 AS col0
----
-1260

query I rowsort
SELECT 50 * 90
----
4500

query I rowsort
SELECT ALL - + 32 + 89 * + 66 AS col1
----
5842

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

skipif mysql # not compatible
query I rowsort label-2479
SELECT - MIN ( ALL - 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL + 22 + - 52 * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + 22 + - 52 * COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT - ( - SUM( ALL + 6 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2481
SELECT - ( - SUM ( ALL + 6 ) ) AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2482
SELECT - - 99 AS col2, 83 * CAST( NULL AS SIGNED ), - 56 AS col2
----
99
NULL
-56

skipif mysql # not compatible
query III rowsort label-2482
SELECT - - 99 AS col2, 83 * CAST ( NULL AS INTEGER ), - 56 AS col2
----
99
NULL
-56

query I rowsort
SELECT ALL NULLIF ( - - 24, - 79 ) AS col0
----
24

query I rowsort
SELECT COALESCE ( + - 13, 81 * - - 19 )
----
-13

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2486
SELECT ALL + 61 + - 63 + + + CAST( 35 AS SIGNED ) + - COUNT( * ) * - 0 col1, ( - + 73 ) + - 32 AS col2
----
33
-105

skipif mysql # not compatible
query II rowsort label-2486
SELECT ALL + 61 + - 63 + + + CAST ( 35 AS INTEGER ) + - COUNT ( * ) * - 0 col1, ( - + 73 ) + - 32 AS col2
----
33
-105

query I rowsort
SELECT ALL 73 + 8 * 6 * 98 AS col1
----
4777

query I rowsort
SELECT DISTINCT - 70 * 87 * + 9 AS col2
----
-54810

query I rowsort
SELECT - 87 + - 99
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT - 61 * - COUNT( * ) - + 82 + - 35 * - - 59 - 86 col1
----
-2172

skipif mysql # not compatible
query I rowsort label-2490
SELECT - 61 * - COUNT ( * ) - + 82 + - 35 * - - 59 - 86 col1
----
-2172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2491
SELECT ALL NULLIF ( - - 20, - MAX( ALL - 6 ) ) * + ( - 39 ) + - COALESCE ( - 51, - - 3 - COALESCE ( + 55, 83, 94 DIV + - 96 * - NULLIF ( + + 83, - + AVG ( 84 ) ) ), + 94 * 63 + + 89 + + + COUNT( + - 96 ) )
----
-729

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL NULLIF ( - - 20, - MAX ( ALL - 6 ) ) * + ( - 39 ) + - COALESCE ( - 51, - - 3 - COALESCE ( + 55, 83, 94 / + - 96 * - NULLIF ( + + 83, - + AVG ( 84 ) ) ), + 94 * 63 + + 89 + + + COUNT ( + - 96 ) )
----
-729

query I rowsort
SELECT - 0 + - + 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT + 9 * - COUNT( * ) * + 86 + - 36 + + 72 * + + 28 col0
----
1206

skipif mysql # not compatible
query I rowsort label-2493
SELECT + 9 * - COUNT ( * ) * + 86 + - 36 + + 72 * + + 28 col0
----
1206

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2498
SELECT + 81 DIV - - 4 + - - 32 AS col2, 27 AS col1
----
52
27

skipif mysql # not compatible
query II rowsort label-2498
SELECT + 81 / - - 4 + - - 32 AS col2, 27 AS col1
----
52
27

query II rowsort
SELECT ALL - - 76 AS col2, 97 AS col1
----
76
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT ALL - COALESCE ( - NULLIF ( + 61, ( + CASE - CAST( NULL AS SIGNED ) WHEN + 70 THEN 39 END ) ), + 70 + - + 24, - - MIN( ALL 23 ) + 85 + - COALESCE ( - + 95, 75 ) - - 32 + + NULLIF ( + COUNT( * ), - - SUM( + 78 ) ) * + 9 )
----
61

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL - COALESCE ( - NULLIF ( + 61, ( + CASE - CAST ( NULL AS INTEGER ) WHEN + 70 THEN 39 END ) ), + 70 + - + 24, - - MIN ( ALL 23 ) + 85 + - COALESCE ( - + 95, 75 ) - - 32 + + NULLIF ( + COUNT ( * ), - - SUM ( + 78 ) ) * + 9 )
----
61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2502
SELECT ALL 79 DIV - - 5 * + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL 79 / - - 5 * + COUNT ( * )
----
15

query I rowsort
SELECT 75 + - + 99 * 65 * + + ( + 23 )
----
-147930

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT DISTINCT COUNT( * ) * - 82 * - + 13 AS col0
----
1066

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT COUNT ( * ) * - 82 * - + 13 AS col0
----
1066

query I rowsort
SELECT ALL COALESCE ( - - 73, 5 ) * - 91 * + + 4 * 54
----
-1434888

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

skipif mysql # not compatible
query I rowsort label-2506
SELECT ( - 15 ) / COUNT ( * )
----
-15

query I rowsort
SELECT 29 + ( + - 14 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL 7 * + - COUNT( * ) * - 9 * ( 61 ) col2
----
3843

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL 7 * + - COUNT ( * ) * - 9 * ( 61 ) col2
----
3843

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT - SUM( - 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - SUM ( - 86 ) AS col0
----
86

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2511
SELECT DISTINCT 36 * 14 AS col1, + COUNT( * ) * - ( - 79 )
----
504
79

skipif mysql # not compatible
query II rowsort label-2511
SELECT DISTINCT 36 * 14 AS col1, + COUNT ( * ) * - ( - 79 )
----
504
79

query I rowsort
SELECT COALESCE ( - 85, + + 89 + - 88 + + 96 ) + 16 * + + 63
----
923

query I rowsort
SELECT - 58 * + 49 + - - 24 * 57 col2
----
-1474

query I rowsort
SELECT 51 * + 96
----
4896

query II rowsort
SELECT - 18 AS col2, 38
----
-18
38

query I rowsort
SELECT ALL + - 42 + - - 90 + 11 col1
----
59

query I rowsort
SELECT ALL + 76 * 31 * + 32 AS col0
----
75392

query I rowsort
SELECT - 91 + + 77 + + 50 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT 61 + + COALESCE ( 8, + COUNT( 67 ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT 61 + + COALESCE ( 8, + COUNT ( 67 ) ) AS col0
----
69

query I rowsort
SELECT 44 + 99 + 98
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT DISTINCT - - COUNT( * ) + + 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT - - COUNT ( * ) + + 81 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT DISTINCT NULLIF ( 50, COUNT( * ) + - 1 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT NULLIF ( 50, COUNT ( * ) + - 1 ) col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL + NULLIF ( - + COUNT( * ), 54 + COALESCE ( - 78, - 19 ) ) - + + 50 * - 57 AS col0
----
2849

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL + NULLIF ( - + COUNT ( * ), 54 + COALESCE ( - 78, - 19 ) ) - + + 50 * - 57 AS col0
----
2849

query II rowsort
SELECT - 60 AS col1, ( + + ( - 95 ) ) AS col1
----
-60
-95

query I rowsort
SELECT ALL - + 37 * + - 91
----
3367

query I rowsort
SELECT - - COALESCE ( - 19, + 79 ) AS col2
----
-19

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2529
SELECT + 68 + + 37 * 9 DIV COUNT( * ) + - + 26 + + 26
----
401

skipif mysql # not compatible
query I rowsort label-2529
SELECT + 68 + + 37 * 9 / COUNT ( * ) + - + 26 + + 26
----
401

query I rowsort
SELECT - 7 * - 65 AS col1
----
455

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

query I rowsort
SELECT 93 + + 65
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2533
SELECT ALL + 95 AS col2, 89 + + CAST( NULL AS SIGNED ) AS col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-2533
SELECT ALL + 95 AS col2, 89 + + CAST ( NULL AS INTEGER ) AS col0
----
95
NULL

query II rowsort
SELECT - + 85, 14 + 28 col2
----
-85
42

query I rowsort
SELECT ALL NULLIF ( 69, - - 94 * 98 * - 85 + 41 + 95 - + + 24 ) AS col0
----
69

query I rowsort
SELECT ALL + 93 * + 11
----
1023

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

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

query I rowsort
SELECT - ( - 30 ) * + - 71 AS col0
----
-2130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT DISTINCT SUM( 9 ) * + + NULLIF ( + - ( - COUNT( * ) ), 9 * ( + - CAST( + 12 AS SIGNED ) ) + + 2 - - 43 * 7 * - + 0 + - 75 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT SUM ( 9 ) * + + NULLIF ( + - ( - COUNT ( * ) ), 9 * ( + - CAST ( + 12 AS INTEGER ) ) + + 2 - - 43 * 7 * - + 0 + - 75 ) AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2540
SELECT - CAST( 76 AS SIGNED ) * - 49 - + - COUNT( * )
----
3725

skipif mysql # not compatible
query I rowsort label-2540
SELECT - CAST ( 76 AS INTEGER ) * - 49 - + - COUNT ( * )
----
3725

query I rowsort
SELECT + 2 * + - 42
----
-84

query I rowsort
SELECT COALESCE ( + 53, - - 23 + + + 45 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT CASE - + 33 WHEN + 52 * MIN( - 26 ) THEN NULL WHEN + 73 * - 55 THEN + 33 * + MAX( - ( + 83 ) ) + - + NULLIF ( 90, + COUNT( ALL - 50 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT CASE - + 33 WHEN + 52 * MIN ( - 26 ) THEN NULL WHEN + 73 * - 55 THEN + 33 * + MAX ( - ( + 83 ) ) + - + NULLIF ( 90, + COUNT ( ALL - 50 ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2544
SELECT CASE - + 88 WHEN 48 THEN - 70 * - 55 + + + CAST( NULL AS DECIMAL ) WHEN + - 19 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT CASE - + 88 WHEN 48 THEN - 70 * - 55 + + + CAST ( NULL AS REAL ) WHEN + - 19 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2545
SELECT + 66 * - + CAST( 80 AS SIGNED ) col2
----
-5280

skipif mysql # not compatible
query I rowsort label-2545
SELECT + 66 * - + CAST ( 80 AS INTEGER ) col2
----
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT + MAX( DISTINCT - - CASE - 85 WHEN - + 47 THEN - 30 END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT + MAX ( DISTINCT - - CASE - 85 WHEN - + 47 THEN - 30 END ) col2
----
NULL

query II rowsort
SELECT - 54 - + - 99 AS col2, - 40 * + - 48
----
45
1920

query I rowsort
SELECT - 71 * NULLIF ( - 32, + COALESCE ( + 20, - 41 + 8, - - 24 ) )
----
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT 94 * + 3 + + 55 - - - 88 * - 23 * - + SUM( ALL 90 ) AS col1
----
-181823

skipif mysql # not compatible
query I rowsort label-2549
SELECT 94 * + 3 + + 55 - - - 88 * - 23 * - + SUM ( ALL 90 ) AS col1
----
-181823

query I rowsort
SELECT + 36 * + - 33 AS col1
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT + 53 + - COUNT( * ) + - 0 * 28 + + 89 * + COUNT( * ) * + 48 + + + 90 + - + NULLIF ( + + 90, + - 25 * 18 ) * - 87 + + + 67 + + + 83
----
12394

skipif mysql # not compatible
query I rowsort label-2551
SELECT + 53 + - COUNT ( * ) + - 0 * 28 + + 89 * + COUNT ( * ) * + 48 + + + 90 + - + NULLIF ( + + 90, + - 25 * 18 ) * - 87 + + + 67 + + + 83
----
12394

onlyif mysql # aggregate syntax: 
query II rowsort label-2552
SELECT DISTINCT + 65 * + NULLIF ( + - 83, - + 42 + + + COUNT( * ) ) * COALESCE ( + 78, - 83, - COUNT( * ) ) * - 39 + - 4 + 76, - COUNT( * ) AS col1
----
16411662
-1

skipif mysql # not compatible
query II rowsort label-2552
SELECT DISTINCT + 65 * + NULLIF ( + - 83, - + 42 + + + COUNT ( * ) ) * COALESCE ( + 78, - 83, - COUNT ( * ) ) * - 39 + - 4 + 76, - COUNT ( * ) AS col1
----
16411662
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT + MAX( + 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-2553
SELECT + MAX ( + 55 ) AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT - 88 DIV 54
----
-1

skipif mysql # not compatible
query I rowsort label-2554
SELECT - 88 / 54
----
-1

query II rowsort
SELECT + 0 * + + 64 AS col1, 34 * 61
----
0
2074

query I rowsort
SELECT + NULLIF ( - + 92, 79 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2557
SELECT ALL + COALESCE ( + 99, - 52, - 33 - + CAST( NULL AS SIGNED ) ) col0, + 66 col0
----
99
66

skipif mysql # not compatible
query II rowsort label-2557
SELECT ALL + COALESCE ( + 99, - 52, - 33 - + CAST ( NULL AS INTEGER ) ) col0, + 66 col0
----
99
66

query II rowsort
SELECT + 46 + + 15, + 63 AS col1
----
61
63

query I rowsort
SELECT - - 75 * 39 AS col1
----
2925

query I rowsort
SELECT CASE + ( - 96 ) WHEN + 20 THEN - 1 ELSE - - 96 END AS col0
----
96

query I rowsort
SELECT DISTINCT + COALESCE ( + 62, + - 86 )
----
62

query I rowsort
SELECT DISTINCT - 71 * 15 - + 17 AS col1
----
-1082

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2563
SELECT - 18 * 46 AS col2, + COUNT( * ) - + 31 * 27 DIV 79
----
-828
-9

skipif mysql # not compatible
query II rowsort label-2563
SELECT - 18 * 46 AS col2, + COUNT ( * ) - + 31 * 27 / 79
----
-828
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2564
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 95, 94 AS col1, - 18 + + - MAX( ALL 76 ) + - - COUNT( * ) AS col0
----
NULL
94
-93

skipif mysql # not compatible
query III rowsort label-2564
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 95, 94 AS col1, - 18 + + - MAX ( ALL 76 ) + - - COUNT ( * ) AS col0
----
NULL
94
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2565
SELECT - + 99 DIV COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2565
SELECT - + 99 / COUNT ( * ) AS col0
----
-99

query I rowsort
SELECT ALL - - 30 * - - 49
----
1470

onlyif mysql # aggregate syntax: 
query II rowsort label-2567
SELECT 38 AS col0, COUNT( * ) AS col1
----
38
1

skipif mysql # not compatible
query II rowsort label-2567
SELECT 38 AS col0, COUNT ( * ) AS col1
----
38
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT - 96 + - 34 DIV 49 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2569
SELECT - 96 + - 34 / 49 AS col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT - 2 DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT - 2 / - 26
----
0

query I rowsort
SELECT DISTINCT 61 + 87 + - 50
----
98

query I rowsort
SELECT DISTINCT ( + + 39 ) AS col2
----
39

query I rowsort
SELECT ALL + 81 / CASE - 25 WHEN 40 THEN NULL WHEN 6 THEN NULL WHEN + - 6 * + 45 + + 87 + - 81 + - + 67 * 97 + + 14 + - 23 THEN + ( - 45 ) * 0 / 86 + + COALESCE ( - 0, + 21 ) + 84 END + - + ( + 85 ) + - 0 / + 93
----
NULL

query I rowsort
SELECT - 66 + 63
----
-3

query II rowsort
SELECT ALL + 90 col1, ( - ( + + 58 ) ) AS col2
----
90
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2576
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( - - 34 AS SIGNED ) * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( - - 34 AS INTEGER ) * - 50
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2577
SELECT - 70 DIV 63 * ( - ( + 1 ) ) + + - 13
----
-12

skipif mysql # not compatible
query I rowsort label-2577
SELECT - 70 / 63 * ( - ( + 1 ) ) + + - 13
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2578
SELECT CAST( NULL AS SIGNED ) col0, + 80 + + NULLIF ( 89, 99 ) + CASE - - 87 WHEN + - NULLIF ( - + 14, - 17 ) * + 39 / + 67 - + 42 * + + 36 - - 24 * 63 THEN + 55 + + + COUNT( * ) / - COUNT( * ) + - ( + - 23 ) * 45 + - CAST( 86 AS DECIMAL ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2578
SELECT CAST ( NULL AS INTEGER ) col0, + 80 + + NULLIF ( 89, 99 ) + CASE - - 87 WHEN + - NULLIF ( - + 14, - 17 ) * + 39 / + 67 - + 42 * + + 36 - - 24 * 63 THEN + 55 + + + COUNT ( * ) / - COUNT ( * ) + - ( + - 23 ) * 45 + - CAST ( 86 AS REAL ) END AS col1
----
NULL
NULL

query I rowsort
SELECT - 30 + COALESCE ( 75, + + 87 ) * 33 - + ( 98 ) col2
----
2347

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT 26 * + + 54 + - 36 - COUNT( * ) col1
----
1367

skipif mysql # not compatible
query I rowsort label-2580
SELECT 26 * + + 54 + - 36 - COUNT ( * ) col1
----
1367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2581
SELECT + 12 + - 80 * 18 - + 79 + - CASE - 16 WHEN 82 * 99 / + + COUNT( * ) THEN NULL ELSE - + CASE + + COALESCE ( - 46, - MAX( ALL - 54 ) * - + NULLIF ( + - 16, - + 63 ) + + COUNT( * ) + + + CAST( NULL AS SIGNED ) * 9 * - SUM( ALL CAST( - 76 AS SIGNED ) ) ) WHEN + 26 + - - CAST( NULL AS DECIMAL ) THEN NULL ELSE - COUNT( * ) END + - - 86 + - 27 + - 51 + + 36 + + 78 + 81 * CAST( NULL AS SIGNED ) * - 66 END * + - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2581
SELECT + 12 + - 80 * 18 - + 79 + - CASE - 16 WHEN 82 * 99 / + + COUNT ( * ) THEN NULL ELSE - + CASE + + COALESCE ( - 46, - MAX ( ALL - 54 ) * - + NULLIF ( + - 16, - + 63 ) + + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * 9 * - SUM ( ALL CAST ( - 76 AS INTEGER ) ) ) WHEN + 26 + - - CAST ( NULL AS REAL ) THEN NULL ELSE - COUNT ( * ) END + - - 86 + - 27 + - 51 + + 36 + + 78 + 81 * CAST ( NULL AS INTEGER ) * - 66 END * + - 3 AS col2
----
NULL

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

query I rowsort
SELECT ALL 35 * 29 * 61 AS col2
----
61915

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT DISTINCT - MAX( - - 83 ) * - MIN( 55 ) - + 73 AS col2
----
4492

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT - MAX ( - - 83 ) * - MIN ( 55 ) - + 73 AS col2
----
4492

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

query I rowsort
SELECT ALL - ( + 69 ) * - 74 - + 60 AS col1
----
5046

onlyif mysql # aggregate syntax: 
query II rowsort label-2587
SELECT DISTINCT + ( + SUM( ALL 59 ) ), - 10 * + COUNT( DISTINCT + 81 ) + 94 AS col2
----
59
84

skipif mysql # not compatible
query II rowsort label-2587
SELECT DISTINCT + ( + SUM ( ALL 59 ) ), - 10 * + COUNT ( DISTINCT + 81 ) + 94 AS col2
----
59
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT + ( CAST( + + ( + - 94 ) AS SIGNED ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2588
SELECT + ( CAST ( + + ( + - 94 ) AS INTEGER ) ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL + + SUM( - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL + + SUM ( - 42 ) AS col0
----
-42

query I rowsort
SELECT - 26 + 38
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT - + 10 DIV + 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2591
SELECT - + 10 / + 32 AS col0
----
0

query I rowsort
SELECT + + 4 * - - NULLIF ( 30, - 64 ) col0
----
120

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

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

query II rowsort
SELECT 74, - 53 * + - 3 AS col0
----
74
159

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2595
SELECT + 79 * - 78 * + - CASE - - 68 WHEN - 68 THEN - + 45 WHEN + 42 / + 2 - 21 + 30 - + 97 * + - CAST( - - 42 AS DECIMAL ) * + - AVG ( 7 ) * + COALESCE ( + + COUNT( * ), - COALESCE ( 98, 59 - - 42 * - + 58 ) * 61 / 85, - 93 ) / - - ( NULLIF ( 76, + MIN( ALL - - 85 ) * SUM( 83 ) ) ) THEN NULL WHEN 19 + 10 + AVG ( ALL - 30 ) THEN NULL END * + 58 + 67 + + - 25 * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT + 79 * - 78 * + - CASE - - 68 WHEN - 68 THEN - + 45 WHEN + 42 / + 2 - 21 + 30 - + 97 * + - CAST ( - - 42 AS REAL ) * + - AVG ( 7 ) * + COALESCE ( + + COUNT ( * ), - COALESCE ( 98, 59 - - 42 * - + 58 ) * 61 / 85, - 93 ) / - - ( NULLIF ( 76, + MIN ( ALL - - 85 ) * SUM ( 83 ) ) ) THEN NULL WHEN 19 + 10 + AVG ( ALL - 30 ) THEN NULL END * + 58 + 67 + + - 25 * + 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT ALL + CASE - + MIN( + 22 ) WHEN + 24 THEN - 24 WHEN - COUNT( * ) - - 81 * - CAST( 18 AS SIGNED ) THEN + COUNT( * ) WHEN + - 28 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL + CASE - + MIN ( + 22 ) WHEN + 24 THEN - 24 WHEN - COUNT ( * ) - - 81 * - CAST ( 18 AS INTEGER ) THEN + COUNT ( * ) WHEN + - 28 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT + 67 AS col1, ( - 14 ) col2
----
67
-14

query I rowsort
SELECT + + 55 + - 16 AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT ALL 97 * + 85 + + - 9 + + ( + MAX( - - 41 ) ) * + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL 97 * + 85 + + - 9 + + ( + MAX ( - - 41 ) ) * + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT + 67 DIV 10 col0
----
6

skipif mysql # not compatible
query I rowsort label-2600
SELECT + 67 / 10 col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2601
SELECT + 36 * COUNT( * ) * + COUNT( * ), 71 DIV 61 AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-2601
SELECT + 36 * COUNT ( * ) * + COUNT ( * ), 71 / 61 AS col2
----
36
1

query I rowsort
SELECT ALL 6 * + 40 + 72 * 23 AS col1
----
1896

query I rowsort
SELECT + - ( - 94 ) + + 30
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2604
SELECT DISTINCT - - 41 DIV + COALESCE ( SUM( ALL 37 ), - CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT - - 41 / + COALESCE ( SUM ( ALL 37 ), - CAST ( NULL AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2605
SELECT ALL ( - 85 ) * - - COUNT( * ) - + + 2 AS col0, ( - COUNT( * ) )
----
-87
-1

skipif mysql # not compatible
query II rowsort label-2605
SELECT ALL ( - 85 ) * - - COUNT ( * ) - + + 2 AS col0, ( - COUNT ( * ) )
----
-87
-1

query I rowsort
SELECT + + 52 + + 7 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT - 41 * - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT - 41 * - COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT 68 * COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT 68 * COUNT ( * ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2609
SELECT ALL - ( - COALESCE ( + 75, CAST( NULL AS SIGNED ) * + + 53 ) )
----
75

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL - ( - COALESCE ( + 75, CAST ( NULL AS INTEGER ) * + + 53 ) )
----
75

query I rowsort
SELECT ALL + CASE + + 47 WHEN - - 54 THEN 26 * + + 17 END AS col0
----
NULL

query I rowsort
SELECT ( + - 67 ) * - 64 AS col1
----
4288

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL - ( CASE + COALESCE ( + 34, ( - 98 ), + - 4, + CASE 65 WHEN + 81 THEN NULL WHEN - 34 THEN NULL WHEN + 70 THEN - COUNT( * ) + + + AVG ( ALL + 32 ) END + - + ( 83 ) ) WHEN 99 THEN - 93 ELSE NULL END ) + + + 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - ( CASE + COALESCE ( + 34, ( - 98 ), + - 4, + CASE 65 WHEN + 81 THEN NULL WHEN - 34 THEN NULL WHEN + 70 THEN - COUNT ( * ) + + + AVG ( ALL + 32 ) END + - + ( 83 ) ) WHEN 99 THEN - 93 ELSE NULL END ) + + + 82 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2613
SELECT - 63 AS col2, 23 DIV - 78 AS col2
----
-63
0

skipif mysql # not compatible
query II rowsort label-2613
SELECT - 63 AS col2, 23 / - 78 AS col2
----
-63
0

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

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

query II rowsort
SELECT DISTINCT 49 + + 54 * + 74 * 36 AS col0, 58
----
143905
58

query I rowsort
SELECT ALL + 93 + + 94 * + 77 * + - ( - 60 ) + - + 0
----
434373

query I rowsort
SELECT DISTINCT 14 + + - 68 + + 69 * 7
----
429

query I rowsort
SELECT ALL 48 + + 3 col1
----
51

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

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

query I rowsort
SELECT 35 * + 96 AS col2
----
3360

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2622
SELECT 25 * 76 col0, 74 + + NULLIF ( + - COUNT( * ), - 75 + 23 + 69 )
----
1900
73

skipif mysql # not compatible
query II rowsort label-2622
SELECT 25 * 76 col0, 74 + + NULLIF ( + - COUNT ( * ), - 75 + 23 + 69 )
----
1900
73

query I rowsort
SELECT 60 * - 66 AS col0
----
-3960

onlyif mysql # aggregate syntax: 
query II rowsort label-2624
SELECT DISTINCT - MAX( DISTINCT + 54 ) col1, COUNT( * ) * + 33
----
-54
33

skipif mysql # not compatible
query II rowsort label-2624
SELECT DISTINCT - MAX ( DISTINCT + 54 ) col1, COUNT ( * ) * + 33
----
-54
33

query I rowsort
SELECT 35 * NULLIF ( - - 58, 53 + - 11 ) * 39
----
79170

query I rowsort
SELECT ALL 6 * + 67 col2
----
402

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

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

query I rowsort
SELECT ALL - 95 * + 75 AS col0
----
-7125

query I rowsort
SELECT 99 + ( + 55 ) AS col2
----
154

query I rowsort
SELECT ALL - 53 * + 62
----
-3286

query I rowsort
SELECT - 37 * 8
----
-296

query I rowsort
SELECT 19 + + 20
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2633
SELECT - SUM( - - 33 ), 9 * - - COUNT( * ) DIV + + COUNT( * ) AS col0
----
-33
9

skipif mysql # not compatible
query II rowsort label-2633
SELECT - SUM ( - - 33 ), 9 * - - COUNT ( * ) / + + COUNT ( * ) AS col0
----
-33
9

query I rowsort
SELECT ALL - 4 * + - 86 + 44
----
388

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

query II rowsort
SELECT + 78 - + 70 col1, 16
----
8
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2637
SELECT ALL + NULLIF ( 84, 39 ) + - COUNT( * ) DIV + 7 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL + NULLIF ( 84, 39 ) + - COUNT ( * ) / + 7 AS col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT ALL - 38 DIV - + ( - 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL - 38 / - + ( - 34 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2639
SELECT - NULLIF ( - + 21, + 28 + 32 ) DIV 22 + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2639
SELECT - NULLIF ( - + 21, + 28 + 32 ) / 22 + - + COUNT ( * )
----
-1

query I rowsort
SELECT 78 * 38 AS col2
----
2964

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

skipif mysql # not compatible
query I rowsort label-2641
SELECT + CAST ( NULL AS INTEGER ) + + 72 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT ALL 97 DIV + + COALESCE ( 25, 81, 84 ) - - 87 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL 97 / + + COALESCE ( 25, 81, 84 ) - - 87 AS col1
----
90

query I rowsort
SELECT - CASE + - 6 WHEN + 97 + - 19 THEN 48 END / - 56 - - - 55 + + 85
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2644
SELECT + 37 DIV - 92 * 20 + + COUNT( * ) - + 31 - - ( COUNT( * ) ) AS col2, + 62 AS col2
----
-29
62

skipif mysql # not compatible
query II rowsort label-2644
SELECT + 37 / - 92 * 20 + + COUNT ( * ) - + 31 - - ( COUNT ( * ) ) AS col2, + 62 AS col2
----
-29
62

query I rowsort
SELECT + 76 - - + 52
----
128

query I rowsort
SELECT - - 16 col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL - 86 + + COALESCE ( + - COUNT( * ), + 35 + + - 75, - 3 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - 86 + + COALESCE ( + - COUNT ( * ), + 35 + + - 75, - 3 ) AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2648
SELECT ALL CAST( 66 AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL CAST ( 66 AS INTEGER ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL + - 71 / + CASE - 16 WHEN + 43 THEN - + NULLIF ( - 83, - COUNT( * ) * 45 ) * + COUNT( * ) * - 15 ELSE NULL END - - 11 * 50 * + 64 / - COUNT( * ) + NULLIF ( 20, - + 8 ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL + - 71 / + CASE - 16 WHEN + 43 THEN - + NULLIF ( - 83, - COUNT ( * ) * 45 ) * + COUNT ( * ) * - 15 ELSE NULL END - - 11 * 50 * + 64 / - COUNT ( * ) + NULLIF ( 20, - + 8 ) * 20
----
NULL

query I rowsort
SELECT ALL 61 * + 52 * 60
----
190320

query I rowsort
SELECT 19 * + 50
----
950

query I rowsort
SELECT ALL 73 + + ( 40 )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT COUNT( * ) + + + 51 * - 1 - + 11 + + 15
----
-46

skipif mysql # not compatible
query I rowsort label-2653
SELECT COUNT ( * ) + + + 51 * - 1 - + 11 + + 15
----
-46

query I rowsort
SELECT 9 + - 74 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT COUNT( * ) * - 5 * - 2 * - COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-2655
SELECT COUNT ( * ) * - 5 * - 2 * - COUNT ( * ) AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2656
SELECT ( + + 71 ) + 79 + + + 98 * 78 DIV - COUNT( * ) col2
----
-7494

skipif mysql # not compatible
query I rowsort label-2656
SELECT ( + + 71 ) + 79 + + + 98 * 78 / - COUNT ( * ) col2
----
-7494

query I rowsort
SELECT ALL 45 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT COUNT( * ) + - 35 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-2658
SELECT COUNT ( * ) + - 35 AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT COUNT( * ) DIV + 20 + - 6 - + 64
----
-70

skipif mysql # not compatible
query I rowsort label-2659
SELECT COUNT ( * ) / + 20 + - 6 - + 64
----
-70

query I rowsort
SELECT ALL + 72 * - - 70 AS col1
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT CASE - 76 WHEN 34 * - COUNT( * ) THEN + 70 WHEN - 33 THEN NULL ELSE NULL END + + + COUNT( * ) - - + 35 / 48 + 75 + MAX( ALL 94 ) / - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT CASE - 76 WHEN 34 * - COUNT ( * ) THEN + 70 WHEN - 33 THEN NULL ELSE NULL END + + + COUNT ( * ) - - + 35 / 48 + 75 + MAX ( ALL 94 ) / - 40 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT 73 * + - CAST( NULL AS SIGNED ) + + 70 * + + 42 + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT 73 * + - CAST ( NULL AS INTEGER ) + + 70 * + + 42 + 52
----
NULL

query I rowsort
SELECT DISTINCT 94 * + 58
----
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT SUM( 16 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-2664
SELECT SUM ( 16 ) col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT ( 82 ) DIV 26 col1
----
3

skipif mysql # not compatible
query I rowsort label-2665
SELECT ( 82 ) / 26 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL - COALESCE ( 63, COUNT( * ) + - 7 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL - COALESCE ( 63, COUNT ( * ) + - 7 ) AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2667
SELECT COALESCE ( + COUNT( * ), 30 ) DIV - 27 + 7
----
7

skipif mysql # not compatible
query I rowsort label-2667
SELECT COALESCE ( + COUNT ( * ), 30 ) / - 27 + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT - MAX( 72 ) * 53
----
-3816

skipif mysql # not compatible
query I rowsort label-2668
SELECT - MAX ( 72 ) * 53
----
-3816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT ALL CAST( NULL AS SIGNED ) * 49 + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL CAST ( NULL AS INTEGER ) * 49 + 43 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT + ( CASE 36 WHEN 23 + - 66 THEN 19 * 58 WHEN ( - 77 ) * + CAST( NULL AS SIGNED ) THEN NULL ELSE 23 * 98 END ) + + CAST( - 45 + 84 AS SIGNED ) * - 72
----
-554

skipif mysql # not compatible
query I rowsort label-2670
SELECT + ( CASE 36 WHEN 23 + - 66 THEN 19 * 58 WHEN ( - 77 ) * + CAST ( NULL AS INTEGER ) THEN NULL ELSE 23 * 98 END ) + + CAST ( - 45 + 84 AS INTEGER ) * - 72
----
-554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2671
SELECT - 51 - ( + COALESCE ( 65, 22 * 79, 36 ) + COALESCE ( - 23, SUM( ALL + 89 ) ) ) DIV COALESCE ( 10 * + CASE + COUNT( * ) WHEN - 1 * - SUM( - 44 ) THEN 35 END, 82 DIV CASE + 43 WHEN 84 THEN NULL WHEN 61 THEN + 20 * + 82 ELSE NULL END + 34, - 42 * 91 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2671
SELECT - 51 - ( + COALESCE ( 65, 22 * 79, 36 ) + COALESCE ( - 23, SUM ( ALL + 89 ) ) ) / COALESCE ( 10 * + CASE + COUNT ( * ) WHEN - 1 * - SUM ( - 44 ) THEN 35 END, 82 / CASE + 43 WHEN 84 THEN NULL WHEN 61 THEN + 20 * + 82 ELSE NULL END + 34, - 42 * 91 ) AS col0
----
-51

query I rowsort
SELECT - 40 * 12 + 95
----
-385

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

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT + COUNT ( * ) + COUNT ( 94 ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT ALL + 30 + 82 DIV 47 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL + 30 + 82 / 47 AS col0
----
31

query I rowsort
SELECT - 15 + 9
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT CASE + COUNT( * ) WHEN MAX( - 74 ) THEN 74 * - 65 WHEN 78 * COUNT( * ) + + 0 THEN NULL WHEN COUNT( * ) THEN - 60 END
----
-60

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT CASE + COUNT ( * ) WHEN MAX ( - 74 ) THEN 74 * - 65 WHEN 78 * COUNT ( * ) + + 0 THEN NULL WHEN COUNT ( * ) THEN - 60 END
----
-60

query I rowsort
SELECT - 67 + 60
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + COUNT( * ) + + 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + COUNT ( * ) + + 19 AS col1
----
20

query I rowsort
SELECT DISTINCT - 76 + + CASE WHEN + 88 < 66 THEN NULL WHEN NULL NOT IN ( 40 ) THEN 88 ELSE - 88 END AS col1
----
-164

query I rowsort
SELECT + 61 + 97 * 10
----
1031

query I rowsort
SELECT DISTINCT COALESCE ( + 31, NULLIF ( 67, + 68 ) + + 45 * + 91 ) AS col2
----
31

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2683
SELECT DISTINCT CAST( + ( 17 ) AS SIGNED ) DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT CAST ( + ( 17 ) AS INTEGER ) / - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL COUNT( * ) - 13
----
-12

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL COUNT ( * ) - 13
----
-12

query I rowsort
SELECT DISTINCT COALESCE ( - 11, 37 * - 68 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2686
SELECT - COUNT( * ) DIV 10
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT - COUNT ( * ) / 10
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT DISTINCT + 86 DIV - ( 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT + 86 / - ( 60 )
----
-1

query I rowsort
SELECT ALL 89 * - 56
----
-4984

query I rowsort
SELECT ALL 53 * + 23 AS col2
----
1219

query I rowsort
SELECT ( - 17 ) col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT + MIN( ALL 32 ) * - 20 AS col1
----
-640

skipif mysql # not compatible
query I rowsort label-2691
SELECT + MIN ( ALL 32 ) * - 20 AS col1
----
-640

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT + 33 - CAST( NULL AS SIGNED ) * 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT + 33 - CAST ( NULL AS INTEGER ) * 47 AS col1
----
NULL

query I rowsort
SELECT + 42 + - 88 AS col0
----
-46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2696
SELECT + 55 DIV + 23 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2696
SELECT + 55 / + 23 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT + + 22 * - COUNT( * ) + - 68 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT + + 22 * - COUNT ( * ) + - 68 AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2698
SELECT DISTINCT + 43 DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT + 43 / 93 AS col2
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT + - 4 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT + - 4 / - 93
----
0

query I rowsort
SELECT - NULLIF ( 86, 60 * + 46 ) + 28 AS col0
----
-58

query I rowsort
SELECT ALL + + ( 11 ) * - ( 41 + + 24 ) + 50 * NULLIF ( - 31, + 72 * + 40 )
----
-2265

query I rowsort
SELECT + - 55 * - 64 col1
----
3520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT + CASE - 52 WHEN CAST( NULL AS SIGNED ) / 13 THEN NULL ELSE 17 END / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT + CASE - 52 WHEN CAST ( NULL AS INTEGER ) / 13 THEN NULL ELSE 17 END / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT DISTINCT - + 46 DIV 14 col1
----
-3

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT - + 46 / 14 col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT ALL - - 96 DIV - 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL - - 96 / - 58 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2708
SELECT ALL + COALESCE ( CAST( + 8 AS SIGNED ), 42 ) * CAST( NULL AS DECIMAL ) - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL + COALESCE ( CAST ( + 8 AS INTEGER ), 42 ) * CAST ( NULL AS REAL ) - 98 AS col1
----
NULL

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

query I rowsort
SELECT - 61 * + - ( + 10 )
----
610

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

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

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

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

query I rowsort
SELECT - 25 - - 19
----
-6

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

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT SUM ( - 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL COALESCE ( COUNT( * ), 28, - CASE - ( COUNT( * ) ) WHEN 44 THEN NULL WHEN + ( + 49 ) THEN NULL WHEN 52 THEN + 44 ELSE + 54 END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL COALESCE ( COUNT ( * ), 28, - CASE - ( COUNT ( * ) ) WHEN 44 THEN NULL WHEN + ( + 49 ) THEN NULL WHEN 52 THEN + 44 ELSE + 54 END ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-2716
SELECT - 1 - + 20 * + COUNT ( * ) AS col2
----
-21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT ALL CAST( - + 55 AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL CAST ( - + 55 AS INTEGER ) AS col1
----
-55

query I rowsort
SELECT ALL + ( + 92 ) * 6
----
552

query I rowsort
SELECT DISTINCT ( - - 25 ) AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2721
SELECT - 24 / NULLIF ( CASE COALESCE ( 71, 11, - 50 ) WHEN 47 THEN ( + CAST( NULL AS SIGNED ) ) - 9 WHEN - ( - 48 ) * 75 + + 41 THEN NULL END, - 84 + + MAX( DISTINCT + 29 + + CAST( NULL AS SIGNED ) ) ) * 79 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT - 24 / NULLIF ( CASE COALESCE ( 71, 11, - 50 ) WHEN 47 THEN ( + CAST ( NULL AS INTEGER ) ) - 9 WHEN - ( - 48 ) * 75 + + 41 THEN NULL END, - 84 + + MAX ( DISTINCT + 29 + + CAST ( NULL AS INTEGER ) ) ) * 79 col1
----
NULL

query I rowsort
SELECT - ( 47 ) * - 70 AS col1
----
3290

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT - COUNT( * ) + - 30 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2723
SELECT - COUNT ( * ) + - 30 AS col2
----
-31

query I rowsort
SELECT - 47 - 62
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT - 18 + + COUNT( * ) * + ( 80 * + 86 )
----
6862

skipif mysql # not compatible
query I rowsort label-2725
SELECT - 18 + + COUNT ( * ) * + ( 80 * + 86 )
----
6862

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT + NULLIF ( - 6, 95 * - 23 + 83 ) - + COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2726
SELECT + NULLIF ( - 6, 95 * - 23 + 83 ) - + COUNT ( * ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT - 94 + + 68 - + COALESCE ( 76 + COUNT( * ), ( 75 ), 73 * - COUNT( * ) ) AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-2727
SELECT - 94 + + 68 - + COALESCE ( 76 + COUNT ( * ), ( 75 ), 73 * - COUNT ( * ) ) AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT + 0 * - 36 * + COALESCE ( COUNT( * ), + 19 + 30 * MAX( DISTINCT 85 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2728
SELECT + 0 * - 36 * + COALESCE ( COUNT ( * ), + 19 + 30 * MAX ( DISTINCT 85 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT ALL - 37 DIV 24 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL - 37 / 24 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT ALL + CAST( NULL AS SIGNED ) + - - 60 / - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 60 / - 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL 61 + - MAX( DISTINCT 63 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL 61 + - MAX ( DISTINCT 63 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL - 5 + + - COALESCE ( + 43, - 21 + - SUM( DISTINCT 1 ) ) + 77
----
29

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL - 5 + + - COALESCE ( + 43, - 21 + - SUM ( DISTINCT 1 ) ) + 77
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT MIN( - - 44 ) + - 67 * CASE - ( + 88 ) WHEN 63 THEN MAX( DISTINCT + 44 ) / COUNT( * ) - COUNT( * ) WHEN - 18 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT MIN ( - - 44 ) + - 67 * CASE - ( + 88 ) WHEN 63 THEN MAX ( DISTINCT + 44 ) / COUNT ( * ) - COUNT ( * ) WHEN - 18 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 14 * 99 * 97 AS col1
----
134442

query I rowsort
SELECT DISTINCT + 81 * + 56 - + 14
----
4522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2736
SELECT - + SUM( - NULLIF ( 11, 58 ) ) DIV + 44 + + 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2736
SELECT - + SUM ( - NULLIF ( 11, 58 ) ) / + 44 + + 64 AS col0
----
64

query I rowsort
SELECT ALL ( - 41 ) + 76 AS col0
----
35

query I rowsort
SELECT - 47 * 83 AS col2
----
-3901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT ALL + CASE + 36 WHEN 60 / 16 THEN NULL ELSE - 56 * CAST( 63 AS SIGNED ) END * - 55 AS col1
----
194040

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + CASE + 36 WHEN 60 / 16 THEN NULL ELSE - 56 * CAST ( 63 AS INTEGER ) END * - 55 AS col1
----
194040

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

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT + 87 - - COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL - + ( + NULLIF ( MIN( DISTINCT 50 ), + CASE 93 WHEN 71 THEN COUNT( * ) * 92 + - SUM( 41 + 0 ) END + + 22 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL - + ( + NULLIF ( MIN ( DISTINCT 50 ), + CASE 93 WHEN 71 THEN COUNT ( * ) * 92 + - SUM ( 41 + 0 ) END + + 22 ) )
----
-50

query I rowsort
SELECT DISTINCT + 7 - + ( 87 ) + 56 col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT + COUNT( * ) * - CASE + CAST( NULL AS SIGNED ) WHEN CAST( - 90 AS SIGNED ) THEN NULL ELSE + 48 + + 51 * + 32 END
----
-1680

skipif mysql # not compatible
query I rowsort label-2743
SELECT + COUNT ( * ) * - CASE + CAST ( NULL AS INTEGER ) WHEN CAST ( - 90 AS INTEGER ) THEN NULL ELSE + 48 + + 51 * + 32 END
----
-1680

onlyif mysql # DIV for integer division: 
query I rowsort label-2744
SELECT ( + 81 ) * ( 45 DIV - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-2744
SELECT ( + 81 ) * ( 45 / - 73 )
----
0

query I rowsort
SELECT ALL + 38 * - 31
----
-1178

query I rowsort
SELECT + ( - COALESCE ( + 19, 30 ) )
----
-19

query I rowsort
SELECT - 56 * + 87 + 98 AS col2
----
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT 45 + + NULLIF ( 47, COUNT( * ) ) + + 4 * + 73 AS col0
----
384

skipif mysql # not compatible
query I rowsort label-2748
SELECT 45 + + NULLIF ( 47, COUNT ( * ) ) + + 4 * + 73 AS col0
----
384

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT 48 DIV - + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT 48 / - + 72 AS col2
----
0

query II rowsort
SELECT DISTINCT 25 AS col2, - 77 col2
----
25
-77

query I rowsort
SELECT DISTINCT 49 * - 80
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT + 74 * - - ( - 80 ) + COUNT( * ) * + 93
----
-5827

skipif mysql # not compatible
query I rowsort label-2752
SELECT + 74 * - - ( - 80 ) + COUNT ( * ) * + 93
----
-5827

query I rowsort
SELECT 70 + + 52
----
122

query I rowsort
SELECT 79 + + 38 col0
----
117

query I rowsort
SELECT 89 + - 23
----
66

query II rowsort
SELECT - 54 AS col1, - ( + 12 ) AS col2
----
-54
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-2757
SELECT 6, CASE WHEN + 43 NOT IN ( COUNT( * ) ) THEN NULL ELSE + 85 * 49 END AS col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-2757
SELECT 6, CASE WHEN + 43 NOT IN ( COUNT ( * ) ) THEN NULL ELSE + 85 * 49 END AS col0
----
6
NULL

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

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL 76 + 17 + + - 61 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 35 + 9 + 61 / CASE - 21 - + 5 WHEN - 98 + 13 THEN - 39 WHEN + 23 * + 19 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 78 + 94 * + + 14 col0
----
1394

query II rowsort
SELECT - 63 AS col2, - 91 AS col2
----
-63
-91

query I rowsort
SELECT DISTINCT - CASE - 23 WHEN 23 THEN NULL WHEN - 80 THEN NULL ELSE - 87 END * + 8 col2
----
696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2763
SELECT + 28 * - + ( CAST( 2 AS SIGNED ) ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-2763
SELECT + 28 * - + ( CAST ( 2 AS INTEGER ) ) col1
----
-56

query I rowsort
SELECT ( 64 ) - + 94
----
-30

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

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

query I rowsort
SELECT 68 - + 41 * - 11 * - 44
----
-19776

query I rowsort
SELECT - 43 col2
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT DISTINCT - MIN( 22 ) * + 14 + 69 AS col0
----
-239

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT - MIN ( 22 ) * + 14 + 69 AS col0
----
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL - CASE - 90 WHEN - 81 + COUNT( ALL 69 ) THEN + 9 * ( 38 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - CASE - 90 WHEN - 81 + COUNT ( ALL 69 ) THEN + 9 * ( 38 ) ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT + COUNT( * ) * - 50 * + - 70 + + 97
----
3597

skipif mysql # not compatible
query I rowsort label-2772
SELECT + COUNT ( * ) * - 50 * + - 70 + + 97
----
3597

query I rowsort
SELECT ALL + - 25 - + 58 AS col2
----
-83

query I rowsort
SELECT DISTINCT - - 62 * + 45
----
2790

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT 16 DIV + - ( - + 91 ) * + 5 col1
----
0

skipif mysql # not compatible
query I rowsort label-2775
SELECT 16 / + - ( - + 91 ) * + 5 col1
----
0

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

query I rowsort
SELECT ALL - - 49 * - 82
----
-4018

query I rowsort
SELECT DISTINCT - + 59 col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT - COUNT( - + 23 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2779
SELECT - COUNT ( - + 23 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2780
SELECT 28 * - - 76 * + + CAST( NULL AS SIGNED ) * + MAX( 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT 28 * - - 76 * + + CAST ( NULL AS INTEGER ) * + MAX ( 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT COALESCE ( + 81, + MAX( ALL + 89 ) ) + + 96 * - 58 AS col2
----
-5487

skipif mysql # not compatible
query I rowsort label-2781
SELECT COALESCE ( + 81, + MAX ( ALL + 89 ) ) + + 96 * - 58 AS col2
----
-5487

query I rowsort
SELECT DISTINCT 31 * + - 47 AS col1
----
-1457

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT 36 * NULLIF ( - + 6, - - 66 + + COALESCE ( 98, CASE CAST( - 67 AS SIGNED ) WHEN COALESCE ( COUNT( * ), - 22 ) + - 69 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 30 * + 92 + - 35 ELSE NULL END, - 58 * + COUNT( * ), - 7 * CAST( 48 AS SIGNED ) ) ) - - CAST( - 19 AS SIGNED ) AS col1
----
-235

skipif mysql # not compatible
query I rowsort label-2784
SELECT 36 * NULLIF ( - + 6, - - 66 + + COALESCE ( 98, CASE CAST ( - 67 AS INTEGER ) WHEN COALESCE ( COUNT ( * ), - 22 ) + - 69 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 30 * + 92 + - 35 ELSE NULL END, - 58 * + COUNT ( * ), - 7 * CAST ( 48 AS INTEGER ) ) ) - - CAST ( - 19 AS INTEGER ) AS col1
----
-235

onlyif mysql # aggregate syntax: 
query II rowsort label-2785
SELECT + SUM( + 0 ), + 55 * - + 46 AS col1
----
0
-2530

skipif mysql # not compatible
query II rowsort label-2785
SELECT + SUM ( + 0 ), + 55 * - + 46 AS col1
----
0
-2530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2786
SELECT ALL CAST( NULL AS SIGNED ) + 19 / + - CASE - + CASE CAST( + 27 AS SIGNED ) WHEN + 62 THEN CASE - COUNT( * ) WHEN 25 * + 97 + COUNT( * ) THEN 71 ELSE - 41 - 72 * + 27 END * - NULLIF ( - COUNT( * ), + 42 + - 78 * 27 ) END WHEN + COUNT( * ) THEN NULL ELSE + AVG ( DISTINCT - 13 ) END * - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL CAST ( NULL AS INTEGER ) + 19 / + - CASE - + CASE CAST ( + 27 AS INTEGER ) WHEN + 62 THEN CASE - COUNT ( * ) WHEN 25 * + 97 + COUNT ( * ) THEN 71 ELSE - 41 - 72 * + 27 END * - NULLIF ( - COUNT ( * ), + 42 + - 78 * 27 ) END WHEN + COUNT ( * ) THEN NULL ELSE + AVG ( DISTINCT - 13 ) END * - 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT - COUNT( * ) * + 36 + + 74 * - + 37 DIV ( COUNT( + 42 ) ) AS col0
----
-2774

skipif mysql # not compatible
query I rowsort label-2787
SELECT - COUNT ( * ) * + 36 + + 74 * - + 37 / ( COUNT ( + 42 ) ) AS col0
----
-2774

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT 44 * COUNT( * ) * + 95 AS col1
----
4180

skipif mysql # not compatible
query I rowsort label-2788
SELECT 44 * COUNT ( * ) * + 95 AS col1
----
4180

query I rowsort
SELECT ALL 30 + + + ( + 48 ) - - - 31 - 5 AS col0
----
42

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

skipif mysql # not compatible
query I rowsort label-2790
SELECT - MIN ( ALL - 41 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT CAST( - - 57 AS SIGNED ) - AVG ( ALL CAST( NULL AS SIGNED ) ) + - 34 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT CAST ( - - 57 AS INTEGER ) - AVG ( ALL CAST ( NULL AS INTEGER ) ) + - 34 col1
----
NULL

query I rowsort
SELECT ALL 82 + + + 42 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT COUNT( DISTINCT - 64 ) - - + COUNT( * ) + 18 + 3 * - 12
----
-16

skipif mysql # not compatible
query I rowsort label-2793
SELECT COUNT ( DISTINCT - 64 ) - - + COUNT ( * ) + 18 + 3 * - 12
----
-16

query I rowsort
SELECT ALL 94 + 89 AS col1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT + SUM( + 99 ) + 66 + + COUNT( * ) + 9 * 36
----
490

skipif mysql # not compatible
query I rowsort label-2795
SELECT + SUM ( + 99 ) + 66 + + COUNT ( * ) + 9 * 36
----
490

query I rowsort
SELECT - ( - 10 ) * + + 93
----
930

query I rowsort
SELECT + 66 + 8 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - ( - 12 ) - - SUM( ALL + - COALESCE ( - 13, ( - 77 ) ) )
----
25

skipif mysql # not compatible
query I rowsort label-2798
SELECT - ( - 12 ) - - SUM ( ALL + - COALESCE ( - 13, ( - 77 ) ) )
----
25

query I rowsort
SELECT + 79 + 88 col1
----
167

query I rowsort
SELECT ALL + 23 - - 96
----
119

query I rowsort
SELECT DISTINCT - + 2 * - 62
----
124

query I rowsort
SELECT + + 42 * - - 2 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT DISTINCT - 31 * - - COALESCE ( 38, - ( 86 ) * 44 ) * ( - CAST( + 94 AS SIGNED ) ) AS col0
----
110732

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT - 31 * - - COALESCE ( 38, - ( 86 ) * 44 ) * ( - CAST ( + 94 AS INTEGER ) ) AS col0
----
110732

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT - + 67 + - COUNT( - - ( 65 ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-2804
SELECT - + 67 + - COUNT ( - - ( 65 ) ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL + ( + COALESCE ( + - 93, SUM( 14 ) * 54, + 46 + + 55 * + 56 ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + ( + COALESCE ( + - 93, SUM ( 14 ) * 54, + 46 + + 55 * + 56 ) ) AS col2
----
-93

query I rowsort
SELECT - - 93 + - 72 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2807
SELECT - CAST( - 16 AS SIGNED ) * + 1 DIV - 71 + 95 DIV + 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2807
SELECT - CAST ( - 16 AS INTEGER ) * + 1 / - 71 + 95 / + 67 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2808
SELECT - 65 DIV ( + 9 ) * + 30 + 53 + SUM( ALL - 29 ) AS col0
----
-186

skipif mysql # not compatible
query I rowsort label-2808
SELECT - 65 / ( + 9 ) * + 30 + 53 + SUM ( ALL - 29 ) AS col0
----
-186

query II rowsort
SELECT - + 15 * - - 58 col1, 7 + + 53 * 15
----
-870
802

query I rowsort
SELECT - + 10 * + + 0 * + 7 * + 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2811
SELECT - COUNT( * ) / 46 + - 85 * + 66 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT - COUNT ( * ) / 46 + - 85 * + 66 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2813
SELECT DISTINCT + MAX( 9 ) DIV 75 + - MAX( 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT + MAX ( 9 ) / 75 + - MAX ( 12 ) AS col0
----
-12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT - + 66 DIV 23 DIV + + 13
----
0

skipif mysql # not compatible
query I rowsort label-2815
SELECT - + 66 / 23 / + + 13
----
0

query I rowsort
SELECT - 2 + + ( + 38 ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT DISTINCT + 67 DIV + 17 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT + 67 / + 17 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT COUNT( * ) * COALESCE ( + 82, - - 48, - + 94 * - 51 ) * + 24 + - 51 AS col2
----
1917

skipif mysql # not compatible
query I rowsort label-2818
SELECT COUNT ( * ) * COALESCE ( + 82, - - 48, - + 94 * - 51 ) * + 24 + - 51 AS col2
----
1917

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

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

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

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

query I rowsort
SELECT - 66 + 18 col2
----
-48

query I rowsort
SELECT CASE - 73 WHEN 81 + + 38 + NULLIF ( 37, - 4 + + 32 ) + - 52 THEN NULL WHEN 89 THEN + 20 + ( 90 + 2 / 11 ) * 94 END AS col0
----
NULL

query I rowsort
SELECT - 42 + - - 61
----
19

query I rowsort
SELECT + 48 - + + 22
----
26

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

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT - 68 * + + COUNT ( * ) AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2826
SELECT DISTINCT + 92 * - + ( 96 ) + + - 37 DIV + ( + CAST( 86 AS SIGNED ) ) AS col0
----
-8832

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + 92 * - + ( 96 ) + + - 37 / + ( + CAST ( 86 AS INTEGER ) ) AS col0
----
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL ( - 70 ) * + MIN( - 18 ) * - - 69 + ( 72 )
----
87012

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL ( - 70 ) * + MIN ( - 18 ) * - - 69 + ( 72 )
----
87012

query I rowsort
SELECT + ( + ( - - ( - - 40 ) ) ) + - 59 * + 9 AS col0
----
-491

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

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

query I rowsort
SELECT ALL 76 + - ( + + 14 ) AS col2
----
62

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

query I rowsort
SELECT ALL 47 + - - 77
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT - COALESCE ( 99, - COUNT( + - 64 ) ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-2833
SELECT - COALESCE ( 99, - COUNT ( + - 64 ) ) col0
----
-99

query I rowsort
SELECT + 35 + 95 AS col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-2835
SELECT + + MAX( + + 78 ) + + 55 AS col0, - 37 AS col1
----
133
-37

skipif mysql # not compatible
query II rowsort label-2835
SELECT + + MAX ( + + 78 ) + + 55 AS col0, - 37 AS col1
----
133
-37

query I rowsort
SELECT DISTINCT - 93 * - 31 col1
----
2883

query II rowsort
SELECT DISTINCT 27 AS col0, 58
----
27
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2838
SELECT DISTINCT - + 83 - - 30 * 29 AS col0, 31 + + - CASE + 82 WHEN MAX( ALL 68 ) THEN NULL WHEN + 68 - NULLIF ( 16, + 5 / 60 - + 93 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) * + 43 THEN NULL ELSE + CASE 49 WHEN + 50 * CAST( NULL AS SIGNED ) THEN + 0 * + AVG ( DISTINCT - ( - 97 ) ) ELSE NULL END - - 5 END
----
787
NULL

skipif mysql # not compatible
query II rowsort label-2838
SELECT DISTINCT - + 83 - - 30 * 29 AS col0, 31 + + - CASE + 82 WHEN MAX ( ALL 68 ) THEN NULL WHEN + 68 - NULLIF ( 16, + 5 / 60 - + 93 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) * + 43 THEN NULL ELSE + CASE 49 WHEN + 50 * CAST ( NULL AS INTEGER ) THEN + 0 * + AVG ( DISTINCT - ( - 97 ) ) ELSE NULL END - - 5 END
----
787
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT - 44 - - + CASE + 71 WHEN - CASE 43 WHEN 13 + 93 THEN ( NULLIF ( - 81, COUNT( * ) * + 88 ) ) WHEN + COUNT( * ) THEN 15 + - AVG ( + 1 ) ELSE NULL END THEN NULL ELSE + 26 END + + ( 84 + + COUNT( 22 ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT - 44 - - + CASE + 71 WHEN - CASE 43 WHEN 13 + 93 THEN ( NULLIF ( - 81, COUNT ( * ) * + 88 ) ) WHEN + COUNT ( * ) THEN 15 + - AVG ( + 1 ) ELSE NULL END THEN NULL ELSE + 26 END + + ( 84 + + COUNT ( 22 ) ) AS col1
----
67

query I rowsort
SELECT DISTINCT - 33 * + + 32 AS col0
----
-1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2841
SELECT ALL + - 37 DIV + + NULLIF ( - - COALESCE ( + NULLIF ( + 94, COUNT( 43 ) ), 42 ), - 63 DIV - 55 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + - 37 / + + NULLIF ( - - COALESCE ( + NULLIF ( + 94, COUNT ( 43 ) ), 42 ), - 63 / - 55 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT + + 5 * + CASE + 39 WHEN + + 80 THEN + ( 46 ) * ( + 16 ) WHEN - COUNT( * ) THEN NULL END / + AVG ( ALL + 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT + + 5 * + CASE + 39 WHEN + + 80 THEN + ( 46 ) * ( + 16 ) WHEN - COUNT ( * ) THEN NULL END / + AVG ( ALL + 75 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT + - COUNT( * ) - - - 6 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2843
SELECT + - COUNT ( * ) - - - 6 AS col0
----
-7

query I rowsort
SELECT + + 61 - - 33 AS col0
----
94

query I rowsort
SELECT - + 46 col1
----
-46

query I rowsort
SELECT + COALESCE ( - 81, - 15 ) * + 32 AS col1
----
-2592

query I rowsort
SELECT - 72 + - 60 AS col2
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2848
SELECT ALL 82 DIV 66 - - 41 + 91 * 6 + + MAX( ALL + 11 ) + 4 * - 2 AS col2
----
591

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL 82 / 66 - - 41 + 91 * 6 + + MAX ( ALL + 11 ) + 4 * - 2 AS col2
----
591

query I rowsort
SELECT + NULLIF ( 17, - + 93 ) - - 98 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT ALL 99 * MAX( DISTINCT 98 ) + + ( - COUNT( * ) ) + + COUNT( * ) AS col0
----
9702

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL 99 * MAX ( DISTINCT 98 ) + + ( - COUNT ( * ) ) + + COUNT ( * ) AS col0
----
9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT 54 * - COUNT( + 76 ) - COALESCE ( + ( - 18 ), CAST( NULL AS SIGNED ) - 19 ) * COALESCE ( - CAST( NULL AS SIGNED ) + - 70, - 66, 99 + + 42 )
----
-1242

skipif mysql # not compatible
query I rowsort label-2851
SELECT 54 * - COUNT ( + 76 ) - COALESCE ( + ( - 18 ), CAST ( NULL AS INTEGER ) - 19 ) * COALESCE ( - CAST ( NULL AS INTEGER ) + - 70, - 66, 99 + + 42 )
----
-1242

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT ALL + 58 DIV - ( + 63 ) + + ( + 21 ) + 75
----
96

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL + 58 / - ( + 63 ) + + ( + 21 ) + 75
----
96

query I rowsort
SELECT + 25 + - 6 + - + 94 * - - ( - 94 )
----
8855

query II rowsort
SELECT + 71 AS col1, 4 + - - 9 AS col2
----
71
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2856
SELECT 54 * - + 66 DIV + 1 + 60 * + + COUNT( ALL + + ( - 60 ) ) + + 84 * 54
----
1032

skipif mysql # not compatible
query I rowsort label-2856
SELECT 54 * - + 66 / + 1 + 60 * + + COUNT ( ALL + + ( - 60 ) ) + + 84 * 54
----
1032

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2857
SELECT ALL + 8, COUNT( * ) + COALESCE ( 92, + + COUNT( DISTINCT - 56 ) DIV + 88, - 39 * 70 ) + 72 DIV + COUNT( * ) AS col0
----
8
165

skipif mysql # not compatible
query II rowsort label-2857
SELECT ALL + 8, COUNT ( * ) + COALESCE ( 92, + + COUNT ( DISTINCT - 56 ) / + 88, - 39 * 70 ) + 72 / + COUNT ( * ) AS col0
----
8
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT - 25 + + ( + + 71 ) + + NULLIF ( - - 76, MIN( ALL + COALESCE ( - 61, - ( 6 ) * 25 ) ) - 62 )
----
122

skipif mysql # not compatible
query I rowsort label-2858
SELECT - 25 + + ( + + 71 ) + + NULLIF ( - - 76, MIN ( ALL + COALESCE ( - 61, - ( 6 ) * 25 ) ) - 62 )
----
122

query I rowsort
SELECT - ( - 50 ) - + 30 AS col2
----
20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT ALL 24 DIV 95 * - 97 + - 52
----
-52

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL 24 / 95 * - 97 + - 52
----
-52

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

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

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

query II rowsort
SELECT DISTINCT - 11, COALESCE ( 55, - + 67 ) col0
----
-11
55

query I rowsort
SELECT ALL 35 * - 49 AS col0
----
-1715

query II rowsort
SELECT 35, - 80 * + + 24 AS col1
----
35
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT 95 * + + 8 * - CASE COUNT( * ) WHEN - + 76 THEN - - 56 / 25 ELSE NULL END * 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT 95 * + + 8 * - CASE COUNT ( * ) WHEN - + 76 THEN - - 56 / 25 ELSE NULL END * 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT 98 * COUNT( * ) * + - 46 AS col0
----
-4508

skipif mysql # not compatible
query I rowsort label-2868
SELECT 98 * COUNT ( * ) * + - 46 AS col0
----
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT 69 + + SUM( DISTINCT 28 )
----
97

skipif mysql # not compatible
query I rowsort label-2869
SELECT 69 + + SUM ( DISTINCT 28 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT ALL + COALESCE ( + - 93, - 90 + - 15 DIV + 65 * 5 + 36 ) * 42 col2
----
-3906

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + COALESCE ( + - 93, - 90 + - 15 / + 65 * 5 + 36 ) * 42 col2
----
-3906

query II rowsort
SELECT 22 AS col2, - 21 AS col1
----
22
-21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT DISTINCT + 53 * CAST( 42 AS SIGNED ) AS col0
----
2226

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT + 53 * CAST ( 42 AS INTEGER ) AS col0
----
2226

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL + 37 * SUM( ALL - - 43 )
----
1591

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + 37 * SUM ( ALL - - 43 )
----
1591

query I rowsort
SELECT 43 - 87
----
-44

query II rowsort
SELECT DISTINCT - 17 AS col0, + ( 70 ) AS col2
----
-17
70

query I rowsort
SELECT CASE + + 51 WHEN + + 98 THEN NULL WHEN 32 THEN - + 3 / 93 * 72 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ( + MAX( + 56 ) ) + 68
----
124

skipif mysql # not compatible
query I rowsort label-2880
SELECT ( + MAX ( + 56 ) ) + 68
----
124

query I rowsort
SELECT + 64 + - 73 AS col2
----
-9

query I rowsort
SELECT NULLIF ( 28, - 92 ) - + - 50 col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2883
SELECT CAST( NULL AS SIGNED ) + CASE 83 WHEN - 58 + - 62 THEN - 95 * 97 + - 49 WHEN 42 THEN - 20 * 78 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT CAST ( NULL AS INTEGER ) + CASE 83 WHEN - 58 + - 62 THEN - 95 * 97 + - 49 WHEN 42 THEN - 20 * 78 END col2
----
NULL

query II rowsort
SELECT - NULLIF ( 42, + - 96 ) - - 75 AS col1, + ( - 69 )
----
33
-69

query II rowsort
SELECT 28, ( 29 ) AS col2
----
28
29

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2888
SELECT ALL - + CASE + COUNT( * ) WHEN - - CAST( 14 AS SIGNED ) * 79 + + 88 THEN NULL WHEN - 53 THEN 24 * ( 42 ) WHEN - COUNT( * ) + 37 THEN 29 * + 73 END + - SUM( ALL 19 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - + CASE + COUNT ( * ) WHEN - - CAST ( 14 AS INTEGER ) * 79 + + 88 THEN NULL WHEN - 53 THEN 24 * ( 42 ) WHEN - COUNT ( * ) + 37 THEN 29 * + 73 END + - SUM ( ALL 19 ) AS col0
----
NULL

query I rowsort
SELECT - 13 + ( - - NULLIF ( + + 25, - 77 ) )
----
12

query II rowsort
SELECT ALL - 25 AS col2, 37
----
-25
37

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

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

query I rowsort
SELECT DISTINCT + 27 + + 85
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT 0 * + 70 + + NULLIF ( 42, + + 31 ) * 69 * COUNT( * ) + + COALESCE ( ( - 83 ), - CASE WHEN CAST( + 70 AS SIGNED ) <> NULL THEN + 90 ELSE NULL END + COUNT( * ) * + 78, 53, 72 * 48 ) AS col1
----
2815

skipif mysql # not compatible
query I rowsort label-2893
SELECT 0 * + 70 + + NULLIF ( 42, + + 31 ) * 69 * COUNT ( * ) + + COALESCE ( ( - 83 ), - CASE WHEN CAST ( + 70 AS INTEGER ) <> NULL THEN + 90 ELSE NULL END + COUNT ( * ) * + 78, 53, 72 * 48 ) AS col1
----
2815

query I rowsort
SELECT ALL 20 + 64
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT 28 * + SUM( ALL + - ( - - 45 ) )
----
-1260

skipif mysql # not compatible
query I rowsort label-2895
SELECT 28 * + SUM ( ALL + - ( - - 45 ) )
----
-1260

query II rowsort
SELECT 79 * + 31, 29 AS col1
----
2449
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2897
SELECT ( - 58 ) DIV + ( 84 ) + + 48 + 3 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2897
SELECT ( - 58 ) / + ( 84 ) + + 48 + 3 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL 7 + - COUNT( * ) * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL 7 + - COUNT ( * ) * + COUNT ( * )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2899
SELECT CAST( - 90 AS SIGNED ) + 67
----
-23

skipif mysql # not compatible
query I rowsort label-2899
SELECT CAST ( - 90 AS INTEGER ) + 67
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL 71 - - 74 / 91 + + + 95 * + - 61 * - 72 * ( CASE 12 WHEN COUNT( * ) THEN + 21 / 51 WHEN 79 THEN NULL WHEN 73 + NULLIF ( - 81, AVG ( + ( + 53 ) ) ) THEN NULL END ) * + 69 - + ( + 10 - + 62 ) * 79 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL 71 - - 74 / 91 + + + 95 * + - 61 * - 72 * ( CASE 12 WHEN COUNT ( * ) THEN + 21 / 51 WHEN 79 THEN NULL WHEN 73 + NULLIF ( - 81, AVG ( + ( + 53 ) ) ) THEN NULL END ) * + 69 - + ( + 10 - + 62 ) * 79 col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT 15 * + COUNT( * ) + + 25 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2902
SELECT 15 * + COUNT ( * ) + + 25 AS col1
----
40

query I rowsort
SELECT 14 + - 61
----
-47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT 94 + + 72 DIV + 60 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2905
SELECT 94 + + 72 / + 60 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT - 44 * COUNT( ALL - - 85 ) * - 16 + - + COUNT( * ) + - 95 AS col1
----
608

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT - 44 * COUNT ( ALL - - 85 ) * - 16 + - + COUNT ( * ) + - 95 AS col1
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT + COUNT( DISTINCT - 12 ) + + MIN( + 38 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-2907
SELECT + COUNT ( DISTINCT - 12 ) + + MIN ( + 38 ) AS col0
----
39

query I rowsort
SELECT ALL - ( - 32 ) AS col2
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-2909
SELECT 60 DIV - 67 AS col0, 1 AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-2909
SELECT 60 / - 67 AS col0, 1 AS col1
----
0
1

query I rowsort
SELECT + 95 * + ( - 88 ) + + + 88
----
-8272

onlyif mysql # aggregate syntax: 
query II rowsort label-2911
SELECT DISTINCT + SUM( - - 80 ), 46 col0
----
80
46

skipif mysql # not compatible
query II rowsort label-2911
SELECT DISTINCT + SUM ( - - 80 ), 46 col0
----
80
46

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

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

query II rowsort
SELECT 80 + + - 93 AS col2, 93 - + COALESCE ( + 18, + 53 - 55 * 95 ) col0
----
-13
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT - CASE - CASE - 25 WHEN + 3 THEN + 19 END WHEN + 1 THEN NULL WHEN 42 + 72 * 64 THEN 94 + - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT - CASE - CASE - 25 WHEN + 3 THEN + 19 END WHEN + 1 THEN NULL WHEN 42 + 72 * 64 THEN 94 + - COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT MIN( 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT MIN ( 66 ) AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT DISTINCT + - 49 + + CAST( + + 83 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + - 49 + + CAST ( + + 83 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 9 + + 41
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT + 11 * ( MAX( ALL - ( + - ( + 43 ) ) ) )
----
473

skipif mysql # not compatible
query I rowsort label-2918
SELECT + 11 * ( MAX ( ALL - ( + - ( + 43 ) ) ) )
----
473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2919
SELECT ALL - CAST( - - 51 AS SIGNED ) + - - 25 * - - ( MAX( ALL 14 ) ) / - - CASE 39 WHEN 20 THEN + CASE 43 WHEN 54 THEN - 88 / ( 92 * + 89 ) + - NULLIF ( 37 + 72, + 24 ) WHEN COALESCE ( + 59, CAST( 80 AS SIGNED ) * - 93 + 28 ) THEN NULL ELSE NULL END WHEN - COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - CAST ( - - 51 AS INTEGER ) + - - 25 * - - ( MAX ( ALL 14 ) ) / - - CASE 39 WHEN 20 THEN + CASE 43 WHEN 54 THEN - 88 / ( 92 * + 89 ) + - NULLIF ( 37 + 72, + 24 ) WHEN COALESCE ( + 59, CAST ( 80 AS INTEGER ) * - 93 + 28 ) THEN NULL ELSE NULL END WHEN - COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT - CAST( - 0 AS SIGNED ) - - NULLIF ( + - ( - + COUNT( * ) ), - + 16 / + + 53 * + 99 + NULLIF ( 99 + - COUNT( * ), - COUNT( * ) + + 33 * 56 ) + - 57 ) * - 91 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2920
SELECT - CAST ( - 0 AS INTEGER ) - - NULLIF ( + - ( - + COUNT ( * ) ), - + 16 / + + 53 * + 99 + NULLIF ( 99 + - COUNT ( * ), - COUNT ( * ) + + 33 * 56 ) + - 57 ) * - 91 AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT 73 * COALESCE ( - 98, + 40 + + MIN( ALL + - 33 ) ) * 31 DIV 22 * + MAX( 16 )
----
-161280

skipif mysql # not compatible
query I rowsort label-2921
SELECT 73 * COALESCE ( - 98, + 40 + + MIN ( ALL + - 33 ) ) * 31 / 22 * + MAX ( 16 )
----
-161280

query II rowsort
SELECT DISTINCT 65, - 50 AS col2
----
65
-50

query I rowsort
SELECT 47 + + 18 - 62 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2924
SELECT - COUNT( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) AS col1, - MIN( + 23 )
----
0
-23

skipif mysql # not compatible
query II rowsort label-2924
SELECT - COUNT ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) AS col1, - MIN ( + 23 )
----
0
-23

query I rowsort
SELECT ALL ( 90 ) * + 79 + + - ( - 43 ) - + 41
----
7112

query I rowsort
SELECT + 72 * + 64
----
4608

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2927
SELECT ALL - CAST( NULL AS DECIMAL ) * + COUNT( * ) * COALESCE ( + 37, - 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - CAST ( NULL AS REAL ) * + COUNT ( * ) * COALESCE ( + 37, - 77 ) AS col0
----
NULL

query II rowsort
SELECT ALL + 43 AS col1, + 25
----
43
25

query I rowsort
SELECT ALL 71 * + 37
----
2627

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL 85 * + - 85 - - 87 - ( - - 83 ) + - + COALESCE ( 93, + - COALESCE ( + MIN( 50 ), 15 * 70, 40 - COUNT( * ) ) )
----
-7314

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL 85 * + - 85 - - 87 - ( - - 83 ) + - + COALESCE ( 93, + - COALESCE ( + MIN ( 50 ), 15 * 70, 40 - COUNT ( * ) ) )
----
-7314

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT + COUNT( * ) * 91 * + 61 AS col2
----
5551

skipif mysql # not compatible
query I rowsort label-2931
SELECT + COUNT ( * ) * 91 * + 61 AS col2
----
5551

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT MIN( - - 48 ) col0
----
48

skipif mysql # not compatible
query I rowsort label-2933
SELECT MIN ( - - 48 ) col0
----
48

query II rowsort
SELECT ALL + 49, + 0 AS col2
----
49
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2935
SELECT DISTINCT + 20, 34 DIV 4 AS col0
----
20
8

skipif mysql # not compatible
query II rowsort label-2935
SELECT DISTINCT + 20, 34 / 4 AS col0
----
20
8

query II rowsort
SELECT ALL + 23 AS col0, - 63 col1
----
23
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT + COALESCE ( ( - - ( - CASE - 58 WHEN + + 98 THEN NULL WHEN + 52 THEN - 80 + 62 ELSE - 99 END ) ), + SUM( ALL 36 ), CAST( NULL AS SIGNED ) + 48 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-2937
SELECT + COALESCE ( ( - - ( - CASE - 58 WHEN + + 98 THEN NULL WHEN + 52 THEN - 80 + 62 ELSE - 99 END ) ), + SUM ( ALL 36 ), CAST ( NULL AS INTEGER ) + 48 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT MIN( DISTINCT - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-2938
SELECT MIN ( DISTINCT - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT + CASE - 49 WHEN + 55 - + COUNT( * ) THEN - 99 WHEN 78 / + - 93 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT + CASE - 49 WHEN + 55 - + COUNT ( * ) THEN - 99 WHEN 78 / + - 93 THEN NULL END
----
NULL

query I rowsort
SELECT + 35 + + 76
----
111

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT ALL 35 * 11 DIV + - 64 col0
----
-6

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL 35 * 11 / + - 64 col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2944
SELECT - 93 DIV + - 43 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2944
SELECT - 93 / + - 43 AS col2
----
2

query I rowsort
SELECT ALL 63 + - 58 AS col0
----
5

query II rowsort
SELECT 20 AS col2, - 43
----
20
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL + MAX( ALL - 16 ) + - COUNT( * ) + 7 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL + MAX ( ALL - 16 ) + - COUNT ( * ) + 7 AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2948
SELECT ALL + 93 + - - CASE - 21 WHEN CASE + 87 WHEN - NULLIF ( + CASE - 11 WHEN + COUNT( * ) THEN 54 WHEN 41 * 71 THEN + 29 + 82 WHEN MIN( ALL ( 31 ) ) THEN NULL WHEN COUNT( + 49 ) THEN NULL END, COUNT( DISTINCT 45 ) * ( + 57 ) ) + COUNT( * ) THEN NULL WHEN 77 + + 79 THEN + 8 ELSE 76 + + 14 * COUNT( * ) END * 79 THEN NULL WHEN - SUM( 8 ) THEN 76 ELSE NULL END - CAST( + 29 - - 25 * COALESCE ( 73, + COUNT( * ) * + 40 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + 93 + - - CASE - 21 WHEN CASE + 87 WHEN - NULLIF ( + CASE - 11 WHEN + COUNT ( * ) THEN 54 WHEN 41 * 71 THEN + 29 + 82 WHEN MIN ( ALL ( 31 ) ) THEN NULL WHEN COUNT ( + 49 ) THEN NULL END, COUNT ( DISTINCT 45 ) * ( + 57 ) ) + COUNT ( * ) THEN NULL WHEN 77 + + 79 THEN + 8 ELSE 76 + + 14 * COUNT ( * ) END * 79 THEN NULL WHEN - SUM ( 8 ) THEN 76 ELSE NULL END - CAST ( + 29 - - 25 * COALESCE ( 73, + COUNT ( * ) * + 40 ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT + + 82 - 71 + COUNT( * ) + 66 + + - 24 * + 22 * 30 * + 2 + ( 4 - - 21 ) * - 31 AS col2
----
-32377

skipif mysql # not compatible
query I rowsort label-2949
SELECT + + 82 - 71 + COUNT ( * ) + 66 + + - 24 * + 22 * 30 * + 2 + ( 4 - - 21 ) * - 31 AS col2
----
-32377

query I rowsort
SELECT DISTINCT 47 + + - 29 + 80 col2
----
98

query I rowsort
SELECT ALL 52 + 59
----
111

query I rowsort
SELECT - 95 + - - 32
----
-63

query I rowsort
SELECT ALL ( + 53 ) + + 40 + + 46 AS col2
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2954
SELECT DISTINCT COALESCE ( + 15, ( + 15 ) DIV + 13 * + 83 DIV - 7 DIV COUNT( * ) * 17 + - 0 * 13 ) col2
----
15

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT COALESCE ( + 15, ( + 15 ) / + 13 * + 83 / - 7 / COUNT ( * ) * 17 + - 0 * 13 ) col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2955
SELECT + COUNT( * ) + - - MIN( + 26 ), 28 AS col2
----
27
28

skipif mysql # not compatible
query II rowsort label-2955
SELECT + COUNT ( * ) + - - MIN ( + 26 ), 28 AS col2
----
27
28

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

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

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

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

query I rowsort
SELECT - 62 + 59 * + 80 * + 39
----
184018

query I rowsort
SELECT - - 56 * + - 19
----
-1064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT - 75 + 66 DIV COUNT( * ) * COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-2960
SELECT - 75 + 66 / COUNT ( * ) * COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2961
SELECT - + SUM( ALL - 24 ) + + + 14 AS col0, 38 * - 65 AS col2
----
38
-2470

skipif mysql # not compatible
query II rowsort label-2961
SELECT - + SUM ( ALL - 24 ) + + + 14 AS col0, 38 * - 65 AS col2
----
38
-2470

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT DISTINCT CASE - 12 WHEN - - 68 + - 95 + 42 + + 89 THEN - COUNT( DISTINCT - 59 ) WHEN + CAST( - 36 AS SIGNED ) * 96 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT CASE - 12 WHEN - - 68 + - 95 + 42 + + 89 THEN - COUNT ( DISTINCT - 59 ) WHEN + CAST ( - 36 AS INTEGER ) * 96 THEN NULL END
----
NULL

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

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

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

query I rowsort
SELECT - 13 * - + 84 * - + 36 AS col1
----
-39312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2969
SELECT + COUNT( * ) * + MIN( ALL 96 ) * ( + - COALESCE ( - 73, - 75 ) ), - 65 * - + CAST( NULL AS SIGNED ) * COUNT( * ) + + COUNT( * ) AS col1
----
7008
NULL

skipif mysql # not compatible
query II rowsort label-2969
SELECT + COUNT ( * ) * + MIN ( ALL 96 ) * ( + - COALESCE ( - 73, - 75 ) ), - 65 * - + CAST ( NULL AS INTEGER ) * COUNT ( * ) + + COUNT ( * ) AS col1
----
7008
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT 51 * - - COALESCE ( 26, + 22 ) * 92 * + + 76 + + - ( - + NULLIF ( - 17, + COUNT( * ) ) ) + 23 * + ( 52 )
----
9272571

skipif mysql # not compatible
query I rowsort label-2970
SELECT 51 * - - COALESCE ( 26, + 22 ) * 92 * + + 76 + + - ( - + NULLIF ( - 17, + COUNT ( * ) ) ) + 23 * + ( 52 )
----
9272571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2971
SELECT - ( + 87 ) DIV - - CASE - 58 WHEN - 86 - + 5 THEN 10 + 0 WHEN + 90 + - MAX( ALL 79 - - 98 * 77 ) THEN ( 46 ) WHEN COALESCE ( + MIN( 53 ), - 12 DIV - 98 + + COUNT( * ) ) THEN NULL ELSE + 56 END + 46
----
45

skipif mysql # not compatible
query I rowsort label-2971
SELECT - ( + 87 ) / - - CASE - 58 WHEN - 86 - + 5 THEN 10 + 0 WHEN + 90 + - MAX ( ALL 79 - - 98 * 77 ) THEN ( 46 ) WHEN COALESCE ( + MIN ( 53 ), - 12 / - 98 + + COUNT ( * ) ) THEN NULL ELSE + 56 END + 46
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT + 74 DIV - 94 * - - 60 + 18 + - - 53
----
71

skipif mysql # not compatible
query I rowsort label-2972
SELECT + 74 / - 94 * - - 60 + 18 + - - 53
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2973
SELECT + 71 + - ( + 98 ) * - CAST( NULL AS SIGNED ), - MIN( - 0 ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2973
SELECT + 71 + - ( + 98 ) * - CAST ( NULL AS INTEGER ), - MIN ( - 0 ) AS col0
----
NULL
0

query I rowsort
SELECT ALL 77 * + 31 AS col0
----
2387

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT - MAX( ALL - 60 ) * 73 * + 80 + 5 AS col1
----
350405

skipif mysql # not compatible
query I rowsort label-2975
SELECT - MAX ( ALL - 60 ) * 73 * + 80 + 5 AS col1
----
350405

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

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

query I rowsort
SELECT ALL + 61 * 73 AS col2
----
4453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT - COALESCE ( NULLIF ( + + 93, + COUNT( * ) * CASE + 49 WHEN - + AVG ( + - CAST( 85 AS SIGNED ) ) * - 1 + + 8 / - 81 THEN 3 WHEN + 99 THEN NULL WHEN + 9 - - 82 THEN NULL ELSE 2 * ( + ( SUM( DISTINCT 50 ) ) ) END + 49 ), 56, + COUNT( * ), + 39 * + 38 + - 93, COUNT( * ) ) * + 21 + - ( 39 + COUNT( * ) * 85 )
----
-2077

skipif mysql # not compatible
query I rowsort label-2978
SELECT - COALESCE ( NULLIF ( + + 93, + COUNT ( * ) * CASE + 49 WHEN - + AVG ( + - CAST ( 85 AS INTEGER ) ) * - 1 + + 8 / - 81 THEN 3 WHEN + 99 THEN NULL WHEN + 9 - - 82 THEN NULL ELSE 2 * ( + ( SUM ( DISTINCT 50 ) ) ) END + 49 ), 56, + COUNT ( * ), + 39 * + 38 + - 93, COUNT ( * ) ) * + 21 + - ( 39 + COUNT ( * ) * 85 )
----
-2077

query I rowsort
SELECT + 28 + - 33
----
-5

query I rowsort
SELECT - + 52 + ( - 21 ) * + + 37 AS col0
----
-829

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

skipif mysql # not compatible
query I rowsort label-2981
SELECT - - 78 / ( - - 68 ) * - - ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2982
SELECT + - 72 + 43 - 25 DIV + 94 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2982
SELECT + - 72 + 43 - 25 / + 94 AS col2
----
-29

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

query I rowsort
SELECT + 7 * + 46 + + - 73 col1
----
249

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2986
SELECT ALL + 60 * - - 81 * - 50 - - 91 * - CAST( NULL AS SIGNED ) + SUM( - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + 60 * - - 81 * - 50 - - 91 * - CAST ( NULL AS INTEGER ) + SUM ( - 64 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT + MAX( + 74 ) + + + 58 * + - 5 AS col1
----
-216

skipif mysql # not compatible
query I rowsort label-2987
SELECT + MAX ( + 74 ) + + + 58 * + - 5 AS col1
----
-216

query I rowsort
SELECT DISTINCT - 52 * + 45 + 80
----
-2260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2989
SELECT DISTINCT COUNT( ALL 59 ) * + 45 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT COUNT ( ALL 59 ) * + 45 / + 78
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT 71 * + 44 / + + COUNT( ALL 59 ) * - ( - 15 ) + + CASE 75 WHEN + 17 THEN - CASE ( + 88 ) WHEN 64 / - ( + 17 ) THEN 80 ELSE NULL END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT 71 * + 44 / + + COUNT ( ALL 59 ) * - ( - 15 ) + + CASE 75 WHEN + 17 THEN - CASE ( + 88 ) WHEN 64 / - ( + 17 ) THEN 80 ELSE NULL END END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2992
SELECT DISTINCT MAX( ALL - 57 ) * + CAST( NULL AS SIGNED ) - CAST( NULL AS DECIMAL ) + 91 AS col2, - NULLIF ( + SUM( DISTINCT - + 76 ), - 38 ) - - 90 AS col2
----
NULL
166

skipif mysql # not compatible
query II rowsort label-2992
SELECT DISTINCT MAX ( ALL - 57 ) * + CAST ( NULL AS INTEGER ) - CAST ( NULL AS REAL ) + 91 AS col2, - NULLIF ( + SUM ( DISTINCT - + 76 ), - 38 ) - - 90 AS col2
----
NULL
166

onlyif mysql # aggregate syntax: 
query II rowsort label-2993
SELECT - 69 * 30 AS col2, + MAX( ALL - - 40 ) col1
----
-2070
40

skipif mysql # not compatible
query II rowsort label-2993
SELECT - 69 * 30 AS col2, + MAX ( ALL - - 40 ) col1
----
-2070
40

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2995
SELECT DISTINCT + 88 - - COUNT( * ) + + NULLIF ( 60, - CAST( NULL AS DECIMAL ) ) DIV 6 col1
----
99

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT + 88 - - COUNT ( * ) + + NULLIF ( 60, - CAST ( NULL AS REAL ) ) / 6 col1
----
99

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

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

query I rowsort
SELECT 79 * - 81
----
-6399

query II rowsort
SELECT - 20 AS col0, - 35
----
-20
-35

query I rowsort
SELECT 92 * 93
----
8556

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3000
SELECT ( + 48 ) - - + 70 AS col0, - 52 + + - CAST( NULL AS SIGNED )
----
118
NULL

skipif mysql # not compatible
query II rowsort label-3000
SELECT ( + 48 ) - - + 70 AS col0, - 52 + + - CAST ( NULL AS INTEGER )
----
118
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3001
SELECT CAST( + 92 AS SIGNED ) * + 45 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT CAST ( + 92 AS INTEGER ) * + 45 + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 14 + 41
----
55

query II rowsort
SELECT ALL 87 AS col2, + 55 AS col0
----
87
55

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

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - MAX ( DISTINCT ( - ( 90 ) ) )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT ALL 47 * COUNT( * ) DIV + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL 47 * COUNT ( * ) / + 59 AS col1
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( 9, + 91 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL - SUM( ALL - NULLIF ( - 31, - NULLIF ( - 90, 72 ) + + + 49 * + 37 + - 25 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - SUM ( ALL - NULLIF ( - 31, - NULLIF ( - 90, 72 ) + + + 49 * + 37 + - 25 ) )
----
-31

query I rowsort
SELECT 4 * - 32 AS col1
----
-128

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

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - ( + + CAST ( COUNT ( ALL + 32 ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT ALL + 57 + + SUM( + CASE - 27 WHEN NULLIF ( - + 29, 6 ) THEN NULL WHEN + 86 THEN NULL ELSE + 15 END ) DIV + 23 col1
----
57

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + 57 + + SUM ( + CASE - 27 WHEN NULLIF ( - + 29, 6 ) THEN NULL WHEN + 86 THEN NULL ELSE + 15 END ) / + 23 col1
----
57

query I rowsort
SELECT 97 + 87 * + 6 * + 13 AS col0
----
6883

onlyif mysql # aggregate syntax: 
query II rowsort label-3012
SELECT DISTINCT + - 9 + + 22 * ( - 17 ) + 25 AS col2, - ( - - SUM( DISTINCT - 69 ) ) + 98
----
-358
167

skipif mysql # not compatible
query II rowsort label-3012
SELECT DISTINCT + - 9 + + 22 * ( - 17 ) + 25 AS col2, - ( - - SUM ( DISTINCT - 69 ) ) + 98
----
-358
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT DISTINCT - - COUNT( * ) + - 41 * + 66 * 90 AS col0
----
-243539

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT - - COUNT ( * ) + - 41 * + 66 * 90 AS col0
----
-243539

query I rowsort
SELECT - 84 * - 95 col0
----
7980

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3016
SELECT ALL - - CASE - 23 WHEN + - 73 THEN + CAST( 14 AS SIGNED ) + 95 - ( + 85 ) / 87 WHEN + + COUNT( * ) THEN SUM( 56 ) WHEN CAST( NULL AS DECIMAL ) - + 32 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL - - CASE - 23 WHEN + - 73 THEN + CAST ( 14 AS INTEGER ) + 95 - ( + 85 ) / 87 WHEN + + COUNT ( * ) THEN SUM ( 56 ) WHEN CAST ( NULL AS REAL ) - + 32 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 35 + - 26 - - - 80 + - + 47 * + 53
----
-2632

query II rowsort
SELECT ALL - - 81 AS col2, 10 AS col1
----
81
10

query I rowsort
SELECT ALL + + 67 + 52
----
119

query I rowsort
SELECT DISTINCT + + 42 * - 57
----
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT 45 + + COUNT( * ) + + 90 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-3021
SELECT 45 + + COUNT ( * ) + + 90 AS col2
----
136

onlyif mysql # DIV for integer division: 
query II rowsort label-3022
SELECT - 8 * - 97 DIV + 93, 80 AS col0
----
8
80

skipif mysql # not compatible
query II rowsort label-3022
SELECT - 8 * - 97 / + 93, 80 AS col0
----
8
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT - - 55 * + - 61 * - - COUNT( * ) + + + 52 - + 15 + 75 + - + 52 * + 34
----
-5011

skipif mysql # not compatible
query I rowsort label-3023
SELECT - - 55 * + - 61 * - - COUNT ( * ) + + + 52 - + 15 + 75 + - + 52 * + 34
----
-5011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3024
SELECT CAST( NULL AS SIGNED ) / + 78 * MIN( DISTINCT - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT CAST ( NULL AS INTEGER ) / + 78 * MIN ( DISTINCT - 54 )
----
NULL

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

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

query I rowsort
SELECT + 30 + - 88 + - 46
----
-104

query I rowsort
SELECT ALL 70 - - 5
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3028
SELECT ( + + 75 ) + + 19 + - ( + 89 ) * + 33 + + COUNT( * ) DIV - + 11 * - ( 58 ) + - ( + COUNT( * ) ) AS col0
----
-2844

skipif mysql # not compatible
query I rowsort label-3028
SELECT ( + + 75 ) + + 19 + - ( + 89 ) * + 33 + + COUNT ( * ) / - + 11 * - ( 58 ) + - ( + COUNT ( * ) ) AS col0
----
-2844

query II rowsort
SELECT - + 30 AS col1, - 88 + 74 AS col2
----
-30
-14

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT ALL - COUNT( * ), - COUNT( DISTINCT + - 61 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3031
SELECT ALL - COUNT ( * ), - COUNT ( DISTINCT + - 61 )
----
-1
-1

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

skipif mysql # not compatible
query I rowsort label-3032
SELECT - 80 + - COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT ALL - 84 - - ( - - 2 ) DIV - + 81 + + 74 * ( 46 ) DIV 60 * + 31 + - + 33 - + 40 * - COALESCE ( + 85 * 13, 87 * - COUNT( * ) + + 33 ) AS col1
----
45819

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL - 84 - - ( - - 2 ) / - + 81 + + 74 * ( 46 ) / 60 * + 31 + - + 33 - + 40 * - COALESCE ( + 85 * 13, 87 * - COUNT ( * ) + + 33 ) AS col1
----
45819

query II rowsort
SELECT DISTINCT 13, - ( + 64 ) + 86 AS col0
----
13
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT MAX( DISTINCT 79 ) + - COALESCE ( + 6, - + 61 + 31 + 56 ) + - COUNT( * ) * + 20 * - - CAST( NULL AS SIGNED ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT MAX ( DISTINCT 79 ) + - COALESCE ( + 6, - + 61 + 31 + 56 ) + - COUNT ( * ) * + 20 * - - CAST ( NULL AS INTEGER ) * 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT CASE + - 75 WHEN + + COUNT( * ) THEN 43 WHEN 29 / + 58 * + 21 + + 71 THEN ( NULLIF ( 50, + 72 / 65 + - 47 * + COUNT( * ) ) ) END * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT CASE + - 75 WHEN + + COUNT ( * ) THEN 43 WHEN 29 / + 58 * + 21 + + 71 THEN ( NULLIF ( 50, + 72 / 65 + - 47 * + COUNT ( * ) ) ) END * - 1
----
NULL

query II rowsort
SELECT 63 + - 12 + 36 * + 55 AS col1, - 22 AS col1
----
2031
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3038
SELECT CAST( NULL AS DECIMAL ) - - 47 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT CAST ( NULL AS REAL ) - - 47 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT 14 * SUM( + - 15 )
----
-210

skipif mysql # not compatible
query I rowsort label-3039
SELECT 14 * SUM ( + - 15 )
----
-210

query II rowsort
SELECT 76, + ( 76 ) * - 27 AS col0
----
76
-2052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT ALL 95 + + 66 + - + 30 * + - COUNT( * ) + + NULLIF ( - 58, - COUNT( * ) ) * + 61 * + COALESCE ( + 53, - 73 ) DIV - COUNT( * ) col2
----
187705

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL 95 + + 66 + - + 30 * + - COUNT ( * ) + + NULLIF ( - 58, - COUNT ( * ) ) * + 61 * + COALESCE ( + 53, - 73 ) / - COUNT ( * ) col2
----
187705

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3042
SELECT CAST( NULL AS DECIMAL ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT CAST ( NULL AS REAL ) * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3043
SELECT ALL 59 + + + COUNT( * ) DIV + 28 + 82 + ( + - 22 ) DIV 39 + - COUNT( * ) + + 6 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL 59 + + + COUNT ( * ) / + 28 + 82 + ( + - 22 ) / 39 + - COUNT ( * ) + + 6 AS col0
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-3044
SELECT COUNT( * ) AS col1, - 22
----
1
-22

skipif mysql # not compatible
query II rowsort label-3044
SELECT COUNT ( * ) AS col1, - 22
----
1
-22

query I rowsort
SELECT ALL - 53 * 39 + 92 + 39
----
-1936

onlyif mysql # aggregate syntax: 
query II rowsort label-3046
SELECT COUNT( * ) AS col2, - 82 AS col0
----
1
-82

skipif mysql # not compatible
query II rowsort label-3046
SELECT COUNT ( * ) AS col2, - 82 AS col0
----
1
-82

query I rowsort
SELECT 7 * + + ( + 61 ) AS col2
----
427

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT ALL - ( - MAX( + 74 ) ) * - 10 * - 54 col1
----
39960

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL - ( - MAX ( + 74 ) ) * - 10 * - 54 col1
----
39960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3049
SELECT COUNT( * ) DIV + - 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3049
SELECT COUNT ( * ) / + - 26 AS col1
----
0

query I rowsort
SELECT ALL + + 60 * + ( + 90 ) * + ( 34 ) - + 73 + + 53 AS col1
----
183580

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT ( + NULLIF ( COALESCE ( + 55, - + 87 DIV 26 + 38 ), + - 26 ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3051
SELECT ( + NULLIF ( COALESCE ( + 55, - + 87 / 26 + 38 ), + - 26 ) ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL + + COUNT( * ) * - + 78 + + 59 * - 34 * - COUNT( * ) * - 42 + 7 AS col2
----
-84323

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + + COUNT ( * ) * - + 78 + + 59 * - 34 * - COUNT ( * ) * - 42 + 7 AS col2
----
-84323

query I rowsort
SELECT + 21 + - 69
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3054
SELECT DISTINCT + + 95 * + + MIN( DISTINCT - 93 ) + - + 26 + - 86 + 7 - + - 45 + - + 20 DIV + 43 * + NULLIF ( + 87, - 9 )
----
-8895

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT + + 95 * + + MIN ( DISTINCT - 93 ) + - + 26 + - 86 + 7 - + - 45 + - + 20 / + 43 * + NULLIF ( + 87, - 9 )
----
-8895

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT + COUNT( * ) * + 52 + + 43
----
95

skipif mysql # not compatible
query I rowsort label-3055
SELECT + COUNT ( * ) * + 52 + + 43
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - 39 * SUM( DISTINCT - - 92 ) - 65 * - 54
----
-78

skipif mysql # not compatible
query I rowsort label-3056
SELECT - 39 * SUM ( DISTINCT - - 92 ) - 65 * - 54
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT ALL + 31 * - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + 31 * - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - - 13 AS col1, + 90 AS col2
----
13
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT + 82 - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT + 82 - COUNT ( * )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT - - ( + 0 ) * + - SUM( 32 ) * + - CASE - ( + + 68 ) WHEN - CAST( + 83 AS SIGNED ) THEN - 32 / - - 52 WHEN COUNT( * ) THEN NULL END - + COUNT( * ) / COUNT( ALL 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT - - ( + 0 ) * + - SUM ( 32 ) * + - CASE - ( + + 68 ) WHEN - CAST ( + 83 AS INTEGER ) THEN - 32 / - - 52 WHEN COUNT ( * ) THEN NULL END - + COUNT ( * ) / COUNT ( ALL 11 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3061
SELECT COALESCE ( - COALESCE ( - 57, - 44 ), 92 * + + COUNT( * ) * - COUNT( * ) * + + 35 * 77, + - 34, + CAST( 26 AS SIGNED ) ) * 8 AS col1
----
456

skipif mysql # not compatible
query I rowsort label-3061
SELECT COALESCE ( - COALESCE ( - 57, - 44 ), 92 * + + COUNT ( * ) * - COUNT ( * ) * + + 35 * 77, + - 34, + CAST ( 26 AS INTEGER ) ) * 8 AS col1
----
456

query I rowsort
SELECT 50 + - 19 * + 62
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL + + 39 - 92 * 71 * COUNT( * ) AS col2
----
-6493

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL + + 39 - 92 * 71 * COUNT ( * ) AS col2
----
-6493

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT ALL + - SUM( ALL - + 44 ) AS col0, + CASE - 66 WHEN - 11 + + 71 THEN + 80 ELSE NULL END
----
44
NULL

skipif mysql # not compatible
query II rowsort label-3064
SELECT ALL + - SUM ( ALL - + 44 ) AS col0, + CASE - 66 WHEN - 11 + + 71 THEN + 80 ELSE NULL END
----
44
NULL

query I rowsort
SELECT DISTINCT + - 97 - 61 AS col1
----
-158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT - CAST( NULL AS SIGNED ) * + COALESCE ( + 11, - AVG ( DISTINCT - ( + 40 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT - CAST ( NULL AS INTEGER ) * + COALESCE ( + 11, - AVG ( DISTINCT - ( + 40 ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT ALL + + CAST( + 69 AS SIGNED ) * - 68
----
-4692

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + + CAST ( + 69 AS INTEGER ) * - 68
----
-4692

query I rowsort
SELECT ALL + 88 * 50 AS col0
----
4400

query I rowsort
SELECT - CASE + + 10 WHEN 53 THEN - ( + 57 ) * + - 12 * - 30 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3070
SELECT + 43 DIV - - 52, 63 AS col0
----
0
63

skipif mysql # not compatible
query II rowsort label-3070
SELECT + 43 / - - 52, 63 AS col0
----
0
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL CASE + - 22 WHEN - 21 + 48 * + + COUNT( * ) + + NULLIF ( + COUNT( DISTINCT 85 ), - 60 ) + + 81 THEN 32 * + 8 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL CASE + - 22 WHEN - 21 + 48 * + + COUNT ( * ) + + NULLIF ( + COUNT ( DISTINCT 85 ), - 60 ) + + 81 THEN 32 * + 8 + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT DISTINCT NULLIF ( - - 25, + 5 * SUM( + - ( + 89 ) ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT NULLIF ( - - 25, + 5 * SUM ( + - ( + 89 ) ) ) AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT ALL 1 DIV 53 DIV + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL 1 / 53 / + COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT - 7 DIV + 30 * - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3074
SELECT - 7 / + 30 * - 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL + 1 + + MIN( ALL 18 ) - - + 5 * - - 18
----
109

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL + 1 + + MIN ( ALL 18 ) - - + 5 * - - 18
----
109

query I rowsort
SELECT DISTINCT NULLIF ( 77, - - 33 / - 53 ) AS col1
----
77

query I rowsort
SELECT ALL NULLIF ( - - 36, 40 * + - 16 * 64 )
----
36

query I rowsort
SELECT DISTINCT + 75 + - - ( - 14 ) * + + ( ( 90 ) )
----
-1185

onlyif mysql # aggregate syntax: 
query II rowsort label-3079
SELECT ALL ( + ( - ( + 30 ) ) ) * + 30 + - + ( - 69 ) col1, MIN( + 26 ) AS col0
----
-831
26

skipif mysql # not compatible
query II rowsort label-3079
SELECT ALL ( + ( - ( + 30 ) ) ) * + 30 + - + ( - 69 ) col1, MIN ( + 26 ) AS col0
----
-831
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT - NULLIF ( 14, + COUNT( * ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3080
SELECT - NULLIF ( 14, + COUNT ( * ) ) AS col0
----
-14

query I rowsort
SELECT + 76 + + + 2 col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL ( MIN( + + 47 ) )
----
47

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL ( MIN ( + + 47 ) )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT ALL - COUNT( * ) + + + COUNT( DISTINCT - ( COALESCE ( + CAST( NULL AS SIGNED ), - + 65 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL - COUNT ( * ) + + + COUNT ( DISTINCT - ( COALESCE ( + CAST ( NULL AS INTEGER ), - + 65 ) ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3084
SELECT + - 41 - + 92, + CASE - ( 54 ) WHEN + 58 * - 56 * + 60 + 96 * - CAST( - + COUNT( ALL - 13 ) AS SIGNED ) * 18 THEN NULL WHEN 54 * 26 THEN 62 END AS col2
----
-133
NULL

skipif mysql # not compatible
query II rowsort label-3084
SELECT + - 41 - + 92, + CASE - ( 54 ) WHEN + 58 * - 56 * + 60 + 96 * - CAST ( - + COUNT ( ALL - 13 ) AS INTEGER ) * 18 THEN NULL WHEN 54 * 26 THEN 62 END AS col2
----
-133
NULL

query II rowsort
SELECT ( + 95 ) AS col2, 21
----
95
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT + 33 * 89 - + COUNT( * ) AS col0
----
2936

skipif mysql # not compatible
query I rowsort label-3086
SELECT + 33 * 89 - + COUNT ( * ) AS col0
----
2936

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL - + COUNT( * ) * 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - + COUNT ( * ) * 47 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + MAX( DISTINCT + + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3088
SELECT + MAX ( DISTINCT + + 66 ) AS col1
----
66

query I rowsort
SELECT + ( - + 53 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT - 73 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT - 73 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 37 * - 20 + - 88
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT DISTINCT - + MIN( DISTINCT + 99 ) * 67 * - COUNT( * )
----
6633

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT - + MIN ( DISTINCT + 99 ) * 67 * - COUNT ( * )
----
6633

query I rowsort
SELECT DISTINCT + 95 col0
----
95

query I rowsort
SELECT + + ( + - 39 )
----
-39

query I rowsort
SELECT ALL + 59 * - 65
----
-3835

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT ALL + COALESCE ( - 83, 72 DIV + 45, - 47, 21 )
----
-83

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL + COALESCE ( - 83, 72 / + 45, - 47, 21 )
----
-83

query I rowsort
SELECT + - 24 * + + 30 + 22 * 25 AS col1
----
-170

query I rowsort
SELECT - 76 * + - 84 AS col1
----
6384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3099
SELECT 87 * - NULLIF ( + + 70, NULLIF ( - 82, - 27 ) * NULLIF ( - + NULLIF ( + 71, - COUNT( * ) * + - CAST( NULL AS SIGNED ) + + 31 + - 19 / COUNT( * ) * - COUNT( * ) ), - 11 + SUM( ALL - 68 ) ) ) + + 90
----
-6000

skipif mysql # not compatible
query I rowsort label-3099
SELECT 87 * - NULLIF ( + + 70, NULLIF ( - 82, - 27 ) * NULLIF ( - + NULLIF ( + 71, - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + + 31 + - 19 / COUNT ( * ) * - COUNT ( * ) ), - 11 + SUM ( ALL - 68 ) ) ) + + 90
----
-6000

query I rowsort
SELECT - - ( - 14 ) - ( 16 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL - 42 * + COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL - 42 * + COUNT ( * ) AS col2
----
-42

query I rowsort
SELECT - 66 + 68 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT DISTINCT 33 * + + COUNT( * ) + + 27 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT 33 * + + COUNT ( * ) + + 27 AS col2
----
60

query I rowsort
SELECT ALL NULLIF ( + 9, 42 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL CASE - 67 WHEN - + 79 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL CASE - 67 WHEN - + 79 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3106
SELECT DISTINCT + MIN( DISTINCT + + 57 ) + + + NULLIF ( - - 87, + 96 + 75 ) * + + CAST( NULL AS SIGNED ) + + 11 * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + MIN ( DISTINCT + + 57 ) + + + NULLIF ( - - 87, + 96 + 75 ) * + + CAST ( NULL AS INTEGER ) + + 11 * - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT DISTINCT - COUNT( * ) + + CASE - 49 WHEN 92 * CASE 97 WHEN + ( - + 28 ) + - 70 THEN + - 8 WHEN + 29 THEN - + 99 / 45 ELSE 98 + 92 END * 93 THEN SUM( ALL 31 ) + + 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT - COUNT ( * ) + + CASE - 49 WHEN 92 * CASE 97 WHEN + ( - + 28 ) + - 70 THEN + - 8 WHEN + 29 THEN - + 99 / 45 ELSE 98 + 92 END * 93 THEN SUM ( ALL 31 ) + + 12 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 70 + 89 + + 8
----
167

query I rowsort
SELECT - 88 + - 95 AS col0
----
-183

query I rowsort
SELECT + 6 * 3
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT ALL CAST( 48 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL CAST ( 48 AS INTEGER ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT - 76 + - COUNT( * ) + - 41
----
-118

skipif mysql # not compatible
query I rowsort label-3112
SELECT - 76 + - COUNT ( * ) + - 41
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT + SUM( DISTINCT - 0 ) + 71
----
71

skipif mysql # not compatible
query I rowsort label-3113
SELECT + SUM ( DISTINCT - 0 ) + 71
----
71

query II rowsort
SELECT 31 AS col2, - 6 AS col0
----
31
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3115
SELECT DISTINCT 98 AS col0, ( 59 ) * - COUNT( * ) + - COALESCE ( + SUM( 21 ), 6 * 86 )
----
98
-80

skipif mysql # not compatible
query II rowsort label-3115
SELECT DISTINCT 98 AS col0, ( 59 ) * - COUNT ( * ) + - COALESCE ( + SUM ( 21 ), 6 * 86 )
----
98
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL 40 - - - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL 40 - - - COUNT ( * )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT DISTINCT CAST( 7 AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT CAST ( 7 AS INTEGER ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-3118
SELECT + 8 + + + 94 DIV + - 58 + + 29 * 48 + - 99 AS col0, - 37 * 66 * ( 52 ) + - + 21 DIV 94
----
1300
-126984

skipif mysql # not compatible
query II rowsort label-3118
SELECT + 8 + + + 94 / + - 58 + + 29 * 48 + - 99 AS col0, - 37 * 66 * ( 52 ) + - + 21 / 94
----
1300
-126984

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT - SUM( - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-3119
SELECT - SUM ( - 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL - - 98 - - - COALESCE ( 63, - + 67, NULLIF ( - 79, - 24 + 39 / - 68 + - 23 ) * - MIN( DISTINCT + - 5 ) )
----
35

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - - 98 - - - COALESCE ( 63, - + 67, NULLIF ( - 79, - 24 + 39 / - 68 + - 23 ) * - MIN ( DISTINCT + - 5 ) )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT - 61 * + 2 + - COUNT( * ) col2, - 82
----
-123
-82

skipif mysql # not compatible
query II rowsort label-3121
SELECT - 61 * + 2 + - COUNT ( * ) col2, - 82
----
-123
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT ( 80 ) * - 46 + + - COALESCE ( - SUM( ALL 75 ), + 55 ) AS col1
----
-3605

skipif mysql # not compatible
query I rowsort label-3122
SELECT ( 80 ) * - 46 + + - COALESCE ( - SUM ( ALL 75 ), + 55 ) AS col1
----
-3605

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT ALL + NULLIF ( - + CASE + 8 WHEN - 4 * + 28 * - COUNT( DISTINCT - + 73 ) + - 10 THEN - + 4 * + NULLIF ( + 42, + 41 ) / 28 * COUNT( * ) + 78 END, - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL + NULLIF ( - + CASE + 8 WHEN - 4 * + 28 * - COUNT ( DISTINCT - + 73 ) + - 10 THEN - + 4 * + NULLIF ( + 42, + 41 ) / 28 * COUNT ( * ) + 78 END, - 0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3124
SELECT 54 DIV 38 * - - 25 + 97 + - 84
----
38

skipif mysql # not compatible
query I rowsort label-3124
SELECT 54 / 38 * - - 25 + 97 + - 84
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT 89 * - + 54 / CASE + + 69 WHEN 73 * - 95 * + 55 THEN - - MIN( + 41 ) * 93 - + 36 * - 46 * - 71 + 33 END - + 81 * 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT 89 * - + 54 / CASE + + 69 WHEN 73 * - 95 * + 55 THEN - - MIN ( + 41 ) * 93 - + 36 * - 46 * - 71 + 33 END - + 81 * 43 AS col0
----
NULL

query II rowsort
SELECT ALL - - NULLIF ( - + 76, 36 ), 23 AS col0
----
-76
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT DISTINCT - + 55 * + 81 * + 67 - - 81 DIV + 79 AS col2
----
-298484

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT - + 55 * + 81 * + 67 - - 81 / + 79 AS col2
----
-298484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT - 19 + - 66 * - - 97 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT - 19 + - 66 * - - 97 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT DISTINCT - COALESCE ( - SUM( ALL - 5 ), + - 80 )
----
-5

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT - COALESCE ( - SUM ( ALL - 5 ), + - 80 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT ALL 16 + - 48 DIV 30 + 68
----
83

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL 16 + - 48 / 30 + 68
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT - 60 DIV ( - 82 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3131
SELECT - 60 / ( - 82 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ( + - COUNT( * ) ) * - 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3132
SELECT ( + - COUNT ( * ) ) * - 27 AS col2
----
27

query I rowsort
SELECT + 69 + + 51 + 98
----
218

query I rowsort
SELECT DISTINCT 48 + + 84 * 69 * 37 + 67 AS col1
----
214567

query I rowsort
SELECT DISTINCT 90 * 43 col2
----
3870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3136
SELECT DISTINCT 83 + 53 + + - CAST( NULL AS SIGNED ) - + 22 - + COALESCE ( + 27, + + MIN( 49 ) * - 43 * 24 ) + + ( + 65 ) * + 59 * 60 / CASE COUNT( * ) WHEN 84 THEN + 38 / ( 85 ) ELSE NULL END + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT 83 + 53 + + - CAST ( NULL AS INTEGER ) - + 22 - + COALESCE ( + 27, + + MIN ( 49 ) * - 43 * 24 ) + + ( + 65 ) * + 59 * 60 / CASE COUNT ( * ) WHEN 84 THEN + 38 / ( 85 ) ELSE NULL END + - 97 AS col2
----
NULL

query I rowsort
SELECT ALL 18 + + 46
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3138
SELECT 88 - + 65, - CAST( + + 42 AS SIGNED ) AS col1
----
23
-42

skipif mysql # not compatible
query II rowsort label-3138
SELECT 88 - + 65, - CAST ( + + 42 AS INTEGER ) AS col1
----
23
-42

query I rowsort
SELECT DISTINCT + 57 - + 60 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT DISTINCT - 94 * + NULLIF ( - 0, 85 ) * + - 6 DIV + + 22
----
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT - 94 * + NULLIF ( - 0, 85 ) * + - 6 / + + 22
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT ALL + NULLIF ( ( - 17 ), 14 ) - + 3 DIV + 89
----
-17

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + NULLIF ( ( - 17 ), 14 ) - + 3 / + 89
----
-17

query I rowsort
SELECT ALL + 67 * 90 col0
----
6030

query I rowsort
SELECT 38 + + + 57 - - - 93
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT ALL + ( + - ( - 98 ) ) * - - 70 * - - COUNT( * ) col0
----
6860

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + ( + - ( - 98 ) ) * - - 70 * - - COUNT ( * ) col0
----
6860

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT COUNT( * ) + - COUNT( * ), ( + ( - + COUNT( * ) ) ) * + - ( + - COUNT( * ) ) - - + ( + COUNT( * ) ) + 92 + - 96 * + + 8 * - 56 col1
----
0
43100

skipif mysql # not compatible
query II rowsort label-3145
SELECT COUNT ( * ) + - COUNT ( * ), ( + ( - + COUNT ( * ) ) ) * + - ( + - COUNT ( * ) ) - - + ( + COUNT ( * ) ) + 92 + - 96 * + + 8 * - 56 col1
----
0
43100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT CASE + ( + 17 ) WHEN + 94 + - - NULLIF ( - + ( COUNT( * ) ), CAST( NULL AS SIGNED ) ) THEN 86 WHEN - 15 * + COUNT( * ) * - 87 THEN NULL ELSE + 73 + + 15 * COUNT( * ) END * + 5
----
440

skipif mysql # not compatible
query I rowsort label-3146
SELECT CASE + ( + 17 ) WHEN + 94 + - - NULLIF ( - + ( COUNT ( * ) ), CAST ( NULL AS INTEGER ) ) THEN 86 WHEN - 15 * + COUNT ( * ) * - 87 THEN NULL ELSE + 73 + + 15 * COUNT ( * ) END * + 5
----
440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3147
SELECT ALL + - 33 * + - 61 * + 99 / - + 66 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL + - 33 * + - 61 * + 99 / - + 66 / - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT + 58 + 94 * - + SUM( ALL + 78 ) AS col1
----
-7274

skipif mysql # not compatible
query I rowsort label-3148
SELECT + 58 + 94 * - + SUM ( ALL + 78 ) AS col1
----
-7274

query I rowsort
SELECT 25 * 68 * 51 AS col2
----
86700

query I rowsort
SELECT 55 + 60 + + 48 AS col2
----
163

query I rowsort
SELECT + ( COALESCE ( + 57, 64 + + 29 ) )
----
57

query I rowsort
SELECT DISTINCT - + 3 * ( + 97 ) AS col1
----
-291

onlyif mysql # DIV for integer division: 
query II rowsort label-3153
SELECT ALL + 61 DIV + 16, COALESCE ( - - 38, + 13 ) + + 8 AS col2
----
3
46

skipif mysql # not compatible
query II rowsort label-3153
SELECT ALL + 61 / + 16, COALESCE ( - - 38, + 13 ) + + 8 AS col2
----
3
46

query I rowsort
SELECT 4 * + - 69
----
-276

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3155
SELECT ALL 47 * 77 + - - 82 DIV + COUNT( * ), - 96 + + COUNT( * ) + - COUNT( * ) * 91 * + 6 AS col2
----
3701
-641

skipif mysql # not compatible
query II rowsort label-3155
SELECT ALL 47 * 77 + - - 82 / + COUNT ( * ), - 96 + + COUNT ( * ) + - COUNT ( * ) * 91 * + 6 AS col2
----
3701
-641

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL + 0 + 87 - 17 + + COUNT( DISTINCT - 88 ) * - NULLIF ( + 71, + - 32 * - + 14 * 18 * 54 / + 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL + 0 + 87 - 17 + + COUNT ( DISTINCT - 88 ) * - NULLIF ( + 71, + - 32 * - + 14 * 18 * 54 / + 23 )
----
-1

query I rowsort
SELECT - ( - 13 ) col0
----
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3158
SELECT + CAST( + 46 AS SIGNED ) * - 1 + 52 DIV 77 + 9
----
-37

skipif mysql # not compatible
query I rowsort label-3158
SELECT + CAST ( + 46 AS INTEGER ) * - 1 + 52 / 77 + 9
----
-37

query I rowsort
SELECT ALL + 76 * + - NULLIF ( - + CASE + 89 WHEN + 97 THEN NULL ELSE - 36 END, + 67 / - 66 ) col2
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT - 67 * + - COUNT( * ) + + 79 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-3160
SELECT - 67 * + - COUNT ( * ) + + 79 AS col1
----
146

query I rowsort
SELECT ALL 36 + + 66
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3162
SELECT + 57 * 66 + COUNT( * ) DIV - 82 * + NULLIF ( - 10, + - CAST( NULL AS SIGNED ) ) * + + 11 * + 66 - - - 72
----
3690

skipif mysql # not compatible
query I rowsort label-3162
SELECT + 57 * 66 + COUNT ( * ) / - 82 * + NULLIF ( - 10, + - CAST ( NULL AS INTEGER ) ) * + + 11 * + 66 - - - 72
----
3690

query I rowsort
SELECT ALL + 42 * - 64
----
-2688

query I rowsort
SELECT ( + + 53 ) * + 46 AS col2
----
2438

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3165
SELECT DISTINCT COALESCE ( + + 22, - + 79 * 83 * - COUNT( * ) + 41, COUNT( DISTINCT COALESCE ( + 52, + 81 ) ) ) DIV + 30 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT COALESCE ( + + 22, - + 79 * 83 * - COUNT ( * ) + 41, COUNT ( DISTINCT COALESCE ( + 52, + 81 ) ) ) / + 30 * + COUNT ( * )
----
0

query I rowsort
SELECT 97 + - + 2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3167
SELECT 71 * ( + ( + - ( - 15 ) ) ) * + MIN( DISTINCT + 67 ) - - 28 col1, 65
----
71383
65

skipif mysql # not compatible
query II rowsort label-3167
SELECT 71 * ( + ( + - ( - 15 ) ) ) * + MIN ( DISTINCT + 67 ) - - 28 col1, 65
----
71383
65

query I rowsort
SELECT ALL ( - + 58 ) * + 49 AS col2
----
-2842

query I rowsort
SELECT ( 56 ) * - 52 * - 36 AS col0
----
104832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3170
SELECT DISTINCT COUNT( * ) DIV - - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT COUNT ( * ) / - - 46 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3171
SELECT COUNT( * ) + - 51 * - NULLIF ( 31, 83 + ( + 65 ) + - - 20 ), + 59 AS col0
----
1582
59

skipif mysql # not compatible
query II rowsort label-3171
SELECT COUNT ( * ) + - 51 * - NULLIF ( 31, 83 + ( + 65 ) + - - 20 ), + 59 AS col0
----
1582
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT NULLIF ( - 79, - MIN( + 63 ) ) + - 91 + + + 90 * 60
----
5230

skipif mysql # not compatible
query I rowsort label-3172
SELECT NULLIF ( - 79, - MIN ( + 63 ) ) + - 91 + + + 90 * 60
----
5230

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT ALL COUNT( * ) * 20
----
20

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL COUNT ( * ) * 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT COUNT( * ) * + 32 * - 95
----
-3040

skipif mysql # not compatible
query I rowsort label-3174
SELECT COUNT ( * ) * + 32 * - 95
----
-3040

query I rowsort
SELECT DISTINCT 54 col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT SUM( ALL + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-3176
SELECT SUM ( ALL + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - ( - COUNT( * ) ) + + 22 + + - 26 + - CASE - + 74 WHEN + + 89 THEN + 5 WHEN + - 99 THEN - + 97 * + 4 / ( 38 ) + 30 WHEN - 5 + - SUM( 20 ) THEN NULL END / 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT - ( - COUNT ( * ) ) + + 22 + + - 26 + - CASE - + 74 WHEN + + 89 THEN + 5 WHEN + - 99 THEN - + 97 * + 4 / ( 38 ) + 30 WHEN - 5 + - SUM ( 20 ) THEN NULL END / 78 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT + CAST( - 53 AS SIGNED ) * 74 + - - MIN( + - 94 )
----
-4016

skipif mysql # not compatible
query I rowsort label-3178
SELECT + CAST ( - 53 AS INTEGER ) * 74 + - - MIN ( + - 94 )
----
-4016

query I rowsort
SELECT - 26 + - + 92 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL + - 30 * COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + - 30 * COUNT ( * ) AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT - - SUM( - CAST( 47 AS SIGNED ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3181
SELECT - - SUM ( - CAST ( 47 AS INTEGER ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL + 15 + - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + 15 + - COUNT ( * )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT ALL CASE - COUNT( * ) WHEN + + 55 THEN - 83 WHEN 30 * + - 84 - - 72 + CAST( NULL AS SIGNED ) + 75 THEN + 91 * - 3 + - - 9 * - MIN( ALL - 52 ) / - NULLIF ( 30, 77 ) * - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL CASE - COUNT ( * ) WHEN + + 55 THEN - 83 WHEN 30 * + - 84 - - 72 + CAST ( NULL AS INTEGER ) + 75 THEN + 91 * - 3 + - - 9 * - MIN ( ALL - 52 ) / - NULLIF ( 30, 77 ) * - 26 END
----
NULL

query I rowsort
SELECT - - ( + 90 )
----
90

query I rowsort
SELECT DISTINCT - + 1 + + NULLIF ( 35, - + 69 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3186
SELECT - - 60 DIV - CAST( NULLIF ( - 30, + 80 DIV + SUM( 36 ) + - CASE - + 79 WHEN COUNT( * ) THEN 47 + - COUNT( * ) * + + 76 ELSE - ( - + 79 ) + + 73 * - COUNT( * ) END ) AS SIGNED ) + + 65 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3186
SELECT - - 60 / - CAST ( NULLIF ( - 30, + 80 / + SUM ( 36 ) + - CASE - + 79 WHEN COUNT ( * ) THEN 47 + - COUNT ( * ) * + + 76 ELSE - ( - + 79 ) + + 73 * - COUNT ( * ) END ) AS INTEGER ) + + 65 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT - - ( - - CASE ( 46 ) WHEN - MAX( ALL + 23 ) * - SUM( ( + ( + 17 ) ) ) * + 7 * + 4 * + + NULLIF ( 93, + 96 ) * + 26 + SUM( ALL 75 ) THEN 0 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT - - ( - - CASE ( 46 ) WHEN - MAX ( ALL + 23 ) * - SUM ( ( + ( + 17 ) ) ) * + 7 * + 4 * + + NULLIF ( 93, + 96 ) * + 26 + SUM ( ALL 75 ) THEN 0 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT - - COUNT( * ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3188
SELECT - - COUNT ( * ) * - COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT + + 47 DIV 31 + - 83 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3189
SELECT + + 47 / 31 + - 83 AS col0
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3190
SELECT - 51 DIV - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3190
SELECT - 51 / - COUNT ( * )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3191
SELECT DISTINCT + - CASE - - 7 WHEN - 22 THEN 62 WHEN + 28 THEN NULL WHEN + 15 THEN + CAST( NULL AS SIGNED ) * + - COALESCE ( 82, 71 - + - ( - NULLIF ( - + 1, + 69 ) ), + 28 ) / 66 - NULLIF ( - 83, - 4 ) END * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT + - CASE - - 7 WHEN - 22 THEN 62 WHEN + 28 THEN NULL WHEN + 15 THEN + CAST ( NULL AS INTEGER ) * + - COALESCE ( 82, 71 - + - ( - NULLIF ( - + 1, + 69 ) ), + 28 ) / 66 - NULLIF ( - 83, - 4 ) END * + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL - COUNT( * ) * - 6 col1
----
6

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - COUNT ( * ) * - 6 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT - COUNT( * ) * + 86 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-3193
SELECT - COUNT ( * ) * + 86 AS col1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT ALL - + 38 DIV 49 * - + ( 32 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL - + 38 / 49 * - + ( 32 ) AS col1
----
0

query I rowsort
SELECT - + 34 + 52
----
18

query I rowsort
SELECT ALL 96 * + 99 + + 95
----
9599

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT - 13 + + + COUNT( * ) + 4 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3197
SELECT - 13 + + + COUNT ( * ) + 4 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT NULLIF ( + - 86, 59 + + - COUNT( ALL 42 ) - - COUNT( * ) / - MIN( 73 ) * - COUNT( * ) )
----
-86

skipif mysql # not compatible
query I rowsort label-3198
SELECT NULLIF ( + - 86, 59 + + - COUNT ( ALL 42 ) - - COUNT ( * ) / - MIN ( 73 ) * - COUNT ( * ) )
----
-86

query I rowsort
SELECT - ( - 73 ) * + 66 * 42 AS col2
----
202356

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT CASE - - ( + + 16 ) WHEN - + 67 * + 28 * - ( - + 63 ) THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT CASE - - ( + + 16 ) WHEN - + 67 * + 28 * - ( - + 63 ) THEN COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - + 71, 33 ) AS col2
----
-71

query I rowsort
SELECT DISTINCT COALESCE ( ( + 21 ), - + 93 ) * - 21
----
-441

onlyif mysql # aggregate syntax: 
query II rowsort label-3203
SELECT ALL ( + - SUM( DISTINCT - 92 ) ) * - 22, - 17 AS col1
----
-2024
-17

skipif mysql # not compatible
query II rowsort label-3203
SELECT ALL ( + - SUM ( DISTINCT - 92 ) ) * - 22, - 17 AS col1
----
-2024
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL + COUNT( * ) * + 92 * - - 97
----
8924

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL + COUNT ( * ) * + 92 * - - 97
----
8924

query I rowsort
SELECT - 71 * 52
----
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL + MAX( - + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + MAX ( - + 2 )
----
-2

query I rowsort
SELECT DISTINCT + ( 37 ) * 7 * 64 * 70 col2
----
1160320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT ALL CAST( - + 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL CAST ( - + 84 AS INTEGER )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3209
SELECT - 35 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-3209
SELECT - 35 / + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT - COALESCE ( - 19, + COUNT( * ) )
----
19

skipif mysql # not compatible
query I rowsort label-3210
SELECT - COALESCE ( - 19, + COUNT ( * ) )
----
19

query I rowsort
SELECT - 11 - + 70 AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3212
SELECT + 5 DIV 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3212
SELECT + 5 / 2 AS col0
----
2

query I rowsort
SELECT - CASE + 94 WHEN - 6 THEN 82 ELSE - - 92 END
----
-92

query I rowsort
SELECT DISTINCT 84 * - 58
----
-4872

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT + 54 DIV - 56 * + 76
----
0

skipif mysql # not compatible
query I rowsort label-3215
SELECT + 54 / - 56 * + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL + 45 + + 0 * - COUNT( * ) - - - 7 * 84
----
-543

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + 45 + + 0 * - COUNT ( * ) - - - 7 * 84
----
-543

query I rowsort
SELECT ALL + 86 + + 96 col1
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3218
SELECT + - ( COALESCE ( - - 15, - + 84, + 81 DIV COUNT( * ) ) ) - 44 * + - COUNT( * ) + + 25 DIV - - MIN( 97 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3218
SELECT + - ( COALESCE ( - - 15, - + 84, + 81 / COUNT ( * ) ) ) - 44 * + - COUNT ( * ) + + 25 / - - MIN ( 97 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL - 75 * - 10 + - COUNT( * )
----
749

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL - 75 * - 10 + - COUNT ( * )
----
749

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT + + COUNT( * ) * 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3220
SELECT + + COUNT ( * ) * 96 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT ALL 69 + + 27 * + 77 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL 69 + + 27 * + 77 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 43 + + 29 col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT + ( - COALESCE ( + 5, - 17 ) ) * MAX( + 8 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3223
SELECT + ( - COALESCE ( + 5, - 17 ) ) * MAX ( + 8 ) AS col1
----
-40

query I rowsort
SELECT + 56 + + 11 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT - - COUNT( * ) + 18 + - 63 + + MAX( ALL 20 )
----
-24

skipif mysql # not compatible
query I rowsort label-3225
SELECT - - COUNT ( * ) + 18 + - 63 + + MAX ( ALL 20 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT DISTINCT - 18 + - 45 + ( 61 ) * SUM( ALL 46 ) * 65 AS col0
----
182327

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT - 18 + - 45 + ( 61 ) * SUM ( ALL 46 ) * 65 AS col0
----
182327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT - + SUM( ALL + CAST( + + 26 AS SIGNED ) )
----
-26

skipif mysql # not compatible
query I rowsort label-3227
SELECT - + SUM ( ALL + CAST ( + + 26 AS INTEGER ) )
----
-26

query I rowsort
SELECT ALL - NULLIF ( + 86, + - 57 )
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3229
SELECT ALL + COUNT( * ), 0 + + COUNT( * ) + - 62 AS col2
----
1
-61

skipif mysql # not compatible
query II rowsort label-3229
SELECT ALL + COUNT ( * ), 0 + + COUNT ( * ) + - 62 AS col2
----
1
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3230
SELECT ALL + 99 DIV COALESCE ( + 15, + + 96 + + COUNT( * ) + + - ( 16 ) - - MAX( DISTINCT - 88 ) * - - 89 * - - 78 * + CAST( AVG ( 85 ) AS SIGNED ) * + ( COUNT( * ) ) + 52 * 29 )
----
6

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + 99 / COALESCE ( + 15, + + 96 + + COUNT ( * ) + + - ( 16 ) - - MAX ( DISTINCT - 88 ) * - - 89 * - - 78 * + CAST ( AVG ( 85 ) AS INTEGER ) * + ( COUNT ( * ) ) + 52 * 29 )
----
6

query I rowsort
SELECT + 84 * - 74
----
-6216

query I rowsort
SELECT ALL - ( - ( 26 ) ) * 20 * - 75
----
-39000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT CAST( - 8 AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3233
SELECT CAST ( - 8 AS INTEGER ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT COUNT( * ) * MIN( + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT COUNT ( * ) * MIN ( + 21 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT ( + 77 ) col0, 89 * - - 44 * - 13 + + MIN( - NULLIF ( 85, COALESCE ( + 24, + 83 ) ) ) + - + 87 - + 68 AS col1
----
77
-51148

skipif mysql # not compatible
query II rowsort label-3235
SELECT ( + 77 ) col0, 89 * - - 44 * - 13 + + MIN ( - NULLIF ( 85, COALESCE ( + 24, + 83 ) ) ) + - + 87 - + 68 AS col1
----
77
-51148

query I rowsort
SELECT ALL + ( - 92 )
----
-92

query I rowsort
SELECT - 3 * + ( - 48 ) - 39 AS col1
----
105

onlyif mysql # DIV for integer division: 
query II rowsort label-3238
SELECT ALL - 53 DIV - + NULLIF ( - 45, + 55 * - 55 + + + 75 - - 49 + + + 37 ) col0, 4 AS col1
----
-1
4

skipif mysql # not compatible
query II rowsort label-3238
SELECT ALL - 53 / - + NULLIF ( - 45, + 55 * - 55 + + + 75 - - 49 + + + 37 ) col0, 4 AS col1
----
-1
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3239
SELECT - 24 * - CASE + 85 WHEN COUNT( + 45 ) THEN NULL ELSE CASE - CASE - MAX( DISTINCT + + CAST( + + CAST( COALESCE ( + + 35, + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS SIGNED ) ) WHEN + - 2 THEN NULL WHEN COUNT( ALL - - 17 ) - - 41 + ( - CAST( NULL AS SIGNED ) ) * + 89 THEN - 8 ELSE 66 * + 70 END WHEN + COUNT( * ) THEN NULL WHEN - 53 THEN 57 WHEN COUNT( * ) * - 85 + 62 THEN NULL END * + ( + 5 + 17 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT - 24 * - CASE + 85 WHEN COUNT ( + 45 ) THEN NULL ELSE CASE - CASE - MAX ( DISTINCT + + CAST ( + + CAST ( COALESCE ( + + 35, + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS INTEGER ) ) WHEN + - 2 THEN NULL WHEN COUNT ( ALL - - 17 ) - - 41 + ( - CAST ( NULL AS INTEGER ) ) * + 89 THEN - 8 ELSE 66 * + 70 END WHEN + COUNT ( * ) THEN NULL WHEN - 53 THEN 57 WHEN COUNT ( * ) * - 85 + 62 THEN NULL END * + ( + 5 + 17 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT + MIN( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-3240
SELECT + MIN ( 77 )
----
77

query I rowsort
SELECT ALL + ( - + NULLIF ( + 64, 77 ) ) AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3242
SELECT - 40 * 98 + 68 + + COUNT( + ( + 31 ) ) + - + CAST( NULL AS SIGNED ) * 23 * 53 + + 60 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT - 40 * 98 + 68 + + COUNT ( + ( + 31 ) ) + - + CAST ( NULL AS INTEGER ) * 23 * 53 + + 60 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL - COUNT( + 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - COUNT ( + 35 )
----
-1

query I rowsort
SELECT ( 10 ) * + - COALESCE ( - 78, + 2 * + 33 - 8 ) - 75
----
705

query I rowsort
SELECT 41 + - 68 AS col0
----
-27

query I rowsort
SELECT ALL - 45 * - 28 col1
----
1260

query I rowsort
SELECT DISTINCT 93 + + ( + 55 ) + + 69 AS col2
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT - 63 + - ( - COUNT( * ) )
----
-62

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT - 63 + - ( - COUNT ( * ) )
----
-62

query I rowsort
SELECT ALL - 15 + - 24 - + - 99 + 15
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT + 55 * 93 + COUNT( * ) AS col0
----
5116

skipif mysql # not compatible
query I rowsort label-3250
SELECT + 55 * 93 + COUNT ( * ) AS col0
----
5116

query I rowsort
SELECT ALL - - 46 * - 42 * + 8
----
-15456

query I rowsort
SELECT 2 + - + 11 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3253
SELECT DISTINCT - MIN( DISTINCT + COALESCE ( - - COALESCE ( - 54, - 43 DIV 86 + + 7 * - ( 16 ) ), COALESCE ( - - 19, + ( - + 82 ) * - 41 + + 42, 4 ) * + CAST( 3 AS SIGNED ) + 4 * 67 ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT - MIN ( DISTINCT + COALESCE ( - - COALESCE ( - 54, - 43 / 86 + + 7 * - ( 16 ) ), COALESCE ( - - 19, + ( - + 82 ) * - 41 + + 42, 4 ) * + CAST ( 3 AS INTEGER ) + 4 * 67 ) ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL CASE + 47 WHEN COUNT( * ) THEN + COUNT( * ) * COUNT( * ) - 59 WHEN - ( 97 ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL CASE + 47 WHEN COUNT ( * ) THEN + COUNT ( * ) * COUNT ( * ) - 59 WHEN - ( 97 ) THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL - + SUM( 81 ) + + + 93 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL - + SUM ( 81 ) + + + 93 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT - COUNT( * ) * + 46
----
-46

skipif mysql # not compatible
query I rowsort label-3256
SELECT - COUNT ( * ) * + 46
----
-46

query II rowsort
SELECT DISTINCT 76 + - 89 col2, - 24 AS col0
----
-13
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL - COUNT( DISTINCT - 86 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL - COUNT ( DISTINCT - 86 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3259
SELECT - + CAST( + COUNT( * ) AS SIGNED ) AS col1, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-3259
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * )
----
-1
1

query I rowsort
SELECT 58 * + 0 col2
----
0

query I rowsort
SELECT ALL 3 * - - 18 AS col0
----
54

query II rowsort
SELECT DISTINCT - - 29 - - - 98, 62 * 49 AS col2
----
-69
3038

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3263
SELECT ALL CAST( NULL AS DECIMAL ) * + 26 * + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL CAST ( NULL AS REAL ) * + 26 * + 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT - COUNT( DISTINCT CASE + - 46 WHEN - + 5 THEN - 34 END ) + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3264
SELECT - COUNT ( DISTINCT CASE + - 46 WHEN - + 5 THEN - 34 END ) + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 60 * 50 + ( + 11 )
----
3011

query I rowsort
SELECT DISTINCT - 70 * - 44 AS col1
----
3080

query I rowsort
SELECT COALESCE ( - 17, + 1 )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3268
SELECT DISTINCT + CAST( - 54 AS SIGNED ) col2, + ( + 21 ) AS col2
----
-54
21

skipif mysql # not compatible
query II rowsort label-3268
SELECT DISTINCT + CAST ( - 54 AS INTEGER ) col2, + ( + 21 ) AS col2
----
-54
21

query I rowsort
SELECT + 52 + 47 AS col2
----
99

query I rowsort
SELECT - - 30 col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3271
SELECT CAST( - COUNT( DISTINCT 81 ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3271
SELECT CAST ( - COUNT ( DISTINCT 81 ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT ( 11 ) - 26 * ( + ( - + 83 ) ) * COUNT( + 98 ) + CAST( 65 AS SIGNED ) AS col0
----
2234

skipif mysql # not compatible
query I rowsort label-3272
SELECT ( 11 ) - 26 * ( + ( - + 83 ) ) * COUNT ( + 98 ) + CAST ( 65 AS INTEGER ) AS col0
----
2234

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT DISTINCT COUNT( * ) - - ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT COUNT ( * ) - - ( COUNT ( * ) )
----
2

query I rowsort
SELECT ALL - 71 col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT COUNT( * ) * - 46 * 25 + 41 + - + 82
----
-1191

skipif mysql # not compatible
query I rowsort label-3275
SELECT COUNT ( * ) * - 46 * 25 + 41 + - + 82
----
-1191

query II rowsort
SELECT 80 AS col2, + 82 AS col0
----
80
82

query II rowsort
SELECT ( - + 55 ) + + 49, - 49 AS col1
----
-6
-49

query I rowsort
SELECT 26 * 94
----
2444

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL - COUNT( * ) * + 27 col2
----
-27

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL - COUNT ( * ) * + 27 col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT 12 * - ( - COUNT( * ) ) + 71 + - + 44 * COUNT( * ) - - 4 + MIN( ALL + - 17 ) + - 97 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-3280
SELECT 12 * - ( - COUNT ( * ) ) + 71 + - + 44 * COUNT ( * ) - - 4 + MIN ( ALL + - 17 ) + - 97 AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3281
SELECT ALL - 68 AS col2, - 3 * - 56 + - 30 + COUNT( 99 ) * - 99 * - 70 + + CAST( NULL AS SIGNED ) - - + COUNT( * ) AS col0
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-3281
SELECT ALL - 68 AS col2, - 3 * - 56 + - 30 + COUNT ( 99 ) * - 99 * - 70 + + CAST ( NULL AS INTEGER ) - - + COUNT ( * ) AS col0
----
-68
NULL

query I rowsort
SELECT DISTINCT - 40 * + 18 AS col0
----
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3283
SELECT 16 DIV - - 74 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3283
SELECT 16 / - - 74 * + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 51 * 8
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT - SUM( ALL 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT - SUM ( ALL 39 )
----
-39

query II rowsort
SELECT + 86, - 27 AS col2
----
86
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3287
SELECT + 89, 73 DIV + 81 * + 24 + - 72 + + 62 + + COUNT( * ) AS col2
----
89
-9

skipif mysql # not compatible
query II rowsort label-3287
SELECT + 89, 73 / + 81 * + 24 + - 72 + + 62 + + COUNT ( * ) AS col2
----
89
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT 67 + - - 68 + + - 79 DIV - - 4 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-3288
SELECT 67 + - - 68 + + - 79 / - - 4 AS col2
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3289
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), - 41 + - + 89 ), MIN( - - 77 ) AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3289
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), - 41 + - + 89 ), MIN ( - - 77 ) AS col0
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT COUNT( * ) * + 81
----
81

skipif mysql # not compatible
query I rowsort label-3290
SELECT COUNT ( * ) * + 81
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL MIN( DISTINCT + + 70 ) + - 8 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL MIN ( DISTINCT + + 70 ) + - 8 AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3292
SELECT + 46, COUNT( * ) DIV - MAX( + 52 ) AS col1
----
46
0

skipif mysql # not compatible
query II rowsort label-3292
SELECT + 46, COUNT ( * ) / - MAX ( + 52 ) AS col1
----
46
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3293
SELECT DISTINCT - 4 + COUNT( * ) + 61 * + 81 DIV - COUNT( * ) AS col0
----
-4944

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - 4 + COUNT ( * ) + 61 * + 81 / - COUNT ( * ) AS col0
----
-4944

query I rowsort
SELECT ALL - 50 + + 33
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3295
SELECT 9, - 94 + 24 + - NULLIF ( + 82, + CASE 26 WHEN 61 * - 45 + - 81 + + - 43 - + COUNT( DISTINCT 93 ) - + + 10 * - COUNT( * ) + + + CAST( NULL AS SIGNED ) THEN NULL ELSE - + CAST( NULL AS SIGNED ) END ) * - ( COUNT( * ) ) * COUNT( * ) AS col1
----
9
12

skipif mysql # not compatible
query II rowsort label-3295
SELECT 9, - 94 + 24 + - NULLIF ( + 82, + CASE 26 WHEN 61 * - 45 + - 81 + + - 43 - + COUNT ( DISTINCT 93 ) - + + 10 * - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) THEN NULL ELSE - + CAST ( NULL AS INTEGER ) END ) * - ( COUNT ( * ) ) * COUNT ( * ) AS col1
----
9
12

query I rowsort
SELECT ALL + 86 + + + 72 AS col1
----
158

query I rowsort
SELECT 67 * 93 AS col2
----
6231

query I rowsort
SELECT DISTINCT + + 82 + - 93
----
-11

query I rowsort
SELECT - ( 52 )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3300
SELECT ALL + 84 + COALESCE ( - + 16, - ( 54 ) * + 40 * CAST( NULL AS SIGNED ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + 84 + COALESCE ( - + 16, - ( 54 ) * + 40 * CAST ( NULL AS INTEGER ) ) AS col0
----
68

query I rowsort
SELECT ALL - 93 * 96
----
-8928

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT - - MAX( + - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-3302
SELECT - - MAX ( + - 86 )
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT ALL + 23 - + 82 * + 0 DIV + 63 * - + 52 * 90
----
23

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + 23 - + 82 * + 0 / + 63 * - + 52 * 90
----
23

query I rowsort
SELECT ALL - 43 - + 81
----
-124

query I rowsort
SELECT - 61 * + 79
----
-4819

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL - 32 * - COUNT( ALL - 64 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL - 32 * - COUNT ( ALL - 64 ) AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT + 27 * - + 65 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT + 27 * - + 65 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3308
SELECT COUNT( ALL - 14 ) * - 57, + 54 + 47 col0
----
-57
101

skipif mysql # not compatible
query II rowsort label-3308
SELECT COUNT ( ALL - 14 ) * - 57, + 54 + 47 col0
----
-57
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT COUNT( * ) + - - 3 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3309
SELECT COUNT ( * ) + - - 3 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3310
SELECT ALL + COUNT( * ) DIV - + 94 * 34 + + + ( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + COUNT ( * ) / - + 94 * 34 + + + ( 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT 76 * - + COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3311
SELECT 76 * - + COUNT ( * ) AS col0
----
-76

query I rowsort
SELECT ALL ( - 75 ) * - 54 AS col0
----
4050

query I rowsort
SELECT ALL + 53 * 72 * - 68
----
-259488

query II rowsort
SELECT DISTINCT 1 * - + NULLIF ( 32, 84 ) AS col0, - 25 AS col1
----
-32
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT 26 * - 43 + - COALESCE ( COUNT( ALL 97 ), - 36 )
----
-1119

skipif mysql # not compatible
query I rowsort label-3315
SELECT 26 * - 43 + - COALESCE ( COUNT ( ALL 97 ), - 36 )
----
-1119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3316
SELECT ALL - ( 57 ) * - COUNT( * ) + - + 90, CAST( - + 12 AS SIGNED ) AS col0
----
-33
-12

skipif mysql # not compatible
query II rowsort label-3316
SELECT ALL - ( 57 ) * - COUNT ( * ) + - + 90, CAST ( - + 12 AS INTEGER ) AS col0
----
-33
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3317
SELECT 44 * + 93 - - - NULLIF ( 63, 35 / 90 + - + COALESCE ( + 83, + COUNT( + - 79 ) * - SUM( + 61 ) * + - ( + CAST( NULL AS SIGNED ) ) + + + 31 - + + COUNT( * ) + + 13 ) * - 29 + - 11 ) AS col1
----
4029

skipif mysql # not compatible
query I rowsort label-3317
SELECT 44 * + 93 - - - NULLIF ( 63, 35 / 90 + - + COALESCE ( + 83, + COUNT ( + - 79 ) * - SUM ( + 61 ) * + - ( + CAST ( NULL AS INTEGER ) ) + + + 31 - + + COUNT ( * ) + + 13 ) * - 29 + - 11 ) AS col1
----
4029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3318
SELECT - 95 / + COUNT( * ) * + CASE MIN( ALL + 34 ) WHEN + 40 + - 69 + + + 98 + + 95 * 26 THEN + - 16 * + 45 + - ( - 95 ) WHEN + COUNT( * ) * + 34 + 52 * - - 57 + 79 + + 62 THEN NULL WHEN - COUNT( * ) + - ( + CAST( NULL AS SIGNED ) ) * CAST( 13 AS DECIMAL ) THEN + 55 END - NULLIF ( 40, + 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT - 95 / + COUNT ( * ) * + CASE MIN ( ALL + 34 ) WHEN + 40 + - 69 + + + 98 + + 95 * 26 THEN + - 16 * + 45 + - ( - 95 ) WHEN + COUNT ( * ) * + 34 + 52 * - - 57 + 79 + + 62 THEN NULL WHEN - COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) * CAST ( 13 AS REAL ) THEN + 55 END - NULLIF ( 40, + 67 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3319
SELECT CASE - 65 WHEN 5 THEN NULL WHEN - 59 - 55 + - CAST( + 30 AS DECIMAL ) - - + ( 91 ) + - + 1 * - CAST( NULL AS SIGNED ) - 33 + 53 * + 12 THEN - 48 ELSE + + ( + 81 ) END AS col2, - 41 + - 78
----
81
-119

skipif mysql # not compatible
query II rowsort label-3319
SELECT CASE - 65 WHEN 5 THEN NULL WHEN - 59 - 55 + - CAST ( + 30 AS REAL ) - - + ( 91 ) + - + 1 * - CAST ( NULL AS INTEGER ) - 33 + 53 * + 12 THEN - 48 ELSE + + ( + 81 ) END AS col2, - 41 + - 78
----
81
-119

query I rowsort
SELECT + 88 + - ( + 82 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT + COALESCE ( + 25, + COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-3321
SELECT + COALESCE ( + 25, + COUNT ( * ) )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3322
SELECT ALL 26 * 48 * - CAST( + - 71 AS SIGNED ) + + CASE 18 WHEN - COUNT( * ) + ( - COUNT( * ) ) / - SUM( ALL - COALESCE ( + 37, + - 75 ) ) THEN + + 45 + + - 78 WHEN 76 THEN 4 END AS col1, 9
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3322
SELECT ALL 26 * 48 * - CAST ( + - 71 AS INTEGER ) + + CASE 18 WHEN - COUNT ( * ) + ( - COUNT ( * ) ) / - SUM ( ALL - COALESCE ( + 37, + - 75 ) ) THEN + + 45 + + - 78 WHEN 76 THEN 4 END AS col1, 9
----
NULL
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT COUNT( - 61 ) AS col2, - 62 + - 88 AS col1
----
1
-150

skipif mysql # not compatible
query II rowsort label-3323
SELECT COUNT ( - 61 ) AS col2, - 62 + - 88 AS col1
----
1
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-3324
SELECT MIN( - 50 ) * - 3 - 5 AS col1, - ( COUNT( * ) ) + 49
----
145
48

skipif mysql # not compatible
query II rowsort label-3324
SELECT MIN ( - 50 ) * - 3 - 5 AS col1, - ( COUNT ( * ) ) + 49
----
145
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3325
SELECT + 57 DIV + - 32 - + 81 + + - COUNT( * ) AS col2, - ( 73 )
----
-83
-73

skipif mysql # not compatible
query II rowsort label-3325
SELECT + 57 / + - 32 - + 81 + + - COUNT ( * ) AS col2, - ( 73 )
----
-83
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3326
SELECT ALL + 91 * - 45 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + 91 * - 45 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT ALL 92 * + - 7 * - - CAST( - - NULLIF ( + 35, - 95 ) AS SIGNED ) + 49 AS col2
----
-22491

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL 92 * + - 7 * - - CAST ( - - NULLIF ( + 35, - 95 ) AS INTEGER ) + 49 AS col2
----
-22491

query I rowsort
SELECT + 9 + + ( - 72 ) AS col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3329
SELECT - + 45 * 2 - - - COALESCE ( 59, + ( 12 ) DIV - 20 ) * - 12 DIV + - COUNT( DISTINCT 78 ) col0
----
-798

skipif mysql # not compatible
query I rowsort label-3329
SELECT - + 45 * 2 - - - COALESCE ( 59, + ( 12 ) / - 20 ) * - 12 / + - COUNT ( DISTINCT 78 ) col0
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT + COUNT( * ) * MIN( DISTINCT + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-3330
SELECT + COUNT ( * ) * MIN ( DISTINCT + 60 )
----
60

query I rowsort
SELECT DISTINCT - 94 * - 78
----
7332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3332
SELECT DISTINCT - SUM( CAST( + 13 AS SIGNED ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT - SUM ( CAST ( + 13 AS INTEGER ) ) AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3333
SELECT - COUNT( * ) + + 62 * - CAST( + + 41 AS SIGNED ) * - + 63 AS col0
----
160145

skipif mysql # not compatible
query I rowsort label-3333
SELECT - COUNT ( * ) + + 62 * - CAST ( + + 41 AS INTEGER ) * - + 63 AS col0
----
160145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3334
SELECT ALL ( - - CASE COUNT( * ) WHEN + 34 THEN + ( + 97 ) DIV ( 36 ) + - 93 * + CAST( - 64 AS SIGNED ) + + + 22 - + - 22 * NULLIF ( - 91, + - COUNT( * ) ) * SUM( + 77 ) WHEN + 48 THEN - ( MAX( 14 ) ) WHEN 1 * - 17 THEN NULL ELSE - 71 + + 85 END ) col0
----
14

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL ( - - CASE COUNT ( * ) WHEN + 34 THEN + ( + 97 ) / ( 36 ) + - 93 * + CAST ( - 64 AS INTEGER ) + + + 22 - + - 22 * NULLIF ( - 91, + - COUNT ( * ) ) * SUM ( + 77 ) WHEN + 48 THEN - ( MAX ( 14 ) ) WHEN 1 * - 17 THEN NULL ELSE - 71 + + 85 END ) col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3335
SELECT ALL + + 12 DIV - COUNT( * ) * - + COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + + 12 / - COUNT ( * ) * - + COUNT ( * ) AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3336
SELECT + - 6 DIV + 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3336
SELECT + - 6 / + 42 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3337
SELECT - - COALESCE ( + COUNT( * ), + - 8 * 91 * - 29, - 11 + 48 * 70 ) DIV 1 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3337
SELECT - - COALESCE ( + COUNT ( * ), + - 8 * 91 * - 29, - 11 + 48 * 70 ) / 1 AS col0
----
1

query I rowsort
SELECT - - ( + 57 ) + - 46 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3339
SELECT - + CASE - 98 WHEN + - CAST( NULL AS SIGNED ) THEN + + 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3339
SELECT - + CASE - 98 WHEN + - CAST ( NULL AS INTEGER ) THEN + + 38 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT - 95 * 52 DIV - NULLIF ( 10, - - 89 ) AS col2
----
494

skipif mysql # not compatible
query I rowsort label-3340
SELECT - 95 * 52 / - NULLIF ( 10, - - 89 ) AS col2
----
494

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3341
SELECT - CAST( NULL AS SIGNED ) + 77 AS col1, 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-3341
SELECT - CAST ( NULL AS INTEGER ) + 77 AS col1, 93
----
NULL
93

query I rowsort
SELECT DISTINCT - 87 * COALESCE ( - 6, 62 ) AS col1
----
522

query I rowsort
SELECT ALL + ( + 50 ) * + ( 33 ) AS col2
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT + ( - 42 ) + - + COUNT( * ) * COUNT( * ) * + + 48 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT + ( - 42 ) + - + COUNT ( * ) * COUNT ( * ) * + + 48 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT COALESCE ( + + 24, + - 51 + + COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT COALESCE ( + + 24, + - 51 + + COUNT ( * ) )
----
24

query I rowsort
SELECT ALL + 49 + + + 14 AS col0
----
63

query I rowsort
SELECT ALL ( ( 67 ) ) col0
----
67

query I rowsort
SELECT + COALESCE ( + 57, + 18 ) * 88 + + ( + + 14 ) AS col2
----
5030

query I rowsort
SELECT + COALESCE ( ( + - 60 ), - + 66 * + ( + 29 ) ) AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3350
SELECT DISTINCT 91 / - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) / + 77 * - 3 + 37 + - 65 * + 2, - 44 * COUNT( * ) + - CASE - 56 WHEN - 34 / + 30 THEN ( - 15 ) + 4 * 26 * - 98 * - 65 - 51 ELSE NULL END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3350
SELECT DISTINCT 91 / - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + 77 * - 3 + 37 + - 65 * + 2, - 44 * COUNT ( * ) + - CASE - 56 WHEN - 34 / + 30 THEN ( - 15 ) + 4 * 26 * - 98 * - 65 - 51 ELSE NULL END AS col0
----
NULL
NULL

query I rowsort
SELECT DISTINCT 70 * - ( - NULLIF ( + 96, - 72 * - 0 ) )
----
6720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3352
SELECT DISTINCT + 21 DIV + - COUNT( * ) + - 2 AS col0, 64 + - 33 * + COUNT( * ) AS col1
----
-23
31

skipif mysql # not compatible
query II rowsort label-3352
SELECT DISTINCT + 21 / + - COUNT ( * ) + - 2 AS col0, 64 + - 33 * + COUNT ( * ) AS col1
----
-23
31

query I rowsort
SELECT ( + 55 )
----
55

query I rowsort
SELECT ALL 3 * + + 31 + - 73 * - 74 AS col2
----
5495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3355
SELECT - COALESCE ( 56, 0 ) DIV - - 59 * 88 - + + MAX( + ( - 88 ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-3355
SELECT - COALESCE ( 56, 0 ) / - - 59 * 88 - + + MAX ( + ( - 88 ) ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT - COUNT( + - ( + 34 ) ) * + + 77 col2
----
-77

skipif mysql # not compatible
query I rowsort label-3357
SELECT - COUNT ( + - ( + 34 ) ) * + + 77 col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT ALL + - COUNT( * ) AS col2, + 9
----
-1
9

skipif mysql # not compatible
query II rowsort label-3358
SELECT ALL + - COUNT ( * ) AS col2, + 9
----
-1
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT + 63 + + - CAST( + COUNT( * ) AS SIGNED ) + 4
----
66

skipif mysql # not compatible
query I rowsort label-3359
SELECT + 63 + + - CAST ( + COUNT ( * ) AS INTEGER ) + 4
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT + NULLIF ( + - 1, + 66 * MAX( ALL 45 ) + + 90 - + - ( + 26 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + NULLIF ( + - 1, + 66 * MAX ( ALL 45 ) + + 90 - + - ( + 26 ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT + + 71 * + COUNT( * ) * 4 AS col2
----
284

skipif mysql # not compatible
query I rowsort label-3361
SELECT + + 71 * + COUNT ( * ) * 4 AS col2
----
284

query I rowsort
SELECT - ( - 72 )
----
72

query I rowsort
SELECT + 52 + - + 84
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT + 82 * + NULLIF ( + 47, + 68 ) + + + SUM( ALL 89 ) * - 21 * + + 10 + - + 31 + - - COUNT( * ) * + + 68 - - + 52
----
-14747

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT + 82 * + NULLIF ( + 47, + 68 ) + + + SUM ( ALL 89 ) * - 21 * + + 10 + - + 31 + - - COUNT ( * ) * + + 68 - - + 52
----
-14747

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3365
SELECT + + COUNT( + 71 ) * 50 AS col0, 56 DIV + 73
----
50
0

skipif mysql # not compatible
query II rowsort label-3365
SELECT + + COUNT ( + 71 ) * 50 AS col0, 56 / + 73
----
50
0

query I rowsort
SELECT ALL 49 * - 61 AS col2
----
-2989

query I rowsort
SELECT + - 44 * + - 91 - 9
----
3995

query I rowsort
SELECT - + ( + + 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT + 37 * - CASE - - 63 WHEN - - COUNT( * ) / - COUNT( * ) THEN NULL ELSE - 67 END AS col0
----
2479

skipif mysql # not compatible
query I rowsort label-3369
SELECT + 37 * - CASE - - 63 WHEN - - COUNT ( * ) / - COUNT ( * ) THEN NULL ELSE - 67 END AS col0
----
2479

query I rowsort
SELECT ALL + + 97 + 73
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + + 19 - - COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3371
SELECT + + 19 - - COUNT ( * ) AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT DISTINCT - 56 + - 23 + + CASE - 69 WHEN CAST( NULL AS SIGNED ) + 52 * + - 17 THEN - - 35 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT - 56 + - 23 + + CASE - 69 WHEN CAST ( NULL AS INTEGER ) + 52 * + - 17 THEN - - 35 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT - 25 DIV - + 14
----
1

skipif mysql # not compatible
query I rowsort label-3373
SELECT - 25 / - + 14
----
1

query I rowsort
SELECT ALL 31 + - + 43 AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3375
SELECT DISTINCT - COUNT( * ) DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT - COUNT ( * ) / - 34
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3376
SELECT ( 85 ) * + - CAST( - 57 AS SIGNED ) + 70 + 50 AS col0
----
4965

skipif mysql # not compatible
query I rowsort label-3376
SELECT ( 85 ) * + - CAST ( - 57 AS INTEGER ) + 70 + 50 AS col0
----
4965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3377
SELECT ALL - CAST( + + 81 AS SIGNED ) * SUM( - 77 ) DIV - + 15
----
-415

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL - CAST ( + + 81 AS INTEGER ) * SUM ( - 77 ) / - + 15
----
-415

query I rowsort
SELECT 67 + - - 38
----
105

query I rowsort
SELECT ALL + 18 + + + 68 * + 87 AS col2
----
5934

onlyif mysql # aggregate syntax: 
query II rowsort label-3380
SELECT DISTINCT 78 AS col0, 69 * - + 49 + - + 47 - + COALESCE ( 5, - COUNT( * ) * 43 ) * + COUNT( * ) * - - 92
----
78
-3888

skipif mysql # not compatible
query II rowsort label-3380
SELECT DISTINCT 78 AS col0, 69 * - + 49 + - + 47 - + COALESCE ( 5, - COUNT ( * ) * 43 ) * + COUNT ( * ) * - - 92
----
78
-3888

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT - 32 AS col0, COUNT( * ) col0
----
-32
1

skipif mysql # not compatible
query II rowsort label-3381
SELECT - 32 AS col0, COUNT ( * ) col0
----
-32
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3382
SELECT 20 AS col1, - CAST( + 24 AS SIGNED )
----
20
-24

skipif mysql # not compatible
query II rowsort label-3382
SELECT 20 AS col1, - CAST ( + 24 AS INTEGER )
----
20
-24

query II rowsort
SELECT ALL 85, - ( + NULLIF ( + - 65, - 10 ) ) col2
----
85
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT 67 * - COUNT( * ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-3384
SELECT 67 * - COUNT ( * ) col1
----
-67

query I rowsort
SELECT ALL + 18 - + 20 col1
----
-2

query I rowsort
SELECT 18 * - 36 - + 48
----
-696

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3387
SELECT 50 * + - 1 * - CASE - + MIN( 62 ) WHEN ( + - 25 ) THEN NULL ELSE - + 22 END * + MAX( DISTINCT 47 ) * - NULLIF ( - CAST( NULL AS DECIMAL ), + - ( SUM( - 14 ) ) / - COALESCE ( + 97, - 82, + COALESCE ( - COUNT( * ), + + SUM( 55 ) ) + COUNT( * ), - 7 ) + - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT 50 * + - 1 * - CASE - + MIN ( 62 ) WHEN ( + - 25 ) THEN NULL ELSE - + 22 END * + MAX ( DISTINCT 47 ) * - NULLIF ( - CAST ( NULL AS REAL ), + - ( SUM ( - 14 ) ) / - COALESCE ( + 97, - 82, + COALESCE ( - COUNT ( * ), + + SUM ( 55 ) ) + COUNT ( * ), - 7 ) + - 9 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT + NULLIF ( - + 30, - 22 * 53 DIV - 60 ) DIV - 85 + - 13
----
-13

skipif mysql # not compatible
query I rowsort label-3388
SELECT + NULLIF ( - + 30, - 22 * 53 / - 60 ) / - 85 + - 13
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3389
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, COALESCE ( - + ( + 65 ), 60 + - - 67, + COUNT( * ) ) + + - 56 * + 51 * 42 AS col1
----
NULL
-120017

skipif mysql # not compatible
query II rowsort label-3389
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, COALESCE ( - + ( + 65 ), 60 + - - 67, + COUNT ( * ) ) + + - 56 * + 51 * 42 AS col1
----
NULL
-120017

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT 66 + + 5 / + + 23 + + + 78 * - - CASE - 2 WHEN - SUM( ALL + 7 ) / - - 87 THEN NULL WHEN + 31 + + COUNT( * ) THEN 19 ELSE NULL END + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT 66 + + 5 / + + 23 + + + 78 * - - CASE - 2 WHEN - SUM ( ALL + 7 ) / - - 87 THEN NULL WHEN + 31 + + COUNT ( * ) THEN 19 ELSE NULL END + - 35
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT + 52, ( + - COUNT( * ) ) AS col2
----
52
-1

skipif mysql # not compatible
query II rowsort label-3391
SELECT + 52, ( + - COUNT ( * ) ) AS col2
----
52
-1

query I rowsort
SELECT 5 * - 23 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-3393
SELECT ALL - 5 * ( + 67 ) + + COUNT( * ) AS col1, 87 + 56
----
-334
143

skipif mysql # not compatible
query II rowsort label-3393
SELECT ALL - 5 * ( + 67 ) + + COUNT ( * ) AS col1, 87 + 56
----
-334
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3394
SELECT COUNT( * ) DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-3394
SELECT COUNT ( * ) / 62
----
0

query I rowsort
SELECT DISTINCT 53 * - 78 - 44 AS col2
----
-4178

query I rowsort
SELECT - 27 + 86 AS col0
----
59

query II rowsort
SELECT + + 28 AS col1, + ( - 31 ) AS col0
----
28
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + + 79 * + 49 - + 96 + - 27 + - COUNT( * ) AS col2
----
3747

skipif mysql # not compatible
query I rowsort label-3398
SELECT + + 79 * + 49 - + 96 + - 27 + - COUNT ( * ) AS col2
----
3747

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT 2 * + CASE + 80 WHEN + 75 * - COUNT( * ) * + - 67 THEN - + COUNT( * ) * + - 24 + - ( + 2 ) + + 43 + + NULLIF ( + 66, - + 58 ) ELSE + - 11 END
----
-22

skipif mysql # not compatible
query I rowsort label-3399
SELECT 2 * + CASE + 80 WHEN + 75 * - COUNT ( * ) * + - 67 THEN - + COUNT ( * ) * + - 24 + - ( + 2 ) + + 43 + + NULLIF ( + 66, - + 58 ) ELSE + - 11 END
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT - CAST( NULL AS SIGNED ) * + 93 + + - 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT - CAST ( NULL AS INTEGER ) * + 93 + + - 67 AS col2
----
NULL

query I rowsort
SELECT ALL - ( + ( 78 ) ) AS col2
----
-78

query I rowsort
SELECT 51 + - 81 + + 25 * 74 AS col0
----
1820

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT DISTINCT - 10 AS col2, MIN( DISTINCT - 18 )
----
-10
-18

skipif mysql # not compatible
query II rowsort label-3403
SELECT DISTINCT - 10 AS col2, MIN ( DISTINCT - 18 )
----
-10
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT ALL - + CAST( 83 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - + CAST ( 83 AS INTEGER ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL + 59 + + + ( - + 22 ) * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL + 59 + + + ( - + 22 ) * COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL MAX( + 24 ) * - 25 AS col2
----
-600

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL MAX ( + 24 ) * - 25 AS col2
----
-600

query I rowsort
SELECT ALL + ( - 51 ) + - 11 AS col1
----
-62

query I rowsort
SELECT 20 + 11 * + - 65
----
-695

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL 27 + - 73 * COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL 27 + - 73 * COUNT ( * )
----
-46

query II rowsort
SELECT - 31 AS col1, 90
----
-31
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - COUNT( DISTINCT - 81 ) + - 40
----
-41

skipif mysql # not compatible
query I rowsort label-3411
SELECT - COUNT ( DISTINCT - 81 ) + - 40
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3412
SELECT ALL 7 * - 58, - COUNT( * ) AS col0
----
-406
-1

skipif mysql # not compatible
query II rowsort label-3412
SELECT ALL 7 * - 58, - COUNT ( * ) AS col0
----
-406
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT 35 * COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-3413
SELECT 35 * COUNT ( * )
----
35

query I rowsort
SELECT 71 + + + ( 43 )
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3415
SELECT DISTINCT 77 + + 83 + + COUNT( * ) + - 72 DIV 74
----
161

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT 77 + + 83 + + COUNT ( * ) + - 72 / 74
----
161

query I rowsort
SELECT ALL 36 + + 70 - - + 84
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT 6 + + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT 6 + + - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT 60 * + MIN( DISTINCT - + ( + 82 ) ) AS col1
----
-4920

skipif mysql # not compatible
query I rowsort label-3418
SELECT 60 * + MIN ( DISTINCT - + ( + 82 ) ) AS col1
----
-4920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3419
SELECT ALL - 59 DIV - COUNT( ALL + 23 )
----
59

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - 59 / - COUNT ( ALL + 23 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT MAX( + 49 ) + + + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-3420
SELECT MAX ( + 49 ) + + + COUNT ( * )
----
50

query I rowsort
SELECT DISTINCT 41 - + 52 * - 90 - + 45 + + 21 * + + 98 AS col0
----
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT 76 + COUNT( DISTINCT + 77 ) + - 99
----
-22

skipif mysql # not compatible
query I rowsort label-3422
SELECT 76 + COUNT ( DISTINCT + 77 ) + - 99
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ( 53 ) + 40 + + CASE - 1 WHEN - - ( 31 ) * + - 21 THEN 66 + COUNT( * ) WHEN + - 69 THEN - 94 ELSE NULL END + + ( + - 27 ) * - ( 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT ( 53 ) + 40 + + CASE - 1 WHEN - - ( 31 ) * + - 21 THEN 66 + COUNT ( * ) WHEN + - 69 THEN - 94 ELSE NULL END + + ( + - 27 ) * - ( 45 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT COUNT( - 81 ) * - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3424
SELECT COUNT ( - 81 ) * - COUNT ( * ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3425
SELECT ALL 93 DIV + - 81
----
-1

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL 93 / + - 81
----
-1

query I rowsort
SELECT 92 - + - 6 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT - 94 * - 58 + - COUNT( DISTINCT - 87 ) AS col0
----
5451

skipif mysql # not compatible
query I rowsort label-3427
SELECT - 94 * - 58 + - COUNT ( DISTINCT - 87 ) AS col0
----
5451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT ALL CAST( NULL AS SIGNED ) * AVG ( + 13 ) - - - 68 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL CAST ( NULL AS INTEGER ) * AVG ( + 13 ) - - - 68 + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT MIN( DISTINCT - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-3429
SELECT MIN ( DISTINCT - 65 )
----
-65

query I rowsort
SELECT 17 * + + 48
----
816

query I rowsort
SELECT ALL - - 59 col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT - - ( - 52 ) * 88 * 30 + - 68 * - - NULLIF ( + 80, + - COUNT( * ) * - COUNT( * ) + + NULLIF ( - COUNT( * ), + - NULLIF ( + + 66, + COUNT( * ) ) ) + 4 ), - 19 AS col2
----
-142720
-19

skipif mysql # not compatible
query II rowsort label-3432
SELECT - - ( - 52 ) * 88 * 30 + - 68 * - - NULLIF ( + 80, + - COUNT ( * ) * - COUNT ( * ) + + NULLIF ( - COUNT ( * ), + - NULLIF ( + + 66, + COUNT ( * ) ) ) + 4 ), - 19 AS col2
----
-142720
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT 96 * - + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-3433
SELECT 96 * - + COUNT ( * )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3434
SELECT 4 / - 1 * - 99 * - + 66 + + + SUM( ALL 59 ) + + NULLIF ( + + CAST( NULL AS SIGNED ), + 16 * + ( - + 13 ) * - + SUM( ALL + 28 ) ) * + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT 4 / - 1 * - 99 * - + 66 + + + SUM ( ALL 59 ) + + NULLIF ( + + CAST ( NULL AS INTEGER ), + 16 * + ( - + 13 ) * - + SUM ( ALL + 28 ) ) * + + 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3435
SELECT + CAST( - MIN( ALL + 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3435
SELECT + CAST ( - MIN ( ALL + 0 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3436
SELECT ALL + 24 + + + COUNT( * ) AS col2, + 82 + - 24
----
25
58

skipif mysql # not compatible
query II rowsort label-3436
SELECT ALL + 24 + + + COUNT ( * ) AS col2, + 82 + - 24
----
25
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3437
SELECT + COALESCE ( + 19, - - CASE - 76 WHEN NULLIF ( NULLIF ( - 89, NULLIF ( - 85, + - CAST( NULL AS SIGNED ) ) * CASE - 37 WHEN + - COUNT( ALL - 49 ) THEN NULL WHEN - 27 * + + CASE - COUNT( * ) WHEN + ( COALESCE ( + 4, + - 38, + 56 * 76 + + 11 ) ) * 41 THEN 41 WHEN 45 THEN - 79 * ( AVG ( - 91 ) ) + - COUNT( * ) END * - ( + 21 / + 30 - 47 ) + 81 THEN + 27 * 42 WHEN 71 THEN - 27 ELSE + 28 + 13 * - 55 END - + 80 ), 38 * 73 ) * + ( COALESCE ( 39, - 80 ) * 86 ) + - 93 * + 30 THEN - 23 * - 94 WHEN - 85 THEN NULL ELSE - ( + CAST( - ( + 60 ) AS SIGNED ) ) END )
----
19

skipif mysql # not compatible
query I rowsort label-3437
SELECT + COALESCE ( + 19, - - CASE - 76 WHEN NULLIF ( NULLIF ( - 89, NULLIF ( - 85, + - CAST ( NULL AS INTEGER ) ) * CASE - 37 WHEN + - COUNT ( ALL - 49 ) THEN NULL WHEN - 27 * + + CASE - COUNT ( * ) WHEN + ( COALESCE ( + 4, + - 38, + 56 * 76 + + 11 ) ) * 41 THEN 41 WHEN 45 THEN - 79 * ( AVG ( - 91 ) ) + - COUNT ( * ) END * - ( + 21 / + 30 - 47 ) + 81 THEN + 27 * 42 WHEN 71 THEN - 27 ELSE + 28 + 13 * - 55 END - + 80 ), 38 * 73 ) * + ( COALESCE ( 39, - 80 ) * 86 ) + - 93 * + 30 THEN - 23 * - 94 WHEN - 85 THEN NULL ELSE - ( + CAST ( - ( + 60 ) AS INTEGER ) ) END )
----
19

query I rowsort
SELECT 17 + + 26
----
43

query I rowsort
SELECT + 92 * 77 * 32 AS col0
----
226688

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT + CASE + 30 WHEN - 69 THEN ( + - COUNT( ALL 82 ) ) WHEN ( 39 ) + 10 THEN NULL WHEN - + 45 THEN NULL END + + - 41 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT + CASE + 30 WHEN - 69 THEN ( + - COUNT ( ALL 82 ) ) WHEN ( 39 ) + 10 THEN NULL WHEN - + 45 THEN NULL END + + - 41 col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3442
SELECT DISTINCT - ( + - COUNT( - 99 ) ) + + + 39 DIV + + 94
----
1

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT - ( + - COUNT ( - 99 ) ) + + + 39 / + + 94
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3443
SELECT ALL + 58 + + - COUNT( * ) col0, COUNT( * ) + - 98 + + ( + ( + - 37 ) ) - 33 * 11
----
57
-497

skipif mysql # not compatible
query II rowsort label-3443
SELECT ALL + 58 + + - COUNT ( * ) col0, COUNT ( * ) + - 98 + + ( + ( + - 37 ) ) - 33 * 11
----
57
-497

query I rowsort
SELECT DISTINCT - + 42 * + 72 - + 56 AS col1
----
-3080

query I rowsort
SELECT DISTINCT + + 80 + + 34
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT + COUNT( 92 ) AS col2, - 37 AS col2
----
1
-37

skipif mysql # not compatible
query II rowsort label-3446
SELECT + COUNT ( 92 ) AS col2, - 37 AS col2
----
1
-37

query I rowsort
SELECT ALL + - 13 + - 0 AS col0
----
-13

query I rowsort
SELECT DISTINCT - - 51 * - 59 AS col1
----
-3009

query I rowsort
SELECT COALESCE ( + 55, - + 0 ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3450
SELECT + 55 DIV + 53 AS col2, - COALESCE ( - CASE 94 WHEN MIN( 39 ) THEN NULL WHEN + CASE + 24 WHEN + + CAST( NULL AS DECIMAL ) + - 97 THEN NULL WHEN + 5 + 62 * - 91 + 69 + - - ( 22 ) THEN 37 * - 7 END THEN - COALESCE ( - 39, 68 ) + + 96 ELSE NULL END, 96 * 44 )
----
1
-4224

skipif mysql # not compatible
query II rowsort label-3450
SELECT + 55 / + 53 AS col2, - COALESCE ( - CASE 94 WHEN MIN ( 39 ) THEN NULL WHEN + CASE + 24 WHEN + + CAST ( NULL AS REAL ) + - 97 THEN NULL WHEN + 5 + 62 * - 91 + 69 + - - ( 22 ) THEN 37 * - 7 END THEN - COALESCE ( - 39, 68 ) + + 96 ELSE NULL END, 96 * 44 )
----
1
-4224

query I rowsort
SELECT - - 17 - + COALESCE ( - 22, - 58 )
----
39

query I rowsort
SELECT ALL + 6 * - 2 AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT - 72 - 98 DIV + + 90 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3453
SELECT - 72 - 98 / + + 90 AS col2
----
-73

query II rowsort
SELECT 64, 72 AS col2
----
64
72

query I rowsort
SELECT - 48 + - 94 AS col0
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3456
SELECT + COUNT( ALL 49 ) DIV + + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3456
SELECT + COUNT ( ALL 49 ) / + + 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3457
SELECT ALL 61, - COUNT( DISTINCT ( - 87 ) ) AS col2
----
61
-1

skipif mysql # not compatible
query II rowsort label-3457
SELECT ALL 61, - COUNT ( DISTINCT ( - 87 ) ) AS col2
----
61
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL SUM( DISTINCT - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL SUM ( DISTINCT - 22 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3459
SELECT ALL 36 - - - 74 + + - NULLIF ( - ( + + MAX( - - 53 ) ), + CAST( + COALESCE ( - 2, 65 * - 74 ) AS SIGNED ) + - 79 + + + 52 + - CAST( + COALESCE ( - 50, + + 76 - - 17 ) AS SIGNED ) + 79 * - 82 * + 63 * + 30 / - - 13 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL 36 - - - 74 + + - NULLIF ( - ( + + MAX ( - - 53 ) ), + CAST ( + COALESCE ( - 2, 65 * - 74 ) AS INTEGER ) + - 79 + + + 52 + - CAST ( + COALESCE ( - 50, + + 76 - - 17 ) AS INTEGER ) + 79 * - 82 * + 63 * + 30 / - - 13 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT DISTINCT - ( + + MIN( - + 46 ) ) - - 66
----
112

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - ( + + MIN ( - + 46 ) ) - - 66
----
112

query II rowsort
SELECT 64 AS col2, 87 AS col1
----
64
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT + 94 - SUM( ALL + + ( 73 ) ) + 52 - + 3
----
70

skipif mysql # not compatible
query I rowsort label-3462
SELECT + 94 - SUM ( ALL + + ( 73 ) ) + 52 - + 3
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT - 6 * + CASE COALESCE ( + MAX( - 19 ), 63 * + NULLIF ( CASE - - 2 WHEN 48 / 97 * + + MIN( + + 79 ) THEN + ( 47 ) END, - 69 ) - - + 69 ) WHEN + + 8 THEN - 69 * + + 44 + + ( + - 54 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT - 6 * + CASE COALESCE ( + MAX ( - 19 ), 63 * + NULLIF ( CASE - - 2 WHEN 48 / 97 * + + MIN ( + + 79 ) THEN + ( 47 ) END, - 69 ) - - + 69 ) WHEN + + 8 THEN - 69 * + + 44 + + ( + - 54 ) END col0
----
NULL

query II rowsort
SELECT 45 AS col0, ( - + 54 ) * + + 84
----
45
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT - CASE WHEN NOT - 60 BETWEEN + COUNT( * ) AND + 47 + + 72 THEN - 52 END AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3465
SELECT - CASE WHEN NOT - 60 BETWEEN + COUNT ( * ) AND + 47 + + 72 THEN - 52 END AS col0
----
52

query I rowsort
SELECT + 58 + + ( NULLIF ( 0, - AVG ( DISTINCT - 52 ) ) ) AS col1
----
58

query I rowsort
SELECT + 82 + - 61 AS col2
----
21

query I rowsort
SELECT DISTINCT 87 * - 62 * + + 37
----
-199578

query I rowsort
SELECT DISTINCT - 83 * - - 63 AS col1
----
-5229

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL MIN( - - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL MIN ( - - 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT DISTINCT 51 * + MAX( + 86 ) * + 91
----
399126

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT 51 * + MAX ( + 86 ) * + 91
----
399126

onlyif mysql # aggregate syntax: 
query II rowsort label-3472
SELECT 65 col0, COUNT( * ) AS col1
----
65
1

skipif mysql # not compatible
query II rowsort label-3472
SELECT 65 col0, COUNT ( * ) AS col1
----
65
1

query I rowsort
SELECT + - 33 * + 49
----
-1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3474
SELECT + - 71 * - 21 + - 96 + CAST( + 3 AS SIGNED ) * - + 22 DIV + + 71 + ( + 89 ) - + + COUNT( ALL + + 73 ) - + ( 73 ) AS col1, - 65 AS col2
----
1410
-65

skipif mysql # not compatible
query II rowsort label-3474
SELECT + - 71 * - 21 + - 96 + CAST ( + 3 AS INTEGER ) * - + 22 / + + 71 + ( + 89 ) - + + COUNT ( ALL + + 73 ) - + ( 73 ) AS col1, - 65 AS col2
----
1410
-65

query I rowsort
SELECT - + 59 * + + 26
----
-1534

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3476
SELECT + 76 + + 97 + + 69 * - + 11 - + + 37 - 68 DIV + CAST( - - 74 AS SIGNED ) * - 74 AS col0
----
-623

skipif mysql # not compatible
query I rowsort label-3476
SELECT + 76 + + 97 + + 69 * - + 11 - + + 37 - 68 / + CAST ( - - 74 AS INTEGER ) * - 74 AS col0
----
-623

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - 46 * + + 41 * + COUNT( * ) - - + ( + 53 ) AS col0
----
-1833

skipif mysql # not compatible
query I rowsort label-3477
SELECT - 46 * + + 41 * + COUNT ( * ) - - + ( + 53 ) AS col0
----
-1833

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL + COUNT( * ) * + 64 + + 22
----
86

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + COUNT ( * ) * + 64 + + 22
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT + MIN( ALL + 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT + MIN ( ALL + 71 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ( 44 ) * + COUNT( * ) + - COUNT( * ) - - 61 col2
----
104

skipif mysql # not compatible
query I rowsort label-3480
SELECT ( 44 ) * + COUNT ( * ) + - COUNT ( * ) - - 61 col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL - 27 * + 60 - + CASE + 58 WHEN + ( 44 ) * 13 THEN + 71 WHEN - 62 THEN NULL WHEN + - 65 THEN NULL END + - - COUNT( * ) + - 42 * - 36 * + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL - 27 * + 60 - + CASE + 58 WHEN + ( 44 ) * 13 THEN + 71 WHEN - 62 THEN NULL WHEN + - 65 THEN NULL END + - - COUNT ( * ) + - 42 * - 36 * + 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - 69 * + - 33 - CASE - 98 WHEN - + COUNT( * ) + + COUNT( * ) * 81 * - + 78 THEN NULL WHEN 61 THEN + COALESCE ( + COUNT( * ), + + 2 ) ELSE + 97 END AS col0
----
2180

skipif mysql # not compatible
query I rowsort label-3482
SELECT - 69 * + - 33 - CASE - 98 WHEN - + COUNT ( * ) + + COUNT ( * ) * 81 * - + 78 THEN NULL WHEN 61 THEN + COALESCE ( + COUNT ( * ), + + 2 ) ELSE + 97 END AS col0
----
2180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT ALL 90 * + CAST( NULL AS SIGNED ) + - 8 + + + ( + COUNT( * ) ) + + 33 - - + ( + 5 ) + + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL 90 * + CAST ( NULL AS INTEGER ) + - 8 + + + ( + COUNT ( * ) ) + + 33 - - + ( + 5 ) + + - 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3484
SELECT + - 60 AS col0, + CAST( NULL AS SIGNED ) AS col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-3484
SELECT + - 60 AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
-60
NULL

query I rowsort
SELECT - + 57 + + - 61 * + + ( - ( 34 ) )
----
2017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3486
SELECT - + COUNT( * ) * 21 DIV + 16 + 29
----
28

skipif mysql # not compatible
query I rowsort label-3486
SELECT - + COUNT ( * ) * 21 / + 16 + 29
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3487
SELECT ALL + CAST( + 17 AS SIGNED ) * - 11 + 43 + + 29
----
-115

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + CAST ( + 17 AS INTEGER ) * - 11 + 43 + + 29
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT COUNT( 34 ) * - COUNT( * ) + - 57 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3488
SELECT COUNT ( 34 ) * - COUNT ( * ) + - 57 AS col1
----
-58

query I rowsort
SELECT NULLIF ( 98, - + 15 * 45 * 6 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT - 25 + CASE + - 69 WHEN 39 THEN NULL WHEN + 82 THEN 38 + + - 31 + + - COUNT( * ) + CASE - - 43 WHEN - 67 THEN + MAX( 7 ) WHEN + + 91 THEN NULL ELSE NULL END * - + 80 / 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT - 25 + CASE + - 69 WHEN 39 THEN NULL WHEN + 82 THEN 38 + + - 31 + + - COUNT ( * ) + CASE - - 43 WHEN - 67 THEN + MAX ( 7 ) WHEN + + 91 THEN NULL ELSE NULL END * - + 80 / 81 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - - 24 ) AS col2
----
24

query I rowsort
SELECT DISTINCT + 11 * + 37 - + + 58 col2
----
349

query I rowsort
SELECT ALL COALESCE ( - 94, - 47 * - - 83 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT - COUNT( * ) * COUNT( * ) * + 87 * + 41
----
-3567

skipif mysql # not compatible
query I rowsort label-3494
SELECT - COUNT ( * ) * COUNT ( * ) * + 87 * + 41
----
-3567

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT - COALESCE ( + 12, - 67, + COUNT( * ) * ( 87 ) + - MAX( + 25 ) ) * 62
----
-744

skipif mysql # not compatible
query I rowsort label-3495
SELECT - COALESCE ( + 12, - 67, + COUNT ( * ) * ( 87 ) + - MAX ( + 25 ) ) * 62
----
-744

query I rowsort
SELECT - 82 * + 40
----
-3280

query I rowsort
SELECT - 0 + - - 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT - CASE + 93 WHEN NULLIF ( 48, + COUNT( * ) * - + 61 ) + - AVG ( ALL 54 ) - 1 THEN + 12 + SUM( + - 83 ) END + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT - CASE + 93 WHEN NULLIF ( 48, + COUNT ( * ) * - + 61 ) + - AVG ( ALL 54 ) - 1 THEN + 12 + SUM ( + - 83 ) END + 9 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3499
SELECT + 82 * - + 8 col1, MIN( + + 95 ) + + + CAST( NULL AS SIGNED ) + - 96
----
-656
NULL

skipif mysql # not compatible
query II rowsort label-3499
SELECT + 82 * - + 8 col1, MIN ( + + 95 ) + + + CAST ( NULL AS INTEGER ) + - 96
----
-656
NULL

query I rowsort
SELECT - 52 * 70
----
-3640

query I rowsort
SELECT ALL - 96 * + + 17
----
-1632

query I rowsort
SELECT ALL ( 88 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT + + CAST( + + COUNT( * ) AS SIGNED ) + 45
----
46

skipif mysql # not compatible
query I rowsort label-3503
SELECT + + CAST ( + + COUNT ( * ) AS INTEGER ) + 45
----
46

query I rowsort
SELECT - 47 * - ( + 22 ) AS col0
----
1034

query I rowsort
SELECT + 16 + - 80 + + 30
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + - 43 * COALESCE ( - ( 27 ), + 90 * 67 + - ( + + COUNT( * ) ) ) + + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 43 * COALESCE ( - ( 27 ), + 90 * 67 + - ( + + COUNT ( * ) ) ) + + 53 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3507
SELECT - - SUM( - + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT - - SUM ( - + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3508
SELECT DISTINCT + ( + 46 ) DIV + COUNT( * ) + - 33 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT + ( + 46 ) / + COUNT ( * ) + - 33 AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3509
SELECT DISTINCT - NULLIF ( + - 40, + - COUNT( * ) + + 27 - - 16 ) DIV + - 44 + + + 97 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - NULLIF ( + - 40, + - COUNT ( * ) + + 27 - - 16 ) / + - 44 + + + 97 AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3510
SELECT + - CAST( NULL AS SIGNED ) + + COUNT( * ) - - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) - - 43 AS col1
----
NULL

query I rowsort
SELECT ALL - 72 * - NULLIF ( - 63, + 79 )
----
-4536

query I rowsort
SELECT DISTINCT - - 88
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3513
SELECT ALL 93 + - 59 - + CAST( - - COUNT( * ) AS SIGNED ) * + 54
----
-20

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL 93 + - 59 - + CAST ( - - COUNT ( * ) AS INTEGER ) * + 54
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3514
SELECT 5 DIV - 8 + 40
----
40

skipif mysql # not compatible
query I rowsort label-3514
SELECT 5 / - 8 + 40
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3515
SELECT - COALESCE ( 54, - + 67 * + ( + COUNT( * ) ) * + + 36 * 14 + - - 45 + SUM( DISTINCT - ( 1 ) ) + + 6, 88 * + 78 ) + 9 DIV + 57 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3515
SELECT - COALESCE ( 54, - + 67 * + ( + COUNT ( * ) ) * + + 36 * 14 + - - 45 + SUM ( DISTINCT - ( 1 ) ) + + 6, 88 * + 78 ) + 9 / + 57 AS col0
----
-54

query I rowsort
SELECT ALL + 15 - - - 38
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT + + COUNT( * ) * - - 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT + + COUNT ( * ) * - - 92 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3518
SELECT DISTINCT CASE + COUNT( * ) WHEN - NULLIF ( - 62, + 32 ) * + - 11 + 68 + 1 THEN - 87 * + 93 - - COALESCE ( 29, CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ), - NULLIF ( + - CAST( NULL AS SIGNED ), + ( + 10 ) + - + AVG ( DISTINCT - - 90 ) ) ) + + 97 END - + - 45 + + 30 * 78 + - COALESCE ( + CASE 88 WHEN + COUNT( * ) * MIN( + 47 ) THEN - 58 + 4 END, 48, + 84 ) - - SUM( + 78 ) * CAST( MIN( 96 ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT CASE + COUNT ( * ) WHEN - NULLIF ( - 62, + 32 ) * + - 11 + 68 + 1 THEN - 87 * + 93 - - COALESCE ( 29, CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ), - NULLIF ( + - CAST ( NULL AS INTEGER ), + ( + 10 ) + - + AVG ( DISTINCT - - 90 ) ) ) + + 97 END - + - 45 + + 30 * 78 + - COALESCE ( + CASE 88 WHEN + COUNT ( * ) * MIN ( + 47 ) THEN - 58 + 4 END, 48, + 84 ) - - SUM ( + 78 ) * CAST ( MIN ( 96 ) AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3519
SELECT ALL NULLIF ( - + COUNT( * ), + 89 * - 59 DIV + 59 * 10 * + 96 * - 75 ) * + 94 - + 98 DIV + 83
----
-95

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL NULLIF ( - + COUNT ( * ), + 89 * - 59 / + 59 * 10 * + 96 * - 75 ) * + 94 - + 98 / + 83
----
-95

query I rowsort
SELECT ALL 77 * - - 62
----
4774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3521
SELECT ( + 2 ) - - 60 * + ( + - 54 ) + SUM( + 72 ) + + 86 + + 74 / - 59 * - - 14 * + + ( + 27 ) + MAX( ALL + 26 ) - + + NULLIF ( - 76, - - 3 ) * 60 * 44 + - 2 * - CAST( NULL AS SIGNED ) * - - MIN( - 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT ( + 2 ) - - 60 * + ( + - 54 ) + SUM ( + 72 ) + + 86 + + 74 / - 59 * - - 14 * + + ( + 27 ) + MAX ( ALL + 26 ) - + + NULLIF ( - 76, - - 3 ) * 60 * 44 + - 2 * - CAST ( NULL AS INTEGER ) * - - MIN ( - 70 ) AS col0
----
NULL

query I rowsort
SELECT 86 * - - 13 * - - ( + + 70 ) * 68
----
5321680

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT 60 - 65 * + - SUM( DISTINCT 96 )
----
6300

skipif mysql # not compatible
query I rowsort label-3523
SELECT 60 - 65 * + - SUM ( DISTINCT 96 )
----
6300

query II rowsort
SELECT 27, + 8 AS col1
----
27
8

query II rowsort
SELECT 97, + 68 AS col2
----
97
68

query I rowsort
SELECT + 33 * - - 3 * 43 * + 97 + - 64 * + 52 AS col0
----
409601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3527
SELECT DISTINCT + COUNT( * ) DIV + + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + COUNT ( * ) / + + 20 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT ALL - 65 + + MIN( ALL + 68 ) + + - 28 col0
----
-25

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL - 65 + + MIN ( ALL + 68 ) + + - 28 col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT ALL + ( - 4 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL + ( - 4 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 95 - - 83 + + - ( + + 63 )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL + 38 / - 44 / COUNT( * ) * + ( + SUM( DISTINCT - 1 ) ) * + 56 / 24 + - CASE - 66 WHEN COUNT( * ) * - - ( + 3 ) - + CASE ( + 32 ) WHEN - 39 + - 91 * COUNT( * ) * + CASE + - 72 WHEN 22 THEN - 70 END THEN 35 END THEN NULL WHEN SUM( - 98 ) THEN 21 WHEN + 56 * NULLIF ( + 20 * + 34, 62 ) THEN - ( 4 ) * 28 END + 34 * 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL + 38 / - 44 / COUNT ( * ) * + ( + SUM ( DISTINCT - 1 ) ) * + 56 / 24 + - CASE - 66 WHEN COUNT ( * ) * - - ( + 3 ) - + CASE ( + 32 ) WHEN - 39 + - 91 * COUNT ( * ) * + CASE + - 72 WHEN 22 THEN - 70 END THEN 35 END THEN NULL WHEN SUM ( - 98 ) THEN 21 WHEN + 56 * NULLIF ( + 20 * + 34, 62 ) THEN - ( 4 ) * 28 END + 34 * 32 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 83 + 20 * + + 78
----
1477

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT 5 - + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3533
SELECT 5 - + COUNT ( * ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL - 65 + - - CASE - 56 WHEN + - MAX( ( + - 28 ) ) THEN - 60 + - - SUM( DISTINCT - - 68 ) END + - 49 + - 14 - - 80 / - + SUM( ALL + CAST( NULL AS SIGNED ) ) + 1 + - 7 - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL - 65 + - - CASE - 56 WHEN + - MAX ( ( + - 28 ) ) THEN - 60 + - - SUM ( DISTINCT - - 68 ) END + - 49 + - 14 - - 80 / - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) + 1 + - 7 - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL + COUNT( * ) + - 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL + COUNT ( * ) + - 93 AS col0
----
-92

query II rowsort
SELECT 8, 78 AS col2
----
8
78

query I rowsort
SELECT ( + 69 ) * 41 AS col0
----
2829

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3538
SELECT ALL + ( MAX( ALL + + COALESCE ( + ( 40 ), + 18 DIV - ( - 69 ) ) ) ) * - 83
----
-3320

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL + ( MAX ( ALL + + COALESCE ( + ( 40 ), + 18 / - ( - 69 ) ) ) ) * - 83
----
-3320

query I rowsort
SELECT 25 * - 10 AS col0
----
-250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3540
SELECT ALL + 26 + + ( + COUNT( * ) ) DIV + 22 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL + 26 + + ( + COUNT ( * ) ) / + 22 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT ALL - ( - MIN( ALL - + 94 ) ) + - 30
----
-124

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - ( - MIN ( ALL - + 94 ) ) + - 30
----
-124

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3542
SELECT ALL 11 + - 7 + + NULLIF ( + 13, 13 ) / + + 50 * 26 + - 14 + + 95 + + 27 + - 36 * + 14 * 2 * CAST( 59 AS DECIMAL ) / + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL 11 + - 7 + + NULLIF ( + 13, 13 ) / + + 50 * 26 + - 14 + + 95 + + 27 + - 36 * + 14 * 2 * CAST ( 59 AS REAL ) / + 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT - SUM( DISTINCT - 94 ) * - 95 * - 1 AS col2
----
8930

skipif mysql # not compatible
query I rowsort label-3543
SELECT - SUM ( DISTINCT - 94 ) * - 95 * - 1 AS col2
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT MAX( + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT MAX ( + 8 )
----
8

query I rowsort
SELECT DISTINCT - 22 AS col0
----
-22

query I rowsort
SELECT 79 * - 38 + + 34
----
-2968

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT ALL - SUM( + + 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL - SUM ( + + 57 ) AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT 71 * + 47 - - + 11 DIV + 28 AS col2
----
3337

skipif mysql # not compatible
query I rowsort label-3548
SELECT 71 * + 47 - - + 11 / + 28 AS col2
----
3337

query I rowsort
SELECT 74 + + 99 AS col2
----
173

query I rowsort
SELECT ALL - CASE - ( 71 ) WHEN + 82 THEN - COALESCE ( - + 35, - 96, - - 33, ( + 75 ) * - 44 * + + 92 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL ( + + MIN( + + 83 ) ) * 6 + - - COUNT( * ) AS col1
----
499

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL ( + + MIN ( + + 83 ) ) * 6 + - - COUNT ( * ) AS col1
----
499

query I rowsort
SELECT 51 * - 66 + - 87
----
-3453

query I rowsort
SELECT ALL - ( + - 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT COUNT( + 8 ) + + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3554
SELECT COUNT ( + 8 ) + + 13 AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT ( 5 ) * 29 + - 77 + 24 * - 2 + + 86 + - ( + ( 21 ) ) * + ( - 0 ) * - + CAST( + 92 AS SIGNED ) * 16 * 89 * - 21 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-3555
SELECT ( 5 ) * 29 + - 77 + 24 * - 2 + + 86 + - ( + ( 21 ) ) * + ( - 0 ) * - + CAST ( + 92 AS INTEGER ) * 16 * 89 * - 21 AS col0
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3556
SELECT COUNT( * ) * 97 + + COALESCE ( + 3, + 30, - 56 * + + 4, + 12 DIV SUM( 75 ) )
----
100

skipif mysql # not compatible
query I rowsort label-3556
SELECT COUNT ( * ) * 97 + + COALESCE ( + 3, + 30, - 56 * + + 4, + 12 / SUM ( 75 ) )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT + 29 * + + 19 + - COUNT( * )
----
550

skipif mysql # not compatible
query I rowsort label-3557
SELECT + 29 * + + 19 + - COUNT ( * )
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT MIN( - 27 ) + + 48 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3558
SELECT MIN ( - 27 ) + + 48 AS col1
----
21

query I rowsort
SELECT ALL - 31 col0
----
-31

query II rowsort
SELECT DISTINCT - 2 AS col1, 48 * + + 52
----
-2
2496

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT 76 DIV + - 7
----
-10

skipif mysql # not compatible
query I rowsort label-3561
SELECT 76 / + - 7
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT + COUNT( - + 75 )
----
1

skipif mysql # not compatible
query I rowsort label-3562
SELECT + COUNT ( - + 75 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL - ( - COUNT( * ) ) + - 27
----
-26

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL - ( - COUNT ( * ) ) + - 27
----
-26

query I rowsort
SELECT 42 * - 14 + + 82 AS col1
----
-506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3565
SELECT DISTINCT MIN( ALL + 41 ) + - 26 DIV + 41
----
41

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT MIN ( ALL + 41 ) + - 26 / + 41
----
41

query I rowsort
SELECT DISTINCT 29 + - 64 * ( 45 ) * + - 67 + - 95 + - - 45
----
192939

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3567
SELECT 4 AS col2, CAST( NULL AS DECIMAL )
----
4
NULL

skipif mysql # not compatible
query II rowsort label-3567
SELECT 4 AS col2, CAST ( NULL AS REAL )
----
4
NULL

query I rowsort
SELECT ALL 64 + + 33 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT COUNT( 10 ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3569
SELECT COUNT ( 10 ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT CAST( - CAST( - - 60 AS SIGNED ) AS SIGNED ) * + 5 + - 75 AS col2
----
-375

skipif mysql # not compatible
query I rowsort label-3570
SELECT CAST ( - CAST ( - - 60 AS INTEGER ) AS INTEGER ) * + 5 + - 75 AS col2
----
-375

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3571
SELECT ALL 0 AS col2, COUNT( * ) DIV + - 77
----
0
0

skipif mysql # not compatible
query II rowsort label-3571
SELECT ALL 0 AS col2, COUNT ( * ) / + - 77
----
0
0

query II rowsort
SELECT 1 + - - ( 95 ) * 44 + + 57 - 31 AS col2, 94 AS col1
----
4207
94

query I rowsort
SELECT ALL - 96 + - ( - - 58 ) AS col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL + - ( 4 ) + + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + - ( 4 ) + + COUNT ( * ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3575
SELECT ALL - - 84 + - CAST( + 68 AS SIGNED ) + - SUM( 87 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - - 84 + - CAST ( + 68 AS INTEGER ) + - SUM ( 87 ) AS col2
----
-71

query II rowsort
SELECT 33 AS col0, - 89
----
33
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + 22 * + + COUNT( * ) col2
----
22

skipif mysql # not compatible
query I rowsort label-3577
SELECT + 22 * + + COUNT ( * ) col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3578
SELECT - - 44 + + + 86 + COUNT( * ) DIV 22
----
130

skipif mysql # not compatible
query I rowsort label-3578
SELECT - - 44 + + + 86 + COUNT ( * ) / 22
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3579
SELECT + + COUNT( * ) DIV + - 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT + + COUNT ( * ) / + - 40 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3580
SELECT + 77 AS col2, MIN( ALL - 12 )
----
77
-12

skipif mysql # not compatible
query II rowsort label-3580
SELECT + 77 AS col2, MIN ( ALL - 12 )
----
77
-12

query II rowsort
SELECT - + 42, + 69 AS col0
----
-42
69

query I rowsort
SELECT - - 53 + 7
----
60

query I rowsort
SELECT - - 95 * 42
----
3990

query II rowsort
SELECT ALL - - 75 * + 90, + 7 * - + 49 col1
----
6750
-343

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT - 71 * - COUNT( DISTINCT + 98 ) * - 60 - + CASE + SUM( DISTINCT + 57 ) WHEN + + CASE 54 WHEN + - 64 THEN NULL ELSE + COUNT( * ) * + CASE - + COALESCE ( CASE 42 WHEN - MAX( + 78 ) / - 46 THEN - 75 WHEN + 75 THEN NULL WHEN - 85 * - + ( 59 ) + - - 13 THEN CASE + + 94 WHEN + COUNT( * ) * + 88 THEN NULL ELSE - 73 END END, - 69 ) WHEN + 14 / + 88 + 68 THEN 85 WHEN + 61 + 61 THEN NULL ELSE NULL END END THEN 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT - 71 * - COUNT ( DISTINCT + 98 ) * - 60 - + CASE + SUM ( DISTINCT + 57 ) WHEN + + CASE 54 WHEN + - 64 THEN NULL ELSE + COUNT ( * ) * + CASE - + COALESCE ( CASE 42 WHEN - MAX ( + 78 ) / - 46 THEN - 75 WHEN + 75 THEN NULL WHEN - 85 * - + ( 59 ) + - - 13 THEN CASE + + 94 WHEN + COUNT ( * ) * + 88 THEN NULL ELSE - 73 END END, - 69 ) WHEN + 14 / + 88 + 68 THEN 85 WHEN + 61 + 61 THEN NULL ELSE NULL END END THEN 51 END
----
NULL

query II rowsort
SELECT 95, - 51 col1
----
95
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3587
SELECT - 34 col2, + 9 + CAST( NULL AS SIGNED )
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-3587
SELECT - 34 col2, + 9 + CAST ( NULL AS INTEGER )
----
-34
NULL

query I rowsort
SELECT DISTINCT + 87 * - 10 - + + 96 AS col1
----
-966

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3589
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0, 93 + + + ( 59 )
----
NULL
152

skipif mysql # not compatible
query II rowsort label-3589
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, 93 + + + ( 59 )
----
NULL
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3590
SELECT + - 58, CAST( NULL AS SIGNED ) AS col1
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-3590
SELECT + - 58, CAST ( NULL AS INTEGER ) AS col1
----
-58
NULL

query I rowsort
SELECT COALESCE ( + + 38, + + 14 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT + COUNT( ALL + - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-3592
SELECT + COUNT ( ALL + - 46 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT DISTINCT + COALESCE ( 60, 0 DIV - COALESCE ( + - 14, + ( 41 ) ) + + 40 - - 89 * 72, + 77 )
----
60

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + COALESCE ( 60, 0 / - COALESCE ( + - 14, + ( 41 ) ) + + 40 - - 89 * 72, + 77 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3594
SELECT + 65 + + 47 - + 4 DIV COUNT( + - 15 ) + + 22
----
130

skipif mysql # not compatible
query I rowsort label-3594
SELECT + 65 + + 47 - + 4 / COUNT ( + - 15 ) + + 22
----
130

query II rowsort
SELECT - 12 * + 86, 14 AS col2
----
-1032
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL - 80 * - ( + COUNT( * ) ) + - ( 3 ) * + 75
----
-145

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL - 80 * - ( + COUNT ( * ) ) + - ( 3 ) * + 75
----
-145

query I rowsort
SELECT CASE - AVG ( DISTINCT - 29 ) WHEN - + 92 THEN NULL ELSE + 37 END
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT SUM( ALL 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3598
SELECT SUM ( ALL 24 ) AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT ALL 55 * - 83 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL 55 * - 83 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT COUNT( + - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-3600
SELECT COUNT ( + - 49 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT + COUNT( * ) + 56 * + 56
----
3137

skipif mysql # not compatible
query I rowsort label-3601
SELECT + COUNT ( * ) + 56 * + 56
----
3137

query I rowsort
SELECT + 52 * - 89 * 84 * + - 68
----
26435136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT - 86 * + 41 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT - 86 * + 41 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3604
SELECT ALL + 48 + COUNT( * ) DIV + - 28 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + 48 + COUNT ( * ) / + - 28 AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3605
SELECT DISTINCT 87 DIV + 92 * - + MAX( + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT 87 / + 92 * - + MAX ( + 80 )
----
0

query I rowsort
SELECT ALL 70 - - + 28 + - - 77
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT + 40 * - CAST( - - 3 AS SIGNED ) * - 77 AS col0
----
9240

skipif mysql # not compatible
query I rowsort label-3607
SELECT + 40 * - CAST ( - - 3 AS INTEGER ) * - 77 AS col0
----
9240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3608
SELECT ALL ( 57 ) DIV + COALESCE ( 64, + 22 * + + COUNT( * ), - 9 DIV - + 33 * - + 27 + 59 DIV + - 98 + - 0 * 76, CASE + COUNT( * ) WHEN - 90 THEN - + 67 + + 11 * - 85 * - ( + 91 ) + 44 * 16 * + 5 + + 56 DIV 99 ELSE NULL END * - - 19 + CAST( + ( - 31 ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL ( 57 ) / + COALESCE ( 64, + 22 * + + COUNT ( * ), - 9 / - + 33 * - + 27 + 59 / + - 98 + - 0 * 76, CASE + COUNT ( * ) WHEN - 90 THEN - + 67 + + 11 * - 85 * - ( + 91 ) + 44 * 16 * + 5 + + 56 / 99 ELSE NULL END * - - 19 + CAST ( + ( - 31 ) AS INTEGER ) )
----
0

query I rowsort
SELECT + 54 - + 99 + 74
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL - 43 * COUNT( * ) + + 60 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL - 43 * COUNT ( * ) + + 60 AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT - - NULLIF ( 2, - 98 * 95 + 87 + - SUM( ALL 16 ) ), - 74 * - - 65 + - + 82 AS col0
----
2
-4892

skipif mysql # not compatible
query II rowsort label-3611
SELECT - - NULLIF ( 2, - 98 * 95 + 87 + - SUM ( ALL 16 ) ), - 74 * - - 65 + - + 82 AS col0
----
2
-4892

query I rowsort
SELECT - + ( + 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT + + 30 + - - NULLIF ( + 5, - - 10 + + - COUNT( DISTINCT + + 5 ) + - - 2 + + - 78 ) * 96 AS col2
----
510

skipif mysql # not compatible
query I rowsort label-3613
SELECT + + 30 + - - NULLIF ( + 5, - - 10 + + - COUNT ( DISTINCT + + 5 ) + - - 2 + + - 78 ) * 96 AS col2
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - CASE ( + + MAX( ( + + 3 ) ) ) WHEN 88 THEN - + ( + 94 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT - CASE ( + + MAX ( ( + + 3 ) ) ) WHEN 88 THEN - + ( + 94 ) END
----
NULL

query I rowsort
SELECT ALL - 49 * - + 71 + - 78
----
3401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3616
SELECT + 56 * + CASE - 31 WHEN 95 THEN NULL WHEN 20 THEN + 3 ELSE - + 33 + - - 82 * + + 44 * - 3 DIV - COUNT( * ) END AS col1
----
604296

skipif mysql # not compatible
query I rowsort label-3616
SELECT + 56 * + CASE - 31 WHEN 95 THEN NULL WHEN 20 THEN + 3 ELSE - + 33 + - - 82 * + + 44 * - 3 / - COUNT ( * ) END AS col1
----
604296

query I rowsort
SELECT + + 22 - 78 AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3618
SELECT DISTINCT - 11 DIV + CAST( - 3 AS SIGNED ) col1
----
3

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT - 11 / + CAST ( - 3 AS INTEGER ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT + COUNT( DISTINCT - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-3619
SELECT + COUNT ( DISTINCT - 11 )
----
1

query I rowsort
SELECT + + 78 + + - 36 * + - 60 AS col0
----
2238

query I rowsort
SELECT - + 72 * - + 43
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT 61 * 13 * + COUNT( * ) + + + 23 col0
----
816

skipif mysql # not compatible
query I rowsort label-3622
SELECT 61 * 13 * + COUNT ( * ) + + + 23 col0
----
816

query II rowsort
SELECT DISTINCT + 22 AS col2, ( - 81 ) + + - ( + - 56 ) col2
----
22
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT ALL 96 DIV 19 + + 44 - - 94 DIV - 75 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL 96 / 19 + + 44 - - 94 / - 75 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT - SUM( + 78 ) + 5 + - + 77 AS col2
----
-150

skipif mysql # not compatible
query I rowsort label-3625
SELECT - SUM ( + 78 ) + 5 + - + 77 AS col2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT 14 * + ( + 16 ) + - + COUNT( * ) * + - 56 + 86 * - - 15 * - 32 * - - 58
----
-2393960

skipif mysql # not compatible
query I rowsort label-3626
SELECT 14 * + ( + 16 ) + - + COUNT ( * ) * + - 56 + 86 * - - 15 * - 32 * - - 58
----
-2393960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3627
SELECT CAST( NULL AS SIGNED ) AS col2, 50 AS col2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-3627
SELECT CAST ( NULL AS INTEGER ) AS col2, 50 AS col2
----
NULL
50

query I rowsort
SELECT DISTINCT 59 * + 31 AS col2
----
1829

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT + 58 * COUNT( * ) + - 39
----
19

skipif mysql # not compatible
query I rowsort label-3629
SELECT + 58 * COUNT ( * ) + - 39
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT DISTINCT + 69 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT + 69 / + - 81
----
0

query I rowsort
SELECT ( - - 34 ) AS col2
----
34

query I rowsort
SELECT - 82 + + ( - - 6 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL ( - 48 ) * - 78 + - 52 + - - COUNT( * )
----
3693

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL ( - 48 ) * - 78 + - 52 + - - COUNT ( * )
----
3693

query I rowsort
SELECT ( - 70 ) AS col1
----
-70

query I rowsort
SELECT 51 * + + NULLIF ( - 44, - - 19 ) + 73
----
-2171

query I rowsort
SELECT - 70 * - + 26
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT ALL + COUNT( + + 87 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL + COUNT ( + + 87 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3638
SELECT ALL + CAST( + CASE + + CAST( NULL AS SIGNED ) WHEN + 21 * - + ( 8 ) + - 19 - 60 THEN + 56 + + 68 WHEN + + 65 * + - 52 + - 10 + + CAST( NULL AS DECIMAL ) THEN 4 WHEN + 85 THEN - + 15 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + CAST ( + CASE + + CAST ( NULL AS INTEGER ) WHEN + 21 * - + ( 8 ) + - 19 - 60 THEN + 56 + + 68 WHEN + + 65 * + - 52 + - 10 + + CAST ( NULL AS REAL ) THEN 4 WHEN + 85 THEN - + 15 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT - COUNT( * ) * - COUNT( + 86 ) + - 52 + + 30 + - 29 * 8 AS col1
----
-253

skipif mysql # not compatible
query I rowsort label-3639
SELECT - COUNT ( * ) * - COUNT ( + 86 ) + - 52 + + 30 + - 29 * 8 AS col1
----
-253

query I rowsort
SELECT ( + 1 ) AS col1
----
1

query II rowsort
SELECT NULLIF ( 44, + 89 + + + ( + - 24 ) * - 14 ) AS col1, - 73
----
44
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL - COUNT( * ) * COUNT( * ) - + 57 + ( + 41 )
----
-17

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - COUNT ( * ) * COUNT ( * ) - + 57 + ( + 41 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT - 40 * ( + COALESCE ( - - 82, 2 DIV ( + 55 ) + ( 36 ) ) )
----
-3280

skipif mysql # not compatible
query I rowsort label-3643
SELECT - 40 * ( + COALESCE ( - - 82, 2 / ( + 55 ) + ( 36 ) ) )
----
-3280

query I rowsort
SELECT ALL - 7 * + 16
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT + CASE + + 86 WHEN - 27 THEN NULL WHEN - - 0 THEN 11 WHEN - - 26 / - 63 * - + NULLIF ( + MIN( - 35 ), + 29 ) * - COUNT( * ) + - 76 + - 34 + 67 + 37 + 31 / + 81 + 99 - 75 THEN 51 * + COUNT( * ) ELSE - + 13 END
----
-13

skipif mysql # not compatible
query I rowsort label-3645
SELECT + CASE + + 86 WHEN - 27 THEN NULL WHEN - - 0 THEN 11 WHEN - - 26 / - 63 * - + NULLIF ( + MIN ( - 35 ), + 29 ) * - COUNT ( * ) + - 76 + - 34 + 67 + 37 + 31 / + 81 + 99 - 75 THEN 51 * + COUNT ( * ) ELSE - + 13 END
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3646
SELECT DISTINCT - + 62 - + MAX( DISTINCT - - ( + + 84 ) ) AS col2, 13
----
-146
13

skipif mysql # not compatible
query II rowsort label-3646
SELECT DISTINCT - + 62 - + MAX ( DISTINCT - - ( + + 84 ) ) AS col2, 13
----
-146
13

query I rowsort
SELECT ( + 54 ) * + ( - CASE 43 WHEN + 74 * NULLIF ( + 15, - 52 * + 88 ) + + + 27 THEN - 6 * 91 END )
----
NULL

query II rowsort
SELECT - 89, 54 AS col2
----
-89
54

query I rowsort
SELECT ALL - 14 - 70
----
-84

query II rowsort
SELECT - + 3 AS col1, + 77 AS col1
----
-3
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT 49 DIV + 86 * NULLIF ( 29, + 80 DIV - - NULLIF ( 89, + - ( - + 99 ) * + 44 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3651
SELECT 49 / + 86 * NULLIF ( 29, + 80 / - - NULLIF ( 89, + - ( - + 99 ) * + 44 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT - CAST( 24 AS SIGNED ) * - 7
----
168

skipif mysql # not compatible
query I rowsort label-3652
SELECT - CAST ( 24 AS INTEGER ) * - 7
----
168

query I rowsort
SELECT ALL + ( 45 ) AS col1
----
45

query I rowsort
SELECT ALL 71 * - + 5 AS col1
----
-355

query I rowsort
SELECT ALL + 81 * 42 AS col0
----
3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3656
SELECT 24 AS col2, 21 + + COALESCE ( - 85, + + CASE + MAX( ALL + + 57 ) WHEN - + 82 * 86 + - + SUM( ALL - - CAST( NULL AS SIGNED ) ) THEN NULL ELSE - + 24 + + - 39 * - 1 END )
----
24
-64

skipif mysql # not compatible
query II rowsort label-3656
SELECT 24 AS col2, 21 + + COALESCE ( - 85, + + CASE + MAX ( ALL + + 57 ) WHEN - + 82 * 86 + - + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - + 24 + + - 39 * - 1 END )
----
24
-64

query I rowsort
SELECT - 99 + - + 12
----
-111

query I rowsort
SELECT ALL 73 + - - 4 AS col2
----
77

query I rowsort
SELECT DISTINCT 83 + 60 col0
----
143

query I rowsort
SELECT ALL 48 + ( - 28 )
----
20

query I rowsort
SELECT DISTINCT 60 * + 31 * - + NULLIF ( 51, - + 47 / - 3 + + 28 + 87 + - + CASE + - 23 WHEN + 4 THEN - 23 * - + 22 + + 60 END ) * - + 17
----
1612620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT ALL 18 + - 91 + + - 94 - - 6 - + COUNT( * ) * + - CAST( + - 9 AS SIGNED ) * 1 AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL 18 + - 91 + + - 94 - - 6 - + COUNT ( * ) * + - CAST ( + - 9 AS INTEGER ) * 1 AS col0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ( + COUNT( * ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3663
SELECT ( + COUNT ( * ) ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT ALL 12 + + SUM( ALL 28 ) + - 2 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL 12 + + SUM ( ALL 28 ) + - 2 AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3665
SELECT DISTINCT COUNT( * ) DIV + 39 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT COUNT ( * ) / + 39 * - COUNT ( * )
----
0

query II rowsort
SELECT ( + 9 ) * 8 * - 46, 52 AS col1
----
-3312
52

query I rowsort
SELECT 21 * - 55 AS col2
----
-1155

query I rowsort
SELECT 95 * + 67 AS col2
----
6365

query I rowsort
SELECT DISTINCT 11 * - - ( - 86 )
----
-946

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL COUNT( * ) * + 49 * 80
----
3920

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL COUNT ( * ) * + 49 * 80
----
3920

query I rowsort
SELECT ALL 5 * 58 AS col2
----
290

query I rowsort
SELECT 20 - + 62
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT ALL + CAST( NULL AS SIGNED ) / + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL + CAST ( NULL AS INTEGER ) / + 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT COALESCE ( + 96, + COUNT( * ) ) + + 61 + + COUNT( * )
----
158

skipif mysql # not compatible
query I rowsort label-3674
SELECT COALESCE ( + 96, + COUNT ( * ) ) + + 61 + + COUNT ( * )
----
158

query I rowsort
SELECT + - ( - 81 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3676
SELECT COUNT( * ) * 48 AS col2, 16 * + 76 AS col1
----
48
1216

skipif mysql # not compatible
query II rowsort label-3676
SELECT COUNT ( * ) * 48 AS col2, 16 * + 76 AS col1
----
48
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - 88 + + COUNT( * ) + + COUNT( * ) * - 62
----
-149

skipif mysql # not compatible
query I rowsort label-3677
SELECT - 88 + + COUNT ( * ) + + COUNT ( * ) * - 62
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT CASE + - COALESCE ( - + 31, - + ( - 32 ) ) WHEN - AVG ( ALL + + 15 ) THEN + CAST( - 58 AS SIGNED ) * 60 WHEN NULLIF ( - - 56, - 55 ) THEN + - 78 - + CASE + 15 WHEN - 20 + - 95 THEN - 84 * + 26 WHEN - 15 - + 9 THEN NULL ELSE NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT CASE + - COALESCE ( - + 31, - + ( - 32 ) ) WHEN - AVG ( ALL + + 15 ) THEN + CAST ( - 58 AS INTEGER ) * 60 WHEN NULLIF ( - - 56, - 55 ) THEN + - 78 - + CASE + 15 WHEN - 20 + - 95 THEN - 84 * + 26 WHEN - 15 - + 9 THEN NULL ELSE NULL END END AS col1
----
NULL

query I rowsort
SELECT 94 * 71 + + - CASE + 97 WHEN - + 9 THEN ( 56 ) WHEN - 95 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3680
SELECT DISTINCT + - 22 * MAX( DISTINCT + ( CAST( + - 72 AS SIGNED ) ) ) AS col0, CAST( NULL AS SIGNED ) AS col0
----
1584
NULL

skipif mysql # not compatible
query II rowsort label-3680
SELECT DISTINCT + - 22 * MAX ( DISTINCT + ( CAST ( + - 72 AS INTEGER ) ) ) AS col0, CAST ( NULL AS INTEGER ) AS col0
----
1584
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT - 47 * - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT - 47 * - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 55 * - 16
----
-880

query I rowsort
SELECT - + 20 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT + CAST( NULL AS SIGNED ) - - ( - - CASE + COALESCE ( + ( + 26 ), - COALESCE ( + ( + - ( - 1 ) ), + 96, - 77 / + 70 + + + 5 ) * 78 * + 39, 99 ) WHEN - 33 THEN NULL ELSE ( MAX( DISTINCT + 48 ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT + CAST ( NULL AS INTEGER ) - - ( - - CASE + COALESCE ( + ( + 26 ), - COALESCE ( + ( + - ( - 1 ) ), + 96, - 77 / + 70 + + + 5 ) * 78 * + 39, 99 ) WHEN - 33 THEN NULL ELSE ( MAX ( DISTINCT + 48 ) ) END )
----
NULL

query I rowsort
SELECT DISTINCT - 59 + + 68 * - 45
----
-3119

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT + ( + 17 ) DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-3686
SELECT + ( + 17 ) / + 47
----
0

query I rowsort
SELECT ALL + - 88 + - 25
----
-113

query I rowsort
SELECT ALL 1 * - 61
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT 95 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT 95 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3690
SELECT + CAST( + ( - 16 ) AS SIGNED ) * 76 * - 72 + + + COUNT( * ) * + 20 AS col2
----
87572

skipif mysql # not compatible
query I rowsort label-3690
SELECT + CAST ( + ( - 16 ) AS INTEGER ) * 76 * - 72 + + + COUNT ( * ) * + 20 AS col2
----
87572

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT NULLIF ( - - MAX( ALL - 54 ), 1 )
----
-54

skipif mysql # not compatible
query I rowsort label-3691
SELECT NULLIF ( - - MAX ( ALL - 54 ), 1 )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT + COUNT( * ), - 44 AS col2
----
1
-44

skipif mysql # not compatible
query II rowsort label-3692
SELECT + COUNT ( * ), - 44 AS col2
----
1
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3693
SELECT ( - CASE - + 94 WHEN - 98 THEN NULL WHEN 24 THEN NULL ELSE + - 41 END ) DIV - + 28 - + 53 - + 70 + + ( COUNT( * ) ) + - 84 + - NULLIF ( COUNT( * ), + 76 ) * - + COALESCE ( - 19, + + 24 ) * + COUNT( * ) * + COALESCE ( 87, - NULLIF ( 39, 36 * - 44 ) * ( - NULLIF ( + + 51, 7 * + 45 + 86 ) ) * - 10 ) * + CAST( 9 DIV - CAST( 81 AS SIGNED ) + + 18 AS SIGNED ) + + 2 AS col0
----
-29959

skipif mysql # not compatible
query I rowsort label-3693
SELECT ( - CASE - + 94 WHEN - 98 THEN NULL WHEN 24 THEN NULL ELSE + - 41 END ) / - + 28 - + 53 - + 70 + + ( COUNT ( * ) ) + - 84 + - NULLIF ( COUNT ( * ), + 76 ) * - + COALESCE ( - 19, + + 24 ) * + COUNT ( * ) * + COALESCE ( 87, - NULLIF ( 39, 36 * - 44 ) * ( - NULLIF ( + + 51, 7 * + 45 + 86 ) ) * - 10 ) * + CAST ( 9 / - CAST ( 81 AS INTEGER ) + + 18 AS INTEGER ) + + 2 AS col0
----
-29959

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT MAX( - + 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3694
SELECT MAX ( - + 98 ) AS col0
----
-98

query II rowsort
SELECT ALL + 49, - 57 AS col0
----
49
-57

query II rowsort
SELECT DISTINCT + 52 AS col0, + 24 * + 70
----
52
1680

query I rowsort
SELECT + 93 + - + 54 AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT + 81 DIV - 27 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3698
SELECT + 81 / - 27 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT ALL CAST( - 19 AS SIGNED ) * - 63 AS col0
----
1197

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL CAST ( - 19 AS INTEGER ) * - 63 AS col0
----
1197

onlyif mysql # DIV for integer division: 
query I rowsort label-3700
SELECT + + ( 80 ) DIV + 3 + - 46 DIV 11 + 81 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-3700
SELECT + + ( 80 ) / + 3 + - 46 / 11 + 81 AS col2
----
103

onlyif mysql # DIV for integer division: 
query II rowsort label-3701
SELECT ALL 65 * - 31 - - 5 + 98 * + 89, + 98 DIV - + 82 AS col1
----
6712
-1

skipif mysql # not compatible
query II rowsort label-3701
SELECT ALL 65 * - 31 - - 5 + 98 * + 89, + 98 / - + 82 AS col1
----
6712
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT DISTINCT + + 44 col1, SUM( + - 44 ) * - - ( - + 56 ) col1
----
44
2464

skipif mysql # not compatible
query II rowsort label-3702
SELECT DISTINCT + + 44 col1, SUM ( + - 44 ) * - - ( - + 56 ) col1
----
44
2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3703
SELECT ALL + NULLIF ( + + CAST( NULL AS SIGNED ), - - 48 + - 66 * - MIN( ALL - 18 ) - - + 86 - + 6 ) + - 24 + - - CAST( - 24 AS SIGNED ) * 9 / + 90, + 68 * + + 64 AS col2
----
NULL
4352

skipif mysql # not compatible
query II rowsort label-3703
SELECT ALL + NULLIF ( + + CAST ( NULL AS INTEGER ), - - 48 + - 66 * - MIN ( ALL - 18 ) - - + 86 - + 6 ) + - 24 + - - CAST ( - 24 AS INTEGER ) * 9 / + 90, + 68 * + + 64 AS col2
----
NULL
4352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3704
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 5 + + MIN( + + 43 ) * - + ( - - CASE - + 12 WHEN - COUNT( * ) THEN NULL ELSE + - COALESCE ( - 78, - 0 + + + COUNT( * ) ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 5 + + MIN ( + + 43 ) * - + ( - - CASE - + 12 WHEN - COUNT ( * ) THEN NULL ELSE + - COALESCE ( - 78, - 0 + + + COUNT ( * ) ) END ) AS col1
----
NULL

query I rowsort
SELECT - + COALESCE ( 44, 45 ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT - - ( 69 ) + - - CAST( - - COUNT( DISTINCT + 91 ) AS SIGNED ) * - SUM( DISTINCT + ( + 14 ) )
----
55

skipif mysql # not compatible
query I rowsort label-3706
SELECT - - ( 69 ) + - - CAST ( - - COUNT ( DISTINCT + 91 ) AS INTEGER ) * - SUM ( DISTINCT + ( + 14 ) )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT - MAX( ALL - 19 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-3707
SELECT - MAX ( ALL - 19 ) col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL NULLIF ( - ( + SUM( + + 40 ) ), + 17 )
----
-40

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL NULLIF ( - ( + SUM ( + + 40 ) ), + 17 )
----
-40

query I rowsort
SELECT ALL + - ( + 32 ) + + - 58
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3710
SELECT ALL + CAST( NULL AS DECIMAL ) + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + CAST ( NULL AS REAL ) + + 31 AS col0
----
NULL

query I rowsort
SELECT - 47 + + 4
----
-43

query I rowsort
SELECT DISTINCT + 27 * + 61 AS col0
----
1647

query I rowsort
SELECT - COALESCE ( - + 87, + 67, 58 ) + - 38
----
49

query I rowsort
SELECT - 66 * + 92 * - NULLIF ( - 67, - + 12 ) AS col1
----
-406824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT ALL - 92 * + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL - 92 * + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query II rowsort
SELECT 10, + 21 col2
----
10
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3717
SELECT - 83 + 51 AS col2, + COUNT( * )
----
-32
1

skipif mysql # not compatible
query II rowsort label-3717
SELECT - 83 + 51 AS col2, + COUNT ( * )
----
-32
1

query II rowsort
SELECT - 95 * + 45, 69 AS col0
----
-4275
69

query II rowsort
SELECT 53 AS col1, 15 col1
----
53
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL ( - COALESCE ( + 57, + - 82 * + 24 - + COUNT( * ) * - - 87 ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL ( - COALESCE ( + 57, + - 82 * + 24 - + COUNT ( * ) * - - 87 ) ) AS col0
----
-57

query I rowsort
SELECT + 35 * + - 22 AS col1
----
-770

query I rowsort
SELECT ALL 59 - + + 33
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL CASE + MAX( ALL - 81 ) WHEN CASE + 82 WHEN 4 THEN - + ( - - COUNT( - 97 ) ) + - 65 WHEN - 92 + - 3 - - MAX( + 4 ) + - + NULLIF ( - 4, + 74 ) / 3 * + 80 * 22 THEN 78 WHEN + 37 THEN NULL END THEN + + COUNT( * ) WHEN + 26 * + + 65 / + 57 + + 33 + ( + + 96 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL CASE + MAX ( ALL - 81 ) WHEN CASE + 82 WHEN 4 THEN - + ( - - COUNT ( - 97 ) ) + - 65 WHEN - 92 + - 3 - - MAX ( + 4 ) + - + NULLIF ( - 4, + 74 ) / 3 * + 80 * 22 THEN 78 WHEN + 37 THEN NULL END THEN + + COUNT ( * ) WHEN + 26 * + + 65 / + 57 + + 33 + ( + + 96 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3724
SELECT DISTINCT ( 20 ) DIV 55 - + 36
----
-36

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT ( 20 ) / 55 - + 36
----
-36

query I rowsort
SELECT ALL 11 * + ( - - 87 )
----
957

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3726
SELECT CAST( - + 43 AS SIGNED ) AS col0, + ( 69 ) AS col1
----
-43
69

skipif mysql # not compatible
query II rowsort label-3726
SELECT CAST ( - + 43 AS INTEGER ) AS col0, + ( 69 ) AS col1
----
-43
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3727
SELECT ALL - 48 DIV + 4 * 1 col0
----
-12

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL - 48 / + 4 * 1 col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3728
SELECT - 5 * + COALESCE ( + CASE + - 10 WHEN + 63 THEN NULL WHEN CAST( NULL AS SIGNED ) * + 78 * COUNT( * ) + 71 THEN NULL ELSE 70 END, - COUNT( * ) )
----
-350

skipif mysql # not compatible
query I rowsort label-3728
SELECT - 5 * + COALESCE ( + CASE + - 10 WHEN + 63 THEN NULL WHEN CAST ( NULL AS INTEGER ) * + 78 * COUNT ( * ) + 71 THEN NULL ELSE 70 END, - COUNT ( * ) )
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT + NULLIF ( - 96, - + 87 * + 28 + COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-3729
SELECT + NULLIF ( - 96, - + 87 * + 28 + COUNT ( * ) )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT - 81 - 13 - - - 13 * - + 37 + 32 * - COUNT( * ), 57 AS col2
----
355
57

skipif mysql # not compatible
query II rowsort label-3730
SELECT - 81 - 13 - - - 13 * - + 37 + 32 * - COUNT ( * ), 57 AS col2
----
355
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT + COALESCE ( + COUNT( * ), 15 + 62 ) * - 57 - 22 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-3731
SELECT + COALESCE ( + COUNT ( * ), 15 + 62 ) * - 57 - 22 AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3732
SELECT ALL CAST( 81 AS SIGNED ) * - 88 + 86, 87 * + - 5 AS col1
----
-7042
-435

skipif mysql # not compatible
query II rowsort label-3732
SELECT ALL CAST ( 81 AS INTEGER ) * - 88 + 86, 87 * + - 5 AS col1
----
-7042
-435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT - 82 * + 65 - + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT - 82 * + 65 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ( + SUM( ALL - 57 ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3734
SELECT ( + SUM ( ALL - 57 ) ) AS col2
----
-57

query I rowsort
SELECT DISTINCT + 36 * + 71 + 10 + - + 36
----
2530

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT + COALESCE ( - COUNT( * ), 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + COALESCE ( - COUNT ( * ), 92 ) AS col1
----
-1

query I rowsort
SELECT ALL - 36 * + 14 + 35 + - 15 + + 32 AS col2
----
-452

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT + 7 - - + COUNT( - 76 )
----
8

skipif mysql # not compatible
query I rowsort label-3738
SELECT + 7 - - + COUNT ( - 76 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - 30 * - 59 * - + COUNT( * ) + - 88
----
-1858

skipif mysql # not compatible
query I rowsort label-3739
SELECT - 30 * - 59 * - + COUNT ( * ) + - 88
----
-1858

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT + NULLIF ( + + SUM( + 1 ), - + 52 ) * - ( + + 16 ), + 33 * + 72 * + - 57 AS col0
----
-16
-135432

skipif mysql # not compatible
query II rowsort label-3740
SELECT + NULLIF ( + + SUM ( + 1 ), - + 52 ) * - ( + + 16 ), + 33 * + 72 * + - 57 AS col0
----
-16
-135432

query I rowsort
SELECT + + 57 AS col1
----
57

query I rowsort
SELECT + + NULLIF ( - - 48, 17 + AVG ( - + 2 ) )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3743
SELECT + - NULLIF ( + CAST( - + COUNT( * ) AS SIGNED ), - - 88 + - - 74 * - + 78 - MIN( + 82 ) ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT + - NULLIF ( + CAST ( - + COUNT ( * ) AS INTEGER ), - - 88 + - - 74 * - + 78 - MIN ( + 82 ) ) + - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3744
SELECT DISTINCT + - 72 * 48 + + + 0 + - CAST( NULL AS SIGNED ) + MAX( DISTINCT - COALESCE ( 99, + + 1 * - + CAST( NULL AS DECIMAL ), 87 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + - 72 * 48 + + + 0 + - CAST ( NULL AS INTEGER ) + MAX ( DISTINCT - COALESCE ( 99, + + 1 * - + CAST ( NULL AS REAL ), 87 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 25 * 26
----
650

query I rowsort
SELECT DISTINCT - + 63 * - - 49
----
-3087

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT ALL 60 AS col0, + COUNT( * ) * + + 3 - 10
----
60
-7

skipif mysql # not compatible
query II rowsort label-3747
SELECT ALL 60 AS col0, + COUNT ( * ) * + + 3 - 10
----
60
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT + + 62 DIV 81 * + 99 * 70 + + + 11 col2
----
11

skipif mysql # not compatible
query I rowsort label-3748
SELECT + + 62 / 81 * + 99 * 70 + + + 11 col2
----
11

query I rowsort
SELECT DISTINCT 96 * ( - 12 ) - + ( + + 56 )
----
-1208

query I rowsort
SELECT ALL ( + 51 ) * - 35 AS col0
----
-1785

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT + MAX( DISTINCT - 4 ) * 67 - - 88 + - - MAX( 21 ) * - 28 + 45 col0
----
-723

skipif mysql # not compatible
query I rowsort label-3751
SELECT + MAX ( DISTINCT - 4 ) * 67 - - 88 + - - MAX ( 21 ) * - 28 + 45 col0
----
-723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3752
SELECT ALL CASE + ( - CAST( ( COUNT( * ) ) AS SIGNED ) ) WHEN + ( + 15 ) + 6 - + 87 THEN NULL ELSE - 55 + + + 4 END col1
----
-51

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL CASE + ( - CAST ( ( COUNT ( * ) ) AS INTEGER ) ) WHEN + ( + 15 ) + 6 - + 87 THEN NULL ELSE - 55 + + + 4 END col1
----
-51

query I rowsort
SELECT + 54 * + - 97
----
-5238

query I rowsort
SELECT + 71 - 87 AS col1
----
-16

query I rowsort
SELECT - 77 * - 51 * - - 64 col0
----
251328

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT ( - MAX( + 60 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT ( - MAX ( + 60 ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL MAX( DISTINCT 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL MAX ( DISTINCT 41 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT DISTINCT CAST( + - 63 AS SIGNED ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT CAST ( + - 63 AS INTEGER ) col1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3759
SELECT 20 - - 7 + + COUNT( * ) col0, 1
----
28
1

skipif mysql # not compatible
query II rowsort label-3759
SELECT 20 - - 7 + + COUNT ( * ) col0, 1
----
28
1

query I rowsort
SELECT 23 * + 38
----
874

query I rowsort
SELECT DISTINCT - 43 * - 25 * + 35
----
37625

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT 13 DIV + 59 * + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3762
SELECT 13 / + 59 * + 38 AS col1
----
0

query I rowsort
SELECT 49 * NULLIF ( + - ( - 3 ), 6 ) AS col2
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT 89 / - CAST( NULL AS SIGNED ) + + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT 89 / - CAST ( NULL AS INTEGER ) + + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL - SUM( + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - SUM ( + 9 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT DISTINCT - COALESCE ( - - 32, CAST( + - ( - CASE - 31 WHEN 47 THEN 97 * + - 17 END ) AS SIGNED ) ) + 65 * - 7 AS col0
----
-487

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT - COALESCE ( - - 32, CAST ( + - ( - CASE - 31 WHEN 47 THEN 97 * + - 17 END ) AS INTEGER ) ) + 65 * - 7 AS col0
----
-487

query I rowsort
SELECT ALL + 90 + + 88
----
178

onlyif mysql # DIV for integer division: 
query II rowsort label-3768
SELECT ALL - 99 DIV + 89 AS col2, 31 * - 37 col2
----
-1
-1147

skipif mysql # not compatible
query II rowsort label-3768
SELECT ALL - 99 / + 89 AS col2, 31 * - 37 col2
----
-1
-1147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT 62 * - CAST( NULL AS SIGNED ) + + 57 / NULLIF ( 48, - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT 62 * - CAST ( NULL AS INTEGER ) + + 57 / NULLIF ( 48, - 37 )
----
NULL

query I rowsort
SELECT ALL - 26 + - + 41 - 76
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT + COUNT( * ) + - 10 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + COUNT ( * ) + - 10 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL - MIN( ALL 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - MIN ( ALL 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL + 15 + - + ( 34 ) - 42 + 13 + + MIN( + 2 ) * + 82 * 27 * - ( + COUNT( * ) ) * + 25 * + 42 * + ( 44 ) * + + COUNT( * ) + + + COUNT( * ) + + 98 AS col1
----
-204573549

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL + 15 + - + ( 34 ) - 42 + 13 + + MIN ( + 2 ) * + 82 * 27 * - ( + COUNT ( * ) ) * + 25 * + 42 * + ( 44 ) * + + COUNT ( * ) + + + COUNT ( * ) + + 98 AS col1
----
-204573549

query I rowsort
SELECT + 70 * - 81 + + 43 - - 0 AS col1
----
-5627

query I rowsort
SELECT 38 + - 60 AS col0
----
-22

query I rowsort
SELECT CASE 15 WHEN - + 53 THEN 91 + 77 WHEN + - 61 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3777
SELECT + CAST( NULL AS DECIMAL ) + - 81 AS col1, 1 + + COUNT( * ) + 76 col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-3777
SELECT + CAST ( NULL AS REAL ) + - 81 AS col1, 1 + + COUNT ( * ) + 76 col2
----
NULL
78

query I rowsort
SELECT DISTINCT + 21 + + 6
----
27

query I rowsort
SELECT ALL - - 10 col0
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-3780
SELECT ALL - 93 + 67 col1, 8 + - - 38 DIV - 49 * + 28 * 21 AS col0
----
-26
8

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL - 93 + 67 col1, 8 + - - 38 / - 49 * + 28 * 21 AS col0
----
-26
8

query I rowsort
SELECT DISTINCT + 71 - 97 + + 91 - 62 * + 57 * 75 AS col0
----
-264985

onlyif mysql # DIV for integer division: 
query I rowsort label-3782
SELECT DISTINCT - + COALESCE ( - 46, 94 ) * 52 DIV 62 col0
----
38

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT - + COALESCE ( - 46, 94 ) * 52 / 62 col0
----
38

query I rowsort
SELECT ALL - 38 - + 61 col2
----
-99

query I rowsort
SELECT 87 * + 97
----
8439

query I rowsort
SELECT ALL - + 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT 18 + - + CASE + - 36 WHEN + 81 THEN NULL WHEN ( - 68 ) * 93 - 98 THEN + + 98 END + MAX( ALL - 18 ) + 79 - 6 + COUNT( * ) * - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT 18 + - + CASE + - 36 WHEN + 81 THEN NULL WHEN ( - 68 ) * 93 - 98 THEN + + 98 END + MAX ( ALL - 18 ) + 79 - 6 + COUNT ( * ) * - 71
----
NULL

query I rowsort
SELECT 66 * + + NULLIF ( + + 64, 92 )
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT - 57 * - - MAX( - 16 )
----
912

skipif mysql # not compatible
query I rowsort label-3788
SELECT - 57 * - - MAX ( - 16 )
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL NULLIF ( + 33, + MAX( 13 ) / ( - 12 ) ) * 3
----
99

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL NULLIF ( + 33, + MAX ( 13 ) / ( - 12 ) ) * 3
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT COUNT( * ) * + 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT COUNT ( * ) * + 83 AS col1
----
83

query I rowsort
SELECT 20 + + 23
----
43

query II rowsort
SELECT - 67, + 36 * 17 + + 12 + 34 col0
----
-67
658

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL MAX( ALL + 98 ) * - 35 AS col0
----
-3430

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL MAX ( ALL + 98 ) * - 35 AS col0
----
-3430

query I rowsort
SELECT 30 + 65 * 24 col0
----
1590

query I rowsort
SELECT 4 * - - 60 AS col2
----
240

query I rowsort
SELECT ALL 76 + - 18 AS col0
----
58

query I rowsort
SELECT 55 + 33 col1
----
88

query II rowsort
SELECT DISTINCT 83 col1, + 94
----
83
94

query I rowsort
SELECT ALL - 30 + + 30 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT COUNT( * ) * 56
----
56

skipif mysql # not compatible
query I rowsort label-3800
SELECT COUNT ( * ) * 56
----
56

query I rowsort
SELECT ALL 40 + + 24 AS col1
----
64

query II rowsort
SELECT DISTINCT 88 AS col0, - 5 * + - COALESCE ( + + 92, - 50, + 51 ) + - 63 AS col2
----
88
397

query I rowsort
SELECT DISTINCT - 12 + + 31 - 41 AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT ALL + 58 + + CAST( + 42 AS SIGNED ) * - 7 AS col2
----
-236

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + 58 + + CAST ( + 42 AS INTEGER ) * - 7 AS col2
----
-236

onlyif mysql # aggregate syntax: 
query II rowsort label-3805
SELECT COUNT( * ) AS col0, - 90 * - NULLIF ( - 22, - - 0 )
----
1
-1980

skipif mysql # not compatible
query II rowsort label-3805
SELECT COUNT ( * ) AS col0, - 90 * - NULLIF ( - 22, - - 0 )
----
1
-1980

query I rowsort
SELECT ALL + 20 * - 0 + 97 AS col0
----
97

query I rowsort
SELECT 55 * - 80 AS col0
----
-4400

query I rowsort
SELECT ALL - - 13 * + 86
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT - - COUNT( * ) * - + COUNT( * ) + - 37 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT - - COUNT ( * ) * - + COUNT ( * ) + - 37 AS col1
----
-38

query I rowsort
SELECT ALL + 6 * + + 38 * + 31 + - + ( 5 ) AS col0
----
7063

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT + + 38 AS col2, 98 * MAX( - 9 )
----
38
-882

skipif mysql # not compatible
query II rowsort label-3811
SELECT + + 38 AS col2, 98 * MAX ( - 9 )
----
38
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT - 42 - - CASE 76 WHEN + 31 THEN - 30 * - + COALESCE ( 60, NULLIF ( - 83, + - NULLIF ( 19, 11 + + + 1 / 34 ) ) + + + 35 ) + + 64 + 9 WHEN 10 THEN + SUM( DISTINCT 79 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT - 42 - - CASE 76 WHEN + 31 THEN - 30 * - + COALESCE ( 60, NULLIF ( - 83, + - NULLIF ( 19, 11 + + + 1 / 34 ) ) + + + 35 ) + + 64 + 9 WHEN 10 THEN + SUM ( DISTINCT 79 ) END
----
NULL

query II rowsort
SELECT - 93 AS col2, ( - + 63 ) + - 37 AS col0
----
-93
-100

query I rowsort
SELECT + ( - + NULLIF ( + + 70, NULLIF ( - 65, + 22 * 17 ) ) ) AS col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT 33 DIV - - 26 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3815
SELECT 33 / - - 26 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT ALL + + 54 - 8 * + 9 * + 38 * + - CAST( + + 23 AS SIGNED ) * 94 col0
----
5915286

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + + 54 - 8 * + 9 * + 38 * + - CAST ( + + 23 AS INTEGER ) * 94 col0
----
5915286

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3817
SELECT DISTINCT + 0 DIV COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + 0 / COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL - 42 - - ( + 23 )
----
-19

query I rowsort
SELECT - NULLIF ( - 9, 58 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT + 5 - COUNT( + 46 ) * - + COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3820
SELECT + 5 - COUNT ( + 46 ) * - + COUNT ( * ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT 43 * - COALESCE ( - NULLIF ( + + 34, + 99 * 90 - 28 + + + 22 * - + COUNT( * ) * + 72 * + AVG ( + + 24 ) ), 23, - 26 + + MAX( + 53 ) * + 43 )
----
1462

skipif mysql # not compatible
query I rowsort label-3821
SELECT 43 * - COALESCE ( - NULLIF ( + + 34, + 99 * 90 - 28 + + + 22 * - + COUNT ( * ) * + 72 * + AVG ( + + 24 ) ), 23, - 26 + + MAX ( + 53 ) * + 43 )
----
1462

query II rowsort
SELECT - 33 AS col1, + 95
----
-33
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT DISTINCT + 40 DIV - 15 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT + 40 / - 15 AS col2
----
-2

query I rowsort
SELECT ALL - - 88 col0
----
88

query I rowsort
SELECT ALL + 7 * + + 88
----
616

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT - 71 DIV + 47
----
-1

skipif mysql # not compatible
query I rowsort label-3826
SELECT - 71 / + 47
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3827
SELECT - 41 DIV + - COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3827
SELECT - 41 / + - COUNT ( * ) AS col0
----
41

query I rowsort
SELECT 81 + - 99 col2
----
-18

query I rowsort
SELECT ALL + 15 * + 57
----
855

query I rowsort
SELECT + 40 * - NULLIF ( 58, 42 + - 86 ) * + 71 + + 39 AS col1
----
-164681

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT DISTINCT NULLIF ( - + 40, - COUNT( ALL - 42 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT NULLIF ( - + 40, - COUNT ( ALL - 42 ) )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-3832
SELECT DISTINCT COUNT( * ) + - 18 AS col1, 46 * - 32 AS col0
----
-17
-1472

skipif mysql # not compatible
query II rowsort label-3832
SELECT DISTINCT COUNT ( * ) + - 18 AS col1, 46 * - 32 AS col0
----
-17
-1472

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT + 53 + 0 DIV - - 44 * + 72 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3833
SELECT + 53 + 0 / - - 44 * + 72 AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT - 64 DIV - + 54
----
1

skipif mysql # not compatible
query I rowsort label-3834
SELECT - 64 / - + 54
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT + 70 * - - 83 * + 1 * - - COUNT( * )
----
5810

skipif mysql # not compatible
query I rowsort label-3835
SELECT + 70 * - - 83 * + 1 * - - COUNT ( * )
----
5810

query I rowsort
SELECT + 58 + 30 col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT - COALESCE ( - + 7, - 82 * + + 33 + 16, + CAST( NULL AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-3837
SELECT - COALESCE ( - + 7, - 82 * + + 33 + 16, + CAST ( NULL AS INTEGER ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3838
SELECT ALL CAST( NULL AS DECIMAL ) * + - 52 * - - CASE 69 WHEN - - 74 + + 84 + - 40 THEN 96 * - - NULLIF ( - - 57, + 92 ) - + 81 WHEN - + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL CAST ( NULL AS REAL ) * + - 52 * - - CASE 69 WHEN - - 74 + + 84 + - 40 THEN 96 * - - NULLIF ( - - 57, + 92 ) - + 81 WHEN - + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 34 * + - 15
----
-510

query I rowsort
SELECT ALL + 26 + NULLIF ( - + 25, + - 35 ) + 61 * - 17
----
-1036

query I rowsort
SELECT + 28 - + 71 + + ( - 2 ) + 85 - - 49 * + 97
----
4793

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3842
SELECT ALL CAST( - CASE 87 WHEN - 93 THEN + 81 - 48 END AS DECIMAL ) * MAX( DISTINCT 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL CAST ( - CASE 87 WHEN - 93 THEN + 81 - 48 END AS REAL ) * MAX ( DISTINCT 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT MIN( DISTINCT - + 5 ) + + 50 + - + 33 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT MIN ( DISTINCT - + 5 ) + + 50 + - + 33 AS col0
----
12

query I rowsort
SELECT ALL 86 + - + 91 + - ( + - 25 ) + 32 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + MAX( ALL 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3845
SELECT + MAX ( ALL 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3846
SELECT + - 7 + + COALESCE ( + 75, - ( 32 ), COUNT( * ) * - + 6 ) DIV 22 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3846
SELECT + - 7 + + COALESCE ( + 75, - ( 32 ), COUNT ( * ) * - + 6 ) / 22 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT DISTINCT - ( - - 18 ) DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - ( - - 18 ) / 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT + + 32 + - + COUNT( * ) - - 69 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-3848
SELECT + + 32 + - + COUNT ( * ) - - 69 AS col0
----
100

query II rowsort
SELECT + - 57 + - - 5 + + 69 - + + 42 + 2 * 56 + 31 AS col2, - 94 AS col1
----
118
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3850
SELECT ALL - 15 * + + 32 - + 63 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL - 15 * + + 32 - + 63 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - NULLIF ( - 56, - 35 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL 19 * + ( - + COALESCE ( - 22, + 14 ) ) - - - COUNT( * ) + - 5
----
412

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL 19 * + ( - + COALESCE ( - 22, + 14 ) ) - - - COUNT ( * ) + - 5
----
412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT - 75 * - CAST( NULL AS SIGNED ) * - - ( - - 15 ) / 99 + 43 - + + ( 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT - 75 * - CAST ( NULL AS INTEGER ) * - - ( - - 15 ) / 99 + 43 - + + ( 96 )
----
NULL

query I rowsort
SELECT ALL + - 45 AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3855
SELECT - CAST( NULL AS SIGNED ) / + ( - MAX( ALL + 15 ) ) + + + 46 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT - CAST ( NULL AS INTEGER ) / + ( - MAX ( ALL + 15 ) ) + + + 46 * 63
----
NULL

query I rowsort
SELECT DISTINCT + 99 col1
----
99

query I rowsort
SELECT + 42 * - 96
----
-4032

query I rowsort
SELECT - - 0 * COALESCE ( + + 70, 81 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT + + COALESCE ( + 67, - 50 + - - 9 + - ( + - 45 ) * CAST( - 94 AS SIGNED ) * - + ( - CAST( NULL AS SIGNED ) ), + + 91 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3859
SELECT + + COALESCE ( + 67, - 50 + - - 9 + - ( + - 45 ) * CAST ( - 94 AS INTEGER ) * - + ( - CAST ( NULL AS INTEGER ) ), + + 91 ) AS col1
----
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3860
SELECT ALL + CAST( NULL AS DECIMAL ) / 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + CAST ( NULL AS REAL ) / 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL - COUNT( DISTINCT - 8 ) * - COUNT( - 98 ) + - COALESCE ( COUNT( * ), - 65 * - - 14, - 49 + 20 ) + - 9 + - 23
----
-32

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL - COUNT ( DISTINCT - 8 ) * - COUNT ( - 98 ) + - COALESCE ( COUNT ( * ), - 65 * - - 14, - 49 + 20 ) + - 9 + - 23
----
-32

query I rowsort
SELECT DISTINCT ( - 73 )
----
-73

query I rowsort
SELECT - 82 + - 76 * 28 AS col1
----
-2210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT DISTINCT - CAST( 73 AS SIGNED ) * + 3 AS col2
----
-219

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - CAST ( 73 AS INTEGER ) * + 3 AS col2
----
-219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3865
SELECT - 58 + - COUNT( * ) DIV - COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3865
SELECT - 58 + - COUNT ( * ) / - COUNT ( * ) AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3866
SELECT ALL COALESCE ( + 47, 14 * - - 48, 49 * + - CAST( + 20 AS SIGNED ) * - 83 + + ( COUNT( DISTINCT + 95 ) ) + - 70 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL COALESCE ( + 47, 14 * - - 48, 49 * + - CAST ( + 20 AS INTEGER ) * - 83 + + ( COUNT ( DISTINCT + 95 ) ) + - 70 ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + + - CASE - + CASE ( + 87 ) WHEN + - COUNT( * ) THEN - COALESCE ( + 52, - + 72 ) + SUM( 59 ) * 10 * - 68 WHEN CAST( NULL AS SIGNED ) * - 68 THEN NULL WHEN + SUM( ALL + NULLIF ( 32, - 18 ) ) THEN 74 ELSE + + ( - CAST( NULL AS SIGNED ) ) END WHEN MAX( DISTINCT + 18 ) * + 91 THEN NULL ELSE + 22 END + + 53 * + COUNT( * ) * + + COALESCE ( + 69, 36 ) * + 88 AS col0
----
321795

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + + - CASE - + CASE ( + 87 ) WHEN + - COUNT ( * ) THEN - COALESCE ( + 52, - + 72 ) + SUM ( 59 ) * 10 * - 68 WHEN CAST ( NULL AS INTEGER ) * - 68 THEN NULL WHEN + SUM ( ALL + NULLIF ( 32, - 18 ) ) THEN 74 ELSE + + ( - CAST ( NULL AS INTEGER ) ) END WHEN MAX ( DISTINCT + 18 ) * + 91 THEN NULL ELSE + 22 END + + 53 * + COUNT ( * ) * + + COALESCE ( + 69, 36 ) * + 88 AS col0
----
321795

query I rowsort
SELECT ALL 46 + 65
----
111

query I rowsort
SELECT DISTINCT ( + 32 ) col0
----
32

query I rowsort
SELECT ALL + 31 + + + 15 + - 41 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - COUNT( * ) + - 84 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3871
SELECT - COUNT ( * ) + - 84 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT DISTINCT + COALESCE ( 89, - - ( - - 43 ) ) + 80 * + 98 * + + MAX( - 42 ) * + MAX( + 25 ) AS col2
----
-8231911

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + COALESCE ( 89, - - ( - - 43 ) ) + 80 * + 98 * + + MAX ( - 42 ) * + MAX ( + 25 ) AS col2
----
-8231911

query I rowsort
SELECT + ( - + 4 ) + ( + 70 ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3874
SELECT ALL + 95 - - CAST( - + COUNT( * ) AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + 95 - - CAST ( - + COUNT ( * ) AS INTEGER )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT + SUM( DISTINCT 52 ) + + 51 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-3875
SELECT + SUM ( DISTINCT 52 ) + + 51 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT + 93 + - + 32 + 20 * NULLIF ( 86, 6 / + COUNT( * ) ) AS col2
----
1781

skipif mysql # not compatible
query I rowsort label-3876
SELECT + 93 + - + 32 + 20 * NULLIF ( 86, 6 / + COUNT ( * ) ) AS col2
----
1781

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL COUNT( DISTINCT 5 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL COUNT ( DISTINCT 5 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT - ( + MAX( DISTINCT - + 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-3878
SELECT - ( + MAX ( DISTINCT - + 63 ) )
----
63

query I rowsort
SELECT + 51 * - 70
----
-3570

query I rowsort
SELECT DISTINCT - 73 * 65 * + 58
----
-275210

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT + + 34 DIV - + 60
----
0

skipif mysql # not compatible
query I rowsort label-3881
SELECT + + 34 / - + 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT + - COUNT( 45 ) - - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT + - COUNT ( 45 ) - - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT - - 54 * - 5 * SUM( DISTINCT - 16 )
----
4320

skipif mysql # not compatible
query I rowsort label-3883
SELECT - - 54 * - 5 * SUM ( DISTINCT - 16 )
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL + - MIN( DISTINCT - - 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL + - MIN ( DISTINCT - - 99 ) AS col1
----
-99

query II rowsort
SELECT ALL - 52, ( - + 74 ) - - 38 AS col1
----
-52
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3886
SELECT ALL COUNT( * ) + MIN( + - 78 ) + MAX( - 62 ) + - 67 + + - NULLIF ( + 71, 32 ) * + 78 DIV - 6 + - 86 * - - 49
----
-3497

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL COUNT ( * ) + MIN ( + - 78 ) + MAX ( - 62 ) + - 67 + + - NULLIF ( + 71, 32 ) * + 78 / - 6 + - 86 * - - 49
----
-3497

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3887
SELECT DISTINCT + 66 * - CAST( NULL AS DECIMAL ) * + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT + 66 * - CAST ( NULL AS REAL ) * + + 85
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT ALL - 7 + - 53 DIV - 67
----
-7

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL - 7 + - 53 / - 67
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3889
SELECT DISTINCT 24 + + CAST( NULL AS DECIMAL ) + - COUNT( * ) + + - NULLIF ( 62, - 52 ) * - MAX( DISTINCT 12 ) / - AVG ( + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT 24 + + CAST ( NULL AS REAL ) + - COUNT ( * ) + + - NULLIF ( 62, - 52 ) * - MAX ( DISTINCT 12 ) / - AVG ( + 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL - COUNT( - 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL - COUNT ( - 39 )
----
-1

query II rowsort
SELECT + 0 col2, ( + 88 ) * - NULLIF ( 75, 2 ) * - 51 - ( + COALESCE ( 24, - - 94 + - 90 ) ) - 24
----
0
336552

query I rowsort
SELECT 30 * + 97 col1
----
2910

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - 50 * - NULLIF ( + + 94, - 55 * - + 14 + + COUNT( DISTINCT - ( NULLIF ( + 66, + 11 ) ) ) - - 6 ) - 78
----
4622

skipif mysql # not compatible
query I rowsort label-3893
SELECT - 50 * - NULLIF ( + + 94, - 55 * - + 14 + + COUNT ( DISTINCT - ( NULLIF ( + 66, + 11 ) ) ) - - 6 ) - 78
----
4622

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL SUM( ALL 96 ) + - 55 + 41 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL SUM ( ALL 96 ) + - 55 + 41 AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT DISTINCT 18 * 0 DIV + COALESCE ( - 84, + 28 + - 17, ( - ( + ( ( - ( 22 ) ) ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT 18 * 0 / + COALESCE ( - 84, + 28 + - 17, ( - ( + ( ( - ( 22 ) ) ) ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL + ( - 49 ) + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL + ( - 49 ) + - COUNT ( * )
----
-50

query I rowsort
SELECT DISTINCT ( + 25 ) + - 47 AS col1
----
-22

query II rowsort
SELECT 18 AS col2, 97 * + + 54 AS col1
----
18
5238

query II rowsort
SELECT ALL 77, + 38 AS col0
----
77
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3900
SELECT DISTINCT + 26 - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT + 26 - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3901
SELECT ALL - ( - + ( + - 47 ) ) DIV + - 72
----
0

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL - ( - + ( + - 47 ) ) / + - 72
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3902
SELECT - 32, - 96 * 17 * + 44 + - + 28 + + + 63 * COUNT( * ) AS col0
----
-32
-71773

skipif mysql # not compatible
query II rowsort label-3902
SELECT - 32, - 96 * 17 * + 44 + - + 28 + + + 63 * COUNT ( * ) AS col0
----
-32
-71773

query II rowsort
SELECT - 86, + 42 * + 67 AS col0
----
-86
2814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT 45 - - 54 + + CASE - 5 WHEN - - MAX( + + 70 ) * - + 6 + - 46 + - COUNT( * ) THEN NULLIF ( - - 50, + + 2 ) END + CAST( NULL AS SIGNED ) * ( 49 ) + - 27 + + CASE + 89 WHEN + ( + 26 ) THEN + 14 WHEN - 20 * + 69 + + - CAST( 65 AS SIGNED ) THEN 96 / ( + 1 ) END * 97 + + - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT 45 - - 54 + + CASE - 5 WHEN - - MAX ( + + 70 ) * - + 6 + - 46 + - COUNT ( * ) THEN NULLIF ( - - 50, + + 2 ) END + CAST ( NULL AS INTEGER ) * ( 49 ) + - 27 + + CASE + 89 WHEN + ( + 26 ) THEN + 14 WHEN - 20 * + 69 + + - CAST ( 65 AS INTEGER ) THEN 96 / ( + 1 ) END * 97 + + - 91 AS col0
----
NULL

query I rowsort
SELECT 48 * - 62 col2
----
-2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3906
SELECT 54 + CASE - - ( COUNT( * ) ) WHEN 22 THEN - 84 WHEN + + 98 THEN - - 4 WHEN - - 68 / + ( 54 ) + + COALESCE ( - - 41, 60 * - CAST( NULL AS SIGNED ) - 59, - 36 ) + 32 - CASE + + 29 WHEN 50 / + COUNT( * ) THEN 89 / - + ( - 30 ) END * - - 85 - - 5 THEN NULL ELSE NULL END - - 86 + + - MAX( DISTINCT - 55 ) + 26 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT 54 + CASE - - ( COUNT ( * ) ) WHEN 22 THEN - 84 WHEN + + 98 THEN - - 4 WHEN - - 68 / + ( 54 ) + + COALESCE ( - - 41, 60 * - CAST ( NULL AS INTEGER ) - 59, - 36 ) + 32 - CASE + + 29 WHEN 50 / + COUNT ( * ) THEN 89 / - + ( - 30 ) END * - - 85 - - 5 THEN NULL ELSE NULL END - - 86 + + - MAX ( DISTINCT - 55 ) + 26 * - 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT 90 DIV + - 29
----
-3

skipif mysql # not compatible
query I rowsort label-3907
SELECT 90 / + - 29
----
-3

query II rowsort
SELECT DISTINCT + 67 col1, + 71 AS col0
----
67
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3909
SELECT ALL - - 27 - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - - 27 - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT - - 10 * - ( 90 ) * + 8
----
-7200

query II rowsort
SELECT DISTINCT 62 AS col2, 21
----
62
21

query I rowsort
SELECT ALL - NULLIF ( + 8, 6 )
----
-8

query II rowsort
SELECT - + 64, - 5 AS col0
----
-64
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3914
SELECT 8 + - 62 * + CAST( NULL AS SIGNED ) - 13 * COUNT( * ) * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT 8 + - 62 * + CAST ( NULL AS INTEGER ) - 13 * COUNT ( * ) * + 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3915
SELECT + 40 AS col1, CAST( 20 AS SIGNED )
----
40
20

skipif mysql # not compatible
query II rowsort label-3915
SELECT + 40 AS col1, CAST ( 20 AS INTEGER )
----
40
20

query II rowsort
SELECT 16 AS col1, - 87 AS col1
----
16
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL COUNT( DISTINCT + 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL COUNT ( DISTINCT + 53 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT 41 + - SUM( DISTINCT + ( - ( + + 8 ) ) )
----
49

skipif mysql # not compatible
query I rowsort label-3918
SELECT 41 + - SUM ( DISTINCT + ( - ( + + 8 ) ) )
----
49

query I rowsort
SELECT ALL 68 + + 76
----
144

query I rowsort
SELECT 87 + - 73 AS col0
----
14

query II rowsort
SELECT DISTINCT + + 30 + + - 70 AS col1, - 15 AS col1
----
-40
-15

query I rowsort
SELECT ALL 90 * 11 * + 45 AS col0
----
44550

query I rowsort
SELECT ALL - 17 + + 34 + - 20
----
-3

query I rowsort
SELECT ALL + - 80 + 22 * + 6 * - 33 AS col2
----
-4436

query I rowsort
SELECT ALL + 37 + + ( - 26 ) + - 33 + 80
----
58

query I rowsort
SELECT ALL - 78 + + - 16 + - 12
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3927
SELECT CASE 89 WHEN - 71 + + 97 + 21 DIV + 19 * 67 THEN NULL WHEN + 41 DIV - - COUNT( * ) * 51 + + 84 THEN NULL ELSE - 76 END DIV 33 + - 79 * + - 38 AS col2
----
3000

skipif mysql # not compatible
query I rowsort label-3927
SELECT CASE 89 WHEN - 71 + + 97 + 21 / + 19 * 67 THEN NULL WHEN + 41 / - - COUNT ( * ) * 51 + + 84 THEN NULL ELSE - 76 END / 33 + - 79 * + - 38 AS col2
----
3000

query I rowsort
SELECT ALL - 67 * + - 49
----
3283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT CAST( NULL AS SIGNED ) + + ( - 63 ) * 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT CAST ( NULL AS INTEGER ) + + ( - 63 ) * 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL 77 + 36 + - COUNT( * ) * + 48 * + - 29 AS col2
----
1505

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL 77 + 36 + - COUNT ( * ) * + 48 * + - 29 AS col2
----
1505

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT COUNT( * ) * - 33 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3931
SELECT COUNT ( * ) * - 33 AS col2
----
-33

query I rowsort
SELECT ALL 24 * NULLIF ( 62, 29 + NULLIF ( - + 64, - 89 * 29 ) ) col2
----
1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3933
SELECT 67 * - 86 + - COALESCE ( + MAX( + NULLIF ( 92, + - 67 ) ), + 3 * 4 DIV - + 18 ) + 82 * + + 52 + COUNT( * ) + - - 43 * + + 14
----
-987

skipif mysql # not compatible
query I rowsort label-3933
SELECT 67 * - 86 + - COALESCE ( + MAX ( + NULLIF ( 92, + - 67 ) ), + 3 * 4 / - + 18 ) + 82 * + + 52 + COUNT ( * ) + - - 43 * + + 14
----
-987

query II rowsort
SELECT ALL 41 + + 36, 5 AS col2
----
77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT 55 + + ( COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-3935
SELECT 55 + + ( COUNT ( * ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT 11 - + - 1 + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT 11 - + - 1 + COUNT ( * ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3937
SELECT DISTINCT 28 * + 64 AS col0, 97 + + + COUNT( * ) AS col0
----
1792
98

skipif mysql # not compatible
query II rowsort label-3937
SELECT DISTINCT 28 * + 64 AS col0, 97 + + + COUNT ( * ) AS col0
----
1792
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT 38 * - + COUNT( * ) * - 4
----
152

skipif mysql # not compatible
query I rowsort label-3938
SELECT 38 * - + COUNT ( * ) * - 4
----
152

query I rowsort
SELECT 74 + - 17
----
57

query II rowsort
SELECT ALL 63 * - + NULLIF ( + ( - + 69 ), + 69 ), 43 AS col0
----
4347
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3941
SELECT 45 + - 77, MIN( + CASE - 57 WHEN + 84 + - 4 THEN + 77 END ) - + + 59 - + + 3 + ( + 31 ) AS col2
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-3941
SELECT 45 + - 77, MIN ( + CASE - 57 WHEN + 84 + - 4 THEN + 77 END ) - + + 59 - + + 3 + ( + 31 ) AS col2
----
-32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT - MIN( + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3942
SELECT - MIN ( + 12 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT CAST( - - 67 AS SIGNED ) + - 37 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3943
SELECT CAST ( - - 67 AS INTEGER ) + - 37 AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3944
SELECT ALL COUNT( * ) * - - CASE + 29 WHEN 71 THEN + 25 ELSE NULL END * + ( - - 59 ) AS col0, 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-3944
SELECT ALL COUNT ( * ) * - - CASE + 29 WHEN 71 THEN + 25 ELSE NULL END * + ( - - 59 ) AS col0, 26
----
NULL
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT ( CAST( - 94 AS SIGNED ) ) + 48 + - + 34 * + 26 * - + 91 AS col2
----
80398

skipif mysql # not compatible
query I rowsort label-3945
SELECT ( CAST ( - 94 AS INTEGER ) ) + 48 + - + 34 * + 26 * - + 91 AS col2
----
80398

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3946
SELECT - 42 + ( 34 ) AS col0, 61 * CAST( NULL AS SIGNED ) col1
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-3946
SELECT - 42 + ( 34 ) AS col0, 61 * CAST ( NULL AS INTEGER ) col1
----
-8
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT - 99 DIV 96 * - 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3947
SELECT - 99 / 96 * - 65 AS col2
----
65

query I rowsort
SELECT 22 * - + 34
----
-748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3949
SELECT DISTINCT CASE COALESCE ( - COALESCE ( + + 2, 8 + + 66 ), + + 87 * - COALESCE ( + 70, + + 81 * - - 60 ) * COUNT( 81 ), - 47 * COUNT( * ) - 81 ) WHEN 83 * - 17 THEN NULL WHEN - 25 + 72 / + 82 * 73 THEN ( 14 ) * + 97 * + COUNT( + 33 ) * + 24 + - 91 + + CAST( NULL AS SIGNED ) - - 96 WHEN + + AVG ( DISTINCT - - 57 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT CASE COALESCE ( - COALESCE ( + + 2, 8 + + 66 ), + + 87 * - COALESCE ( + 70, + + 81 * - - 60 ) * COUNT ( 81 ), - 47 * COUNT ( * ) - 81 ) WHEN 83 * - 17 THEN NULL WHEN - 25 + 72 / + 82 * 73 THEN ( 14 ) * + 97 * + COUNT ( + 33 ) * + 24 + - 91 + + CAST ( NULL AS INTEGER ) - - 96 WHEN + + AVG ( DISTINCT - - 57 ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 90 + + 1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL + - 28 + - + ( - COUNT( DISTINCT 85 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL + - 28 + - + ( - COUNT ( DISTINCT 85 ) )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3952
SELECT - MAX( 91 ) AS col1, 7 + - 99 + ( COUNT( * ) ) * + - MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) - + 97 - - NULLIF ( + - 31, - 39 ) col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-3952
SELECT - MAX ( 91 ) AS col1, 7 + - 99 + ( COUNT ( * ) ) * + - MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) - + 97 - - NULLIF ( + - 31, - 39 ) col2
----
-91
NULL

query I rowsort
SELECT - + 93 * 18
----
-1674

query I rowsort
SELECT ALL - 88 + + 92 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3955
SELECT DISTINCT + 29 + 52 + + COALESCE ( - + 58, - + NULLIF ( + 25, + - 85 * 64 + + 99 * + 78 * MIN( - 44 ) + - CASE 77 WHEN + 59 - COUNT( * ) THEN - 68 + + CAST( - + CAST( 1 AS SIGNED ) AS SIGNED ) + - + 25 WHEN - + CAST( + 44 AS SIGNED ) THEN + 11 / ( - 2 ) + + 65 + - NULLIF ( + 69, 54 ) ELSE NULL END ) + 1 ) * - ( - - 82 ) AS col1, - 79 + + - 40
----
4837
-119

skipif mysql # not compatible
query II rowsort label-3955
SELECT DISTINCT + 29 + 52 + + COALESCE ( - + 58, - + NULLIF ( + 25, + - 85 * 64 + + 99 * + 78 * MIN ( - 44 ) + - CASE 77 WHEN + 59 - COUNT ( * ) THEN - 68 + + CAST ( - + CAST ( 1 AS INTEGER ) AS INTEGER ) + - + 25 WHEN - + CAST ( + 44 AS INTEGER ) THEN + 11 / ( - 2 ) + + 65 + - NULLIF ( + 69, 54 ) ELSE NULL END ) + 1 ) * - ( - - 82 ) AS col1, - 79 + + - 40
----
4837
-119

query I rowsort
SELECT ALL - 71 * 91
----
-6461

query I rowsort
SELECT ALL + 51 * - 56 + - 23 + + ( - 78 )
----
-2957

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL + - ( - ( COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL + - ( - ( COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3959
SELECT - - 33 * - CASE + 68 WHEN - 31 THEN + + 25 ELSE - 52 * 76 * 48 * - COALESCE ( - ( + - 31 ), MAX( - + 59 ) ) END + + 92 DIV 78 * 51
----
-194058957

skipif mysql # not compatible
query I rowsort label-3959
SELECT - - 33 * - CASE + 68 WHEN - 31 THEN + + 25 ELSE - 52 * 76 * 48 * - COALESCE ( - ( + - 31 ), MAX ( - + 59 ) ) END + + 92 / 78 * 51
----
-194058957

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT - 85 * - 81 + + COUNT( * )
----
6886

skipif mysql # not compatible
query I rowsort label-3960
SELECT - 85 * - 81 + + COUNT ( * )
----
6886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3961
SELECT ALL - 93 * + + CAST( NULL AS SIGNED ) + - 87 * CAST( - 40 AS SIGNED ) * - COUNT( * ) / + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - 93 * + + CAST ( NULL AS INTEGER ) + - 87 * CAST ( - 40 AS INTEGER ) * - COUNT ( * ) / + 52 AS col1
----
NULL

query I rowsort
SELECT - 42 - + 84 AS col0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + MIN( 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3963
SELECT + MIN ( 60 ) AS col2
----
60

query II rowsort
SELECT DISTINCT + 97 AS col2, 14 * - 9 AS col2
----
97
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3965
SELECT MIN( + CAST( - 86 AS SIGNED ) ) DIV - ( + - 93 ) + 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3965
SELECT MIN ( + CAST ( - 86 AS INTEGER ) ) / - ( + - 93 ) + 30 AS col0
----
30

query I rowsort
SELECT DISTINCT 65 * - - 27
----
1755

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3967
SELECT ALL + ( - 22 ) DIV + + 92 * ( + ( + MIN( ALL + + ( - - 84 ) ) ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL + ( - 22 ) / + + 92 * ( + ( + MIN ( ALL + + ( - - 84 ) ) ) ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT DISTINCT - 83 * - CAST( NULL AS SIGNED ) - + 20 / ( + + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - 83 * - CAST ( NULL AS INTEGER ) - + 20 / ( + + 52 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT ALL + CAST( 77 AS SIGNED ) * - + 90 + - 61 AS col0
----
-6991

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL + CAST ( 77 AS INTEGER ) * - + 90 + - 61 AS col0
----
-6991

onlyif mysql # DIV for integer division: 
query I rowsort label-3970
SELECT 81 * - 2 + - + NULLIF ( + 0, + 83 ) DIV + 33 + 23 AS col0
----
-139

skipif mysql # not compatible
query I rowsort label-3970
SELECT 81 * - 2 + - + NULLIF ( + 0, + 83 ) / + 33 + 23 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT + 64 - - COUNT( * ) * 80, - 14 + COUNT( * ) * + + ( + 77 ) * + + 4 col2
----
144
294

skipif mysql # not compatible
query II rowsort label-3971
SELECT + 64 - - COUNT ( * ) * 80, - 14 + COUNT ( * ) * + + ( + 77 ) * + + 4 col2
----
144
294

query II rowsort
SELECT + 19, - 97 col2
----
19
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT MAX( DISTINCT 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3973
SELECT MAX ( DISTINCT 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT DISTINCT 87 * - COUNT( * ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT 87 * - COUNT ( * ) col1
----
-87

query II rowsort
SELECT ALL + 9 AS col1, + 17
----
9
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + MIN( DISTINCT - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-3976
SELECT + MIN ( DISTINCT - 46 )
----
-46

onlyif mysql # DIV for integer division: 
query III rowsort label-3977
SELECT + 28 * 63 DIV + 54 AS col0, + 23 * + 71 * - - 76, - 3 - + 2 AS col2
----
32
124108
-5

skipif mysql # not compatible
query III rowsort label-3977
SELECT + 28 * 63 / + 54 AS col0, + 23 * + 71 * - - 76, - 3 - + 2 AS col2
----
32
124108
-5

query I rowsort
SELECT + ( - + 65 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3979
SELECT MAX( ALL - CAST( - 89 AS SIGNED ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3979
SELECT MAX ( ALL - CAST ( - 89 AS INTEGER ) ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT ALL 16 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL 16 / + 55
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3981
SELECT + COALESCE ( + + 93, 10 * - - 5 * ( 7 ) + - 48 * - 98 DIV + + 97 + - 90 * - - COUNT( * ) DIV 3 ) * - 86
----
-7998

skipif mysql # not compatible
query I rowsort label-3981
SELECT + COALESCE ( + + 93, 10 * - - 5 * ( 7 ) + - 48 * - 98 / + + 97 + - 90 * - - COUNT ( * ) / 3 ) * - 86
----
-7998

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3982
SELECT ALL + 99, CAST( NULL AS DECIMAL ) * + 67 + - + 32 + - + 23 AS col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-3982
SELECT ALL + 99, CAST ( NULL AS REAL ) * + 67 + - + 32 + - + 23 AS col2
----
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3983
SELECT - COALESCE ( 19, MAX( DISTINCT COALESCE ( + 90, - + 72, + CAST( NULL AS SIGNED ) * - + NULLIF ( + ( + 97 ), + 2 * + COALESCE ( - ( - 68 ), + 65 * 70 ) ) ) ), - ( + - 41 ), - + 81 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-3983
SELECT - COALESCE ( 19, MAX ( DISTINCT COALESCE ( + 90, - + 72, + CAST ( NULL AS INTEGER ) * - + NULLIF ( + ( + 97 ), + 2 * + COALESCE ( - ( - 68 ), + 65 * 70 ) ) ) ), - ( + - 41 ), - + 81 ) col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT COUNT( DISTINCT 70 )
----
1

skipif mysql # not compatible
query I rowsort label-3984
SELECT COUNT ( DISTINCT 70 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3985
SELECT ALL - 12 AS col2, 32 - + 34 + + - COUNT( * ) DIV - 12
----
-12
-2

skipif mysql # not compatible
query II rowsort label-3985
SELECT ALL - 12 AS col2, 32 - + 34 + + - COUNT ( * ) / - 12
----
-12
-2

query II rowsort
SELECT ALL - 58, - 16 AS col0
----
-58
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT + 40 * - MAX( + 18 ) + + 14 AS col2
----
-706

skipif mysql # not compatible
query I rowsort label-3987
SELECT + 40 * - MAX ( + 18 ) + + 14 AS col2
----
-706

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL COUNT( * ) + 65 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL COUNT ( * ) + 65 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT + + 22 - - ( + COUNT( * ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3989
SELECT + + 22 - - ( + COUNT ( * ) ) AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT ALL + 52 + ( + 11 ) DIV - + 99 * 22 + ( + 38 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL + 52 + ( + 11 ) / - + 99 * 22 + ( + 38 ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3991
SELECT + - CAST( NULL AS SIGNED ) + - 18 + - + 24 AS col0, 96 AS col2
----
NULL
96

skipif mysql # not compatible
query II rowsort label-3991
SELECT + - CAST ( NULL AS INTEGER ) + - 18 + - + 24 AS col0, 96 AS col2
----
NULL
96

query II rowsort
SELECT - 30, 97 AS col2
----
-30
97

query I rowsort
SELECT + + 72 + + 57
----
129

query I rowsort
SELECT + - 97 + 14 AS col1
----
-83

query I rowsort
SELECT ALL - 92 + 62 + - 99 * - 54
----
5316

query I rowsort
SELECT DISTINCT - 33 + + 56 AS col2
----
23

query II rowsort
SELECT - - NULLIF ( - + 6, + 26 ) AS col1, 92 AS col0
----
-6
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3998
SELECT ALL 98 AS col2, COUNT( * ) AS col0
----
98
1

skipif mysql # not compatible
query II rowsort label-3998
SELECT ALL 98 AS col2, COUNT ( * ) AS col0
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT + 86 + - COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3999
SELECT + 86 + - COUNT ( * ) AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT - MAX( ALL - 27 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT - MAX ( ALL - 27 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - 45 * - 22 col2
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT - COUNT( - + 78 ) + + 5
----
4

skipif mysql # not compatible
query I rowsort label-4002
SELECT - COUNT ( - + 78 ) + + 5
----
4

query II rowsort
SELECT 76 AS col1, 31 AS col2
----
76
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT DISTINCT + 47, 14 * 19 * - - 52 * + COUNT( * ) AS col1
----
47
13832

skipif mysql # not compatible
query II rowsort label-4004
SELECT DISTINCT + 47, 14 * 19 * - - 52 * + COUNT ( * ) AS col1
----
47
13832

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL + COUNT( * ) * - + 40
----
-40

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL + COUNT ( * ) * - + 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT - COUNT( * ) * + 41 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4006
SELECT - COUNT ( * ) * + 41 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4007
SELECT DISTINCT ( COUNT( * ) ) DIV - - 41
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT ( COUNT ( * ) ) / - - 41
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4008
SELECT ALL 6 DIV + 45 - - ( - COALESCE ( + + 54, - 90 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL 6 / + 45 - - ( - COALESCE ( + + 54, - 90 ) )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT + 25 DIV + + 96 + 19 + + 90
----
109

skipif mysql # not compatible
query I rowsort label-4009
SELECT + 25 / + + 96 + 19 + + 90
----
109

query I rowsort
SELECT - 76 * 28 AS col0
----
-2128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4011
SELECT ( + 98 ) AS col0, CASE - 17 WHEN 18 * + ( + 17 ) / - COUNT( * ) + - - 76 + - 55 - - + COUNT( * ) * 78 THEN - 26 WHEN - + CASE + SUM( 18 ) WHEN + - COUNT( * ) - MAX( 61 ) + 97 THEN NULL WHEN - COUNT( * ) / + 27 - - 59 + + - CAST( NULL AS SIGNED ) THEN CASE - 33 WHEN - - 70 * 4 / - MAX( - 20 ) - + - 73 THEN + 4 * - 73 + - 66 / 47 WHEN CAST( NULL AS DECIMAL ) THEN + - 16 WHEN 85 - - 58 THEN 20 * 62 END * 81 ELSE - 67 END THEN NULL END AS col0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-4011
SELECT ( + 98 ) AS col0, CASE - 17 WHEN 18 * + ( + 17 ) / - COUNT ( * ) + - - 76 + - 55 - - + COUNT ( * ) * 78 THEN - 26 WHEN - + CASE + SUM ( 18 ) WHEN + - COUNT ( * ) - MAX ( 61 ) + 97 THEN NULL WHEN - COUNT ( * ) / + 27 - - 59 + + - CAST ( NULL AS INTEGER ) THEN CASE - 33 WHEN - - 70 * 4 / - MAX ( - 20 ) - + - 73 THEN + 4 * - 73 + - 66 / 47 WHEN CAST ( NULL AS REAL ) THEN + - 16 WHEN 85 - - 58 THEN 20 * 62 END * 81 ELSE - 67 END THEN NULL END AS col0
----
98
NULL

query I rowsort
SELECT ALL + ( 4 )
----
4

query I rowsort
SELECT + ( + 0 ) * + + 70 + - 44 * - - 46 col1
----
-2024

query I rowsort
SELECT + 99 * + + 50 + - 14 AS col2
----
4936

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT DISTINCT + CASE 47 WHEN COALESCE ( + - 64, - AVG ( - 34 ) ) + - 11 + + + COUNT( * ) + - - 11 / - COUNT( * ) THEN NULL WHEN - 92 THEN - 69 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT + CASE 47 WHEN COALESCE ( + - 64, - AVG ( - 34 ) ) + - 11 + + + COUNT ( * ) + - - 11 / - COUNT ( * ) THEN NULL WHEN - 92 THEN - 69 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 22 + 25 + - 92 + + - 85 * 94 + + 21 + + 76 AS col0
----
-7982

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL COUNT( * ) * 78
----
78

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL COUNT ( * ) * 78
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-4018
SELECT DISTINCT + 32 DIV + + 14, + 9 AS col1
----
2
9

skipif mysql # not compatible
query II rowsort label-4018
SELECT DISTINCT + 32 / + + 14, + 9 AS col1
----
2
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4019
SELECT DISTINCT 99 * - 39 DIV COUNT( + 61 ) + + + MIN( - + 32 )
----
-3893

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT 99 * - 39 / COUNT ( + 61 ) + + + MIN ( - + 32 )
----
-3893

query I rowsort
SELECT + 37 * 27 + - 24 AS col0
----
975

query I rowsort
SELECT + - 87 + - 63 + - 77 + - - 43 * 65 + + 69
----
2637

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - SUM( ALL 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4022
SELECT - SUM ( ALL 35 )
----
-35

query I rowsort
SELECT ALL + 7 + + - 24
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL - 96 + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL - 96 + - COUNT ( * )
----
-97

query I rowsort
SELECT ALL + + 49 + 55
----
104

query I rowsort
SELECT ALL 43 + - - 58 + - 15 AS col1
----
86

query I rowsort
SELECT ALL 57 + - - 22 + 18 - + 29 * 56
----
-1527

query I rowsort
SELECT 16 + 35 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT DISTINCT MIN( ALL - 42 ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT MIN ( ALL - 42 ) col2
----
-42

query I rowsort
SELECT DISTINCT + 13 + - 3 col0
----
10

query I rowsort
SELECT - + 8 col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL + 80 - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + 80 - - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT DISTINCT NULLIF ( - + 47, + 11 ) * + + 83 + + COUNT( * ) AS col0
----
-3900

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT NULLIF ( - + 47, + 11 ) * + + 83 + + COUNT ( * ) AS col0
----
-3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT 41 * CAST( - 49 AS SIGNED )
----
-2009

skipif mysql # not compatible
query I rowsort label-4034
SELECT 41 * CAST ( - 49 AS INTEGER )
----
-2009

onlyif mysql # aggregate syntax: 
query II rowsort label-4035
SELECT 85 * + COUNT( * ) + 33 * - 26 AS col0, + 81 + 46 AS col0
----
-773
127

skipif mysql # not compatible
query II rowsort label-4035
SELECT 85 * + COUNT ( * ) + 33 * - 26 AS col0, + 81 + 46 AS col0
----
-773
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4036
SELECT ALL 46 * - MAX( 52 ) + + 94 + - 99 * - CAST( NULL AS SIGNED ) * + + 13 / - 52 + - COUNT( * ) + - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL 46 * - MAX ( 52 ) + + 94 + - 99 * - CAST ( NULL AS INTEGER ) * + + 13 / - 52 + - COUNT ( * ) + - 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT 85 * - - NULLIF ( + - COUNT( * ), MIN( 86 ) - + 13 + ( + 35 ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT 85 * - - NULLIF ( + - COUNT ( * ), MIN ( 86 ) - + 13 + ( + 35 ) ) AS col0
----
-85

query I rowsort
SELECT ALL + 90 col2
----
90

query I rowsort
SELECT DISTINCT ( - 12 ) AS col1
----
-12

query I rowsort
SELECT ALL + 44 - + 50
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT CAST( NULL AS SIGNED ) * + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT CAST ( NULL AS INTEGER ) * + 43 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4042
SELECT ALL CAST( NULL AS SIGNED ) * - + ( CASE 50 WHEN + 19 THEN - - COUNT( * ) WHEN - COUNT( * ) + 95 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL CAST ( NULL AS INTEGER ) * - + ( CASE 50 WHEN + 19 THEN - - COUNT ( * ) WHEN - COUNT ( * ) + 95 THEN NULL END )
----
NULL

query II rowsort
SELECT ALL 49, + 80 + 26 + - 41 AS col1
----
49
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4044
SELECT ALL - COUNT( * ), + 57 + 54 * + 0 AS col1
----
-1
57

skipif mysql # not compatible
query II rowsort label-4044
SELECT ALL - COUNT ( * ), + 57 + 54 * + 0 AS col1
----
-1
57

query I rowsort
SELECT 29 * - + 65 AS col0
----
-1885

query I rowsort
SELECT 77 * - 75
----
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT 81 * + COUNT( * ) - - 70
----
151

skipif mysql # not compatible
query I rowsort label-4047
SELECT 81 * + COUNT ( * ) - - 70
----
151

query I rowsort
SELECT ALL - 9 * - 4
----
36

query I rowsort
SELECT 54 * 55
----
2970

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4050
SELECT DISTINCT 52 DIV ( CAST( + + 56 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT 52 / ( CAST ( + + 56 AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT 64 * - COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4051
SELECT 64 * - COUNT ( * ) AS col2
----
-64

query I rowsort
SELECT ALL 87 * - 48
----
-4176

onlyif mysql # aggregate syntax: 
query II rowsort label-4053
SELECT DISTINCT - COUNT( * ), - 33 AS col0
----
-1
-33

skipif mysql # not compatible
query II rowsort label-4053
SELECT DISTINCT - COUNT ( * ), - 33 AS col0
----
-1
-33

query I rowsort
SELECT ALL + 46 * + - 67 AS col2
----
-3082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT CAST( MAX( + + 15 ) AS SIGNED ) * + - CAST( NULL AS SIGNED ) * - + 28 + NULLIF ( 95, 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT CAST ( MAX ( + + 15 ) AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * - + 28 + NULLIF ( 95, 71 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT 89 * + + CAST( + 7 AS SIGNED ) * ( - - 87 ) * + + 23 AS col0
----
1246623

skipif mysql # not compatible
query I rowsort label-4056
SELECT 89 * + + CAST ( + 7 AS INTEGER ) * ( - - 87 ) * + + 23 AS col0
----
1246623

query I rowsort
SELECT DISTINCT + 37 + + + ( + 24 ) + + 68
----
129

query II rowsort
SELECT ALL - 73 + - 63 - + 11 col0, 37
----
-147
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL + 19 + + 90 * 93 * + 14 * COALESCE ( - 17, + + ( - COUNT( * ) ) - COUNT( DISTINCT - 87 ), 75 ) * - 39 - MAX( + - 20 )
----
77690379

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + 19 + + 90 * 93 * + 14 * COALESCE ( - 17, + + ( - COUNT ( * ) ) - COUNT ( DISTINCT - 87 ), 75 ) * - 39 - MAX ( + - 20 )
----
77690379

query II rowsort
SELECT 6 AS col2, 8 AS col1
----
6
8

query I rowsort
SELECT DISTINCT - - 51 + + 71 - + - 38
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-4062
SELECT DISTINCT + 3 + - 7 + - COUNT( * ) AS col1, 99
----
-5
99

skipif mysql # not compatible
query II rowsort label-4062
SELECT DISTINCT + 3 + - 7 + - COUNT ( * ) AS col1, 99
----
-5
99

query I rowsort
SELECT ALL - 44 + + - ( 64 ) + + + 26
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4064
SELECT 0 * CASE WHEN NOT NULL = - 87 THEN NULL ELSE + + ( + 76 ) + + 57 + + + COUNT( * ) + + - 70 DIV - 44 * 51 + + COALESCE ( + CAST( NULL AS SIGNED ), - 82, 84 ) DIV + MAX( ALL + 33 ) END
----
0

skipif mysql # not compatible
query I rowsort label-4064
SELECT 0 * CASE WHEN NOT NULL = - 87 THEN NULL ELSE + + ( + 76 ) + + 57 + + + COUNT ( * ) + + - 70 / - 44 * 51 + + COALESCE ( + CAST ( NULL AS INTEGER ), - 82, 84 ) / + MAX ( ALL + 33 ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL - COUNT( * ) * + 8
----
-8

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - COUNT ( * ) * + 8
----
-8

query I rowsort
SELECT 87 + + 59 * 7 * - 62 AS col1
----
-25519

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4067
SELECT COUNT( * ) DIV MIN( + 12 ), + 48 AS col1
----
0
48

skipif mysql # not compatible
query II rowsort label-4067
SELECT COUNT ( * ) / MIN ( + 12 ), + 48 AS col1
----
0
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4068
SELECT ALL - + CAST( NULL AS SIGNED ) - - COUNT( * ) + AVG ( + + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - + CAST ( NULL AS INTEGER ) - - COUNT ( * ) + AVG ( + + 92 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4069
SELECT + MAX( + 46 ) + - - NULLIF ( + 39, + + CASE + COALESCE ( - 76, - COALESCE ( + 36, + 62 / + 11 + - 59, - 22 ) * + + 44, 52 ) WHEN 17 THEN NULL WHEN ( + COUNT( * ) ) THEN + 83 * + 54 ELSE NULL END + 89 ) + 12 + - 24 * + + 3 + - 12 AS col0, ( 81 ) * + + 85 + + 96 * + + CAST( + 86 AS SIGNED ) * + 93 * 33
----
13
25344549

skipif mysql # not compatible
query II rowsort label-4069
SELECT + MAX ( + 46 ) + - - NULLIF ( + 39, + + CASE + COALESCE ( - 76, - COALESCE ( + 36, + 62 / + 11 + - 59, - 22 ) * + + 44, 52 ) WHEN 17 THEN NULL WHEN ( + COUNT ( * ) ) THEN + 83 * + 54 ELSE NULL END + 89 ) + 12 + - 24 * + + 3 + - 12 AS col0, ( 81 ) * + + 85 + + 96 * + + CAST ( + 86 AS INTEGER ) * + 93 * 33
----
13
25344549

onlyif mysql # aggregate syntax: 
query II rowsort label-4070
SELECT ALL + 9 - SUM( - 0 ) AS col2, + 76 AS col1
----
9
76

skipif mysql # not compatible
query II rowsort label-4070
SELECT ALL + 9 - SUM ( - 0 ) AS col2, + 76 AS col1
----
9
76

query I rowsort
SELECT - 77 + - 57
----
-134

query I rowsort
SELECT 10 + - 86
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - CASE - 56 WHEN + 89 + - + 49 THEN + + 67 ELSE - 62 * 71 END - - COUNT( * ) + + 49 col0
----
4452

skipif mysql # not compatible
query I rowsort label-4073
SELECT - CASE - 56 WHEN + 89 + - + 49 THEN + + 67 ELSE - 62 * 71 END - - COUNT ( * ) + + 49 col0
----
4452

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT - MAX( + + 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT - MAX ( + + 39 ) AS col2
----
-39

query I rowsort
SELECT 56 + 32 AS col0
----
88

query I rowsort
SELECT ALL + 48 - - 80 + + 34
----
162

query I rowsort
SELECT DISTINCT + 15 col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - 18 + - - 24 - - + 85 * - + 22 * 51 * + - MIN( ALL - - 83 ) + 38 * + - 95
----
7912106

skipif mysql # not compatible
query I rowsort label-4078
SELECT - 18 + - - 24 - - + 85 * - + 22 * 51 * + - MIN ( ALL - - 83 ) + 38 * + - 95
----
7912106

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4079
SELECT ALL + CASE + COALESCE ( + - 61, + AVG ( DISTINCT - ( 21 ) ) ) WHEN + + CAST( NULL AS DECIMAL ) THEN NULL ELSE + - COUNT( * ) END DIV + + 81 * - 35 DIV + 31 + ( - COUNT( * ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL + CASE + COALESCE ( + - 61, + AVG ( DISTINCT - ( 21 ) ) ) WHEN + + CAST ( NULL AS REAL ) THEN NULL ELSE + - COUNT ( * ) END / + + 81 * - 35 / + 31 + ( - COUNT ( * ) ) * - COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT + 27 DIV - + 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT + 27 / - + 34 AS col0
----
0

query I rowsort
SELECT 48 + + + 88 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ( - 50 ) + MIN( ALL - 85 )
----
-135

skipif mysql # not compatible
query I rowsort label-4082
SELECT ( - 50 ) + MIN ( ALL - 85 )
----
-135

query II rowsort
SELECT ALL 46 AS col1, 73 AS col0
----
46
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT SUM( - 95 ) + - 2 + + 38 + - COUNT( * ) * + 37 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-4084
SELECT SUM ( - 95 ) + - 2 + + 38 + - COUNT ( * ) * + 37 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT 32 * - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-4085
SELECT 32 * - COUNT ( * )
----
-32

query I rowsort
SELECT 74 * + 64
----
4736

onlyif mysql # DIV for integer division: 
query II rowsort label-4087
SELECT DISTINCT 65 * 53 AS col1, 79 DIV + 36 col1
----
3445
2

skipif mysql # not compatible
query II rowsort label-4087
SELECT DISTINCT 65 * 53 AS col1, 79 / + 36 col1
----
3445
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT - COUNT( - 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-4088
SELECT - COUNT ( - 54 )
----
-1

query I rowsort
SELECT ALL 10 * - + NULLIF ( + 71, - COALESCE ( 25, - 60 * + 22 ) ) + + 55 AS col0
----
-655

query I rowsort
SELECT ALL 11 * - - 49 AS col1
----
539

query I rowsort
SELECT 64 * 94
----
6016

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT SUM( DISTINCT + 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4092
SELECT SUM ( DISTINCT + 55 ) AS col2
----
55

query II rowsort
SELECT ALL - 9, 18 AS col2
----
-9
18

query I rowsort
SELECT DISTINCT - CASE 47 WHEN + ( + ( + - 87 ) ) THEN 39 * + 70 / - - 84 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT 54 DIV + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4095
SELECT 54 / + COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT SUM( ALL 79 ), + 78 AS col2
----
79
78

skipif mysql # not compatible
query II rowsort label-4096
SELECT SUM ( ALL 79 ), + 78 AS col2
----
79
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4097
SELECT COUNT( DISTINCT 52 ) AS col2, CAST( + 28 AS SIGNED ) * + COUNT( * )
----
1
28

skipif mysql # not compatible
query II rowsort label-4097
SELECT COUNT ( DISTINCT 52 ) AS col2, CAST ( + 28 AS INTEGER ) * + COUNT ( * )
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL MAX( 26 ) * + 72 + - 12
----
1860

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL MAX ( 26 ) * + 72 + - 12
----
1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4099
SELECT ALL + CASE - - 52 WHEN CAST( + - 81 AS SIGNED ) THEN NULL ELSE - 51 * COUNT( * ) * ( + 47 ) + + - 28 * + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + CASE - - 52 WHEN CAST ( + - 81 AS INTEGER ) THEN NULL ELSE - 51 * COUNT ( * ) * ( + 47 ) + + - 28 * + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query II rowsort
SELECT - 71 col2, 72
----
-71
72

query I rowsort
SELECT ALL - 15 * - 61
----
915

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT CASE 73 WHEN 80 * MIN( + 96 ) THEN NULL WHEN + + 88 THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT CASE 73 WHEN 80 * MIN ( + 96 ) THEN NULL WHEN + + 88 THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL + 66 AS col2, - 69 + 70 + + 29 * - 19 + - - 21 * - 18 + + ( - - 24 ) AS col0
----
66
-904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4104
SELECT + + CASE + - 94 WHEN - CAST( NULL AS SIGNED ) THEN - 27 * 66 * + 38 + MIN( - 60 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT + + CASE + - 94 WHEN - CAST ( NULL AS INTEGER ) THEN - 27 * 66 * + 38 + MIN ( - 60 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL + COUNT( * ) - + 42 + - 51 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + COUNT ( * ) - + 42 + - 51 AS col2
----
-92

query I rowsort
SELECT - 90 * + + 56 + + 92 AS col2
----
-4948

query I rowsort
SELECT + 61 * + ( 65 ) * + - 46 + - ( + 84 )
----
-182474

query II rowsort
SELECT - 94, 6 + - + 38 AS col0
----
-94
-32

query I rowsort
SELECT - 35 + + 5 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4110
SELECT COUNT( * ), + ( + + 49 ) * - - 45 col0
----
1
2205

skipif mysql # not compatible
query II rowsort label-4110
SELECT COUNT ( * ), + ( + + 49 ) * - - 45 col0
----
1
2205

query II rowsort
SELECT ALL 67 AS col0, 39
----
67
39

query I rowsort
SELECT ALL - 72 - + 97 AS col0
----
-169

query II rowsort
SELECT DISTINCT 73, 54 AS col1
----
73
54

query II rowsort
SELECT DISTINCT 84 AS col2, + COALESCE ( + 31, - 14 )
----
84
31

query I rowsort
SELECT ALL CASE WHEN NOT + 4 IS NULL THEN 50 END
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL - COUNT( * ) * + - 59
----
59

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - COUNT ( * ) * + - 59
----
59

query I rowsort
SELECT - 36 * - 59 * 3
----
6372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4118
SELECT + COUNT( * ) * - CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) * + + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT + COUNT ( * ) * - CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) * + + 60 AS col1
----
NULL

query I rowsort
SELECT - 53 - 39 col2
----
-92

query I rowsort
SELECT DISTINCT + 8 * + + 37 * 82
----
24272

query I rowsort
SELECT ALL - 54 + ( - 52 ) AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - COUNT( * ) * + 34
----
-34

skipif mysql # not compatible
query I rowsort label-4122
SELECT - COUNT ( * ) * + 34
----
-34

query I rowsort
SELECT DISTINCT - ( 19 ) * - 78 - + 66 + 99
----
1515

query I rowsort
SELECT DISTINCT + 9 + + + 2 - 75 AS col0
----
-64

query I rowsort
SELECT ALL 93 + + 17 + + 92
----
202

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4126
SELECT DISTINCT 52 DIV + MAX( 88 ) * - + 52 + + COUNT( * ) - 80 - + - 45 AS col0, - 99 - + 59 DIV ( - COUNT( * ) )
----
-34
-40

skipif mysql # not compatible
query II rowsort label-4126
SELECT DISTINCT 52 / + MAX ( 88 ) * - + 52 + + COUNT ( * ) - 80 - + - 45 AS col0, - 99 - + 59 / ( - COUNT ( * ) )
----
-34
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4127
SELECT + CASE - 44 WHEN + - 83 + 33 THEN NULL WHEN - 58 DIV 31 THEN NULL WHEN - - 66 THEN - + 35 * + + 36 * - 78 DIV - 78 + 26 * + 38 ELSE 82 END DIV + - COUNT( * ) * NULLIF ( - - COUNT( 11 ), - - COALESCE ( 47, - ( COUNT( * ) ) ) * - 5 * + - 97 - - MAX( DISTINCT + - 75 ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4127
SELECT + CASE - 44 WHEN + - 83 + 33 THEN NULL WHEN - 58 / 31 THEN NULL WHEN - - 66 THEN - + 35 * + + 36 * - 78 / - 78 + 26 * + 38 ELSE 82 END / + - COUNT ( * ) * NULLIF ( - - COUNT ( 11 ), - - COALESCE ( 47, - ( COUNT ( * ) ) ) * - 5 * + - 97 - - MAX ( DISTINCT + - 75 ) ) AS col0
----
-82

query I rowsort
SELECT ( 50 )
----
50

query I rowsort
SELECT + ( 31 ) col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT ALL 30 DIV 56 + + 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL 30 / 56 + + 18 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4131
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) * - 11 * COUNT( * ) * - - 21 + - COUNT( * ) + 28, - COUNT( DISTINCT + 22 ) * + COALESCE ( - 64, - - 9 + - 2 ) AS col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-4131
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 11 * COUNT ( * ) * - - 21 + - COUNT ( * ) + 28, - COUNT ( DISTINCT + 22 ) * + COALESCE ( - 64, - - 9 + - 2 ) AS col2
----
NULL
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT DISTINCT - 1 * + CASE CAST( - 18 AS SIGNED ) WHEN 3 THEN NULL WHEN 70 THEN 54 * 56 / 38 WHEN + + 72 THEN NULL WHEN - 1 THEN - 47 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT - 1 * + CASE CAST ( - 18 AS INTEGER ) WHEN 3 THEN NULL WHEN 70 THEN 54 * 56 / 38 WHEN + + 72 THEN NULL WHEN - 1 THEN - 47 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL + MAX( - - 17 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + MAX ( - - 17 ) col1
----
17

query II rowsort
SELECT ALL + 59 * + 50 - - 7 - - + 17 * + - 70 AS col0, + 85 AS col2
----
1767
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL COUNT( * ) * - 91
----
-91

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL COUNT ( * ) * - 91
----
-91

query I rowsort
SELECT ALL + + 89 AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT DISTINCT 94 DIV 87
----
1

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT 94 / 87
----
1

query II rowsort
SELECT + 64 + - 38, - 63 + + 10 AS col1
----
26
-53

query I rowsort
SELECT + - ( 74 ) * - + 41 AS col0
----
3034

query II rowsort
SELECT ALL + + ( + ( 83 ) ) AS col2, 90 AS col2
----
83
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT CASE + 16 WHEN + + COALESCE ( + 81, + 75 + + + 7 ) THEN NULL ELSE - - 94 END * - 59 * COUNT( * )
----
-5546

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT CASE + 16 WHEN + + COALESCE ( + 81, + 75 + + + 7 ) THEN NULL ELSE - - 94 END * - 59 * COUNT ( * )
----
-5546

query I rowsort
SELECT + 53 + + 51 * + 26
----
1379

query II rowsort
SELECT DISTINCT - - 37 * + ( + 28 ) AS col2, - 67 col1
----
1036
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT MIN( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4144
SELECT MIN ( - 33 )
----
-33

query I rowsort
SELECT ALL - 22 + - 61 col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4146
SELECT + 30 + - 96 + - 17 * ( + 98 ) + - 56 DIV - ( MAX( 8 ) ) + COUNT( * ) AS col2
----
-1724

skipif mysql # not compatible
query I rowsort label-4146
SELECT + 30 + - 96 + - 17 * ( + 98 ) + - 56 / - ( MAX ( 8 ) ) + COUNT ( * ) AS col2
----
-1724

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL COUNT( * ) * 45 * COALESCE ( 72, 36 ) col2
----
3240

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL COUNT ( * ) * 45 * COALESCE ( 72, 36 ) col2
----
3240

query I rowsort
SELECT - 6 + + 69 col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4149
SELECT ALL 88 + + 50 + SUM( DISTINCT 43 ) DIV - + 11 AS col2
----
135

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL 88 + + 50 + SUM ( DISTINCT 43 ) / - + 11 AS col2
----
135

query II rowsort
SELECT - 58 AS col0, + 51 + + 86
----
-58
137

onlyif mysql # aggregate syntax: 
query II rowsort label-4151
SELECT - 9 col2, + COUNT( * )
----
-9
1

skipif mysql # not compatible
query II rowsort label-4151
SELECT - 9 col2, + COUNT ( * )
----
-9
1

query I rowsort
SELECT - 76 + + 75
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4153
SELECT ALL ( CAST( + 30 AS SIGNED ) ), - 61 AS col1
----
30
-61

skipif mysql # not compatible
query II rowsort label-4153
SELECT ALL ( CAST ( + 30 AS INTEGER ) ), - 61 AS col1
----
30
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT - COUNT( * ) DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-4154
SELECT - COUNT ( * ) / - 58
----
0

query I rowsort
SELECT - ( + 19 ) + + 92
----
73

query I rowsort
SELECT ALL + 87 + + 0 * + 5 AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4157
SELECT 6 AS col1, 19 - + - COUNT( * ) * + + 31 * - + 98 AS col1
----
6
-3019

skipif mysql # not compatible
query II rowsort label-4157
SELECT 6 AS col1, 19 - + - COUNT ( * ) * + + 31 * - + 98 AS col1
----
6
-3019

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT 83 DIV 68 * - + 84 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4158
SELECT 83 / 68 * - + 84 AS col1
----
-84

query I rowsort
SELECT ALL + 87 * - + 35
----
-3045

query I rowsort
SELECT 92 * + - 72 AS col1
----
-6624

query II rowsort
SELECT DISTINCT - 66 AS col2, - 13 - + + 68
----
-66
-81

query II rowsort
SELECT + 87, ( - - 59 ) AS col2
----
87
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT DISTINCT - 76, COUNT( * ) * - 14 AS col2
----
-76
-14

skipif mysql # not compatible
query II rowsort label-4163
SELECT DISTINCT - 76, COUNT ( * ) * - 14 AS col2
----
-76
-14

query I rowsort
SELECT ALL - - COALESCE ( - 4, + + 59, - 18 ) AS col0
----
-4

query I rowsort
SELECT + - 36 col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT - 81 + - 85 + + 0 + + COUNT( * )
----
-165

skipif mysql # not compatible
query I rowsort label-4166
SELECT - 81 + - 85 + + 0 + + COUNT ( * )
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4167
SELECT + CASE - 94 WHEN - 13 + + CAST( - + 5 AS SIGNED ) + + 62 THEN + COUNT( * ) WHEN + COUNT( * ) THEN + - 81 + 5 + + COUNT( * ) * - + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT + CASE - 94 WHEN - 13 + + CAST ( - + 5 AS INTEGER ) + + 62 THEN + COUNT ( * ) WHEN + COUNT ( * ) THEN + - 81 + 5 + + COUNT ( * ) * - + 2 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT SUM( DISTINCT - - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-4168
SELECT SUM ( DISTINCT - - 85 )
----
85

query I rowsort
SELECT 85 * 52
----
4420

query I rowsort
SELECT + 4 * - 6
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT - 6 * MIN( + 99 ) + - - 91
----
-503

skipif mysql # not compatible
query I rowsort label-4171
SELECT - 6 * MIN ( + 99 ) + - - 91
----
-503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4172
SELECT DISTINCT 83 * - 15 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT 83 * - 15 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 1 * - + 1 * + - 15
----
15

query I rowsort
SELECT - 70 * - 7
----
490

query I rowsort
SELECT ALL + + 22 * + 95
----
2090

query II rowsort
SELECT ALL - + NULLIF ( - + 6, + 67 ) AS col0, 71
----
6
71

query II rowsort
SELECT ALL - - 23 AS col2, 73 * - 93 * + ( + CASE - - 83 WHEN 35 * - + 52 - + 79 - CASE - 50 WHEN + + 40 * 96 THEN + ( - 65 ) + + + 61 END THEN + 39 / 4 + + 48 ELSE NULL END ) AS col1
----
23
NULL

query I rowsort
SELECT - NULLIF ( ( - 66 ), + - 1 / - 70 ) * 63 + + 55 * - 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT + 30 * 69 + + + COALESCE ( COUNT( ALL - - 81 ), + - 97 ) AS col2
----
2071

skipif mysql # not compatible
query I rowsort label-4179
SELECT + 30 * 69 + + + COALESCE ( COUNT ( ALL - - 81 ), + - 97 ) AS col2
----
2071

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - MIN( + + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-4180
SELECT - MIN ( + + 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4181
SELECT DISTINCT 85 + ( + 59 ) DIV + MIN( DISTINCT + 83 ) * - ( - MAX( ALL - - 12 ) ) + - - 7 + - + 23 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT 85 + ( + 59 ) / + MIN ( DISTINCT + 83 ) * - ( - MAX ( ALL - - 12 ) ) + - - 7 + - + 23 AS col2
----
69

query I rowsort
SELECT ALL - 20 + - - 0 + ( + - ( - 12 ) ) - - 61 * - 0
----
-8

query II rowsort
SELECT 93, - 7 col0
----
93
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4184
SELECT + 73 * + 66 * + - CAST( - NULLIF ( - CAST( - 53 AS SIGNED ), COALESCE ( + 31, + + 35, + + ( - 0 ) * + MIN( DISTINCT + 69 ) + 52 * MIN( ALL + 54 ) * - 99 + - COUNT( * ) + + - CASE + - 0 WHEN - 55 THEN NULL WHEN - 62 * + ( - 64 ) + + 21 - - - 85 * + CAST( NULL AS SIGNED ) + - 63 THEN NULL WHEN 57 + 42 THEN - 63 END * + 87 * + - 74 + - - 21 + - 32 + + + COALESCE ( COUNT( * ), 11, 57 + - 83 * - 5 * 37 ), 63 * 11 ) * + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
255354

skipif mysql # not compatible
query I rowsort label-4184
SELECT + 73 * + 66 * + - CAST ( - NULLIF ( - CAST ( - 53 AS INTEGER ), COALESCE ( + 31, + + 35, + + ( - 0 ) * + MIN ( DISTINCT + 69 ) + 52 * MIN ( ALL + 54 ) * - 99 + - COUNT ( * ) + + - CASE + - 0 WHEN - 55 THEN NULL WHEN - 62 * + ( - 64 ) + + 21 - - - 85 * + CAST ( NULL AS INTEGER ) + - 63 THEN NULL WHEN 57 + 42 THEN - 63 END * + 87 * + - 74 + - - 21 + - 32 + + + COALESCE ( COUNT ( * ), 11, 57 + - 83 * - 5 * 37 ), 63 * 11 ) * + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
255354

onlyif mysql # DIV for integer division: 
query I rowsort label-4185
SELECT DISTINCT 42 DIV - 22 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT 42 / - 22 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT CAST( 62 AS SIGNED ) + - 0
----
62

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT CAST ( 62 AS INTEGER ) + - 0
----
62

query I rowsort
SELECT ALL 18 + - 73 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT ALL + MIN( ALL CAST( NULL AS SIGNED ) ) + - COUNT( 74 ) + + - CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + MIN ( ALL CAST ( NULL AS INTEGER ) ) + - COUNT ( 74 ) + + - CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 82 * - 68 AS col1
----
-5576

query I rowsort
SELECT DISTINCT 17 * + 73 AS col2
----
1241

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT ALL 34 - + 61 DIV - 29
----
36

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL 34 - + 61 / - 29
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4192
SELECT DISTINCT + MIN( DISTINCT - - ( - 97 ) ) - - COUNT( * ) AS col0, 82 AS col0
----
-96
82

skipif mysql # not compatible
query II rowsort label-4192
SELECT DISTINCT + MIN ( DISTINCT - - ( - 97 ) ) - - COUNT ( * ) AS col0, 82 AS col0
----
-96
82

query I rowsort
SELECT DISTINCT 81 * - 88 * + 98 AS col1
----
-698544

onlyif mysql # aggregate syntax: 
query II rowsort label-4194
SELECT 99 * COUNT( * ) AS col2, - 38 AS col0
----
99
-38

skipif mysql # not compatible
query II rowsort label-4194
SELECT 99 * COUNT ( * ) AS col2, - 38 AS col0
----
99
-38

query I rowsort
SELECT DISTINCT + 47 * + - 92
----
-4324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4196
SELECT DISTINCT COUNT( * ) - ( + - 1 ) DIV + - 9
----
1

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT COUNT ( * ) - ( + - 1 ) / + - 9
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4197
SELECT CAST( - + AVG ( DISTINCT + - 76 ) AS SIGNED ) * 35 * + - 79 DIV - COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) )
----
-210140

skipif mysql # not compatible
query I rowsort label-4197
SELECT CAST ( - + AVG ( DISTINCT + - 76 ) AS INTEGER ) * 35 * + - 79 / - COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) )
----
-210140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4198
SELECT - ( + + 54 ) + - - CAST( + COUNT( * ) AS SIGNED ) + 50 + 51 + - - CASE + 42 WHEN + 39 * 72 * + - 29 + - 16 + ( + 19 ) * MAX( 52 ) * + + 7 + COUNT( * ) / + COUNT( * ) - + ( - - 35 ) + + - 67 THEN 97 WHEN + COUNT( * ) + - + 48 THEN - 7 * - + 91 * 82 WHEN 30 * - + 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT - ( + + 54 ) + - - CAST ( + COUNT ( * ) AS INTEGER ) + 50 + 51 + - - CASE + 42 WHEN + 39 * 72 * + - 29 + - 16 + ( + 19 ) * MAX ( 52 ) * + + 7 + COUNT ( * ) / + COUNT ( * ) - + ( - - 35 ) + + - 67 THEN 97 WHEN + COUNT ( * ) + - + 48 THEN - 7 * - + 91 * 82 WHEN 30 * - + 14 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL + - COUNT( * ) * - 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL + - COUNT ( * ) * - 40 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4200
SELECT + COUNT( * ) DIV + 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4200
SELECT + COUNT ( * ) / + 18 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT - CAST( - 85 AS SIGNED ) * - 18 AS col1
----
-1530

skipif mysql # not compatible
query I rowsort label-4201
SELECT - CAST ( - 85 AS INTEGER ) * - 18 AS col1
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL - - SUM( ALL - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - - SUM ( ALL - 79 )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT - 16 DIV + 91 + + 54
----
54

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 16 / + 91 + + 54
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4204
SELECT - CAST( COALESCE ( - COUNT( * ), + 45 DIV - 80 + 6 ) AS SIGNED ) DIV - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4204
SELECT - CAST ( COALESCE ( - COUNT ( * ), + 45 / - 80 + 6 ) AS INTEGER ) / - 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT - MAX( DISTINCT + 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT - MAX ( DISTINCT + 22 )
----
-22

query I rowsort
SELECT ALL + 10 + + - 47 * - 38
----
1796

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT + + ( - + ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4207
SELECT + + ( - + ( - COUNT ( * ) ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT + 21 DIV 31 + 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4208
SELECT + 21 / 31 + 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT + ( + - 98 ) + - COUNT( * ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4209
SELECT + ( + - 98 ) + - COUNT ( * ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT COUNT( * ) * + + 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT COUNT ( * ) * + + 31 AS col1
----
31

query I rowsort
SELECT ALL 94 + + 28
----
122

query I rowsort
SELECT DISTINCT NULLIF ( + - 97, - 40 ) AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT ( CASE - 28 WHEN + 27 THEN - AVG ( ALL + - 0 ) ELSE COUNT( ALL + 95 ) END ) * - CAST( + NULLIF ( CASE + 37 WHEN + - 86 THEN - 40 / 78 * CAST( NULL AS SIGNED ) END, - 7 ) AS SIGNED ) + + ( 76 ) - + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ( CASE - 28 WHEN + 27 THEN - AVG ( ALL + - 0 ) ELSE COUNT ( ALL + 95 ) END ) * - CAST ( + NULLIF ( CASE + 37 WHEN + - 86 THEN - 40 / 78 * CAST ( NULL AS INTEGER ) END, - 7 ) AS INTEGER ) + + ( 76 ) - + + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 74 AS col1, - 35
----
74
-35

query I rowsort
SELECT ALL 35 - - 87 AS col2
----
122

query I rowsort
SELECT + 46 * - 89
----
-4094

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4217
SELECT ALL 87 DIV COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL 87 / COUNT ( * ) AS col0
----
87

query I rowsort
SELECT + 93 + - 92 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT + 10 * + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4219
SELECT + 10 * + COUNT ( * )
----
10

query I rowsort
SELECT + 69 + 28
----
97

query I rowsort
SELECT ALL CASE + - 53 WHEN 58 / - 46 - - 69 + + 58 THEN + 22 * 95 * - + 43 + + 87 END * 54 AS col0
----
NULL

query I rowsort
SELECT + 87 * 88
----
7656

query II rowsort
SELECT ALL 78, 83 * - - 5 + 72 AS col2
----
78
487

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT + 63 + 8 * - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4224
SELECT + 63 + 8 * - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT - COUNT( + - 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-4225
SELECT - COUNT ( + - 87 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT + 39 + + + 30 DIV 95 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4226
SELECT + 39 + + + 30 / 95 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT - COUNT( + + 94 ) * + 62 + + 24 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4227
SELECT - COUNT ( + + 94 ) * + 62 + + 24 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-4228
SELECT DISTINCT ( 27 ) * + CASE - - 34 WHEN - 88 / + 5 + - + COUNT( * ) THEN NULL ELSE + + 10 END, + 64 AS col1
----
270
64

skipif mysql # not compatible
query II rowsort label-4228
SELECT DISTINCT ( 27 ) * + CASE - - 34 WHEN - 88 / + 5 + - + COUNT ( * ) THEN NULL ELSE + + 10 END, + 64 AS col1
----
270
64

query II rowsort
SELECT 23 AS col0, 93 * + - 77
----
23
-7161

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4230
SELECT 4 AS col1, 44 DIV + 79 * - - COUNT( * )
----
4
0

skipif mysql # not compatible
query II rowsort label-4230
SELECT 4 AS col1, 44 / + 79 * - - COUNT ( * )
----
4
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT - + COUNT( * ) * + 58 + - + 11 + - CASE + + ( 46 ) WHEN COUNT( * ) * - ( - + NULLIF ( NULLIF ( - NULLIF ( - + CAST( NULL AS SIGNED ), - 93 ), + 95 + - 67 * + 83 ), + 92 * - - 82 + + + 50 ) ) THEN NULL WHEN + 44 THEN NULL ELSE + - 3 * 63 + - 39 + 64 * + + ( + 36 ) END
----
-2145

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - + COUNT ( * ) * + 58 + - + 11 + - CASE + + ( 46 ) WHEN COUNT ( * ) * - ( - + NULLIF ( NULLIF ( - NULLIF ( - + CAST ( NULL AS INTEGER ), - 93 ), + 95 + - 67 * + 83 ), + 92 * - - 82 + + + 50 ) ) THEN NULL WHEN + 44 THEN NULL ELSE + - 3 * 63 + - 39 + 64 * + + ( + 36 ) END
----
-2145

query I rowsort
SELECT ALL + - 85
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4233
SELECT ALL + 2 * - 36 + - 66 DIV - + 71 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + 2 * - 36 + - 66 / - + 71 AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT ALL - 79 DIV + 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL - 79 / + 83 col1
----
0

query I rowsort
SELECT ALL + 12 col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT DISTINCT - 46 DIV - - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - 46 / - - 86 AS col0
----
0

query I rowsort
SELECT ALL COALESCE ( - - 10, + 95 * + 78 ) * 15 + - 9 - + 1
----
140

query I rowsort
SELECT + 29 + - + 69 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT ALL + NULLIF ( 77, + COUNT( - 98 ) - - + 90 + COUNT( * ) + + - 49 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL + NULLIF ( 77, + COUNT ( - 98 ) - - + 90 + COUNT ( * ) + + - 49 ) AS col0
----
77

query I rowsort
SELECT DISTINCT ( 3 ) * - 39 - - 14
----
-103

query I rowsort
SELECT - 0 * 74
----
0

query I rowsort
SELECT DISTINCT 29 * + + 8
----
232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4243
SELECT DISTINCT ( + COALESCE ( NULLIF ( COALESCE ( CASE 41 WHEN - + MIN( DISTINCT - 82 ) * + 59 * + 15 THEN + 90 + - 15 + + 42 END, 9, - 15 + NULLIF ( + MAX( 90 ), - 11 ) * - 43 ), + ( - 97 ) + + NULLIF ( - 7, 41 * - - AVG ( + - 3 ) DIV COUNT( * ) ) + - COALESCE ( + 23, - MAX( - ( 36 ) ) * 52 DIV + 93 DIV + 62 * 50 ) ), - + 46 * - - CAST( NULLIF ( - - 55, - + 60 ) AS SIGNED ) - ( + 72 ), - 35 DIV - 82 * + 46 ) )
----
9

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT ( + COALESCE ( NULLIF ( COALESCE ( CASE 41 WHEN - + MIN ( DISTINCT - 82 ) * + 59 * + 15 THEN + 90 + - 15 + + 42 END, 9, - 15 + NULLIF ( + MAX ( 90 ), - 11 ) * - 43 ), + ( - 97 ) + + NULLIF ( - 7, 41 * - - AVG ( + - 3 ) / COUNT ( * ) ) + - COALESCE ( + 23, - MAX ( - ( 36 ) ) * 52 / + 93 / + 62 * 50 ) ), - + 46 * - - CAST ( NULLIF ( - - 55, - + 60 ) AS INTEGER ) - ( + 72 ), - 35 / - 82 * + 46 ) )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4244
SELECT ALL CAST( 1 AS SIGNED ), 46 AS col1
----
1
46

skipif mysql # not compatible
query II rowsort label-4244
SELECT ALL CAST ( 1 AS INTEGER ), 46 AS col1
----
1
46

query II rowsort
SELECT - 74 AS col2, - 60 col2
----
-74
-60

query II rowsort
SELECT - 77 AS col0, + 30 + 14 * 4 AS col1
----
-77
86

query I rowsort
SELECT - 33 * 24 AS col2
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - NULLIF ( COALESCE ( ( + MIN( - - 87 ) ), - 62, NULLIF ( NULLIF ( + - 75, - 38 / + 13 + - 91 + + 88 + 22 * 41 * + COUNT( * ) ), 57 ) ), MIN( DISTINCT - 15 ) - ( - 73 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-4248
SELECT - NULLIF ( COALESCE ( ( + MIN ( - - 87 ) ), - 62, NULLIF ( NULLIF ( + - 75, - 38 / + 13 + - 91 + + 88 + 22 * 41 * + COUNT ( * ) ), 57 ) ), MIN ( DISTINCT - 15 ) - ( - 73 ) )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT + 57 * + - COUNT( * ) * + SUM( ALL + + 3 ), 57 AS col0
----
-171
57

skipif mysql # not compatible
query II rowsort label-4249
SELECT + 57 * + - COUNT ( * ) * + SUM ( ALL + + 3 ), 57 AS col0
----
-171
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4250
SELECT ALL 85 AS col0, - CASE - 10 WHEN COUNT( * ) / - 67 THEN NULL ELSE - 51 * - COUNT( * ) + - COUNT( * ) END AS col2
----
85
-50

skipif mysql # not compatible
query II rowsort label-4250
SELECT ALL 85 AS col0, - CASE - 10 WHEN COUNT ( * ) / - 67 THEN NULL ELSE - 51 * - COUNT ( * ) + - COUNT ( * ) END AS col2
----
85
-50

query II rowsort
SELECT - ( - - 4 ), + 72 + - 78 col0
----
-4
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4252
SELECT ALL 88 AS col2, - 66 + 45 / 56 + CAST( NULL AS SIGNED ) * - 27 * + - 88 AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL 88 AS col2, - 66 + 45 / 56 + CAST ( NULL AS INTEGER ) * - 27 * + - 88 AS col1
----
88
NULL

query I rowsort
SELECT DISTINCT + 84 + + ( + COALESCE ( - 32, 20, + 43 ) ) - + 69
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4254
SELECT ALL - 34 DIV + SUM( 47 ) DIV + COUNT( * ) DIV + 58 DIV - 30 col2
----
0

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - 34 / + SUM ( 47 ) / + COUNT ( * ) / + 58 / - 30 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4255
SELECT + + 29 DIV + 55 + + 96 + + - 92 * + + CAST( 53 AS SIGNED ) col1
----
-4780

skipif mysql # not compatible
query I rowsort label-4255
SELECT + + 29 / + 55 + + 96 + + - 92 * + + CAST ( 53 AS INTEGER ) col1
----
-4780

query I rowsort
SELECT ALL + - COALESCE ( + 59, - + 80 ) + + 57
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4257
SELECT DISTINCT 88 DIV COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT 88 / COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT DISTINCT + 26 * + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT + 26 * + + COUNT ( * )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4259
SELECT - SUM( + - 96 ) DIV + 98 + + 32 - 34 + COUNT( * ) DIV + CAST( - - 50 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-4259
SELECT - SUM ( + - 96 ) / + 98 + + 32 - 34 + COUNT ( * ) / + CAST ( - - 50 AS INTEGER )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT - + NULLIF ( + 38, 93 * + 86 + + 2 + 54 * 28 ) + - - 57 DIV 15 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4260
SELECT - + NULLIF ( + 38, 93 * + 86 + + 2 + 54 * 28 ) + - - 57 / 15 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + 50 - + ( + COUNT( * ) ) + ( + 75 ) col2
----
124

skipif mysql # not compatible
query I rowsort label-4261
SELECT + 50 - + ( + COUNT ( * ) ) + ( + 75 ) col2
----
124

query I rowsort
SELECT + 59 * - - 45 * + 7 * 72 * 16 AS col1
----
21409920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT + 20 DIV COALESCE ( - - COUNT( * ), - COUNT( * ) DIV + - 42 + - CAST( NULL AS SIGNED ) + + ( - - ( - CAST( NULL AS SIGNED ) ) ) * - + 6 * - 93 ) * + COUNT( * ) DIV 50 * + 76 + 13 * + - 62 * - 14 + NULLIF ( - COUNT( * ), - 32 * 4 * + 98 * 62 ) * - - 14
----
11270

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + 20 / COALESCE ( - - COUNT ( * ), - COUNT ( * ) / + - 42 + - CAST ( NULL AS INTEGER ) + + ( - - ( - CAST ( NULL AS INTEGER ) ) ) * - + 6 * - 93 ) * + COUNT ( * ) / 50 * + 76 + 13 * + - 62 * - 14 + NULLIF ( - COUNT ( * ), - 32 * 4 * + 98 * 62 ) * - - 14
----
11270

query I rowsort
SELECT + 77 * + 29
----
2233

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT ALL 53 DIV + 32 + - 41 + 44
----
4

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL 53 / + 32 + - 41 + 44
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT DISTINCT + MIN( DISTINCT + 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT + MIN ( DISTINCT + 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT ALL + + MAX( NULLIF ( + ( + 31 ), + 77 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + + MAX ( NULLIF ( + ( + 31 ), + 77 ) ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT + + 27 * COUNT( * ) col1
----
27

skipif mysql # not compatible
query I rowsort label-4268
SELECT + + 27 * COUNT ( * ) col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT DISTINCT - - 1 DIV - + 75 + - 11 - 18
----
-29

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT - - 1 / - + 75 + - 11 - 18
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT ALL + NULLIF ( 53, + 56 * - - 84 ) DIV - - 48 + - 99 + - 92 AS col1
----
-190

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL + NULLIF ( 53, + 56 * - - 84 ) / - - 48 + - 99 + - 92 AS col1
----
-190

query I rowsort
SELECT + - ( + 84 )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4272
SELECT ALL 65 DIV - - 82 * - + 36 - - 35 + 62 DIV + - 24 + + + MAX( ALL 86 ) * - MIN( ALL - 13 ) + + + 78
----
1229

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL 65 / - - 82 * - + 36 - - 35 + 62 / + - 24 + + + MAX ( ALL 86 ) * - MIN ( ALL - 13 ) + + + 78
----
1229

query I rowsort
SELECT ( - 61 ) AS col1
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-4274
SELECT ALL 59 DIV + ( 72 ), - 24 AS col1
----
0
-24

skipif mysql # not compatible
query II rowsort label-4274
SELECT ALL 59 / + ( 72 ), - 24 AS col1
----
0
-24

onlyif mysql # aggregate syntax: 
query III rowsort label-4275
SELECT ALL - NULLIF ( 61, - NULLIF ( - + 11, + 50 + COALESCE ( - COALESCE ( + - 70, - - 61 ), COUNT( DISTINCT + 77 ) ) ) + - 47 ) AS col1, 27 AS col1, - COUNT( * ) col0
----
-61
27
-1

skipif mysql # not compatible
query III rowsort label-4275
SELECT ALL - NULLIF ( 61, - NULLIF ( - + 11, + 50 + COALESCE ( - COALESCE ( + - 70, - - 61 ), COUNT ( DISTINCT + 77 ) ) ) + - 47 ) AS col1, 27 AS col1, - COUNT ( * ) col0
----
-61
27
-1

query I rowsort
SELECT ALL + 32 * - 68 * + 24 AS col1
----
-52224

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4277
SELECT CASE - 90 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 94 THEN - 4 * - + CAST( NULL AS DECIMAL ) * 60 * + 31 ELSE NULL END + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT CASE - 90 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 94 THEN - 4 * - + CAST ( NULL AS REAL ) * 60 * + 31 ELSE NULL END + - 12
----
NULL

query I rowsort
SELECT DISTINCT 17 * - 56
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT 11 * + ( + 72 ) * - + MIN( ALL - - 1 ) AS col2
----
-792

skipif mysql # not compatible
query I rowsort label-4279
SELECT 11 * + ( + 72 ) * - + MIN ( ALL - - 1 ) AS col2
----
-792

query I rowsort
SELECT 92 + 57 + + - 39 AS col1
----
110

query I rowsort
SELECT 27 * 17
----
459

query I rowsort
SELECT 1 * + ( + 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT 37 * NULLIF ( + ( + - COUNT( * ) ), + 51 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4283
SELECT 37 * NULLIF ( + ( + - COUNT ( * ) ), + 51 ) AS col0
----
-37

query I rowsort
SELECT 8 + - 7 + + 2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT ALL + CAST( - ( - 17 ) AS SIGNED ) + + 13
----
30

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + CAST ( - ( - 17 ) AS INTEGER ) + + 13
----
30

query I rowsort
SELECT 17 + + - 64 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL - ( - SUM( - 28 ) ) + - 40 + - - 90 + MAX( DISTINCT 8 )
----
30

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL - ( - SUM ( - 28 ) ) + - 40 + - - 90 + MAX ( DISTINCT 8 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4288
SELECT ALL 38 + - + COUNT( * ) DIV + ( + + 58 ) * COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL 38 + - + COUNT ( * ) / + ( + + 58 ) * COUNT ( * )
----
38

query I rowsort
SELECT ( - 86 ) col0
----
-86

query I rowsort
SELECT DISTINCT - - ( 97 ) * 8 + - 78
----
698

query I rowsort
SELECT ALL 51 + + + 45 col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT ALL - CAST( NULL AS SIGNED ) + - NULLIF ( - CAST( NULL AS SIGNED ), + - 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL - CAST ( NULL AS INTEGER ) + - NULLIF ( - CAST ( NULL AS INTEGER ), + - 78 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT - 65 * 18 DIV NULLIF ( + 80, + + ( + + 73 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-4293
SELECT - 65 * 18 / NULLIF ( + 80, + + ( + + 73 ) )
----
-14

query I rowsort
SELECT 75 + + - 67 + - 51 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4295
SELECT COUNT( DISTINCT 83 ), - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4295
SELECT COUNT ( DISTINCT 83 ), - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL - 53 + - + COALESCE ( + 86, - 81 ) + - 17 - + - ( + 5 ) * + COUNT( * ) * + 84 + - 85 col2
----
179

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - 53 + - + COALESCE ( + 86, - 81 ) + - 17 - + - ( + 5 ) * + COUNT ( * ) * + 84 + - 85 col2
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT - ( + - ( + + MIN( CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT - ( + - ( + + MIN ( CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL - 3 + - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL - 3 + - - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4299
SELECT ALL - COALESCE ( + CASE - 55 WHEN - COUNT( * ) * COUNT( * ) DIV - COUNT( * ) THEN NULL WHEN + 36 * - 7 * - + 21 + - COUNT( * ) * + 69 * - 10 * + + 58 * 96 + - + MAX( 25 ) + + 22 * - MAX( DISTINCT - 92 ) + - - 32 THEN - 82 + SUM( + CAST( + NULLIF ( - ( + 61 ), + - 92 ) AS SIGNED ) ) END, - 87 + - - 36 + + COUNT( * ) DIV COUNT( * ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - COALESCE ( + CASE - 55 WHEN - COUNT ( * ) * COUNT ( * ) / - COUNT ( * ) THEN NULL WHEN + 36 * - 7 * - + 21 + - COUNT ( * ) * + 69 * - 10 * + + 58 * 96 + - + MAX ( 25 ) + + 22 * - MAX ( DISTINCT - 92 ) + - - 32 THEN - 82 + SUM ( + CAST ( + NULLIF ( - ( + 61 ), + - 92 ) AS INTEGER ) ) END, - 87 + - - 36 + + COUNT ( * ) / COUNT ( * ) ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-4300
SELECT ALL 67 * 90 col1, + 44 DIV - + 56
----
6030
0

skipif mysql # not compatible
query II rowsort label-4300
SELECT ALL 67 * 90 col1, + 44 / - + 56
----
6030
0

query I rowsort
SELECT 77 * 90
----
6930

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT ALL + 1 DIV - - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + 1 / - - 57 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT DISTINCT + CAST( - 87 AS SIGNED ) * + - 97 * + ( - 45 ) AS col0
----
-379755

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT + CAST ( - 87 AS INTEGER ) * + - 97 * + ( - 45 ) AS col0
----
-379755

query I rowsort
SELECT + + COALESCE ( + 93, - 72 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4305
SELECT DISTINCT - COUNT( * ) - CASE - 59 WHEN + CASE MIN( - 62 ) WHEN - - COALESCE ( MAX( 98 ), - + CAST( - 82 AS DECIMAL ), - 68 ) THEN NULL WHEN + + 1 - - + 91 * + + 67 * + - 40 THEN 6 WHEN + - 72 THEN NULL ELSE + - 31 END THEN NULL WHEN + - 49 / - ( + 92 ) / + 32 + + COUNT( * ) + 14 * + 98 * + + 78 * - ( MIN( DISTINCT + 51 ) ) THEN NULL ELSE 61 END * + 60, COUNT( * ) AS col0
----
-3661
1

skipif mysql # not compatible
query II rowsort label-4305
SELECT DISTINCT - COUNT ( * ) - CASE - 59 WHEN + CASE MIN ( - 62 ) WHEN - - COALESCE ( MAX ( 98 ), - + CAST ( - 82 AS REAL ), - 68 ) THEN NULL WHEN + + 1 - - + 91 * + + 67 * + - 40 THEN 6 WHEN + - 72 THEN NULL ELSE + - 31 END THEN NULL WHEN + - 49 / - ( + 92 ) / + 32 + + COUNT ( * ) + 14 * + 98 * + + 78 * - ( MIN ( DISTINCT + 51 ) ) THEN NULL ELSE 61 END * + 60, COUNT ( * ) AS col0
----
-3661
1

query I rowsort
SELECT 57 * + 83
----
4731

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4307
SELECT + COUNT( * ) DIV - 92 + 8 AS col2, + ( + + 16 ) + 45 * + COUNT( * ) AS col2
----
8
61

skipif mysql # not compatible
query II rowsort label-4307
SELECT + COUNT ( * ) / - 92 + 8 AS col2, + ( + + 16 ) + 45 * + COUNT ( * ) AS col2
----
8
61

query I rowsort
SELECT ALL + 77 * + 85
----
6545

query I rowsort
SELECT ( 90 ) * - 5 col1
----
-450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4310
SELECT 73 + ( - + 85 ) AS col0, CASE - ( + + 50 ) WHEN 36 + + CASE - - NULLIF ( + + 92, MIN( DISTINCT 17 ) + + 54 ) WHEN 43 + + 3 THEN 57 * 30 * - 8 WHEN - + 94 * - 23 THEN - + 30 / + - 88 / CAST( 0 AS SIGNED ) END THEN + + ( + CAST( + 63 AS SIGNED ) ) END * 86 + - COUNT( * ) AS col0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-4310
SELECT 73 + ( - + 85 ) AS col0, CASE - ( + + 50 ) WHEN 36 + + CASE - - NULLIF ( + + 92, MIN ( DISTINCT 17 ) + + 54 ) WHEN 43 + + 3 THEN 57 * 30 * - 8 WHEN - + 94 * - 23 THEN - + 30 / + - 88 / CAST ( 0 AS INTEGER ) END THEN + + ( + CAST ( + 63 AS INTEGER ) ) END * 86 + - COUNT ( * ) AS col0
----
-12
NULL

query I rowsort
SELECT ALL 82 * + 30 AS col2
----
2460

query II rowsort
SELECT 8 + - + ( - 1 ) AS col2, + 95 + - 54 AS col0
----
9
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT MIN( 22 ) * - 84 AS col0
----
-1848

skipif mysql # not compatible
query I rowsort label-4313
SELECT MIN ( 22 ) * - 84 AS col0
----
-1848

query I rowsort
SELECT ( + 99 ) + 67 AS col2
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT 37 + + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-4315
SELECT 37 + + + COUNT ( * )
----
38

query II rowsort
SELECT 84 AS col1, 70 AS col1
----
84
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4317
SELECT ALL - CAST( NULL AS SIGNED ) + - 64 + - 85 + + + COUNT( * ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - CAST ( NULL AS INTEGER ) + - 64 + - 85 + + + COUNT ( * ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT + CASE + ( ( + + COALESCE ( - 5, + 84 * - 27 * - - 39 ) ) ) WHEN + COUNT( * ) THEN 30 * 69 + + 65 * NULLIF ( - 47, AVG ( + 90 ) * - + 8 ) WHEN - 67 * + + COUNT( * ) / 8 / - CASE 7 WHEN + 56 THEN + 14 ELSE + 47 END THEN NULL WHEN + 16 THEN NULL WHEN - 7 THEN NULL END + - - 84 - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT + CASE + ( ( + + COALESCE ( - 5, + 84 * - 27 * - - 39 ) ) ) WHEN + COUNT ( * ) THEN 30 * 69 + + 65 * NULLIF ( - 47, AVG ( + 90 ) * - + 8 ) WHEN - 67 * + + COUNT ( * ) / 8 / - CASE 7 WHEN + 56 THEN + 14 ELSE + 47 END THEN NULL WHEN + 16 THEN NULL WHEN - 7 THEN NULL END + - - 84 - - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL CASE + 61 WHEN - 33 * - 32 / + ( 84 ) THEN NULL WHEN - 31 * 67 * + 90 - + COUNT( * ) * - 31 - 98 THEN + 28 + - + COALESCE ( - 74, - - 55 * - + 99 + 54 * ( 99 ), - + 34 / - COUNT( * ) + - 18 ) END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL CASE + 61 WHEN - 33 * - 32 / + ( 84 ) THEN NULL WHEN - 31 * 67 * + 90 - + COUNT ( * ) * - 31 - 98 THEN + 28 + - + COALESCE ( - 74, - - 55 * - + 99 + 54 * ( 99 ), - + 34 / - COUNT ( * ) + - 18 ) END * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT 27 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-4320
SELECT 27 / - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT ( - - 80 ) * NULLIF ( + 21, - - 33 - - + COUNT( * ) + - 38 ) + 62 + + - 44
----
1698

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT ( - - 80 ) * NULLIF ( + 21, - - 33 - - + COUNT ( * ) + - 38 ) + 62 + + - 44
----
1698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4322
SELECT 0 / CAST( NULL AS SIGNED ) + NULLIF ( CAST( - - 59 AS SIGNED ), - - COUNT( * ) + 14 / - - 16 ) / - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT 0 / CAST ( NULL AS INTEGER ) + NULLIF ( CAST ( - - 59 AS INTEGER ), - - COUNT ( * ) + 14 / - - 16 ) / - 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4323
SELECT 43 * 26 + NULLIF ( + 76, - + 69 * CAST( 94 AS SIGNED ) ) + + - COUNT( * ) * - 82 + - 82
----
1194

skipif mysql # not compatible
query I rowsort label-4323
SELECT 43 * 26 + NULLIF ( + 76, - + 69 * CAST ( 94 AS INTEGER ) ) + + - COUNT ( * ) * - 82 + - 82
----
1194

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT - - COUNT( * ) AS col0, 71 + ( + 78 )
----
1
149

skipif mysql # not compatible
query II rowsort label-4324
SELECT - - COUNT ( * ) AS col0, 71 + ( + 78 )
----
1
149

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4325
SELECT CASE - 78 WHEN 69 + 49 THEN + 11 WHEN - 30 THEN NULL END * CAST( - + COUNT( * ) AS DECIMAL ) / - - 53, + 88 - + + 99 AS col1
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-4325
SELECT CASE - 78 WHEN 69 + 49 THEN + 11 WHEN - 30 THEN NULL END * CAST ( - + COUNT ( * ) AS REAL ) / - - 53, + 88 - + + 99 AS col1
----
NULL
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT DISTINCT - - 98 DIV + 47
----
2

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT - - 98 / + 47
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT 69 - - 76 - 18 - - COUNT( * )
----
128

skipif mysql # not compatible
query I rowsort label-4327
SELECT 69 - - 76 - 18 - - COUNT ( * )
----
128

query I rowsort
SELECT ALL + 22 - - - 28 - 18 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT + COUNT( * ) * - 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + COUNT ( * ) * - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4330
SELECT DISTINCT + - NULLIF ( 66, - 83 ) * COUNT( * ) + - - 8 + 91 + + - 65 DIV - - 81 * - 49 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT + - NULLIF ( 66, - 83 ) * COUNT ( * ) + - - 8 + 91 + + - 65 / - - 81 * - 49 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ALL + 72 * - - 53 + COUNT( - + 11 )
----
3817

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL + 72 * - - 53 + COUNT ( - + 11 )
----
3817

query I rowsort
SELECT 92 * - 86 + - - NULLIF ( + ( 5 ), 80 - - 91 + - 76 + - + 6 + - - 12 * 34 + + 72 * + 51 / - ( - 64 ) ) * + 35 * + 9
----
-6337

query I rowsort
SELECT - ( - 48 ) + - + 47
----
1

query I rowsort
SELECT - ( - 43 ) col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4335
SELECT + + 3 / + ( - - COUNT( * ) ) * - + 88 + + NULLIF ( - + ( CAST( NULL AS SIGNED ) ), + 98 ) / ( - ( - COUNT( * ) ) ) + - 68 - + + 48 - + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT + + 3 / + ( - - COUNT ( * ) ) * - + 88 + + NULLIF ( - + ( CAST ( NULL AS INTEGER ) ), + 98 ) / ( - ( - COUNT ( * ) ) ) + - 68 - + + 48 - + 26 AS col1
----
NULL

query I rowsort
SELECT + 71 * + + 34
----
2414

query II rowsort
SELECT ALL + 58, + ( + + ( - 65 ) ) AS col0
----
58
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT NULLIF ( 51, + 1 * + + COALESCE ( + 41, - COUNT( * ) ) )
----
51

skipif mysql # not compatible
query I rowsort label-4338
SELECT NULLIF ( 51, + 1 * + + COALESCE ( + 41, - COUNT ( * ) ) )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT + ( 96 ) * + + 19 * + + 34 + - 22 * 91 * - 0 * - 4 DIV - 43 - - 50 + - 79 AS col1
----
61987

skipif mysql # not compatible
query I rowsort label-4339
SELECT + ( 96 ) * + + 19 * + + 34 + - 22 * 91 * - 0 * - 4 / - 43 - - 50 + - 79 AS col1
----
61987

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT DISTINCT ( - - 88 ) DIV + 51 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT ( - - 88 ) / + 51 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT - 15 DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - 15 / 16
----
0

query I rowsort
SELECT - 58 + 53 - + 84 * - 26 + ( - - 58 ) * - 13 * - 25 + + + 26 AS col1
----
21055

query I rowsort
SELECT + 64 * + 53 AS col2
----
3392

query I rowsort
SELECT DISTINCT 70 * - + 95
----
-6650

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT SUM( + + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4345
SELECT SUM ( + + 54 ) AS col1
----
54

query I rowsort
SELECT ALL - 30 * + 73 + - + 66
----
-2256

query I rowsort
SELECT 34 * + ( 80 ) - - + 36 + - ( 53 )
----
2703

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT SUM( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-4348
SELECT SUM ( + 42 )
----
42

query I rowsort
SELECT DISTINCT NULLIF ( + - 24, - 63 ) * 74
----
-1776

query I rowsort
SELECT ALL + 64 * - 5 + + 89
----
-231

query I rowsort
SELECT ALL + 3 * + + 60 + + 14 * 7
----
278

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT - 20 * + 66 * + + COUNT( * ) + 94 AS col0
----
-1226

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT - 20 * + 66 * + + COUNT ( * ) + 94 AS col0
----
-1226

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT + 45 + + COALESCE ( - 32, - 32 * - SUM( + ( + 53 ) ) * - + COUNT( * ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4353
SELECT + 45 + + COALESCE ( - 32, - 32 * - SUM ( + ( + 53 ) ) * - + COUNT ( * ) ) AS col0
----
13

query I rowsort
SELECT + 50 - 15 * + 89
----
-1285

query I rowsort
SELECT ( 94 ) col1
----
94

query I rowsort
SELECT + - 17 + 69 AS col1
----
52

query II rowsort
SELECT + 56 * + 76 AS col0, 47 AS col2
----
4256
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4358
SELECT CAST( 61 AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4358
SELECT CAST ( 61 AS INTEGER ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + 25 * - COUNT( * ) + + 45 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4359
SELECT + 25 * - COUNT ( * ) + + 45 AS col0
----
20

query I rowsort
SELECT + 83 + - - 10 AS col2
----
93

query I rowsort
SELECT ALL - - 21 * - 27 * + - 10 * + 38 - - - 19 + 67 + + - ( - 46 )
----
215554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT + + ( COALESCE ( - 99, 49 ) ) * + - 71 DIV + - COUNT( * ) + 2 + 91
----
-6936

skipif mysql # not compatible
query I rowsort label-4362
SELECT + + ( COALESCE ( - 99, 49 ) ) * + - 71 / + - COUNT ( * ) + 2 + 91
----
-6936

query I rowsort
SELECT DISTINCT + 34 * - 45
----
-1530

query I rowsort
SELECT ALL + 70 - + - 83 + 36 AS col0
----
189

query I rowsort
SELECT - 10 + 90 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL + ( CASE 65 WHEN - NULLIF ( + COUNT( * ), ( 65 ) + - ( - 98 ) ) THEN NULL ELSE + - 54 END ) * - + 68 AS col0
----
3672

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + ( CASE 65 WHEN - NULLIF ( + COUNT ( * ), ( 65 ) + - ( - 98 ) ) THEN NULL ELSE + - 54 END ) * - + 68 AS col0
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT ( - 41 ) - - 25 * 66 * MIN( ALL 61 ) AS col2
----
100609

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT ( - 41 ) - - 25 * 66 * MIN ( ALL 61 ) AS col2
----
100609

onlyif mysql # aggregate syntax: 
query II rowsort label-4368
SELECT + 58 + COUNT( * ) AS col1, 51 * - + 92 * - - 56 - + 88
----
59
-262840

skipif mysql # not compatible
query II rowsort label-4368
SELECT + 58 + COUNT ( * ) AS col1, 51 * - + 92 * - - 56 - + 88
----
59
-262840

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT - - 15 + + 45 + - 7 + - - SUM( ALL - ( - + 53 ) ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-4369
SELECT - - 15 + + 45 + - 7 + - - SUM ( ALL - ( - + 53 ) ) AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT - + 40 + + - 65 - - NULLIF ( + - ( 69 ), + 62 * + + 26 * - + 73 + + + COALESCE ( + 77, - 70 * 46, COUNT( * ) ) ) AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-4370
SELECT - + 40 + + - 65 - - NULLIF ( + - ( 69 ), + 62 * + + 26 * - + 73 + + + COALESCE ( + 77, - 70 * 46, COUNT ( * ) ) ) AS col2
----
-174

onlyif mysql # DIV for integer division: 
query II rowsort label-4371
SELECT + 86 DIV 59 col0, 79 + + - ( + - ( - 19 ) )
----
1
60

skipif mysql # not compatible
query II rowsort label-4371
SELECT + 86 / 59 col0, 79 + + - ( + - ( - 19 ) )
----
1
60

onlyif mysql # DIV for integer division: 
query II rowsort label-4372
SELECT - 55 DIV ( 23 ) * - 30 AS col1, 69
----
60
69

skipif mysql # not compatible
query II rowsort label-4372
SELECT - 55 / ( 23 ) * - 30 AS col1, 69
----
60
69

query I rowsort
SELECT - + 38 + - ( + + 22 )
----
-60

query I rowsort
SELECT - 71 * + - 80 AS col1
----
5680

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4375
SELECT ALL + 13 DIV + - CASE + 50 WHEN - + NULLIF ( - 17, 67 * - - 53 + + - 47 ) THEN - - 79 * 7 * + + 97 WHEN 84 THEN + ( - - 67 ) DIV - CAST( NULL AS SIGNED ) * 10 - - CAST( - 89 AS SIGNED ) DIV - 31 + 89 + + + ( 63 ) * - 13 ELSE + 55 END + + + 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + 13 / + - CASE + 50 WHEN - + NULLIF ( - 17, 67 * - - 53 + + - 47 ) THEN - - 79 * 7 * + + 97 WHEN 84 THEN + ( - - 67 ) / - CAST ( NULL AS INTEGER ) * 10 - - CAST ( - 89 AS INTEGER ) / - 31 + 89 + + + ( 63 ) * - 13 ELSE + 55 END + + + 8 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT + COUNT( * ) - - 11 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4376
SELECT + COUNT ( * ) - - 11 AS col2
----
12

query I rowsort
SELECT ALL - 11 * - - 65 AS col0
----
-715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4378
SELECT DISTINCT + COUNT( * ) DIV - 71 + 1
----
1

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT + COUNT ( * ) / - 71 + 1
----
1

query I rowsort
SELECT - 54 * + + 98 + 87 AS col2
----
-5205

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT DISTINCT 66 DIV + 20 + 72
----
75

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT 66 / + 20 + 72
----
75

query I rowsort
SELECT ALL - NULLIF ( - 49, + - 88 + - 29 * 89 ) * + 51 + + 62
----
2561

query I rowsort
SELECT - 63 - - COALESCE ( 57, - + 5 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4383
SELECT ( + ( - + 66 ) ), + 18 * - + MAX( ALL - + 13 ) AS col1
----
-66
234

skipif mysql # not compatible
query II rowsort label-4383
SELECT ( + ( - + 66 ) ), + 18 * - + MAX ( ALL - + 13 ) AS col1
----
-66
234

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL + COUNT( * ) * - 87 * + 16 + + 4 AS col1
----
-1388

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + COUNT ( * ) * - 87 * + 16 + + 4 AS col1
----
-1388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 74 + - 66 - 83
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL - 48 * + COALESCE ( COUNT( ALL - - ( - 40 ) ), + 36, + 42 )
----
-48

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - 48 * + COALESCE ( COUNT ( ALL - - ( - 40 ) ), + 36, + 42 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT NULLIF ( - ( - COUNT( * ) ), - COUNT( + + 46 ) / + 19 + - ( 68 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4388
SELECT NULLIF ( - ( - COUNT ( * ) ), - COUNT ( + + 46 ) / + 19 + - ( 68 ) ) AS col1
----
1

query II rowsort
SELECT 76 * - COALESCE ( + 26, 2 ) + - 86 AS col0, 69
----
-2062
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT - 38 DIV 14
----
-2

skipif mysql # not compatible
query I rowsort label-4390
SELECT - 38 / 14
----
-2

query I rowsort
SELECT ALL 9 * - 84 col1
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4392
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT ALL - ( - 3 ) * + 35 AS col0
----
105

query I rowsort
SELECT ALL - ( 27 ) * 60
----
-1620

query I rowsort
SELECT + 85 * 83 col0
----
7055

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT MIN( ALL 39 )
----
39

skipif mysql # not compatible
query I rowsort label-4396
SELECT MIN ( ALL 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL MIN( DISTINCT 80 ) col0
----
80

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL MIN ( DISTINCT 80 ) col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT MIN( DISTINCT 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4398
SELECT MIN ( DISTINCT 6 )
----
6

query I rowsort
SELECT 51 + 47 AS col0
----
98

query I rowsort
SELECT 58 * 12 AS col2
----
696

query I rowsort
SELECT 6 * + 68
----
408

query I rowsort
SELECT ALL 95 * 11
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT DISTINCT - MIN( 60 ) + - 33 * COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - MIN ( 60 ) + - 33 * COUNT ( * ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT MIN( DISTINCT + 61 ) * + 43 AS col1
----
2623

skipif mysql # not compatible
query I rowsort label-4404
SELECT MIN ( DISTINCT + 61 ) * + 43 AS col1
----
2623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT ALL 59 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL 59 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( 36 ) + + 74 AS col2
----
38

query I rowsort
SELECT ( + 37 ) + 5 col2
----
42

query I rowsort
SELECT ( 14 ) * - 16
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT 21 - COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4409
SELECT 21 - COUNT ( * ) AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT 27 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-4410
SELECT 27 / 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT 8 * ( - COUNT( * ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4411
SELECT 8 * ( - COUNT ( * ) ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - 50 * - 51 + + SUM( DISTINCT ( + 13 ) )
----
2563

skipif mysql # not compatible
query I rowsort label-4412
SELECT - 50 * - 51 + + SUM ( DISTINCT ( + 13 ) )
----
2563

onlyif mysql # DIV for integer division: 
query I rowsort label-4413
SELECT 17 DIV 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4413
SELECT 17 / 4 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4414
SELECT 52 DIV - 33 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4414
SELECT 52 / - 33 + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL COALESCE ( + 72, + 30 + 68 * 47 ) + COALESCE ( + ( ( + COUNT( * ) ) ), 36, + 18 * 49 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL COALESCE ( + 72, + 30 + 68 * 47 ) + COALESCE ( + ( ( + COUNT ( * ) ) ), 36, + 18 * 49 ) AS col0
----
73

query I rowsort
SELECT ALL - ( + 43 ) col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT 11 * COALESCE ( COUNT( 30 ), - 61 * 39 + + 4 )
----
11

skipif mysql # not compatible
query I rowsort label-4417
SELECT 11 * COALESCE ( COUNT ( 30 ), - 61 * 39 + + 4 )
----
11

query I rowsort
SELECT 46 * 54
----
2484

query I rowsort
SELECT 44 * 2 + 78
----
166

query I rowsort
SELECT DISTINCT - ( 34 ) * 86 AS col2
----
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT - 74 * + 33 - COALESCE ( 53, - COUNT( * ) * + MIN( DISTINCT 68 ) ) AS col1
----
-2495

skipif mysql # not compatible
query I rowsort label-4421
SELECT - 74 * + 33 - COALESCE ( 53, - COUNT ( * ) * + MIN ( DISTINCT 68 ) ) AS col1
----
-2495

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT 36 * - MAX( 66 )
----
-2376

skipif mysql # not compatible
query I rowsort label-4422
SELECT 36 * - MAX ( 66 )
----
-2376

query I rowsort
SELECT 8 * - 89 + - 13 AS col2
----
-725

query I rowsort
SELECT DISTINCT - - 12 * 58
----
696

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4425
SELECT ALL - CAST( NULL AS DECIMAL ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL - CAST ( NULL AS REAL ) / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT - 74 DIV COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-4426
SELECT - 74 / COUNT ( * )
----
-74

query I rowsort
SELECT 54 + - 54 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT - 92 DIV + 27 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4428
SELECT - 92 / + 27 AS col2
----
-3

query I rowsort
SELECT - 31 + - 41 * - 27
----
1076

query I rowsort
SELECT 44 + - 69 col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT + 41 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT + 41 / + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT DISTINCT + - COUNT( * ) * 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT + - COUNT ( * ) * 90 AS col2
----
-90

query I rowsort
SELECT + 24 * + ( 57 * + 82 ) col1
----
112176

onlyif mysql # DIV for integer division: 
query I rowsort label-4434
SELECT 36 DIV 33
----
1

skipif mysql # not compatible
query I rowsort label-4434
SELECT 36 / 33
----
1

query I rowsort
SELECT ALL + 69 + 63 AS col2
----
132

query I rowsort
SELECT ( ( - 31 ) ) + 12
----
-19

query I rowsort
SELECT DISTINCT - + 32 * 96
----
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT - 48 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT - 48 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 92 + - ( - 95 )
----
187

query I rowsort
SELECT + ( 93 ) + 28 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT - MAX( + - 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4441
SELECT - MAX ( + - 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT DISTINCT ( + ( 55 ) ) + 79 DIV COUNT( * ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT ( + ( 55 ) ) + 79 / COUNT ( * ) AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT DISTINCT COUNT( * ) * - - 27
----
27

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT COUNT ( * ) * - - 27
----
27

query I rowsort
SELECT 17 + - 52 AS col1
----
-35

query I rowsort
SELECT DISTINCT 11 + + 79 AS col0
----
90

query I rowsort
SELECT COALESCE ( 49, + ( - 68 ), 57 ) + 82 AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT + 32 * + + SUM( 54 ) - - 16
----
1744

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT + 32 * + + SUM ( 54 ) - - 16
----
1744

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT DISTINCT COUNT( * ) * + + 58
----
58

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT COUNT ( * ) * + + 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT COUNT( * ) - ( + COUNT( * ) ) + 41
----
41

skipif mysql # not compatible
query I rowsort label-4449
SELECT COUNT ( * ) - ( + COUNT ( * ) ) + 41
----
41

query I rowsort
SELECT ( - 23 ) * + 9 AS col0
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), - 79 ) * + ( 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), - 79 ) * + ( 73 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT + MIN( - CAST( 45 AS SIGNED ) ) * CAST( + 44 * 22 AS SIGNED ) + 57
----
-43503

skipif mysql # not compatible
query I rowsort label-4452
SELECT + MIN ( - CAST ( 45 AS INTEGER ) ) * CAST ( + 44 * 22 AS INTEGER ) + 57
----
-43503

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT MAX( + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-4453
SELECT MAX ( + 77 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4454
SELECT 12 / + 83 + + CAST( 4 AS DECIMAL ) / CASE - 74 WHEN 83 THEN 71 * - 27 + 57 * - 88 WHEN + 83 * COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT 12 / + 83 + + CAST ( 4 AS REAL ) / CASE - 74 WHEN 83 THEN 71 * - 27 + 57 * - 88 WHEN + 83 * COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 57 * 8 - 87 AS col1
----
369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4456
SELECT ( - - COUNT( * ) ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT ( - - COUNT ( * ) ) / - 64
----
0

query I rowsort
SELECT 71 * - 3 AS col1
----
-213

query I rowsort
SELECT - 7 * + + 77 + 89
----
-450

query I rowsort
SELECT 46 * - - 92
----
4232

query I rowsort
SELECT DISTINCT - + 77 * 98 * 80 AS col1
----
-603680

query I rowsort
SELECT ALL - - ( - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT - SUM( 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4462
SELECT - SUM ( 53 ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4463
SELECT 3 * 13 + + 20 + CASE AVG ( DISTINCT - 73 ) + - 43 WHEN + 59 THEN - COUNT( * ) * CAST( NULL AS DECIMAL ) + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT 3 * 13 + + 20 + CASE AVG ( DISTINCT - 73 ) + - 43 WHEN + 59 THEN - COUNT ( * ) * CAST ( NULL AS REAL ) + 90 END
----
NULL

query I rowsort
SELECT + - 33 * - + 11 AS col0
----
363

query I rowsort
SELECT + + 87 * - 10 + 68
----
-802

query I rowsort
SELECT ALL + - 35 + + CASE 60 WHEN + 53 THEN NULL WHEN - 71 / + 17 THEN 38 * + 91 + ( - 27 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4467
SELECT + - ( - + COALESCE ( + CAST( NULL AS SIGNED ), 48 DIV + 32 + COUNT( * ), COUNT( * ) ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4467
SELECT + - ( - + COALESCE ( + CAST ( NULL AS INTEGER ), 48 / + 32 + COUNT ( * ), COUNT ( * ) ) ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT CAST( + 78 AS SIGNED ) col1
----
78

skipif mysql # not compatible
query I rowsort label-4468
SELECT CAST ( + 78 AS INTEGER ) col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT DISTINCT - 95 + - CASE + COALESCE ( 32, 12 + + CAST( NULL AS SIGNED ), + 75 ) WHEN 23 * + 36 THEN NULL ELSE - 61 END * CAST( - 96 * + 86 AS SIGNED )
----
-503711

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT - 95 + - CASE + COALESCE ( 32, 12 + + CAST ( NULL AS INTEGER ), + 75 ) WHEN 23 * + 36 THEN NULL ELSE - 61 END * CAST ( - 96 * + 86 AS INTEGER )
----
-503711

query I rowsort
SELECT ALL + + ( 37 ) + 45 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT - SUM( DISTINCT - 40 ) * + 54 AS col0
----
2160

skipif mysql # not compatible
query I rowsort label-4471
SELECT - SUM ( DISTINCT - 40 ) * + 54 AS col0
----
2160

query I rowsort
SELECT ALL + + 43 + 93
----
136

query I rowsort
SELECT ALL - 81 + - ( 20 )
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4474
SELECT ALL - CASE - + COUNT( * ) WHEN - CASE 55 WHEN 48 DIV 38 THEN ( CASE 28 WHEN 97 THEN 54 DIV + 57 WHEN 3 * + CAST( + 21 AS SIGNED ) THEN NULL END ) END THEN NULL WHEN 32 + - AVG ( DISTINCT - 97 ) THEN SUM( DISTINCT - 32 ) DIV 70 + + 40 ELSE - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL - CASE - + COUNT ( * ) WHEN - CASE 55 WHEN 48 / 38 THEN ( CASE 28 WHEN 97 THEN 54 / + 57 WHEN 3 * + CAST ( + 21 AS INTEGER ) THEN NULL END ) END THEN NULL WHEN 32 + - AVG ( DISTINCT - 97 ) THEN SUM ( DISTINCT - 32 ) / 70 + + 40 ELSE - COUNT ( * ) END
----
1

query I rowsort
SELECT - 32 + - 66 AS col2
----
-98

query I rowsort
SELECT - - 1 * + 79 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - - COUNT( * ) + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-4477
SELECT - - COUNT ( * ) + - 69
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT + 0 DIV + + 7
----
0

skipif mysql # not compatible
query I rowsort label-4478
SELECT + 0 / + + 7
----
0

query I rowsort
SELECT ALL + 52 + + 45 AS col0
----
97

query I rowsort
SELECT - 12 * 84
----
-1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4481
SELECT + COUNT( * ) * - + CASE - 77 WHEN + COALESCE ( 93, ( 86 ) ) THEN - 11 - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT + COUNT ( * ) * - + CASE - 77 WHEN + COALESCE ( 93, ( 86 ) ) THEN - 11 - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT COALESCE ( - + 97, 60 + - MAX( + 29 ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT COALESCE ( - + 97, 60 + - MAX ( + 29 ) ) AS col1
----
-97

query I rowsort
SELECT + 40 + + - 30 AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT - 28 + - 79 - - 11 DIV 20 * + 47 col2
----
-107

skipif mysql # not compatible
query I rowsort label-4485
SELECT - 28 + - 79 - - 11 / 20 * + 47 col2
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT - 4 + + 62 + - 62 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT - 4 + + 62 + - 62 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + COUNT( * ) - + 88 + - 76 + ( SUM( + ( NULLIF ( 63, 33 ) ) ) ) * + 91 AS col2
----
5570

skipif mysql # not compatible
query I rowsort label-4487
SELECT + COUNT ( * ) - + 88 + - 76 + ( SUM ( + ( NULLIF ( 63, 33 ) ) ) ) * + 91 AS col2
----
5570

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT - 22 * 44 DIV + - 51 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4488
SELECT - 22 * 44 / + - 51 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4489
SELECT COALESCE ( MAX( DISTINCT - - CAST( 86 AS SIGNED ) ), 81, 51 ) DIV - 58 - COALESCE ( ( - 98 ), 27 * - 67 ) * 18
----
1763

skipif mysql # not compatible
query I rowsort label-4489
SELECT COALESCE ( MAX ( DISTINCT - - CAST ( 86 AS INTEGER ) ), 81, 51 ) / - 58 - COALESCE ( ( - 98 ), 27 * - 67 ) * 18
----
1763

query I rowsort
SELECT ALL + 1 col2
----
1

query I rowsort
SELECT DISTINCT + ( + NULLIF ( + - 2, + 78 * 76 + 66 ) )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4492
SELECT - ( - 7 ) * + + AVG ( + 6 ) + - 85 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT - ( - 7 ) * + + AVG ( + 6 ) + - 85 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + COUNT( 94 ) * + 8 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4493
SELECT + COUNT ( 94 ) * + 8 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT ALL + CAST( + CAST( 78 AS SIGNED ) AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL + CAST ( + CAST ( 78 AS INTEGER ) AS INTEGER ) AS col0
----
78

query II rowsort
SELECT ALL + 91 AS col0, + 17 AS col0
----
91
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT + COALESCE ( + CASE - NULLIF ( 41, 31 * COUNT( * ) ) WHEN 46 * + CAST( - ( - 76 ) * + 98 AS SIGNED ) THEN NULLIF ( + COUNT( * ), - COUNT( * ) * 41 ) END, - 70 + MAX( 26 ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4496
SELECT + COALESCE ( + CASE - NULLIF ( 41, 31 * COUNT ( * ) ) WHEN 46 * + CAST ( - ( - 76 ) * + 98 AS INTEGER ) THEN NULLIF ( + COUNT ( * ), - COUNT ( * ) * 41 ) END, - 70 + MAX ( 26 ) ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT ALL + 32 AS col1, - COUNT( * ) AS col2
----
32
-1

skipif mysql # not compatible
query II rowsort label-4497
SELECT ALL + 32 AS col1, - COUNT ( * ) AS col2
----
32
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4498
SELECT + + 23 DIV 11 * + 68 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-4498
SELECT + + 23 / 11 * + 68 AS col0
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT ALL + 18 * + CAST( NULL AS SIGNED ) + - 33 + + 33 * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + 18 * + CAST ( NULL AS INTEGER ) + - 33 + + 33 * - 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4500
SELECT - + CAST( NULL AS SIGNED ) + ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT - + CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT + - 35 AS col1, 56 * 81 col0
----
-35
4536

query I rowsort
SELECT - COALESCE ( + ( + 75 ), 90 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT - CAST( + - 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-4503
SELECT - CAST ( + - 88 AS INTEGER )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4504
SELECT + + 62 DIV 46 - - COUNT( * ) * ( COUNT( * ) DIV COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-4504
SELECT + + 62 / 46 - - COUNT ( * ) * ( COUNT ( * ) / COUNT ( * ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT - 83 * - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4505
SELECT - 83 * - COUNT ( * )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT 46 * - CAST( - ( - 70 ) AS SIGNED ) + - 29
----
-3249

skipif mysql # not compatible
query I rowsort label-4506
SELECT 46 * - CAST ( - ( - 70 ) AS INTEGER ) + - 29
----
-3249

query I rowsort
SELECT ALL + 25 * + 50 + + - 23
----
1227

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT - 89 * + MAX( - 64 ) + - 11
----
5685

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT - 89 * + MAX ( - 64 ) + - 11
----
5685

query I rowsort
SELECT ALL 91 * - + 93 * - 46 + - 17 AS col0
----
389281

query I rowsort
SELECT ALL + - 68 * - + 73 + - 50 AS col0
----
4914

query I rowsort
SELECT + 50 + - 66 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT ALL - 46 * MAX( DISTINCT + 20 ) + 70 DIV + COUNT( * )
----
-850

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL - 46 * MAX ( DISTINCT + 20 ) + 70 / + COUNT ( * )
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT + + 96 * - COUNT( * ) + - 64 + 6 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-4513
SELECT + + 96 * - COUNT ( * ) + - 64 + 6 AS col1
----
-154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT ALL + 82 * - ( + + 21 ) * 6 + - 73 DIV COUNT( * )
----
-10405

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + 82 * - ( + + 21 ) * 6 + - 73 / COUNT ( * )
----
-10405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4515
SELECT ALL 28 * + 17 + + + 79 + + 16 DIV COUNT( * )
----
571

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL 28 * + 17 + + + 79 + + 16 / COUNT ( * )
----
571

query I rowsort
SELECT + + 36 + 56 - - 98 * 21 AS col2
----
2150

query I rowsort
SELECT - NULLIF ( + 43, 66 ) AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4518
SELECT - - CAST( + + 3 AS SIGNED ) + + 20
----
23

skipif mysql # not compatible
query I rowsort label-4518
SELECT - - CAST ( + + 3 AS INTEGER ) + + 20
----
23

query I rowsort
SELECT ALL - + 17 * + 59 + + 18 + 14 AS col0
----
-971

query I rowsort
SELECT - 13 + 32 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT + 52 + - - CASE + - 80 WHEN - 78 THEN NULL ELSE 40 * MAX( ALL 29 * NULLIF ( 71, ( 1 ) ) ) END + + 99
----
82511

skipif mysql # not compatible
query I rowsort label-4521
SELECT + 52 + - - CASE + - 80 WHEN - 78 THEN NULL ELSE 40 * MAX ( ALL 29 * NULLIF ( 71, ( 1 ) ) ) END + + 99
----
82511

query I rowsort
SELECT DISTINCT 76 * + 69 * ( - 11 ) - 69 col0
----
-57753

onlyif mysql # DIV for integer division: 
query II rowsort label-4523
SELECT ALL 70 - - + 80, 40 + - 6 - COALESCE ( - 11, - 2 ) DIV ( 69 - - 28 ) AS col0
----
150
34

skipif mysql # not compatible
query II rowsort label-4523
SELECT ALL 70 - - + 80, 40 + - 6 - COALESCE ( - 11, - 2 ) / ( 69 - - 28 ) AS col0
----
150
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - COUNT( * ) + - + 70 + - + 60 * + + 33 AS col0
----
-2051

skipif mysql # not compatible
query I rowsort label-4524
SELECT - COUNT ( * ) + - + 70 + - + 60 * + + 33 AS col0
----
-2051

query I rowsort
SELECT ALL + 20 - + 56 * - 90 AS col1
----
5060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4526
SELECT - COUNT( DISTINCT + - 40 ) * - COALESCE ( - 56, 83 + + COUNT( * ) DIV COALESCE ( - 3, ( CAST( 57 AS SIGNED ) ) ), - COUNT( * ) - + 99 * 6 ) * 99
----
-5544

skipif mysql # not compatible
query I rowsort label-4526
SELECT - COUNT ( DISTINCT + - 40 ) * - COALESCE ( - 56, 83 + + COUNT ( * ) / COALESCE ( - 3, ( CAST ( 57 AS INTEGER ) ) ), - COUNT ( * ) - + 99 * 6 ) * 99
----
-5544

query I rowsort
SELECT ALL ( 28 )
----
28

query I rowsort
SELECT - 34 + + 41 AS col2
----
7

query I rowsort
SELECT DISTINCT ( + 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4530
SELECT ALL - 21 DIV + 86 DIV + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - 21 / + 86 / + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT - 22 * - - COUNT( * ) * + + MAX( + 25 ) AS col2
----
-550

skipif mysql # not compatible
query I rowsort label-4531
SELECT - 22 * - - COUNT ( * ) * + + MAX ( + 25 ) AS col2
----
-550

query II rowsort
SELECT - 28 * - 9 AS col0, 37 AS col0
----
252
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - COUNT( + 73 ) + 59
----
58

skipif mysql # not compatible
query I rowsort label-4533
SELECT - COUNT ( + 73 ) + 59
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - 98 * + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-4534
SELECT - 98 * + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL + 49 * + MIN( 82 ) col1
----
4018

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL + 49 * + MIN ( 82 ) col1
----
4018

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT - COUNT( * ) + - 26 - + - 90 + + 43 + 35 * - 33 AS col0
----
-1049

skipif mysql # not compatible
query I rowsort label-4536
SELECT - COUNT ( * ) + - 26 - + - 90 + + 43 + 35 * - 33 AS col0
----
-1049

query I rowsort
SELECT DISTINCT ( + 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL - ( 37 ) * - COALESCE ( ( + 16 ), CASE 45 WHEN + 5 + 28 * 60 THEN 29 ELSE NULL END * - 72 + - 22 * - ( CASE 57 WHEN AVG ( ALL 86 ) THEN + 60 + ( NULLIF ( + ( + 4 ), MIN( + 83 ) * - 17 ) ) * 99 END * + ( ( ( + 12 ) ) * + COUNT( * ) ) ), - 92 + 43 ) AS col0
----
592

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL - ( 37 ) * - COALESCE ( ( + 16 ), CASE 45 WHEN + 5 + 28 * 60 THEN 29 ELSE NULL END * - 72 + - 22 * - ( CASE 57 WHEN AVG ( ALL 86 ) THEN + 60 + ( NULLIF ( + ( + 4 ), MIN ( + 83 ) * - 17 ) ) * 99 END * + ( ( ( + 12 ) ) * + COUNT ( * ) ) ), - 92 + 43 ) AS col0
----
592

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT - 92 + + 86 * + 74 + + 99 DIV + 74 AS col0
----
6273

skipif mysql # not compatible
query I rowsort label-4539
SELECT - 92 + + 86 * + 74 + + 99 / + 74 AS col0
----
6273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4540
SELECT DISTINCT + 31 + + 58 + 16 * - + 8 * CASE - AVG ( 48 ) WHEN - 74 THEN CAST( - COUNT( * ) AS SIGNED ) / - 3 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT + 31 + + 58 + 16 * - + 8 * CASE - AVG ( 48 ) WHEN - 74 THEN CAST ( - COUNT ( * ) AS INTEGER ) / - 3 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4541
SELECT 45 - + - 41 + 22 + + CAST( ( 47 ) AS SIGNED ) - NULLIF ( COUNT( * ), ( 56 ) ) * 79
----
76

skipif mysql # not compatible
query I rowsort label-4541
SELECT 45 - + - 41 + 22 + + CAST ( ( 47 ) AS INTEGER ) - NULLIF ( COUNT ( * ), ( 56 ) ) * 79
----
76

query I rowsort
SELECT - 84 * + - 85 AS col1
----
7140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4543
SELECT + + COUNT( ALL + - ( + 98 ) ) / + 89 + 53 * + CAST( 81 * 93 + CASE + 56 WHEN 65 THEN - 0 + - 60 END AS SIGNED ) + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT + + COUNT ( ALL + - ( + 98 ) ) / + 89 + 53 * + CAST ( 81 * 93 + CASE + 56 WHEN 65 THEN - 0 + - 60 END AS INTEGER ) + + 20
----
NULL

query I rowsort
SELECT ALL + 55 + - - 50 + + ( + - 5 )
----
100

query I rowsort
SELECT ALL - - 28 col0
----
28

query I rowsort
SELECT ALL 51 + - 97 + + + 96
----
50

query I rowsort
SELECT + 20 * - 5 * CASE + 95 WHEN - 12 THEN NULL WHEN 20 THEN NULL ELSE + 10 END * + 0 + + 68
----
68

query I rowsort
SELECT + + ( - - 92 )
----
92

query I rowsort
SELECT 52 * - - 39 + + 51 AS col2
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT + CASE + 28 WHEN 39 + - 41 THEN + COUNT( * ) * COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT + CASE + 28 WHEN 39 + - 41 THEN + COUNT ( * ) * COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT DISTINCT - 12 + + 8 + 86 * - 19
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT + 75 * COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4552
SELECT + 75 * COUNT ( * )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4553
SELECT ALL CAST( + CASE 94 WHEN - 44 + - 40 THEN 66 - COUNT( * ) ELSE NULL END AS SIGNED ) - + 52 / + AVG ( 20 * - 22 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL CAST ( + CASE 94 WHEN - 44 + - 40 THEN 66 - COUNT ( * ) ELSE NULL END AS INTEGER ) - + 52 / + AVG ( 20 * - 22 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT - NULLIF ( - - 63, - 57 ) * - + MAX( ALL + 46 ) AS col0
----
2898

skipif mysql # not compatible
query I rowsort label-4554
SELECT - NULLIF ( - - 63, - 57 ) * - + MAX ( ALL + 46 ) AS col0
----
2898

onlyif mysql # DIV for integer division: 
query II rowsort label-4555
SELECT + 50 DIV 89 AS col0, 52
----
0
52

skipif mysql # not compatible
query II rowsort label-4555
SELECT + 50 / 89 AS col0, 52
----
0
52

query I rowsort
SELECT ALL - 18 - + ( - 58 ) * + 25 AS col2
----
1432

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT - - SUM( 42 )
----
42

skipif mysql # not compatible
query I rowsort label-4557
SELECT - - SUM ( 42 )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT DISTINCT 29 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT 29 / - 40
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT ALL 47 DIV - 43
----
-1

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL 47 / - 43
----
-1

query I rowsort
SELECT ( 44 ) + + - 89
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT CAST( NULL AS SIGNED ) * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT CAST ( NULL AS INTEGER ) * - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT COUNT( * ) + 18
----
19

skipif mysql # not compatible
query I rowsort label-4562
SELECT COUNT ( * ) + 18
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT DISTINCT 75 * 89 DIV 88 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT 75 * 89 / 88 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT 22 * ( - MAX( + 71 ) ) AS col2
----
-1562

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT 22 * ( - MAX ( + 71 ) ) AS col2
----
-1562

onlyif mysql # DIV for integer division: 
query II rowsort label-4565
SELECT DISTINCT 39 * 20 * - 10 AS col2, 23 + 90 DIV + 24 AS col1
----
-7800
26

skipif mysql # not compatible
query II rowsort label-4565
SELECT DISTINCT 39 * 20 * - 10 AS col2, 23 + 90 / + 24 AS col1
----
-7800
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT 55 + - NULLIF ( - - COUNT( * ), + + 83 ) + - 63
----
-9

skipif mysql # not compatible
query I rowsort label-4566
SELECT 55 + - NULLIF ( - - COUNT ( * ), + + 83 ) + - 63
----
-9

query II rowsort
SELECT ALL 18, + 56 col0
----
18
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT 62 DIV + - 34 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4568
SELECT 62 / + - 34 AS col0
----
-1

query I rowsort
SELECT ALL 74 + - 58 AS col2
----
16

query II rowsort
SELECT ALL 33 + + - 55 * - 55 AS col2, 27 AS col0
----
3058
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT DISTINCT - 99 + - COALESCE ( 34, - COUNT( * ) )
----
-133

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT - 99 + - COALESCE ( 34, - COUNT ( * ) )
----
-133

query I rowsort
SELECT 87 * 32
----
2784

query I rowsort
SELECT 90 - - 41 * + 99 + - 24
----
4125

query I rowsort
SELECT DISTINCT - 68 * - 34 * - + 35 AS col0
----
-80920

query I rowsort
SELECT ALL - + 28 + ( - 99 ) col0
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4576
SELECT DISTINCT + - 15 + 21 * - COUNT( * ) AS col0, + CAST( - 36 AS SIGNED )
----
-36
-36

skipif mysql # not compatible
query II rowsort label-4576
SELECT DISTINCT + - 15 + 21 * - COUNT ( * ) AS col0, + CAST ( - 36 AS INTEGER )
----
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT - - SUM( DISTINCT - 8 ) * + 63 * + COUNT( * )
----
-504

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - - SUM ( DISTINCT - 8 ) * + 63 * + COUNT ( * )
----
-504

query I rowsort
SELECT ALL + 74 * 4 * 9 * - - 14 AS col0
----
37296

query I rowsort
SELECT - 85 + 66 * ( NULLIF ( + 13, 74 ) ) AS col1
----
773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4580
SELECT MIN( ALL 68 ) * 0 + - 3 + + + NULLIF ( + 43, 37 ) + 33 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT MIN ( ALL 68 ) * 0 + - 3 + + + NULLIF ( + 43, 37 ) + 33 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 23 - - - 32 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT + + 59 * - + 12 + COUNT( * ) + - ( - - 79 ) AS col1
----
-786

skipif mysql # not compatible
query I rowsort label-4582
SELECT + + 59 * - + 12 + COUNT ( * ) + - ( - - 79 ) AS col1
----
-786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT DISTINCT - CAST( - + 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT - CAST ( - + 71 AS INTEGER )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4584
SELECT - 40 * + + 51 * 3 + COALESCE ( - - CAST( NULL AS SIGNED ), 79 * 76 ) AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-4584
SELECT - 40 * + + 51 * 3 + COALESCE ( - - CAST ( NULL AS INTEGER ), 79 * 76 ) AS col2
----
-116

query I rowsort
SELECT NULLIF ( - + 69, + 25 ) AS col1
----
-69

query II rowsort
SELECT ALL - + 65 AS col1, + 21
----
-65
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT - 57 * - + 33 * COUNT( * ) AS col1
----
1881

skipif mysql # not compatible
query I rowsort label-4587
SELECT - 57 * - + 33 * COUNT ( * ) AS col1
----
1881

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT DISTINCT - 56 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT - 56 / 72
----
0

query I rowsort
SELECT DISTINCT - 39 * + + 44 AS col1
----
-1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4590
SELECT 40 * - CASE 21 WHEN - + CASE - + 51 WHEN - 38 - - 87 THEN + MAX( ALL COALESCE ( 92, - 40 * NULLIF ( 78, - 77 ) ) ) ELSE NULL END + 81 * 6 THEN NULL WHEN 38 + 89 THEN + 40 * - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT 40 * - CASE 21 WHEN - + CASE - + 51 WHEN - 38 - - 87 THEN + MAX ( ALL COALESCE ( 92, - 40 * NULLIF ( 78, - 77 ) ) ) ELSE NULL END + 81 * 6 THEN NULL WHEN 38 + 89 THEN + 40 * - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4591
SELECT DISTINCT - 79 col0, 26 * + 61 + + 20, + COUNT( + NULLIF ( 95, 46 ) ) - COUNT( * ) DIV + COUNT( * ) AS col1
----
-79
1606
0

skipif mysql # not compatible
query III rowsort label-4591
SELECT DISTINCT - 79 col0, 26 * + 61 + + 20, + COUNT ( + NULLIF ( 95, 46 ) ) - COUNT ( * ) / + COUNT ( * ) AS col1
----
-79
1606
0

query I rowsort
SELECT 17 * 65
----
1105

query I rowsort
SELECT 30 * + + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4594
SELECT CASE + 43 WHEN + COUNT( * ) THEN - 56 + + NULLIF ( - + 43, - CAST( - SUM( ( 8 ) ) AS SIGNED ) + 17 ) END + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT CASE + 43 WHEN + COUNT ( * ) THEN - 56 + + NULLIF ( - + 43, - CAST ( - SUM ( ( 8 ) ) AS INTEGER ) + 17 ) END + 26 AS col1
----
NULL

query I rowsort
SELECT ALL + 21 * + + 54
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL 69 + - - 84 - - MAX( DISTINCT + ( + 70 ) )
----
223

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL 69 + - - 84 - - MAX ( DISTINCT + ( + 70 ) )
----
223

query I rowsort
SELECT 52 * + + COALESCE ( + 7, - 70 * - 22 + 2 ) AS col1
----
364

query II rowsort
SELECT DISTINCT 99 + + + 68, 10 AS col2
----
167
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL 63 * - - COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL 63 * - - COUNT ( * ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4600
SELECT 79 AS col0, + 49 + + + MAX( + 77 ) col1
----
79
126

skipif mysql # not compatible
query II rowsort label-4600
SELECT 79 AS col0, + 49 + + + MAX ( + 77 ) col1
----
79
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL ( + + SUM( - - 40 ) ) + - 41
----
-1

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL ( + + SUM ( - - 40 ) ) + - 41
----
-1

query I rowsort
SELECT ALL 33 + + ( 76 )
----
109

query I rowsort
SELECT DISTINCT 68 + + - 96 - + - 27
----
-1

query I rowsort
SELECT + 92 * - + 44 * 46 AS col1
----
-186208

query I rowsort
SELECT - 98 + 16
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4606
SELECT DISTINCT 79, - MAX( 76 ) * 51 * + SUM( DISTINCT - + 83 ) * ( + 33 ) AS col0
----
79
10616364

skipif mysql # not compatible
query II rowsort label-4606
SELECT DISTINCT 79, - MAX ( 76 ) * 51 * + SUM ( DISTINCT - + 83 ) * ( + 33 ) AS col0
----
79
10616364

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT ALL 21 + - 39 DIV - 81 * - 59 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL 21 + - 39 / - 81 * - 59 AS col1
----
21

query I rowsort
SELECT DISTINCT 32 + - 21 col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT + MIN( ALL - 79 ) + 0 * + 3 - + 38 * 80 + - 54 AS col0
----
-3173

skipif mysql # not compatible
query I rowsort label-4609
SELECT + MIN ( ALL - 79 ) + 0 * + 3 - + 38 * 80 + - 54 AS col0
----
-3173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT + + CAST( NULL AS SIGNED ) * + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT + + CAST ( NULL AS INTEGER ) * + - 20 AS col0
----
NULL

query I rowsort
SELECT ALL + 95 * 7
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL 72 + - 53 * - COUNT( * ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL 72 + - 53 * - COUNT ( * ) AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT MAX( DISTINCT + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT MAX ( DISTINCT + 66 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT ALL 90 - + CAST( 33 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL 90 - + CAST ( 33 AS INTEGER )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT + 25 DIV - + 29 - 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 25 / - + 29 - 47 AS col2
----
-47

query I rowsort
SELECT - 29 * 2
----
-58

query I rowsort
SELECT DISTINCT - 98 * - + 51 - 59 + 79 * - 76 AS col2
----
-1065

query I rowsort
SELECT ALL + + ( 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - MAX( ALL - 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4619
SELECT - MAX ( ALL - 98 ) AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4620
SELECT + - CAST( - 54 AS SIGNED ) * + 3 + + COUNT( * )
----
163

skipif mysql # not compatible
query I rowsort label-4620
SELECT + - CAST ( - 54 AS INTEGER ) * + 3 + + COUNT ( * )
----
163

query I rowsort
SELECT - - 68 + + 70
----
138

query I rowsort
SELECT ALL + 62 * 42 - + + 21
----
2583

query I rowsort
SELECT ALL + + ( + - 67 )
----
-67

query I rowsort
SELECT DISTINCT + 29 * - + 53 AS col1
----
-1537

query II rowsort
SELECT DISTINCT + + 97 col0, 98
----
97
98

query II rowsort
SELECT DISTINCT + 69 * - 28 col1, 47
----
-1932
47

query I rowsort
SELECT DISTINCT - - 4 * - 15
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT + COUNT( ALL 25 )
----
1

skipif mysql # not compatible
query I rowsort label-4628
SELECT + COUNT ( ALL 25 )
----
1

query I rowsort
SELECT NULLIF ( - - 66, - 35 ) AS col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4630
SELECT DISTINCT + MAX( 5 ) AS col0, 57 * + + 56 - + COALESCE ( + 36, - + 80 + + 16 DIV - 53 ) * + 78
----
5
384

skipif mysql # not compatible
query II rowsort label-4630
SELECT DISTINCT + MAX ( 5 ) AS col0, 57 * + + 56 - + COALESCE ( + 36, - + 80 + + 16 / - 53 ) * + 78
----
5
384

query I rowsort
SELECT ALL ( + 63 ) * + ( - 29 ) + - 95 AS col0
----
-1922

query I rowsort
SELECT ALL + ( - 74 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL + COUNT( * ) * - - 37 + - MIN( - - 27 )
----
10

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL + COUNT ( * ) * - - 37 + - MIN ( - - 27 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT DISTINCT 69 * - - 18 + - 2 - - SUM( - 1 ) + + 27 col1
----
1266

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT 69 * - - 18 + - 2 - - SUM ( - 1 ) + + 27 col1
----
1266

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4635
SELECT DISTINCT + 8 * + 31 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT + 8 * + 31 + + CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 22 * - - 16, - 8 AS col2
----
352
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4637
SELECT + COUNT( * ) * - NULLIF ( - ( 90 ), + - CAST( COALESCE ( - 63, + ( + 13 ), CAST( NULL AS SIGNED ) ) AS SIGNED ) + 25 ) * - 80
----
-7200

skipif mysql # not compatible
query I rowsort label-4637
SELECT + COUNT ( * ) * - NULLIF ( - ( 90 ), + - CAST ( COALESCE ( - 63, + ( + 13 ), CAST ( NULL AS INTEGER ) ) AS INTEGER ) + 25 ) * - 80
----
-7200

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT - 40 + - 15 AS col2, 9 - COUNT( * ) - ( + NULLIF ( - 31, 64 + 98 ) ) * 92
----
-55
2860

skipif mysql # not compatible
query II rowsort label-4638
SELECT - 40 + - 15 AS col2, 9 - COUNT ( * ) - ( + NULLIF ( - 31, 64 + 98 ) ) * 92
----
-55
2860

onlyif mysql # aggregate syntax: 
query II rowsort label-4639
SELECT SUM( ALL 79 ) AS col2, 11 AS col0
----
79
11

skipif mysql # not compatible
query II rowsort label-4639
SELECT SUM ( ALL 79 ) AS col2, 11 AS col0
----
79
11

query I rowsort
SELECT - 16 + - 72 + + + ( + 52 ) * + NULLIF ( 84, + 76 )
----
4280

query I rowsort
SELECT DISTINCT 86 * - - 47
----
4042

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - MAX( DISTINCT - 53 ) + 70
----
123

skipif mysql # not compatible
query I rowsort label-4642
SELECT - MAX ( DISTINCT - 53 ) + 70
----
123

query I rowsort
SELECT + ( 68 ) * - 54
----
-3672

query II rowsort
SELECT ALL 80 + + + 4 AS col2, 18
----
84
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4645
SELECT ALL - 27 * - ( + 32 ) * - 13 * + 65 DIV + + COUNT( * ) col2
----
-730080

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - 27 * - ( + 32 ) * - 13 * + 65 / + + COUNT ( * ) col2
----
-730080

query I rowsort
SELECT DISTINCT + 73 * + 17 * 72
----
89352

query I rowsort
SELECT + ( - 67 ) + - - ( 6 ) col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + ( COUNT( * ) ) + CASE + + 23 WHEN - + 90 * - 85 THEN NULL ELSE 9 END
----
10

skipif mysql # not compatible
query I rowsort label-4648
SELECT + ( COUNT ( * ) ) + CASE + + 23 WHEN - + 90 * - 85 THEN NULL ELSE 9 END
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL MIN( DISTINCT - - 45 ) - - 10 col1
----
55

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL MIN ( DISTINCT - - 45 ) - - 10 col1
----
55

query I rowsort
SELECT + + 63 * + + 72
----
4536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT - CAST( 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-4651
SELECT - CAST ( 42 AS INTEGER )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT + - 88 - + - 58 * MAX( ALL - + 6 ) col1
----
-436

skipif mysql # not compatible
query I rowsort label-4652
SELECT + - 88 - + - 58 * MAX ( ALL - + 6 ) col1
----
-436

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL COALESCE ( 84, - COUNT( * ), 38 * + 47 + 45 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL COALESCE ( 84, - COUNT ( * ), 38 * + 47 + 45 ) AS col2
----
84

query I rowsort
SELECT + + 14 + + 33
----
47

query I rowsort
SELECT + 89 - + 60 * + 9 * 69 * + - 47 AS col1
----
1751309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN 90 THEN - - 73 * SUM( - 62 ) WHEN - COUNT( * ) THEN NULL ELSE NULL END / 19 - 5 * - NULLIF ( COUNT( * ) * - COUNT( * ), + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN 90 THEN - - 73 * SUM ( - 62 ) WHEN - COUNT ( * ) THEN NULL ELSE NULL END / 19 - 5 * - NULLIF ( COUNT ( * ) * - COUNT ( * ), + 5 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4657
SELECT ALL 63 * ( - CASE + 41 WHEN - COUNT( * ) * - 12 + 44 THEN - 7 ELSE - 18 + 69 END ) * 27 - CAST( 35 AS SIGNED )
----
-86786

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL 63 * ( - CASE + 41 WHEN - COUNT ( * ) * - 12 + 44 THEN - 7 ELSE - 18 + 69 END ) * 27 - CAST ( 35 AS INTEGER )
----
-86786

onlyif mysql # aggregate syntax: 
query II rowsort label-4658
SELECT DISTINCT - 89 * - COUNT( DISTINCT 83 ), + 56 AS col0
----
89
56

skipif mysql # not compatible
query II rowsort label-4658
SELECT DISTINCT - 89 * - COUNT ( DISTINCT 83 ), + 56 AS col0
----
89
56

query I rowsort
SELECT ALL 90 * - - 39
----
3510

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + + 51 + - + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4660
SELECT + + 51 + - + COUNT ( * ) AS col0
----
50

query I rowsort
SELECT ALL + + 13 AS col2
----
13

query I rowsort
SELECT ALL + ( + NULLIF ( - ( 22 ), - 46 ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT - 6 * 64 + + + COUNT( * ) + + COUNT( DISTINCT 88 ) AS col0
----
-382

skipif mysql # not compatible
query I rowsort label-4663
SELECT - 6 * 64 + + + COUNT ( * ) + + COUNT ( DISTINCT 88 ) AS col0
----
-382

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4664
SELECT + CAST( NULLIF ( - 86, 0 ) AS SIGNED ) AS col2, 77
----
-86
77

skipif mysql # not compatible
query II rowsort label-4664
SELECT + CAST ( NULLIF ( - 86, 0 ) AS INTEGER ) AS col2, 77
----
-86
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4665
SELECT + 36 col0, COUNT( * )
----
36
1

skipif mysql # not compatible
query II rowsort label-4665
SELECT + 36 col0, COUNT ( * )
----
36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT 94 * - MIN( DISTINCT + + 32 ) + - 47 * - ( ( + - NULLIF ( - 89, 19 + COUNT( * ) / - COUNT( * ) ) ) ) + - ( + 73 )
----
1102

skipif mysql # not compatible
query I rowsort label-4666
SELECT 94 * - MIN ( DISTINCT + + 32 ) + - 47 * - ( ( + - NULLIF ( - 89, 19 + COUNT ( * ) / - COUNT ( * ) ) ) ) + - ( + 73 )
----
1102

query I rowsort
SELECT ( 61 ) AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4668
SELECT ALL + 97 DIV - 29 + + 43 + - 14 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + 97 / - 29 + + 43 + - 14 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL + 58 * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + 58 * - COUNT ( * )
----
-58

query I rowsort
SELECT 55 + - + 3 * 47 * + + 49
----
-6854

query I rowsort
SELECT DISTINCT + 76 * 36 AS col0
----
2736

query I rowsort
SELECT 36 * + 32
----
1152

query I rowsort
SELECT 71 * + 21 AS col2
----
1491

query II rowsort
SELECT ALL - 7 AS col1, 2
----
-7
2

query I rowsort
SELECT ALL + 4 * + - 70
----
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4676
SELECT ( - ( + MIN( - + CAST( NULL AS SIGNED ) ) ) ) * + - MAX( DISTINCT - 35 ) * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT ( - ( + MIN ( - + CAST ( NULL AS INTEGER ) ) ) ) * + - MAX ( DISTINCT - 35 ) * + 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4677
SELECT - 12 AS col2, - 67 + 66 + + COUNT( * ) + + 61 * - 53 + 73 * - 78 + 35 AS col0
----
-12
-8892

skipif mysql # not compatible
query II rowsort label-4677
SELECT - 12 AS col2, - 67 + 66 + + COUNT ( * ) + + 61 * - 53 + 73 * - 78 + 35 AS col0
----
-12
-8892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4678
SELECT 90 + CAST( NULL AS SIGNED ) / 78 * + + ( NULLIF ( 15, 89 / 72 ) ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT 90 + CAST ( NULL AS INTEGER ) / 78 * + + ( NULLIF ( 15, 89 / 72 ) ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT COUNT( * ) + 85 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4679
SELECT COUNT ( * ) + 85 AS col0
----
86

query I rowsort
SELECT 71 * - 43 * - + 55 AS col2
----
167915

query I rowsort
SELECT DISTINCT + 86 - + 45 - - + 23 - 46 * + + 6
----
-212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4682
SELECT ALL + 69 - COUNT( * ) + - + 90, - 69 * 28 * CAST( - 1 AS SIGNED ) col2
----
-22
1932

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL + 69 - COUNT ( * ) + - + 90, - 69 * 28 * CAST ( - 1 AS INTEGER ) col2
----
-22
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - COALESCE ( + 63, - - 19 * + 88 * + + 62 * COUNT( 19 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-4683
SELECT - COALESCE ( + 63, - - 19 * + 88 * + + 62 * COUNT ( 19 ) )
----
-63

query II rowsort
SELECT ALL 22 col0, - 65 * ( + + 22 ) + - 82
----
22
-1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT - 37 + CAST( 52 AS SIGNED ) + ( + CAST( NULL AS SIGNED ) ) + + + AVG ( + 93 ) / - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT - 37 + CAST ( 52 AS INTEGER ) + ( + CAST ( NULL AS INTEGER ) ) + + + AVG ( + 93 ) / - 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + NULLIF ( - + 8, - - ( COUNT( * ) ) * - - 76 ) + - COUNT( - 66 ) - + 90 + 38 * 40
----
1421

skipif mysql # not compatible
query I rowsort label-4686
SELECT + NULLIF ( - + 8, - - ( COUNT ( * ) ) * - - 76 ) + - COUNT ( - 66 ) - + 90 + 38 * 40
----
1421

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT - ( - + COALESCE ( MIN( ALL ( - 21 ) ), + - 71 + 69 ) ) * + + 73 AS col1
----
-1533

skipif mysql # not compatible
query I rowsort label-4687
SELECT - ( - + COALESCE ( MIN ( ALL ( - 21 ) ), + - 71 + 69 ) ) * + + 73 AS col1
----
-1533

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL 95 - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL 95 - COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4689
SELECT - - 21 AS col2, + 46 * + MIN( ALL + 68 )
----
21
3128

skipif mysql # not compatible
query II rowsort label-4689
SELECT - - 21 AS col2, + 46 * + MIN ( ALL + 68 )
----
21
3128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4690
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + ( 48 )
----
48

query II rowsort
SELECT DISTINCT + 19 AS col2, + 93 + - + 35
----
19
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT - COUNT( + 96 ) * - - 96 * + 50 AS col0
----
-4800

skipif mysql # not compatible
query I rowsort label-4693
SELECT - COUNT ( + 96 ) * - - 96 * + 50 AS col0
----
-4800

query I rowsort
SELECT + ( - + 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT ALL - CAST( + - 6 AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - CAST ( + - 6 AS INTEGER ) AS col2
----
6

query II rowsort
SELECT ALL ( + + 33 ) * 31, 36 + - - 18 - - 42 AS col2
----
1023
96

query I rowsort
SELECT 60 + - ( 61 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4698
SELECT DISTINCT 38 + - COUNT( * ) DIV + + 1 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT 38 + - COUNT ( * ) / + + 1 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT 12 * + MAX( DISTINCT + 59 )
----
708

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT 12 * + MAX ( DISTINCT + 59 )
----
708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4700
SELECT DISTINCT ( - + COUNT( ALL + - CAST( NULL AS SIGNED ) ) ) + + 43 AS col0, COUNT( * ) + - 14
----
43
-13

skipif mysql # not compatible
query II rowsort label-4700
SELECT DISTINCT ( - + COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) ) + + 43 AS col0, COUNT ( * ) + - 14
----
43
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT ALL SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 83 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4702
SELECT ALL CAST( + + CAST( + MIN( + 70 ) AS SIGNED ) AS SIGNED ) + + 33 AS col0, - 7 + + + 97
----
103
90

skipif mysql # not compatible
query II rowsort label-4702
SELECT ALL CAST ( + + CAST ( + MIN ( + 70 ) AS INTEGER ) AS INTEGER ) + + 33 AS col0, - 7 + + + 97
----
103
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4703
SELECT 45 DIV - COUNT( DISTINCT - 62 )
----
-45

skipif mysql # not compatible
query I rowsort label-4703
SELECT 45 / - COUNT ( DISTINCT - 62 )
----
-45

query I rowsort
SELECT 81 * + 2 * - - 27
----
4374

query I rowsort
SELECT ALL 4 - 18
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4706
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL 68 - - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL 68 - - COUNT ( * )
----
69

query I rowsort
SELECT ALL - 9 * + 73 AS col1
----
-657

query I rowsort
SELECT 96 * + + 86 * - 48 col2
----
-396288

query I rowsort
SELECT 6 * - ( - 79 )
----
474

query I rowsort
SELECT ALL + 64 * - ( - 64 )
----
4096

query I rowsort
SELECT DISTINCT ( 28 ) AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4713
SELECT CASE - 11 WHEN - CAST( - - ( + 32 ) AS SIGNED ) THEN + + 24 + 75 + - 72 ELSE 22 END * - 43 AS col2
----
-946

skipif mysql # not compatible
query I rowsort label-4713
SELECT CASE - 11 WHEN - CAST ( - - ( + 32 ) AS INTEGER ) THEN + + 24 + 75 + - 72 ELSE 22 END * - 43 AS col2
----
-946

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT + 18 * + - CASE - 17 WHEN COUNT( * ) + - + ( - 44 ) THEN - - 39 * - 0 * + 20 * MAX( + 39 ) ELSE SUM( ALL ( + ( - ( 26 ) ) ) ) END + COALESCE ( - 44 + 66 * 72, NULLIF ( 73, - 86 + 65 * 99 ) )
----
5176

skipif mysql # not compatible
query I rowsort label-4714
SELECT + 18 * + - CASE - 17 WHEN COUNT ( * ) + - + ( - 44 ) THEN - - 39 * - 0 * + 20 * MAX ( + 39 ) ELSE SUM ( ALL ( + ( - ( 26 ) ) ) ) END + COALESCE ( - 44 + 66 * 72, NULLIF ( 73, - 86 + 65 * 99 ) )
----
5176

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT 36 + + - ( 97 ) - - COUNT( * ) + 99 * - 2
----
-258

skipif mysql # not compatible
query I rowsort label-4715
SELECT 36 + + - ( 97 ) - - COUNT ( * ) + 99 * - 2
----
-258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4716
SELECT ALL + NULLIF ( + COUNT( DISTINCT - 15 ), 92 DIV + + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + NULLIF ( + COUNT ( DISTINCT - 15 ), 92 / + + 74 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4717
SELECT + CAST( + 47 AS SIGNED ) + - + 92 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4717
SELECT + CAST ( + 47 AS INTEGER ) + - + 92 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT DISTINCT - SUM( DISTINCT 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT - SUM ( DISTINCT 12 ) AS col0
----
-12

query II rowsort
SELECT ALL + - 10 + 63 AS col0, ( + 73 )
----
53
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4720
SELECT ALL - COUNT( * ) * - 89, - ( 78 ) col2
----
89
-78

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL - COUNT ( * ) * - 89, - ( 78 ) col2
----
89
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT COUNT( * ) * - 30
----
-30

skipif mysql # not compatible
query I rowsort label-4721
SELECT COUNT ( * ) * - 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT - + 97 + COUNT( * ) + - - 42 + - - 96 + 11 + + 41
----
94

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT - + 97 + COUNT ( * ) + - - 42 + - - 96 + 11 + + 41
----
94

query II rowsort
SELECT ALL + 48 + 86, + 62 AS col1
----
134
62

query II rowsort
SELECT ALL - 90 * + 50, + 56 AS col1
----
-4500
56

query I rowsort
SELECT DISTINCT + - 68 + + 22
----
-46

query I rowsort
SELECT DISTINCT - - 52 * + + 4 + + 0
----
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4727
SELECT ALL + + 86 * + + 24 * CASE COUNT( * ) WHEN + CAST( 71 AS SIGNED ) THEN + + 89 + - 91 WHEN MAX( 72 ) THEN NULL END * COUNT( - 11 ) + + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL + + 86 * + + 24 * CASE COUNT ( * ) WHEN + CAST ( 71 AS INTEGER ) THEN + + 89 + - 91 WHEN MAX ( 72 ) THEN NULL END * COUNT ( - 11 ) + + 7 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT DISTINCT 57 * + - ( + + 44 ) * 9 + - - CAST( - 55 AS SIGNED ) col1
----
-22627

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT 57 * + - ( + + 44 ) * 9 + - - CAST ( - 55 AS INTEGER ) col1
----
-22627

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT - COUNT( * ) + - + 50
----
-51

skipif mysql # not compatible
query I rowsort label-4729
SELECT - COUNT ( * ) + - + 50
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT + COUNT( * ) * - - 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4730
SELECT + COUNT ( * ) * - - 3 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT ALL 11 DIV + MAX( DISTINCT - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL 11 / + MAX ( DISTINCT - 29 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT 4 * + COALESCE ( - + 24, + 32 ) * - - 5 + - COALESCE ( - 30, 39 * + + 73 + + + 51 + 99 + 96 ) DIV 79
----
-480

skipif mysql # not compatible
query I rowsort label-4732
SELECT 4 * + COALESCE ( - + 24, + 32 ) * - - 5 + - COALESCE ( - 30, 39 * + + 73 + + + 51 + 99 + 96 ) / 79
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT + COUNT( * ) - + + 28 * - 30 col2
----
841

skipif mysql # not compatible
query I rowsort label-4733
SELECT + COUNT ( * ) - + + 28 * - 30 col2
----
841

query I rowsort
SELECT ALL 69 * - - 21 - - - 37 AS col2
----
1412

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT 31 * + COUNT( * ) + - ( - - 95 )
----
-64

skipif mysql # not compatible
query I rowsort label-4735
SELECT 31 * + COUNT ( * ) + - ( - - 95 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4736
SELECT ALL + COALESCE ( + 93, - CASE + COUNT( * ) WHEN 29 THEN NULL WHEN - 64 THEN 70 * + 0 * 9 + - COUNT( * ) DIV 26 + CAST( - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) - - 73 * 27 AS SIGNED ) ELSE NULL END ) col1
----
93

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + COALESCE ( + 93, - CASE + COUNT ( * ) WHEN 29 THEN NULL WHEN - 64 THEN 70 * + 0 * 9 + - COUNT ( * ) / 26 + CAST ( - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) - - 73 * 27 AS INTEGER ) ELSE NULL END ) col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT + ( + 94 ) DIV - - 77 + - - 67
----
68

skipif mysql # not compatible
query I rowsort label-4737
SELECT + ( + 94 ) / - - 77 + - - 67
----
68

query II rowsort
SELECT DISTINCT + 42 AS col1, + 52
----
42
52

query I rowsort
SELECT + 63 + + 35
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4740
SELECT + 99 * + CAST( 35 AS SIGNED ) + - - COUNT( ALL + 50 ) * - + NULLIF ( COUNT( * ), + 98 )
----
3464

skipif mysql # not compatible
query I rowsort label-4740
SELECT + 99 * + CAST ( 35 AS INTEGER ) + - - COUNT ( ALL + 50 ) * - + NULLIF ( COUNT ( * ), + 98 )
----
3464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT ALL + 61 * + NULLIF ( + COALESCE ( + ( + 86 ), + 9 + - - COUNT( * ) - - 92 ), - COALESCE ( + 14, 37, 94 * + 42 ) ) - + CAST( + 88 + 3 AS SIGNED ) AS col0
----
5155

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL + 61 * + NULLIF ( + COALESCE ( + ( + 86 ), + 9 + - - COUNT ( * ) - - 92 ), - COALESCE ( + 14, 37, 94 * + 42 ) ) - + CAST ( + 88 + 3 AS INTEGER ) AS col0
----
5155

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT SUM( DISTINCT + ( - 20 ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4742
SELECT SUM ( DISTINCT + ( - 20 ) ) AS col1
----
-20

query I rowsort
SELECT ALL 21 * + 55
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT MAX( ALL + 14 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-4744
SELECT MAX ( ALL + 14 ) col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT SUM( ALL + + ( + 15 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4745
SELECT SUM ( ALL + + ( + 15 ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT COUNT( ALL + + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4746
SELECT COUNT ( ALL + + 61 )
----
1

query I rowsort
SELECT + 79 * - + 10
----
-790

query II rowsort
SELECT ALL - 92 AS col1, 76 * 41
----
-92
3116

query I rowsort
SELECT ALL - 46 + + ( + 31 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), + 44 - + - 59 + 85 ) / + 69 * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), + 44 - + - 59 + 85 ) / + 69 * - 99
----
NULL

query I rowsort
SELECT DISTINCT - 2 * - 6 AS col0
----
12

query I rowsort
SELECT + 26 * + + 22
----
572

onlyif mysql # aggregate syntax: 
query II rowsort label-4753
SELECT - 80 col2, + SUM( ALL - 23 )
----
-80
-23

skipif mysql # not compatible
query II rowsort label-4753
SELECT - 80 col2, + SUM ( ALL - 23 )
----
-80
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4754
SELECT + - 63 DIV + - COUNT( * ) + - - 64 * - - ( 80 ) + + + 7
----
5190

skipif mysql # not compatible
query I rowsort label-4754
SELECT + - 63 / + - COUNT ( * ) + - - 64 * - - ( 80 ) + + + 7
----
5190

query I rowsort
SELECT - - 58 + + 18
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT + MIN( ALL + 6 ) + - - COALESCE ( + - 56, + 41 ) + 48
----
-2

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT + MIN ( ALL + 6 ) + - - COALESCE ( + - 56, + 41 ) + 48
----
-2

query I rowsort
SELECT - + 83 * - - 36
----
-2988

query I rowsort
SELECT + CASE AVG ( ALL + 70 ) WHEN - 62 THEN 74 * + ( + 34 ) - - 34 * - 61 + 5 + ( + 40 ) * 42 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 7 + 17 AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4760
SELECT DISTINCT COUNT( * ), 35 AS col2
----
1
35

skipif mysql # not compatible
query II rowsort label-4760
SELECT DISTINCT COUNT ( * ), 35 AS col2
----
1
35

query I rowsort
SELECT ALL + 3 + 4 col0
----
7

query II rowsort
SELECT DISTINCT 41 + + + 65 * + 88 AS col1, - 49 col1
----
5761
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT ALL CAST( - - 5 AS SIGNED ) + COALESCE ( - 8, - 51 ) + + + 34 * - ( NULLIF ( 38, - 55 ) )
----
-1295

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL CAST ( - - 5 AS INTEGER ) + COALESCE ( - 8, - 51 ) + + + 34 * - ( NULLIF ( 38, - 55 ) )
----
-1295

query I rowsort
SELECT ALL + + 82 + - + ( - 82 ) * + 29 AS col2
----
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL - + COUNT( * ) * 70 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL - + COUNT ( * ) * 70 AS col2
----
-70

query I rowsort
SELECT ALL NULLIF ( + 61, - - ( - - 92 ) ) AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT + 41 DIV + 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4767
SELECT + 41 / + 41 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + SUM( - + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4768
SELECT + SUM ( - + 79 )
----
-79

query I rowsort
SELECT ALL - 45 * + - 31
----
1395

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT - COUNT( * ) * + MAX( + - 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4770
SELECT - COUNT ( * ) * + MAX ( + - 54 ) AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4771
SELECT ALL + ( + CASE - COUNT( ALL + - 15 ) WHEN + SUM( ALL - - 39 ) THEN + ( + CASE 61 WHEN - 11 THEN CASE WHEN NOT ( NULL ) = ( NULL ) THEN - COUNT( 44 ) END WHEN - COUNT( * ) * COUNT( * ) THEN - COUNT( + 39 ) ELSE + 25 END ) ELSE + 83 + COALESCE ( - 75 + ( 30 + CASE - 28 - - CAST( 77 AS SIGNED ) WHEN + 3 * 57 + + 16 THEN + 65 - COUNT( * ) END ) * 43, 31 * + ( - 60 * 92 ) ) END ) AS col0
----
-171037

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL + ( + CASE - COUNT ( ALL + - 15 ) WHEN + SUM ( ALL - - 39 ) THEN + ( + CASE 61 WHEN - 11 THEN CASE WHEN NOT ( NULL ) = ( NULL ) THEN - COUNT ( 44 ) END WHEN - COUNT ( * ) * COUNT ( * ) THEN - COUNT ( + 39 ) ELSE + 25 END ) ELSE + 83 + COALESCE ( - 75 + ( 30 + CASE - 28 - - CAST ( 77 AS INTEGER ) WHEN + 3 * 57 + + 16 THEN + 65 - COUNT ( * ) END ) * 43, 31 * + ( - 60 * 92 ) ) END ) AS col0
----
-171037

query I rowsort
SELECT DISTINCT + 54 * + 89 * + 87 AS col1
----
418122

onlyif mysql # aggregate syntax: 
query II rowsort label-4773
SELECT ALL + 45 AS col1, - 17 - - COUNT( * ) * 88 AS col1
----
45
71

skipif mysql # not compatible
query II rowsort label-4773
SELECT ALL + 45 AS col1, - 17 - - COUNT ( * ) * 88 AS col1
----
45
71

query I rowsort
SELECT ALL + 36 * - 55 * + 54
----
-106920

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT + COALESCE ( 96, SUM( ALL - 61 ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT + COALESCE ( 96, SUM ( ALL - 61 ) ) AS col2
----
96

query II rowsort
SELECT ALL + 61 AS col0, 45 * + 73
----
61
3285

query I rowsort
SELECT - 57 * - 65 AS col0
----
3705

query I rowsort
SELECT + ( + 18 ) * 78 AS col0
----
1404

query I rowsort
SELECT ALL + ( - 4 )
----
-4

query I rowsort
SELECT + 58 * - - 65 - - 18 AS col2
----
3788

query I rowsort
SELECT ( - 15 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4782
SELECT + ( COUNT( * ) ) AS col1, ( 40 ) DIV + 10 - + CAST( + 36 AS SIGNED ) + - 53 + - - 75
----
1
-10

skipif mysql # not compatible
query II rowsort label-4782
SELECT + ( COUNT ( * ) ) AS col1, ( 40 ) / + 10 - + CAST ( + 36 AS INTEGER ) + - 53 + - - 75
----
1
-10

query II rowsort
SELECT ALL + 51, + CASE - 62 WHEN 22 THEN ( - 88 ) * - 59 ELSE NULL END + 16 AS col0
----
51
NULL

query I rowsort
SELECT - 21 * - 7
----
147

query I rowsort
SELECT + 85 * 43 AS col2
----
3655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT COALESCE ( 51, + 14 * - + 46 * CAST( NULL AS SIGNED ), 75 )
----
51

skipif mysql # not compatible
query I rowsort label-4786
SELECT COALESCE ( 51, + 14 * - + 46 * CAST ( NULL AS INTEGER ), 75 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4787
SELECT ALL MAX( DISTINCT + 71 ) * - CASE - + ( 92 ) WHEN - COUNT( DISTINCT 86 ) * + - CASE - + 39 WHEN 7 THEN + 97 * + ( + CAST( NULL AS SIGNED ) / 30 ) + 62 * - COUNT( * ) WHEN ( CASE 90 WHEN + 24 - 35 THEN + 72 + - CAST( NULL AS SIGNED ) WHEN 55 + + COUNT( * ) * + 60 THEN 1 ELSE + COUNT( * ) END ) THEN NULL END * - 26 THEN + 27 ELSE 36 END + 1 * COALESCE ( 8 * - CAST( NULL AS SIGNED ), 91 ) AS col1
----
-2465

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL MAX ( DISTINCT + 71 ) * - CASE - + ( 92 ) WHEN - COUNT ( DISTINCT 86 ) * + - CASE - + 39 WHEN 7 THEN + 97 * + ( + CAST ( NULL AS INTEGER ) / 30 ) + 62 * - COUNT ( * ) WHEN ( CASE 90 WHEN + 24 - 35 THEN + 72 + - CAST ( NULL AS INTEGER ) WHEN 55 + + COUNT ( * ) * + 60 THEN 1 ELSE + COUNT ( * ) END ) THEN NULL END * - 26 THEN + 27 ELSE 36 END + 1 * COALESCE ( 8 * - CAST ( NULL AS INTEGER ), 91 ) AS col1
----
-2465

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + COUNT( * ) - - 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4788
SELECT + COUNT ( * ) - - 31 AS col1
----
32

query II rowsort
SELECT + 2, 97 * 55 AS col2
----
2
5335

query II rowsort
SELECT ALL + - 14 AS col0, - 59
----
-14
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4791
SELECT DISTINCT - 6 * - CAST( MAX( ( + - 74 ) ) AS SIGNED ) / + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 23 + - 13 + + 59 - - + ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT - 6 * - CAST ( MAX ( ( + - 74 ) ) AS INTEGER ) / + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 23 + - 13 + + 59 - - + ( 89 )
----
NULL

query II rowsort
SELECT - 86 col1, + 58 AS col1
----
-86
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT ALL + 73 * CAST( NULL AS SIGNED ) + + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + 73 * CAST ( NULL AS INTEGER ) + + 27 AS col2
----
NULL

query I rowsort
SELECT ALL - 40 * + ( + + 55 ) + + 91 * + 15 + - 25 AS col0
----
-860

query I rowsort
SELECT - - 9 + + 30 * + 60 AS col2
----
1809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT + + CAST( NULL AS SIGNED ) - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT + + CAST ( NULL AS INTEGER ) - 0 AS col2
----
NULL

query I rowsort
SELECT ALL ( + + 45 )
----
45

query II rowsort
SELECT ( + 61 ) AS col1, + 69
----
61
69

query I rowsort
SELECT DISTINCT + 79 + - + 74
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL 91 + 57 * - + COUNT( * ) * 97 * 85 col1
----
-469874

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL 91 + 57 * - + COUNT ( * ) * 97 * 85 col1
----
-469874

query I rowsort
SELECT + 60 + - 91 * - + 42 * + - 18 + + 96
----
-68640

onlyif mysql # aggregate syntax: 
query II rowsort label-4802
SELECT ALL + 12, COUNT( * ) col1
----
12
1

skipif mysql # not compatible
query II rowsort label-4802
SELECT ALL + 12, COUNT ( * ) col1
----
12
1

query I rowsort
SELECT ALL + 96 * - 19 col2
----
-1824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT CAST( - 63 AS SIGNED ) * - 63
----
3969

skipif mysql # not compatible
query I rowsort label-4804
SELECT CAST ( - 63 AS INTEGER ) * - 63
----
3969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT SUM( + 90 ) * - - MAX( - - 23 ) * - + CAST( NULL AS SIGNED ) / + 15 + 54 + + 31 * CAST( - CAST( - 40 AS SIGNED ) AS SIGNED ) + + 34 * 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT SUM ( + 90 ) * - - MAX ( - - 23 ) * - + CAST ( NULL AS INTEGER ) / + 15 + 54 + + 31 * CAST ( - CAST ( - 40 AS INTEGER ) AS INTEGER ) + + 34 * 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT DISTINCT 93 - - COUNT( * ) * 70 AS col2
----
163

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT 93 - - COUNT ( * ) * 70 AS col2
----
163

query I rowsort
SELECT DISTINCT - 22 col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4808
SELECT 5 DIV - MIN( ALL 29 ) - - + 4 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-4808
SELECT 5 / - MIN ( ALL 29 ) - - + 4 / + 91
----
0

query I rowsort
SELECT 9 * + - ( 45 )
----
-405

query I rowsort
SELECT 15 - + 64 + - - 71 + - 20 * - + 67 AS col0
----
1362

query I rowsort
SELECT ALL + 5 * - 65
----
-325

query I rowsort
SELECT DISTINCT + 96 + 2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT 99 DIV + - SUM( - 1 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4813
SELECT 99 / + - SUM ( - 1 ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4814
SELECT ALL + CASE - + NULLIF ( + 95, + 61 + - COUNT( * ) ) WHEN + + 52 THEN - ( + 21 ) + - 15 + + CAST( NULL AS DECIMAL ) * 18 WHEN + - 87 * 68 THEN NULL END + + CASE COUNT( * ) + - NULLIF ( + 10 - 63, ( 96 ) ) WHEN AVG ( 82 ) THEN NULL WHEN 9 THEN 40 ELSE - 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + CASE - + NULLIF ( + 95, + 61 + - COUNT ( * ) ) WHEN + + 52 THEN - ( + 21 ) + - 15 + + CAST ( NULL AS REAL ) * 18 WHEN + - 87 * 68 THEN NULL END + + CASE COUNT ( * ) + - NULLIF ( + 10 - 63, ( 96 ) ) WHEN AVG ( 82 ) THEN NULL WHEN 9 THEN 40 ELSE - 28 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT 5 + + CASE + - 59 WHEN + ( - - COUNT( * ) ) THEN + - COUNT( * ) / + AVG ( - 76 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT 5 + + CASE + - 59 WHEN + ( - - COUNT ( * ) ) THEN + - COUNT ( * ) / + AVG ( - 76 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL + COUNT( * ) * - + 2 * - - 77 * + - 7 * - + 63
----
-67914

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + COUNT ( * ) * - + 2 * - - 77 * + - 7 * - + 63
----
-67914

query I rowsort
SELECT 15 + - + 37 * + + 33
----
-1206

query I rowsort
SELECT ALL - ( + 46 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL + 18 + - COUNT( * ) + - 9 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL + 18 + - COUNT ( * ) + - 9 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + COUNT( ALL + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-4820
SELECT + COUNT ( ALL + 94 )
----
1

query I rowsort
SELECT ALL - - 28 + + + 74
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4822
SELECT COUNT( * ) DIV 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4822
SELECT COUNT ( * ) / 55 AS col2
----
0

query I rowsort
SELECT - 78 + - + 22
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT ALL + - 15 DIV - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + - 15 / - COUNT ( * ) AS col0
----
15

query I rowsort
SELECT DISTINCT - + 52 AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4826
SELECT + + CAST( AVG ( ALL 84 ) AS SIGNED ) col1
----
84

skipif mysql # not compatible
query I rowsort label-4826
SELECT + + CAST ( AVG ( ALL 84 ) AS INTEGER ) col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4827
SELECT 3 + - COUNT( * ) DIV - COUNT( * ) + - COALESCE ( + 70, + ( 45 ) + + ( SUM( ALL + 25 ) ), - - CAST( + 22 AS SIGNED ) ) - - 4 * 61
----
178

skipif mysql # not compatible
query I rowsort label-4827
SELECT 3 + - COUNT ( * ) / - COUNT ( * ) + - COALESCE ( + 70, + ( 45 ) + + ( SUM ( ALL + 25 ) ), - - CAST ( + 22 AS INTEGER ) ) - - 4 * 61
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL CASE - 80 WHEN - + 28 THEN NULL WHEN + + COALESCE ( 64, + 78 * COUNT( * ) + - 74 ) * - - 34 + + 93 + - 85 * + 22 THEN ( + 60 ) END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL CASE - 80 WHEN - + 28 THEN NULL WHEN + + COALESCE ( 64, + 78 * COUNT ( * ) + - 74 ) * - - 34 + + 93 + - 85 * + 22 THEN ( + 60 ) END + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + - NULLIF ( + + 54, + + 27 + + 42 ), + - 51, 72 * - ( - 6 ) + - 92 ) AS col0
----
-54

query I rowsort
SELECT 83 * - - 70 * - 49 AS col1
----
-284690

query I rowsort
SELECT ALL - ( + 80 ) * 87
----
-6960

query I rowsort
SELECT ALL - + 48 - 52 * + - 23 * 49
----
58556

onlyif mysql # aggregate syntax: 
query II rowsort label-4833
SELECT - ( - COUNT( * ) ) AS col1, - 36 + 51 AS col1
----
1
15

skipif mysql # not compatible
query II rowsort label-4833
SELECT - ( - COUNT ( * ) ) AS col1, - 36 + 51 AS col1
----
1
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4834
SELECT - SUM( ALL 36 ) AS col0, 62 * - 93
----
-36
-5766

skipif mysql # not compatible
query II rowsort label-4834
SELECT - SUM ( ALL 36 ) AS col0, 62 * - 93
----
-36
-5766

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT - 20 + COUNT( * ) + - 14
----
-33

skipif mysql # not compatible
query I rowsort label-4835
SELECT - 20 + COUNT ( * ) + - 14
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT MAX( DISTINCT + 58 ) - - 95 AS col2
----
153

skipif mysql # not compatible
query I rowsort label-4836
SELECT MAX ( DISTINCT + 58 ) - - 95 AS col2
----
153

query II rowsort
SELECT 53, 37 * - 84 AS col0
----
53
-3108

query I rowsort
SELECT ( 91 ) + 39 + - - 36 AS col2
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4839
SELECT SUM( 5 ) + 69, - COUNT( * ) * + 74 + - + COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-4839
SELECT SUM ( 5 ) + 69, - COUNT ( * ) * + 74 + - + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col2
----
74
NULL

query II rowsort
SELECT DISTINCT 44 AS col0, 6 * + 76 AS col2
----
44
456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4841
SELECT ALL COALESCE ( + COUNT( * ), + COUNT( * ) ) * 58 + + - CASE + - 16 WHEN 95 * + 9 + + - COALESCE ( + 98, + 92 / + 3 * - + COUNT( * ) + 15 * 1, CASE - 24 WHEN + 4 THEN 84 END, + 59 ) - - COUNT( * ) * CASE COUNT( * ) WHEN - SUM( DISTINCT - 72 ) - 30 THEN + MIN( + CAST( NULL AS SIGNED ) ) WHEN 26 * COUNT( * ) THEN - MAX( ALL 9 ) WHEN 72 THEN - MAX( + 11 ) WHEN 12 + + COUNT( * ) THEN 60 END THEN 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL COALESCE ( + COUNT ( * ), + COUNT ( * ) ) * 58 + + - CASE + - 16 WHEN 95 * + 9 + + - COALESCE ( + 98, + 92 / + 3 * - + COUNT ( * ) + 15 * 1, CASE - 24 WHEN + 4 THEN 84 END, + 59 ) - - COUNT ( * ) * CASE COUNT ( * ) WHEN - SUM ( DISTINCT - 72 ) - 30 THEN + MIN ( + CAST ( NULL AS INTEGER ) ) WHEN 26 * COUNT ( * ) THEN - MAX ( ALL 9 ) WHEN 72 THEN - MAX ( + 11 ) WHEN 12 + + COUNT ( * ) THEN 60 END THEN 83 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4842
SELECT CAST( - + CAST( 83 AS SIGNED ) AS SIGNED ) * 11 AS col2
----
-913

skipif mysql # not compatible
query I rowsort label-4842
SELECT CAST ( - + CAST ( 83 AS INTEGER ) AS INTEGER ) * 11 AS col2
----
-913

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - COUNT( + 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-4843
SELECT - COUNT ( + 70 )
----
-1

query II rowsort
SELECT - 53 AS col0, + 98 * + + 32
----
-53
3136

query I rowsort
SELECT 80 * + ( - NULLIF ( + ( - + 73 ), + + 12 ) ) AS col2
----
5840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4846
SELECT 10 DIV - 26 + - + MAX( DISTINCT COALESCE ( + COALESCE ( - 50, - - 25 ), 0 ) ) + 59 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-4846
SELECT 10 / - 26 + - + MAX ( DISTINCT COALESCE ( + COALESCE ( - 50, - - 25 ), 0 ) ) + 59 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT 25 + - - 58 + + 92 * - - 45 + + COUNT( * )
----
4224

skipif mysql # not compatible
query I rowsort label-4847
SELECT 25 + - - 58 + + 92 * - - 45 + + COUNT ( * )
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT SUM( DISTINCT - - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4848
SELECT SUM ( DISTINCT - - 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT 3 * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT 3 * - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL + 52 * - 90 * - 27 * MIN( ALL - - 67 ) * + SUM( NULLIF ( - + 66, - 62 * + ( - - 48 ) * + + 30 * 85 - + 45 * 82 ) ) + 37 AS col2
----
-558763883

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + 52 * - 90 * - 27 * MIN ( ALL - - 67 ) * + SUM ( NULLIF ( - + 66, - 62 * + ( - - 48 ) * + + 30 * 85 - + 45 * 82 ) ) + 37 AS col2
----
-558763883

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4851
SELECT DISTINCT - 69 * - 30 + - 75 AS col2, CAST( - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) + + 40
----
1995
NULL

skipif mysql # not compatible
query II rowsort label-4851
SELECT DISTINCT - 69 * - 30 + - 75 AS col2, CAST ( - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + 40
----
1995
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT - SUM( - ( - 75 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT - SUM ( - ( - 75 ) )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT + 70 * + ( - 26 ) + - CASE - + 47 WHEN - ( + 52 ) + + 66 + - COUNT( 3 ) THEN 48 END + + 4 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT + 70 * + ( - 26 ) + - CASE - + 47 WHEN - ( + 52 ) + + 66 + - COUNT ( 3 ) THEN 48 END + + 4 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT DISTINCT + 4 * - + 55 + + ( + - NULLIF ( + - 21, - 78 - - + CAST( + - 9 AS SIGNED ) + 46 - + NULLIF ( CAST( - 44 AS SIGNED ), + COUNT( * ) ) * + 73 ) ) + 81 * 34 + + 64 AS col2
----
2619

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT + 4 * - + 55 + + ( + - NULLIF ( + - 21, - 78 - - + CAST ( + - 9 AS INTEGER ) + 46 - + NULLIF ( CAST ( - 44 AS INTEGER ), + COUNT ( * ) ) * + 73 ) ) + 81 * 34 + + 64 AS col2
----
2619

query I rowsort
SELECT 80 * - 25 + + - 26 col0
----
-2026

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT + - COUNT( * ) col0, - COUNT( + + 51 ) * - 18 + - COUNT( * ) AS col2
----
-1
17

skipif mysql # not compatible
query II rowsort label-4856
SELECT + - COUNT ( * ) col0, - COUNT ( + + 51 ) * - 18 + - COUNT ( * ) AS col2
----
-1
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT + COUNT( * ) * - 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT + COUNT ( * ) * - 28 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT DISTINCT - COUNT( * ), 27 AS col0
----
-1
27

skipif mysql # not compatible
query II rowsort label-4858
SELECT DISTINCT - COUNT ( * ), 27 AS col0
----
-1
27

query I rowsort
SELECT ALL + - 88 - - 48
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT CASE + + 79 WHEN - 97 + + COUNT( * ) + + 16 THEN NULL ELSE + 55 END * - ( + ( CASE + 81 WHEN + 33 / - - 18 * 54 + 52 * + 12 THEN - ( 20 ) ELSE NULL END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT CASE + + 79 WHEN - 97 + + COUNT ( * ) + + 16 THEN NULL ELSE + 55 END * - ( + ( CASE + 81 WHEN + 33 / - - 18 * 54 + 52 * + 12 THEN - ( 20 ) ELSE NULL END ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 96 * - 34 * + + 84 * - 75
----
20563200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4862
SELECT - - 26 - 44 DIV - 46 + + 14 * - 24 + + - COUNT( ALL + CASE + 32 WHEN - - 91 THEN + - 7 DIV 56 * + - ( - + 37 ) WHEN - ( - 93 ) THEN + 92 ELSE + ( - 77 ) END ) * 77 AS col2
----
-387

skipif mysql # not compatible
query I rowsort label-4862
SELECT - - 26 - 44 / - 46 + + 14 * - 24 + + - COUNT ( ALL + CASE + 32 WHEN - - 91 THEN + - 7 / 56 * + - ( - + 37 ) WHEN - ( - 93 ) THEN + 92 ELSE + ( - 77 ) END ) * 77 AS col2
----
-387

query I rowsort
SELECT + 5 * - + 89 - - 55
----
-390

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4864
SELECT - 51 * 92 * + + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT - 51 * 92 * + + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 69 AS col2, + 37 * + - 86 AS col2
----
-69
-3182

onlyif mysql # aggregate syntax: 
query II rowsort label-4866
SELECT - SUM( 50 ) + + - 48 + - 46 * - 17 + + 56 AS col2, 8 AS col2
----
740
8

skipif mysql # not compatible
query II rowsort label-4866
SELECT - SUM ( 50 ) + + - 48 + - 46 * - 17 + + 56 AS col2, 8 AS col2
----
740
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4867
SELECT - 55, MIN( DISTINCT - 10 ) + - + 0 AS col1
----
-55
-10

skipif mysql # not compatible
query II rowsort label-4867
SELECT - 55, MIN ( DISTINCT - 10 ) + - + 0 AS col1
----
-55
-10

query I rowsort
SELECT - 13 * - 40 + 94 AS col1
----
614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4869
SELECT - 78 / - - 35 * COALESCE ( - COUNT( * ), 13 ) - + CAST( NULL AS SIGNED ) AS col1, - 67 AS col0
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-4869
SELECT - 78 / - - 35 * COALESCE ( - COUNT ( * ), 13 ) - + CAST ( NULL AS INTEGER ) AS col1, - 67 AS col0
----
NULL
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4870
SELECT - 18 * + CAST( NULL AS SIGNED ) / + MAX( + 49 ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT - 18 * + CAST ( NULL AS INTEGER ) / + MAX ( + 49 ) + 27
----
NULL

query I rowsort
SELECT + - 69 * - - AVG ( DISTINCT + + 47 ) * + + 25 + + + 28 + + 82 * + 60 * + 56 / - 15 * + CASE 47 WHEN - 40 THEN + - 86 WHEN 50 * 62 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 92 - + 8 AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT DISTINCT - + COUNT( * ) DIV - - ( - - 9 ) DIV + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT - + COUNT ( * ) / - - ( - - 9 ) / + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL - 30 * + 43 AS col1
----
-1290

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4875
SELECT - - 25 DIV CAST( 38 AS SIGNED ) + + 41 + - - 92 DIV - 67
----
40

skipif mysql # not compatible
query I rowsort label-4875
SELECT - - 25 / CAST ( 38 AS INTEGER ) + + 41 + - - 92 / - 67
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4876
SELECT ALL - 19 DIV + 1
----
-19

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL - 19 / + 1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL COUNT( * ) * 50 * - 1
----
-50

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL COUNT ( * ) * 50 * - 1
----
-50

query I rowsort
SELECT - ( + - 81 ) + - 57
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL CASE COUNT( * ) WHEN - 36 THEN + 62 * + + 87 ELSE - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL CASE COUNT ( * ) WHEN - 36 THEN + 62 * + + 87 ELSE - COUNT ( * ) END AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT ALL CASE 96 WHEN CAST( NULL AS SIGNED ) * + COUNT( * ) THEN - CASE 38 WHEN + 14 / - COUNT( * ) + - - COUNT( * ) THEN - + ( - 71 ) + + 81 / - 63 WHEN + - AVG ( ALL 67 ) * + 7 THEN NULL END * + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL CASE 96 WHEN CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN - CASE 38 WHEN + 14 / - COUNT ( * ) + - - COUNT ( * ) THEN - + ( - 71 ) + + 81 / - 63 WHEN + - AVG ( ALL 67 ) * + 7 THEN NULL END * + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL - 77 + NULLIF ( - 93, - 65 * MIN( ALL + - 86 ) + - SUM( - COALESCE ( - - 17, + 51 / - - 86 / - - 70 + + 58, - 14 ) ) + 82 ) col2
----
-170

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - 77 + NULLIF ( - 93, - 65 * MIN ( ALL + - 86 ) + - SUM ( - COALESCE ( - - 17, + 51 / - - 86 / - - 70 + + 58, - 14 ) ) + 82 ) col2
----
-170

query I rowsort
SELECT ALL + 23 * + + 42 * - 74
----
-71484

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT ( ( + CASE + 54 WHEN 49 * 25 + + 14 * + + 71 THEN + - 30 + 19 WHEN + 50 + - + COUNT( * ) THEN 7 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT ( ( + CASE + 54 WHEN 49 * 25 + + 14 * + + 71 THEN + - 30 + 19 WHEN + 50 + - + COUNT ( * ) THEN 7 ELSE NULL END ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4884
SELECT DISTINCT COUNT( * ) * CAST( - 79 AS SIGNED ) DIV + 96, 40 + + COUNT( * ) AS col1
----
0
41

skipif mysql # not compatible
query II rowsort label-4884
SELECT DISTINCT COUNT ( * ) * CAST ( - 79 AS INTEGER ) / + 96, 40 + + COUNT ( * ) AS col1
----
0
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT 57 + - + COUNT( * ) + + + 91 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT 57 + - + COUNT ( * ) + + + 91 AS col2
----
147

query I rowsort
SELECT + 69 + - 57 AS col1
----
12

query I rowsort
SELECT ALL 92 + - 9 * 27 + - 69 + - 24 col1
----
-244

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4888
SELECT DISTINCT ( + - COALESCE ( + ( 97 ), 51, - 57 DIV - 99 - + - CAST( - + 2 AS SIGNED ) + + 80 + - - 43 * + + COALESCE ( + 25, + + 52 ) * 14 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT ( + - COALESCE ( + ( 97 ), 51, - 57 / - 99 - + - CAST ( - + 2 AS INTEGER ) + + 80 + - - 43 * + + COALESCE ( + 25, + + 52 ) * 14 ) )
----
-97

query I rowsort
SELECT ALL ( + 11 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT + 74 + - 93 DIV + 3 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4890
SELECT + 74 + - 93 / + 3 AS col1
----
43

query I rowsort
SELECT 15 * + 37 * - 44 + 19 * - 24 AS col1
----
-24876

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL + MAX( DISTINCT + 17 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + MAX ( DISTINCT + 17 ) col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4893
SELECT + COUNT( * ) DIV ( 9 ) + + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4893
SELECT + COUNT ( * ) / ( 9 ) + + 49 AS col2
----
49

query I rowsort
SELECT + ( - + 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT + 14 + - + 23 + COUNT( * ) + 82 * - 42 * + 42 * - ( + COUNT( * ) )
----
144640

skipif mysql # not compatible
query I rowsort label-4895
SELECT + 14 + - + 23 + COUNT ( * ) + 82 * - 42 * + 42 * - ( + COUNT ( * ) )
----
144640

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL - 85 * - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - 85 * - COUNT ( * )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4897
SELECT - + 13 * - 2 DIV 97 + + + MAX( DISTINCT + 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4897
SELECT - + 13 * - 2 / 97 + + + MAX ( DISTINCT + 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4898
SELECT + + CASE + COUNT( * ) WHEN + 79 THEN 93 ELSE SUM( + 80 ) + - 89 END, 94 AS col2
----
-9
94

skipif mysql # not compatible
query II rowsort label-4898
SELECT + + CASE + COUNT ( * ) WHEN + 79 THEN 93 ELSE SUM ( + 80 ) + - 89 END, 94 AS col2
----
-9
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT ALL + 92 * - + COUNT( * ) - 38 * + 60 - + + 47 + - 25 AS col1
----
-2444

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL + 92 * - + COUNT ( * ) - 38 * + 60 - + + 47 + - 25 AS col1
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT 30 * - 35 + - - MIN( ALL - 33 ) AS col1
----
-1083

skipif mysql # not compatible
query I rowsort label-4900
SELECT 30 * - 35 + - - MIN ( ALL - 33 ) AS col1
----
-1083

query I rowsort
SELECT ALL 69 * + 61 AS col2
----
4209

query II rowsort
SELECT ALL + ( + 21 ) * + 59 * - 21 col2, - 42 col1
----
-26019
-42

query I rowsort
SELECT + + 55 + - 17 AS col1
----
38

query I rowsort
SELECT ALL + 33 col1
----
33

query I rowsort
SELECT + 27 + 69 - ( + 93 ) * + 82
----
-7530

query I rowsort
SELECT DISTINCT + ( + - 36 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4907
SELECT + 77 * + ( + - MIN( - - 98 ) ) + 37 DIV - 71 AS col2
----
-7546

skipif mysql # not compatible
query I rowsort label-4907
SELECT + 77 * + ( + - MIN ( - - 98 ) ) + 37 / - 71 AS col2
----
-7546

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - 49 * + COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4908
SELECT - 49 * + COUNT ( * ) AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4909
SELECT + 65 * 7 * + - 31 * COUNT( * ) * + CAST( NULL AS DECIMAL ) + - 45 + - + 49 + - 30 + + 99 * - ( - - 75 ) DIV + 90, - 3 * - + NULLIF ( 26, - COUNT( * ) * 94 ) DIV + 95 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4909
SELECT + 65 * 7 * + - 31 * COUNT ( * ) * + CAST ( NULL AS REAL ) + - 45 + - + 49 + - 30 + + 99 * - ( - - 75 ) / + 90, - 3 * - + NULLIF ( 26, - COUNT ( * ) * 94 ) / + 95 AS col2
----
NULL
0

query I rowsort
SELECT - - ( 42 ) + + + 74 col2
----
116

query I rowsort
SELECT + - 29 * - 28 + + - 47 AS col2
----
765

query I rowsort
SELECT DISTINCT - + 18 * 28
----
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-4913
SELECT DISTINCT - 90 * 75 AS col0, - ( CASE - CASE + + 25 WHEN - 30 THEN + 24 WHEN 8 - + ( COUNT( + + 21 ) ) THEN COUNT( * ) * 47 * 53 END WHEN 42 THEN + COUNT( * ) * + AVG ( ALL + 83 / + 85 ) WHEN + 62 THEN NULL ELSE NULL END )
----
-6750
NULL

skipif mysql # not compatible
query II rowsort label-4913
SELECT DISTINCT - 90 * 75 AS col0, - ( CASE - CASE + + 25 WHEN - 30 THEN + 24 WHEN 8 - + ( COUNT ( + + 21 ) ) THEN COUNT ( * ) * 47 * 53 END WHEN 42 THEN + COUNT ( * ) * + AVG ( ALL + 83 / + 85 ) WHEN + 62 THEN NULL ELSE NULL END )
----
-6750
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4914
SELECT - COALESCE ( + COUNT( * ), - + 24 DIV - 87 DIV - 8 + 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-4914
SELECT - COALESCE ( + COUNT ( * ), - + 24 / - 87 / - 8 + 16 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4915
SELECT COUNT( * ) AS col2, 94 DIV + 52 AS col2, - ( + 80 )
----
1
1
-80

skipif mysql # not compatible
query III rowsort label-4915
SELECT COUNT ( * ) AS col2, 94 / + 52 AS col2, - ( + 80 )
----
1
1
-80

query I rowsort
SELECT + 11 - - - 37
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT - COUNT( * ) * ( + ( + 28 ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4917
SELECT - COUNT ( * ) * ( + ( + 28 ) ) AS col0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4918
SELECT - ( 12 ) - - + COUNT( * ) DIV 12 - - + COUNT( + + 0 ) * - 56
----
-68

skipif mysql # not compatible
query I rowsort label-4918
SELECT - ( 12 ) - - + COUNT ( * ) / 12 - - + COUNT ( + + 0 ) * - 56
----
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4919
SELECT - CAST( NULL AS DECIMAL ) * - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT - CAST ( NULL AS REAL ) * - 8 AS col0
----
NULL

query I rowsort
SELECT - 10 + - 82 * + - 14 * 71
----
81498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4921
SELECT DISTINCT + 10 + 89 + + - 16 * 19 + - CAST( + MAX( ALL - 49 ) AS SIGNED ) * + ( + 38 ) + - + 28, + 64 AS col1
----
1629
64

skipif mysql # not compatible
query II rowsort label-4921
SELECT DISTINCT + 10 + 89 + + - 16 * 19 + - CAST ( + MAX ( ALL - 49 ) AS INTEGER ) * + ( + 38 ) + - + 28, + 64 AS col1
----
1629
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL + NULLIF ( - + 65, COUNT( * ) ) + + 8 col1
----
-57

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL + NULLIF ( - + 65, COUNT ( * ) ) + + 8 col1
----
-57

query I rowsort
SELECT DISTINCT ( + ( + 58 ) ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT DISTINCT 4 + + 73 * - + ( CAST( NULL AS SIGNED ) ) * - 2 * 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT 4 + + 73 * - + ( CAST ( NULL AS INTEGER ) ) * - 2 * 38 AS col2
----
NULL

query I rowsort
SELECT - 39 * ( 83 ) AS col2
----
-3237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT + COUNT( * ) + ( 50 ) * - COUNT( * ) DIV + 71 + - NULLIF ( - 27, - ( - + ( + + 19 ) ) - - 66 ) col0
----
28

skipif mysql # not compatible
query I rowsort label-4926
SELECT + COUNT ( * ) + ( 50 ) * - COUNT ( * ) / + 71 + - NULLIF ( - 27, - ( - + ( + + 19 ) ) - - 66 ) col0
----
28

query I rowsort
SELECT + 79 * - 44 AS col2
----
-3476

query I rowsort
SELECT ALL - ( - 18 ) * + 81 * + NULLIF ( 25, + 28 )
----
36450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4929
SELECT ALL - NULLIF ( - COUNT( * ), - 36 ) DIV + NULLIF ( + 60, + ( + 0 ) * - - 1 + 1 ) - + - 49 * - + 71 AS col1
----
-3479

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - NULLIF ( - COUNT ( * ), - 36 ) / + NULLIF ( + 60, + ( + 0 ) * - - 1 + 1 ) - + - 49 * - + 71 AS col1
----
-3479

query I rowsort
SELECT - 70 * 46 - - 91
----
-3129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT DISTINCT - ( CAST( + 48 AS SIGNED ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT - ( CAST ( + 48 AS INTEGER ) ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT + + 42 AS col2, + MAX( DISTINCT 64 ) AS col0
----
42
64

skipif mysql # not compatible
query II rowsort label-4932
SELECT + + 42 AS col2, + MAX ( DISTINCT 64 ) AS col0
----
42
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4933
SELECT ALL 37 DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL 37 / + 93 AS col0
----
0

query I rowsort
SELECT DISTINCT + 57 * + + 18
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - 21 * 26 - + COUNT( * )
----
-547

skipif mysql # not compatible
query I rowsort label-4935
SELECT - 21 * 26 - + COUNT ( * )
----
-547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT ALL + 13 * + CAST( + + 4 AS SIGNED ) * + 77 AS col1
----
4004

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + 13 * + CAST ( + + 4 AS INTEGER ) * + 77 AS col1
----
4004

query II rowsort
SELECT ALL - + 8 AS col1, 66
----
-8
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT - ( - + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4938
SELECT - ( - + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL - 80 * + 87 * 32 + + 32 * 6 + + 85 + - COALESCE ( 34, - - 77, - 61 ) * - 23
----
-221661

onlyif mysql # DIV for integer division: 
query I rowsort label-4940
SELECT 88 DIV + 18 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4940
SELECT 88 / + 18 AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4941
SELECT ALL - 78 AS col1, CAST( NULL AS SIGNED ) AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-4941
SELECT ALL - 78 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-78
NULL

query I rowsort
SELECT DISTINCT + ( - + 79 ) + + ( - 59 ) AS col1
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4943
SELECT ALL - COUNT( * ) + - 54 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - COUNT ( * ) + - 54 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL 10 + - - COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL 10 + - - COUNT ( * ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4945
SELECT ( + COUNT( * ) ) * - CAST( NULL AS SIGNED ) + - 94 - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT ( + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) + - 94 - 40 AS col0
----
NULL

query I rowsort
SELECT 9 - + + 10
----
-1

query II rowsort
SELECT - 39 AS col0, - 86 * + + 20 * - 2
----
-39
3440

query I rowsort
SELECT 15 * + 56 AS col0
----
840

query I rowsort
SELECT DISTINCT 17 + 80 + + + 63 - + - 84 AS col2
----
244

onlyif mysql # aggregate syntax: 
query II rowsort label-4950
SELECT ALL 92 AS col2, + MAX( - + 15 ) + ( + 28 ) AS col1
----
92
13

skipif mysql # not compatible
query II rowsort label-4950
SELECT ALL 92 AS col2, + MAX ( - + 15 ) + ( + 28 ) AS col1
----
92
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4951
SELECT ALL + CASE + 6 WHEN + 13 + + - COUNT( * ) + 19 THEN + - 52 WHEN - ( + 68 ) + 28 - - CAST( 67 AS SIGNED ) + + + 86 / + 69 * + + ( - 52 ) * 51 * + COUNT( * ) + 29 * COUNT( * ) THEN NULL END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + CASE + 6 WHEN + 13 + + - COUNT ( * ) + 19 THEN + - 52 WHEN - ( + 68 ) + 28 - - CAST ( 67 AS INTEGER ) + + + 86 / + 69 * + + ( - 52 ) * 51 * + COUNT ( * ) + 29 * COUNT ( * ) THEN NULL END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( - 1, - 23 * + 25 ) * - 85
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4953
SELECT DISTINCT 81 + + 33 * 37 - + 77 + 93 * - - 55 * + 51 * - 66 + - - COUNT( * ) AS col2, NULLIF ( 64, - 39 )
----
-17215864
64

skipif mysql # not compatible
query II rowsort label-4953
SELECT DISTINCT 81 + + 33 * 37 - + 77 + 93 * - - 55 * + 51 * - 66 + - - COUNT ( * ) AS col2, NULLIF ( 64, - 39 )
----
-17215864
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT 18 + - 56 - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-4954
SELECT 18 + - 56 - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL COUNT( * ) + NULLIF ( - 42, 99 * - 98 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL COUNT ( * ) + NULLIF ( - 42, 99 * - 98 ) AS col0
----
-41

query I rowsort
SELECT 5 + - 43 AS col2
----
-38

query I rowsort
SELECT 40 * 55
----
2200

query I rowsort
SELECT 44 * + + 22 AS col1
----
968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4959
SELECT 14 + - 68 + - MIN( 98 ) / + - CAST( NULL AS SIGNED ) * - 58 * + - 76 + SUM( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT 14 + - 68 + - MIN ( 98 ) / + - CAST ( NULL AS INTEGER ) * - 58 * + - 76 + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 16 - + 4 + 85
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4961
SELECT ALL 24 AS col2, 52 DIV 54 + + + MAX( DISTINCT + 13 ) - - 98 col1
----
24
111

skipif mysql # not compatible
query II rowsort label-4961
SELECT ALL 24 AS col2, 52 / 54 + + + MAX ( DISTINCT + 13 ) - - 98 col1
----
24
111

query I rowsort
SELECT ALL 26 col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT 30 - - COALESCE ( - 30, - - 28, + 76 + + CAST( NULL AS SIGNED ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4963
SELECT 30 - - COALESCE ( - 30, - - 28, + 76 + + CAST ( NULL AS INTEGER ) ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL + + 81 * + + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + + 81 * + + COUNT ( * )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4965
SELECT ALL + 8 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL + 8 / + 27
----
0

query I rowsort
SELECT ALL + 28 * + 37 AS col0
----
1036

query I rowsort
SELECT DISTINCT - - 52 * - + 8 + 67 AS col2
----
-349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4968
SELECT + 48 + - 13 * - - CAST( + - 10 AS SIGNED ) AS col1
----
178

skipif mysql # not compatible
query I rowsort label-4968
SELECT + 48 + - 13 * - - CAST ( + - 10 AS INTEGER ) AS col1
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT + 62 + + 0 DIV + 99
----
62

skipif mysql # not compatible
query I rowsort label-4969
SELECT + 62 + + 0 / + 99
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4970
SELECT - 45 + - 95 DIV + 31
----
-48

skipif mysql # not compatible
query I rowsort label-4970
SELECT - 45 + - 95 / + 31
----
-48

query II rowsort
SELECT ALL - - 14 col1, - 92 * + 62 AS col1
----
14
-5704

query I rowsort
SELECT + - 13 col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4973
SELECT - 89 * + 36 AS col2, + COUNT( * ) * 12 col0
----
-3204
12

skipif mysql # not compatible
query II rowsort label-4973
SELECT - 89 * + 36 AS col2, + COUNT ( * ) * 12 col0
----
-3204
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4974
SELECT ALL + + 10 + - + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + + 10 + - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT + + 96 / AVG ( DISTINCT - - 98 ) + - 84 * CAST( NULL AS SIGNED ) * - + COALESCE ( - 83, + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT + + 96 / AVG ( DISTINCT - - 98 ) + - 84 * CAST ( NULL AS INTEGER ) * - + COALESCE ( - 83, + 60 )
----
NULL

query I rowsort
SELECT ALL 42 + 98 AS col0
----
140

query I rowsort
SELECT - 11 + - + 9 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL - + MAX( ALL + ( - + 45 ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - + MAX ( ALL + ( - + 45 ) ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL 55 + SUM( ALL + 12 ) + - 43 - 47
----
-23

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL 55 + SUM ( ALL + 12 ) + - 43 - 47
----
-23

query I rowsort
SELECT + - 82 * 31 + - - 98 AS col1
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL - 51 * + 30 * + + COUNT( * )
----
-1530

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL - 51 * + 30 * + + COUNT ( * )
----
-1530

query I rowsort
SELECT DISTINCT + 40 + - - 77 * - 40 AS col2
----
-3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4983
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN - CASE + + 10 WHEN + - 62 THEN NULLIF ( - - 93, ( - - 97 ) * - AVG ( - + 63 ) / + + ( + - 39 ) ) END / - - 89 + + ( + 77 ) / 79 THEN NULL WHEN - 1 + - 35 THEN 96 + 82 WHEN 94 / COUNT( * ) THEN NULL ELSE 84 END AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4983
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN - CASE + + 10 WHEN + - 62 THEN NULLIF ( - - 93, ( - - 97 ) * - AVG ( - + 63 ) / + + ( + - 39 ) ) END / - - 89 + + ( + 77 ) / 79 THEN NULL WHEN - 1 + - 35 THEN 96 + 82 WHEN 94 / COUNT ( * ) THEN NULL ELSE 84 END AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT ALL SUM( ALL - CAST( - 27 AS SIGNED ) ) + + 93 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL SUM ( ALL - CAST ( - 27 AS INTEGER ) ) + + 93 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT COUNT( 57 ) * COUNT( * ) * + MAX( - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4985
SELECT COUNT ( 57 ) * COUNT ( * ) * + MAX ( - 45 )
----
-45

query I rowsort
SELECT 83 * + 23 AS col0
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT COUNT( * ) + 45 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4987
SELECT COUNT ( * ) + 45 AS col2
----
46

query I rowsort
SELECT ALL 76 + + 66
----
142

query I rowsort
SELECT ALL + 64 + + 49
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT - ( COUNT( * ) ) * - CASE - + COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN 83 THEN + COUNT( * ) + + MIN( 17 ) + + COALESCE ( - - 98, 40 * - 68 ) END - - - COUNT( * ) + + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT - ( COUNT ( * ) ) * - CASE - + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN 83 THEN + COUNT ( * ) + + MIN ( 17 ) + + COALESCE ( - - 98, 40 * - 68 ) END - - - COUNT ( * ) + + 7 AS col1
----
NULL

query I rowsort
SELECT ALL 40 * + 55
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT COUNT( * ) + - + 73
----
-72

skipif mysql # not compatible
query I rowsort label-4992
SELECT COUNT ( * ) + - + 73
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT CASE - + 17 WHEN 37 THEN - 81 END - + COUNT( + 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT CASE - + 17 WHEN 37 THEN - 81 END - + COUNT ( + 54 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT COUNT( - 74 ) - 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4994
SELECT COUNT ( - 74 ) - 34 AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4995
SELECT DISTINCT NULLIF ( - 19, + - COUNT( - 8 ) + - 93 * - 53 + + 38 * + 60 ) - - 69 - - MAX( 13 ) * + CASE - 93 WHEN - 34 THEN - 10 WHEN - + 73 * - CAST( NULL AS DECIMAL ) * 29 + - COALESCE ( - 41, ( - 64 ) DIV - 19 ) THEN - NULLIF ( - 29, + ( - 61 ) ) * - COALESCE ( 28 * + 56, + ( - 76 ) ) + - 20 ELSE 13 DIV 83 END
----
50

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT NULLIF ( - 19, + - COUNT ( - 8 ) + - 93 * - 53 + + 38 * + 60 ) - - 69 - - MAX ( 13 ) * + CASE - 93 WHEN - 34 THEN - 10 WHEN - + 73 * - CAST ( NULL AS REAL ) * 29 + - COALESCE ( - 41, ( - 64 ) / - 19 ) THEN - NULLIF ( - 29, + ( - 61 ) ) * - COALESCE ( 28 * + 56, + ( - 76 ) ) + - 20 ELSE 13 / 83 END
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT 50 + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4996
SELECT 50 + COUNT ( * )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4997
SELECT ALL ( - + CAST( COUNT( * ) AS SIGNED ) ) * - + 28 * - 48 * - NULLIF ( - 17, 12 * 64 ) * - + 41 + + 20 + - ( + ( + NULLIF ( + 91, - NULLIF ( MIN( 54 ), - 66 - + 10 ) / - 45 + 99 ) ) ) * 87
----
928871

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL ( - + CAST ( COUNT ( * ) AS INTEGER ) ) * - + 28 * - 48 * - NULLIF ( - 17, 12 * 64 ) * - + 41 + + 20 + - ( + ( + NULLIF ( + 91, - NULLIF ( MIN ( 54 ), - 66 - + 10 ) / - 45 + 99 ) ) ) * 87
----
928871

query I rowsort
SELECT + 85 + - + 36 * - 25
----
985

query I rowsort
SELECT - NULLIF ( + - 63, - 53 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + 61 + COUNT( * ) + + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5000
SELECT + 61 + COUNT ( * ) + + COUNT ( * ) AS col2
----
63

query I rowsort
SELECT ALL + 79 * + + 75
----
5925

query I rowsort
SELECT - + 68 * + 70
----
-4760

query I rowsort
SELECT - 2 + + 83
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL + COALESCE ( 30, + 57 + + 17 + + 28 * + SUM( ALL 18 ), MIN( - 46 ) )
----
30

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL + COALESCE ( 30, + 57 + + 17 + + 28 * + SUM ( ALL 18 ), MIN ( - 46 ) )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT + COALESCE ( + - 27, - 34 + - + 49 + + + 43 - - 8 DIV - 53 + + 36 * ( - - 87 ) * - - 99 )
----
-27

skipif mysql # not compatible
query I rowsort label-5005
SELECT + COALESCE ( + - 27, - 34 + - + 49 + + + 43 - - 8 / - 53 + + 36 * ( - - 87 ) * - - 99 )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT - 73 DIV + 67 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5006
SELECT - 73 / + 67 AS col0
----
-1

query I rowsort
SELECT DISTINCT - - 37 * 95 AS col2
----
3515

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT ALL 74 * + + 63 * + COUNT( + - 65 ) * - 28 + - 77 + + 34 + + 45 + - 78 * COUNT( * ) * + MAX( DISTINCT 35 ), + 34 col2
----
-133264
34

skipif mysql # not compatible
query II rowsort label-5008
SELECT ALL 74 * + + 63 * + COUNT ( + - 65 ) * - 28 + - 77 + + 34 + + 45 + - 78 * COUNT ( * ) * + MAX ( DISTINCT 35 ), + 34 col2
----
-133264
34

query II rowsort
SELECT + COALESCE ( 44, - 78 ), ( + - 45 ) + - 53 + + NULLIF ( - + ( - - 24 ), + - 65 * - 22 ) * + 57 * + 30 AS col2
----
44
-41138

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL SUM( DISTINCT + 35 ) * - + 49 * + 21 + + 21
----
-35994

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL SUM ( DISTINCT + 35 ) * - + 49 * + 21 + + 21
----
-35994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5011
SELECT ALL - 3 DIV - - MAX( ALL + 68 ) + - 77
----
-77

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL - 3 / - - MAX ( ALL + 68 ) + - 77
----
-77

query I rowsort
SELECT ALL - NULLIF ( 12, + CASE + 50 WHEN - 77 THEN NULL WHEN - - 51 THEN - + ( 41 ) WHEN + + AVG ( DISTINCT + 4 ) THEN + 62 + + - 83 * 26 * AVG ( ALL 6 ) + + + 76 * 45 END ) * 59 + ( 60 ) AS col2
----
-648

query I rowsort
SELECT + + ( - + ( + - 60 ) ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT - - 17 * - MIN( DISTINCT - 98 ) AS col2
----
1666

skipif mysql # not compatible
query I rowsort label-5014
SELECT - - 17 * - MIN ( DISTINCT - 98 ) AS col2
----
1666

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL 82 * + ( + MAX( + 57 ) ) * + 36 * + 30 + 85 + - 59
----
5047946

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL 82 * + ( + MAX ( + 57 ) ) * + 36 * + 30 + 85 + - 59
----
5047946

query I rowsort
SELECT + + 6 * 2 + + + 73 * - ( + 13 ) - - - 7 AS col2
----
-944

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5017
SELECT - 86 DIV - + 77 + + 46 col2, ( - 50 ) DIV ( 70 ) + + COUNT( * )
----
47
1

skipif mysql # not compatible
query II rowsort label-5017
SELECT - 86 / - + 77 + + 46 col2, ( - 50 ) / ( 70 ) + + COUNT ( * )
----
47
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT + NULLIF ( - 14, - COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-5018
SELECT + NULLIF ( - 14, - COUNT ( * ) )
----
-14

query I rowsort
SELECT + 70 * - - 73 AS col2
----
5110

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT COALESCE ( + - MAX( ALL - 28 ), 20 )
----
28

skipif mysql # not compatible
query I rowsort label-5020
SELECT COALESCE ( + - MAX ( ALL - 28 ), 20 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT DISTINCT + CAST( + ( 81 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT + CAST ( + ( 81 ) AS INTEGER )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT - SUM( ALL 75 ) * + - COALESCE ( - 15, - 85 ) - + - 15
----
-1110

skipif mysql # not compatible
query I rowsort label-5022
SELECT - SUM ( ALL 75 ) * + - COALESCE ( - 15, - 85 ) - + - 15
----
-1110

query I rowsort
SELECT ALL + ( 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - 10 + - ( + + MAX( ALL + 10 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-5024
SELECT - 10 + - ( + + MAX ( ALL + 10 ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL + MAX( ALL + - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL + MAX ( ALL + - 1 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT ALL + ( 55 ) DIV - + 27
----
-2

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL + ( 55 ) / - + 27
----
-2

query I rowsort
SELECT - 98 + - - 80 col1
----
-18

query I rowsort
SELECT + 4 * - - ( - + 39 )
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT - 17 * + 33 + - + COUNT( * )
----
-562

skipif mysql # not compatible
query I rowsort label-5029
SELECT - 17 * + 33 + - + COUNT ( * )
----
-562

query I rowsort
SELECT + 80 - ( - 94 )
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-5031
SELECT ALL 57 col1, + 93 * ( - COUNT( * ) ) AS col1
----
57
-93

skipif mysql # not compatible
query II rowsort label-5031
SELECT ALL 57 col1, + 93 * ( - COUNT ( * ) ) AS col1
----
57
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT COUNT( * ) * + MAX( DISTINCT NULLIF ( + + 47, - 95 ) ) * + 22 + + 13 + + 58 - 23
----
1082

skipif mysql # not compatible
query I rowsort label-5032
SELECT COUNT ( * ) * + MAX ( DISTINCT NULLIF ( + + 47, - 95 ) ) * + 22 + + 13 + + 58 - 23
----
1082

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT DISTINCT - ( CASE 20 WHEN - + ( - - 48 ) THEN NULL ELSE 11 END ) * - COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT - ( CASE 20 WHEN - + ( - - 48 ) THEN NULL ELSE 11 END ) * - COUNT ( * ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT + 20 + ( - - 26 ) + + 95 - - - COUNT( * ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-5034
SELECT + 20 + ( - - 26 ) + + 95 - - - COUNT ( * ) AS col1
----
140

query I rowsort
SELECT DISTINCT ( + 3 ) * 3 + + 29 * - + 6 AS col0
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT DISTINCT 50 DIV - + 16 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT 50 / - + 16 AS col2
----
-3

query I rowsort
SELECT + 77 * 25
----
1925

query I rowsort
SELECT ALL 47 + + 48
----
95

query I rowsort
SELECT - 17 + - + 81 AS col0
----
-98

query II rowsort
SELECT + 52 AS col0, - 37 - - 27 AS col1
----
52
-10

on