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

onlyif mysql # DIV for integer division: 
query I rowsort label-5041
SELECT + NULLIF ( NULLIF ( + - 60, - 7 ), 76 + + - 44 * 50 + + 58 - - + 70 + - ( - 63 ) + - 26 ) + + 40 DIV - 65
----
-60

skipif mysql # not compatible
query I rowsort label-5041
SELECT + NULLIF ( NULLIF ( + - 60, - 7 ), 76 + + - 44 * 50 + + 58 - - + 70 + - ( - 63 ) + - 26 ) + + 40 / - 65
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT - CASE 61 WHEN COUNT( * ) THEN + 91 WHEN + + 5 * 3 / + 17 THEN NULL WHEN + - 8 + - + 49 + + 3 + + - COALESCE ( - 82, + - 34, - + 62 * + - 75 + + AVG ( 63 ) * - - 2 + - 48, 24 * + 34 ) / 89 THEN 26 + 26 ELSE 33 END
----
-33

skipif mysql # not compatible
query I rowsort label-5042
SELECT - CASE 61 WHEN COUNT ( * ) THEN + 91 WHEN + + 5 * 3 / + 17 THEN NULL WHEN + - 8 + - + 49 + + 3 + + - COALESCE ( - 82, + - 34, - + 62 * + - 75 + + AVG ( 63 ) * - - 2 + - 48, 24 * + 34 ) / 89 THEN 26 + 26 ELSE 33 END
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT SUM( ALL - 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT SUM ( ALL - 60 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + - 62 + + COUNT( ALL - 26 ) + + + 64 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5044
SELECT + - 62 + + COUNT ( ALL - 26 ) + + + 64 AS col1
----
3

query I rowsort
SELECT + - 56 * + 90 AS col2
----
-5040

query II rowsort
SELECT ALL 63, 13 AS col1
----
63
13

query I rowsort
SELECT + - ( 51 ) + 7 AS col1
----
-44

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

query I rowsort
SELECT + 80 + + - 78
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5050
SELECT DISTINCT CASE + 76 WHEN + 48 + - 46 THEN 71 + + - 42 ELSE NULL END / - COUNT( * ) + 32 + COUNT( * ), 43 * + 34 + + 20 AS col2
----
NULL
1482

skipif mysql # not compatible
query II rowsort label-5050
SELECT DISTINCT CASE + 76 WHEN + 48 + - 46 THEN 71 + + - 42 ELSE NULL END / - COUNT ( * ) + 32 + COUNT ( * ), 43 * + 34 + + 20 AS col2
----
NULL
1482

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5051
SELECT ALL - 59 DIV - - ( - CAST( 58 AS SIGNED ) ) + + - 6 + 1 - - 44 col2
----
40

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - 59 / - - ( - CAST ( 58 AS INTEGER ) ) + + - 6 + 1 - - 44 col2
----
40

query I rowsort
SELECT + 46 + + - 5
----
41

query I rowsort
SELECT + + 44 * - 11 + + 64
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT - - 55 + - 57 * - MAX( - + 0 ) * 61 - 26 col0
----
29

skipif mysql # not compatible
query I rowsort label-5054
SELECT - - 55 + - 57 * - MAX ( - + 0 ) * 61 - 26 col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5055
SELECT + - MAX( ALL + 23 ) * 29 DIV + ( + 32 )
----
-20

skipif mysql # not compatible
query I rowsort label-5055
SELECT + - MAX ( ALL + 23 ) * 29 / + ( + 32 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5056
SELECT ALL + CASE - - 75 WHEN 82 * - - 43 * 9 THEN NULL WHEN + MAX( - 9 ) THEN - - ( - 67 ) * 11 + 77 * CAST( - 65 AS SIGNED ) - + 64 + + - 10 + + 97 * - - COALESCE ( - ( - 80 ), 45 + - 88 * 90, 21 ) + - COALESCE ( 83, + 92, - 34 ) ELSE NULL END / 45 - - NULLIF ( 24 + 74, - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + CASE - - 75 WHEN 82 * - - 43 * 9 THEN NULL WHEN + MAX ( - 9 ) THEN - - ( - 67 ) * 11 + 77 * CAST ( - 65 AS INTEGER ) - + 64 + + - 10 + + 97 * - - COALESCE ( - ( - 80 ), 45 + - 88 * 90, 21 ) + - COALESCE ( 83, + 92, - 34 ) ELSE NULL END / 45 - - NULLIF ( 24 + 74, - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5057
SELECT + 95 DIV + 25 + + MAX( - + ( + 18 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-5057
SELECT + 95 / + 25 + + MAX ( - + ( + 18 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT - 34 + - SUM( ALL - 61 )
----
27

skipif mysql # not compatible
query I rowsort label-5058
SELECT - 34 + - SUM ( ALL - 61 )
----
27

query I rowsort
SELECT - 52 * - 47 AS col1
----
2444

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

query II rowsort
SELECT ( - 24 ) AS col0, 80 + - 69 + 20 * - 54
----
-24
-1069

query I rowsort
SELECT 56 * + + 85 + - 90
----
4670

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT + MAX( ALL 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT + MAX ( ALL 2 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT ALL - ( + 42 ) * - - 4 + - - 46 - - 19 DIV 30
----
-122

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL - ( + 42 ) * - - 4 + - - 46 - - 19 / 30
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT - 92 * + + 1 / + + CAST( NULL AS SIGNED ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT 53 + + - CASE + 15 WHEN + + 69 THEN NULL WHEN + ( - 75 ) * - 44 + + 5 THEN NULL ELSE - MIN( + 8 ) END + + - NULLIF ( - 82, 3 + 14 * - + 7 * - 38 + 38 ) AS col0
----
143

skipif mysql # not compatible
query I rowsort label-5066
SELECT 53 + + - CASE + 15 WHEN + + 69 THEN NULL WHEN + ( - 75 ) * - 44 + + 5 THEN NULL ELSE - MIN ( + 8 ) END + + - NULLIF ( - 82, 3 + 14 * - + 7 * - 38 + 38 ) AS col0
----
143

query I rowsort
SELECT DISTINCT 60 col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5068
SELECT ALL - COUNT( * ) * + NULLIF ( + + 39, - 23 + COUNT( * ) / - 64 + + + 63 ) AS col1, 53 * - 64 * - ( + + 5 ) AS col2
----
-39
16960

skipif mysql # not compatible
query II rowsort label-5068
SELECT ALL - COUNT ( * ) * + NULLIF ( + + 39, - 23 + COUNT ( * ) / - 64 + + + 63 ) AS col1, 53 * - 64 * - ( + + 5 ) AS col2
----
-39
16960

query I rowsort
SELECT 57 * + 61 + + - 0
----
3477

onlyif mysql # aggregate syntax: 
query II rowsort label-5070
SELECT 50 + - NULLIF ( NULLIF ( - 19, + - COUNT( * ) ), + 87 ) * - 4 * + SUM( 31 ) AS col1, 12
----
-2306
12

skipif mysql # not compatible
query II rowsort label-5070
SELECT 50 + - NULLIF ( NULLIF ( - 19, + - COUNT ( * ) ), + 87 ) * - 4 * + SUM ( 31 ) AS col1, 12
----
-2306
12

query I rowsort
SELECT - + 55 col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + SUM( DISTINCT + 79 ) + MIN( - + 38 ) + 63
----
104

skipif mysql # not compatible
query I rowsort label-5072
SELECT + SUM ( DISTINCT + 79 ) + MIN ( - + 38 ) + 63
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5073
SELECT ( - 28 ) DIV - 33 * - + COALESCE ( NULLIF ( + 11, + 80 - COUNT( * ) ), - 34 + - CAST( NULL AS SIGNED ), + + 94 ) + + COUNT( * ) - - 96 + + 26 * - ( + ( 80 ) ) AS col1
----
-1983

skipif mysql # not compatible
query I rowsort label-5073
SELECT ( - 28 ) / - 33 * - + COALESCE ( NULLIF ( + 11, + 80 - COUNT ( * ) ), - 34 + - CAST ( NULL AS INTEGER ), + + 94 ) + + COUNT ( * ) - - 96 + + 26 * - ( + ( 80 ) ) AS col1
----
-1983

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + COUNT( DISTINCT + COALESCE ( + 68, + 46 + - 8 + ( 2 ) - - 97 / + 72 ) ) + MIN( DISTINCT - 5 )
----
-4

skipif mysql # not compatible
query I rowsort label-5074
SELECT + COUNT ( DISTINCT + COALESCE ( + 68, + 46 + - 8 + ( 2 ) - - 97 / + 72 ) ) + MIN ( DISTINCT - 5 )
----
-4

query II rowsort
SELECT DISTINCT 76 * - + 97 AS col2, 30 * + - 8 AS col2
----
-7372
-240

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL - - 3 * MIN( 18 ) * 59
----
3186

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL - - 3 * MIN ( 18 ) * 59
----
3186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5079
SELECT - 64 DIV COALESCE ( 4, + + 58 - + - COUNT( + - 68 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-5079
SELECT - 64 / COALESCE ( 4, + + 58 - + - COUNT ( + - 68 ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL - - 90 + CASE + 54 WHEN + + 73 + 51 THEN + + COUNT( * ) WHEN 30 - 21 THEN NULL ELSE NULL END * - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL - - 90 + CASE + 54 WHEN + + 73 + 51 THEN + + COUNT ( * ) WHEN 30 - 21 THEN NULL ELSE NULL END * - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT 60 * MIN( - 10 )
----
-600

skipif mysql # not compatible
query I rowsort label-5081
SELECT 60 * MIN ( - 10 )
----
-600

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5084
SELECT + CAST( NULL AS DECIMAL ) + + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT + CAST ( NULL AS REAL ) + + 50 AS col2
----
NULL

query I rowsort
SELECT + - NULLIF ( + 57, + 45 ) AS col0
----
-57

query I rowsort
SELECT DISTINCT - - 6 col1
----
6

query I rowsort
SELECT ALL 10 * 19 * + 64 AS col0
----
12160

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT - 80 * - MIN( ALL - COALESCE ( - 72, 53 - - 79 ) )
----
5760

skipif mysql # not compatible
query I rowsort label-5088
SELECT - 80 * - MIN ( ALL - COALESCE ( - 72, 53 - - 79 ) )
----
5760

query I rowsort
SELECT DISTINCT 88 * + 57
----
5016

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT ALL 17 * NULLIF ( - 94, 92 ) DIV 99
----
-16

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL 17 * NULLIF ( - 94, 92 ) / 99
----
-16

query I rowsort
SELECT 89 - - - 34
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5092
SELECT + COUNT( DISTINCT 18 ) * + + NULLIF ( COALESCE ( ( - 72 ), 57 * + - CAST( - CAST( 96 AS SIGNED ) AS SIGNED ) ), + 62 ) + - - COUNT( * ) * + + 43 - - 86 * ( - 69 )
----
-5963

skipif mysql # not compatible
query I rowsort label-5092
SELECT + COUNT ( DISTINCT 18 ) * + + NULLIF ( COALESCE ( ( - 72 ), 57 * + - CAST ( - CAST ( 96 AS INTEGER ) AS INTEGER ) ), + 62 ) + - - COUNT ( * ) * + + 43 - - 86 * ( - 69 )
----
-5963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5093
SELECT CAST( NULL AS SIGNED ) + + 19 / - 68 + - + SUM( - 99 ) * + 43 + - - 54 + - - 35 + - 82 + 89, 3 + 23 col1
----
NULL
26

skipif mysql # not compatible
query II rowsort label-5093
SELECT CAST ( NULL AS INTEGER ) + + 19 / - 68 + - + SUM ( - 99 ) * + 43 + - - 54 + - - 35 + - 82 + 89, 3 + 23 col1
----
NULL
26

query II rowsort
SELECT ALL - 69 AS col2, + 9 * + 18 AS col2
----
-69
162

query I rowsort
SELECT 40 * - 79 AS col2
----
-3160

query I rowsort
SELECT 50 * 95 AS col0
----
4750

query I rowsort
SELECT ALL 44 + + + 33
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT ALL - 99 * + NULLIF ( + CAST( NULL AS SIGNED ), + 28 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL - 99 * + NULLIF ( + CAST ( NULL AS INTEGER ), + 28 ) col0
----
NULL

query I rowsort
SELECT 40 * + 61
----
2440

onlyif mysql # DIV for integer division: 
query I rowsort label-5100
SELECT DISTINCT - 67 + 47 DIV + 50
----
-67

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT - 67 + 47 / + 50
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL + - 30 + - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL + - 30 + - COUNT ( * )
----
-31

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

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

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

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

query I rowsort
SELECT 34 * 74
----
2516

query I rowsort
SELECT DISTINCT - - 1 * + 47 AS col0
----
47

query I rowsort
SELECT 96 + - 82 * + 59 * - 56 * 58
----
15713920

query II rowsort
SELECT DISTINCT + 98 AS col2, 22 col1
----
98
22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5109
SELECT + 89 * + 37 + - 88 * + - COUNT( * ) + + 31 AS col1, 68 * - 82 * 77 - COUNT( * ) + - ( + 73 ) + - 44 AS col2
----
3412
-429470

skipif mysql # not compatible
query II rowsort label-5109
SELECT + 89 * + 37 + - 88 * + - COUNT ( * ) + + 31 AS col1, 68 * - 82 * 77 - COUNT ( * ) + - ( + 73 ) + - 44 AS col2
----
3412
-429470

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5112
SELECT - 98 DIV + 92 + CAST( + + MIN( ALL + - 61 ) AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-5112
SELECT - 98 / + 92 + CAST ( + + MIN ( ALL + - 61 ) AS INTEGER )
----
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT 52 + - + CASE - 67 WHEN MIN( ALL - - ( - + 21 ) ) * - COUNT( * ) + + - 87 + + 99 THEN NULL WHEN 45 * + 39 * + 43 * + + 63 / + ( - AVG ( + 30 ) ) THEN NULL WHEN - 57 * - NULLIF ( + 61, - COUNT( DISTINCT + 64 ) + 66 ) + 90 THEN 86 * + 39 - - 45 * + 80 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT 52 + - + CASE - 67 WHEN MIN ( ALL - - ( - + 21 ) ) * - COUNT ( * ) + + - 87 + + 99 THEN NULL WHEN 45 * + 39 * + 43 * + + 63 / + ( - AVG ( + 30 ) ) THEN NULL WHEN - 57 * - NULLIF ( + 61, - COUNT ( DISTINCT + 64 ) + 66 ) + 90 THEN 86 * + 39 - - 45 * + 80 ELSE NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT + 80 - 2 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT - 64 + + 67 * + 38 + - - COALESCE ( + - 60, - CAST( NULL AS SIGNED ) ) * - 97 AS col2
----
8302

skipif mysql # not compatible
query I rowsort label-5116
SELECT - 64 + + 67 * + 38 + - - COALESCE ( + - 60, - CAST ( NULL AS INTEGER ) ) * - 97 AS col2
----
8302

query I rowsort
SELECT DISTINCT + 30 * 74 col0
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL SUM( - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL SUM ( - 76 ) AS col0
----
-76

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

query II rowsort
SELECT DISTINCT - 57 AS col0, - 69 * 10 AS col1
----
-57
-690

query I rowsort
SELECT 92 * - 97
----
-8924

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT NULLIF ( - 72, + + 15 + ( COUNT( * ) ) )
----
-72

skipif mysql # not compatible
query I rowsort label-5122
SELECT NULLIF ( - 72, + + 15 + ( COUNT ( * ) ) )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT 65 DIV + 35 + - 83 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5123
SELECT 65 / + 35 + - 83 AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5124
SELECT ALL - 73 col2, - 87 * - ( + 24 ) / 7 + - CAST( NULL AS SIGNED )
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-5124
SELECT ALL - 73 col2, - 87 * - ( + 24 ) / 7 + - CAST ( NULL AS INTEGER )
----
-73
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5125
SELECT COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) * - 67 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5125
SELECT COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) * - 67 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT + 51 * - + CAST( NULL AS SIGNED ) * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT + 51 * - + CAST ( NULL AS INTEGER ) * - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT COUNT( * ) * 19 + + 90
----
109

skipif mysql # not compatible
query I rowsort label-5127
SELECT COUNT ( * ) * 19 + + 90
----
109

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT + COUNT( * ) + 51
----
52

skipif mysql # not compatible
query I rowsort label-5129
SELECT + COUNT ( * ) + 51
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5130
SELECT DISTINCT - 63 * + 30 + + CAST( + 13 AS SIGNED )
----
-1877

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT - 63 * + 30 + + CAST ( + 13 AS INTEGER )
----
-1877

onlyif mysql # DIV for integer division: 
query I rowsort label-5131
SELECT + 39 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-5131
SELECT + 39 / + 64
----
0

query I rowsort
SELECT + COALESCE ( - 25, + 71 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT CASE - COALESCE ( - 55, + + 3 * + COUNT( * ) + - 84 + COUNT( DISTINCT 57 ) / 93, + 6 + 49 ) WHEN 95 THEN NULL WHEN + 89 + ( - 57 ) THEN - - 92 WHEN COALESCE ( + 82, - 74, + 7 ) THEN NULL END * 36 + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT CASE - COALESCE ( - 55, + + 3 * + COUNT ( * ) + - 84 + COUNT ( DISTINCT 57 ) / 93, + 6 + 49 ) WHEN 95 THEN NULL WHEN + 89 + ( - 57 ) THEN - - 92 WHEN COALESCE ( + 82, - 74, + 7 ) THEN NULL END * 36 + - 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5134
SELECT + 85 * - 7 * + 2 * 85 DIV + COUNT( - 42 ) AS col0, 7 + + + CAST( NULL AS SIGNED ) + + - 54 + + 46 + - 8 * + 79
----
-101150
NULL

skipif mysql # not compatible
query II rowsort label-5134
SELECT + 85 * - 7 * + 2 * 85 / + COUNT ( - 42 ) AS col0, 7 + + + CAST ( NULL AS INTEGER ) + + - 54 + + 46 + - 8 * + 79
----
-101150
NULL

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

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

query I rowsort
SELECT + 3 + 6 - - - 52
----
-43

query I rowsort
SELECT - 67 + - + 71 + - 95
----
-233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5138
SELECT ALL 49 + + COALESCE ( + + MIN( ALL COALESCE ( + 92, - - CAST( NULL AS SIGNED ), 8 ) ), + CAST( NULL AS SIGNED ) )
----
141

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL 49 + + COALESCE ( + + MIN ( ALL COALESCE ( + 92, - - CAST ( NULL AS INTEGER ), 8 ) ), + CAST ( NULL AS INTEGER ) )
----
141

query II rowsort
SELECT ALL + + 80 AS col2, - 12
----
80
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL - + 40 + + 83 + ( 35 ) + - ( - 31 ) * - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL - + 40 + + 83 + ( 35 ) + - ( - 31 ) * - COUNT ( * ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5141
SELECT DISTINCT + + 78 DIV - COALESCE ( + CAST( NULL AS SIGNED ), 8, + 29 )
----
-9

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + + 78 / - COALESCE ( + CAST ( NULL AS INTEGER ), 8, + 29 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT ALL NULLIF ( + - 7, + 59 + - 68 - + COUNT( * ) / + COUNT( DISTINCT ( 60 ) ) - MAX( - 95 ) + - + 93 * + - 35 + COUNT( * ) )
----
-7

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL NULLIF ( + - 7, + 59 + - 68 - + COUNT ( * ) / + COUNT ( DISTINCT ( 60 ) ) - MAX ( - 95 ) + - + 93 * + - 35 + COUNT ( * ) )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5143
SELECT ALL + + 28 * + ( - 1 ) / + 47 * ( + COALESCE ( + SUM( DISTINCT - 19 ), + 76 + - CAST( 40 AS SIGNED ) ) ) * - 25 * + - ( + - 14 ) + CASE 80 WHEN - NULLIF ( + 46, MAX( - 11 ) ) + 98 THEN NULL WHEN + 65 + - 84 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + + 28 * + ( - 1 ) / + 47 * ( + COALESCE ( + SUM ( DISTINCT - 19 ), + 76 + - CAST ( 40 AS INTEGER ) ) ) * - 25 * + - ( + - 14 ) + CASE 80 WHEN - NULLIF ( + 46, MAX ( - 11 ) ) + 98 THEN NULL WHEN + 65 + - 84 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5144
SELECT - + NULLIF ( - COUNT( * ), + 43 ) + + - 63 AS col0, 77 DIV ( NULLIF ( - NULLIF ( + 31, + + 84 - + 3 DIV + 86 ), + 33 * + 65 + - - MAX( DISTINCT + + 24 ) - + 58 ) ) * + 83
----
-62
-166

skipif mysql # not compatible
query II rowsort label-5144
SELECT - + NULLIF ( - COUNT ( * ), + 43 ) + + - 63 AS col0, 77 / ( NULLIF ( - NULLIF ( + 31, + + 84 - + 3 / + 86 ), + 33 * + 65 + - - MAX ( DISTINCT + + 24 ) - + 58 ) ) * + 83
----
-62
-166

query I rowsort
SELECT ALL - 44 - + + 75
----
-119

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

skipif mysql # not compatible
query II rowsort label-5146
SELECT - - 97 AS col1, COUNT ( * )
----
97
1

query II rowsort
SELECT + 99 AS col0, - 74 AS col0
----
99
-74

query I rowsort
SELECT - 82 + 12
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5149
SELECT - 87 * + 55 + - 58 + - - 4 + + CAST( - - SUM( - 29 ) AS SIGNED ) * 79 * + 54 + + COUNT( * ) + - - 84 AS col1
----
-128468

skipif mysql # not compatible
query I rowsort label-5149
SELECT - 87 * + 55 + - 58 + - - 4 + + CAST ( - - SUM ( - 29 ) AS INTEGER ) * 79 * + 54 + + COUNT ( * ) + - - 84 AS col1
----
-128468

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT - SUM( + - 81 ) + - 96 + 48 + + 63 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5150
SELECT - SUM ( + - 81 ) + - 96 + 48 + + 63 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5151
SELECT ALL + - COUNT( * ) * - MAX( DISTINCT + - 33 ) * - 35 * - ( + COUNT( * ) ) + - + COALESCE ( + 34, - + 65 * + ( COALESCE ( + COALESCE ( + 90, - 49 ), + COUNT( * ) * ( - ( + ( + + 91 ) ) ) DIV + CAST( NULL AS SIGNED ) * + CAST( 39 AS SIGNED ) + + 47 + - ( ( 4 ) + + 52 ) ) ), 13 ) + ( - 25 ) AS col0
----
-1214

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL + - COUNT ( * ) * - MAX ( DISTINCT + - 33 ) * - 35 * - ( + COUNT ( * ) ) + - + COALESCE ( + 34, - + 65 * + ( COALESCE ( + COALESCE ( + 90, - 49 ), + COUNT ( * ) * ( - ( + ( + + 91 ) ) ) / + CAST ( NULL AS INTEGER ) * + CAST ( 39 AS INTEGER ) + + 47 + - ( ( 4 ) + + 52 ) ) ), 13 ) + ( - 25 ) AS col0
----
-1214

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT DISTINCT + 51 * + 5 * 2 + 88 * 66 + - 6 + 19 * + + 41 + - MAX( - 80 ) * + - ( + - 35 ) AS col1
----
9891

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT + 51 * + 5 * 2 + 88 * 66 + - 6 + 19 * + + 41 + - MAX ( - 80 ) * + - ( + - 35 ) AS col1
----
9891

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL COUNT( + NULLIF ( + + 89, ( + - 60 ) - - - 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL COUNT ( + NULLIF ( + + 89, ( + - 60 ) - - - 27 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT + NULLIF ( - CAST( - - 73 AS SIGNED ), + - ( 41 ) ) - 47 * + ( - 60 ) AS col1
----
2747

skipif mysql # not compatible
query I rowsort label-5154
SELECT + NULLIF ( - CAST ( - - 73 AS INTEGER ), + - ( 41 ) ) - 47 * + ( - 60 ) AS col1
----
2747

query I rowsort
SELECT + + 62 * - - 26 AS col0
----
1612

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT DISTINCT + 88 DIV + - 95
----
0

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT + 88 / + - 95
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5157
SELECT - 52 * + COUNT( * ) col0, - 23 + - 31 * 12 + - ( 36 )
----
-52
-431

skipif mysql # not compatible
query II rowsort label-5157
SELECT - 52 * + COUNT ( * ) col0, - 23 + - 31 * 12 + - ( 36 )
----
-52
-431

onlyif mysql # aggregate syntax: 
query II rowsort label-5158
SELECT DISTINCT + MAX( + + 43 ) AS col2, 24 col2
----
43
24

skipif mysql # not compatible
query II rowsort label-5158
SELECT DISTINCT + MAX ( + + 43 ) AS col2, 24 col2
----
43
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5159
SELECT ALL - 69 DIV + 81 * 44 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - 69 / + 81 * 44 + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5160
SELECT - COUNT( * ) * + 4 * COUNT( * ) AS col0, - COUNT( * ) DIV - - COUNT( - 88 )
----
-4
-1

skipif mysql # not compatible
query II rowsort label-5160
SELECT - COUNT ( * ) * + 4 * COUNT ( * ) AS col0, - COUNT ( * ) / - - COUNT ( - 88 )
----
-4
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT ALL - ( - 51 ) DIV + + ( - 30 ) + + ( 8 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL - ( - 51 ) / + + ( - 30 ) + + ( 8 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5162
SELECT + MIN( 96 ) AS col2, 57 + - 32 * 77 AS col1
----
96
-2407

skipif mysql # not compatible
query II rowsort label-5162
SELECT + MIN ( 96 ) AS col2, 57 + - 32 * 77 AS col1
----
96
-2407

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT COUNT( * ) * COALESCE ( 79, + 90 * + 16 ) * + + ( + 8 ) + - + 24 + 36 * + + 32 + + + COUNT( * ) * - + COUNT( * ) + + - 9 * + CASE + + COUNT( * ) WHEN - ( + 13 ) THEN - + 72 + 82 + 25 * + + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT COUNT ( * ) * COALESCE ( 79, + 90 * + 16 ) * + + ( + 8 ) + - + 24 + 36 * + + 32 + + + COUNT ( * ) * - + COUNT ( * ) + + - 9 * + CASE + + COUNT ( * ) WHEN - ( + 13 ) THEN - + 72 + 82 + 25 * + + 95 END AS col0
----
NULL

query I rowsort
SELECT + 92 * - + 88
----
-8096

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT + 74 * 3 + - + 14 * - ( CAST( NULL AS SIGNED ) ) * + 3 + + + 41 * - + 42 * 80 * - 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT + 74 * 3 + - + 14 * - ( CAST ( NULL AS INTEGER ) ) * + 3 + + + 41 * - + 42 * 80 * - 20 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL + COUNT( * ) * - MAX( 10 ) * 14
----
-140

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL + COUNT ( * ) * - MAX ( 10 ) * 14
----
-140

query II rowsort
SELECT DISTINCT - 84 * + 19 AS col2, + 76
----
-1596
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT + - 79 + + COUNT( DISTINCT - 95 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-5170
SELECT + - 79 + + COUNT ( DISTINCT - 95 ) col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT + 44 * + 25 + + MIN( DISTINCT + COALESCE ( - 20, 94 ) ) - + + 25 * - 75 AS col0
----
2955

skipif mysql # not compatible
query I rowsort label-5171
SELECT + 44 * + 25 + + MIN ( DISTINCT + COALESCE ( - 20, 94 ) ) - + + 25 * - 75 AS col0
----
2955

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL COALESCE ( + - 81, - + 25, + 73 ) * + - MIN( ALL - 95 ) * + + 78 + - SUM( ALL 91 )
----
-600301

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL COALESCE ( + - 81, - + 25, + 73 ) * + - MIN ( ALL - 95 ) * + + 78 + - SUM ( ALL 91 )
----
-600301

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT 93 * COUNT( + 44 ) + 90
----
183

skipif mysql # not compatible
query I rowsort label-5173
SELECT 93 * COUNT ( + 44 ) + 90
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5174
SELECT + COUNT( * ) + + COALESCE ( + 90, - - 65 DIV - 64 * + 8 DIV + 32, ( + COUNT( DISTINCT - 38 ) ) * + - ( 78 ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5174
SELECT + COUNT ( * ) + + COALESCE ( + 90, - - 65 / - 64 * + 8 / + 32, ( + COUNT ( DISTINCT - 38 ) ) * + - ( 78 ) ) AS col1
----
91

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

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

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

query I rowsort
SELECT DISTINCT 84 col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5178
SELECT + 46 * + COUNT( * ), - CASE + 0 WHEN - 72 THEN NULL WHEN + 69 THEN 58 WHEN ( - 31 ) * 30 * 86 THEN NULL END AS col0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-5178
SELECT + 46 * + COUNT ( * ), - CASE + 0 WHEN - 72 THEN NULL WHEN + 69 THEN 58 WHEN ( - 31 ) * 30 * 86 THEN NULL END AS col0
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT + 99 + - 10 * + COUNT( * ) + + COUNT( - 78 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5179
SELECT + 99 + - 10 * + COUNT ( * ) + + COUNT ( - 78 ) AS col0
----
90

query I rowsort
SELECT ALL 43 * - - 93
----
3999

query I rowsort
SELECT + 26 + - 98 AS col2
----
-72

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5184
SELECT DISTINCT 93 + - COALESCE ( 64, + 71 DIV - 26 * - 49 ) col2, 28
----
29
28

skipif mysql # not compatible
query II rowsort label-5184
SELECT DISTINCT 93 + - COALESCE ( 64, + 71 / - 26 * - 49 ) col2, 28
----
29
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5185
SELECT DISTINCT 87, + CASE 32 WHEN + - NULLIF ( + + 66, 58 + - + 69 + + MAX( ALL + 67 ) ) THEN - - 5 WHEN - + SUM( DISTINCT + CAST( + 3 AS SIGNED ) ) THEN NULL ELSE 61 + 90 DIV - 31 END AS col1
----
87
59

skipif mysql # not compatible
query II rowsort label-5185
SELECT DISTINCT 87, + CASE 32 WHEN + - NULLIF ( + + 66, 58 + - + 69 + + MAX ( ALL + 67 ) ) THEN - - 5 WHEN - + SUM ( DISTINCT + CAST ( + 3 AS INTEGER ) ) THEN NULL ELSE 61 + 90 / - 31 END AS col1
----
87
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5186
SELECT ALL - 11 + - - 5 + - - 95 + + 93 + + ( - - ( + 6 ) ) + COUNT( * ) * + COUNT( ALL 1 ) DIV 64 col1
----
188

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - 11 + - - 5 + - - 95 + + 93 + + ( - - ( + 6 ) ) + COUNT ( * ) * + COUNT ( ALL 1 ) / 64 col1
----
188

query I rowsort
SELECT 43 + 18
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5188
SELECT ALL COUNT( * ) + ( + + 42 ) col0, 94 + + 78
----
43
172

skipif mysql # not compatible
query II rowsort label-5188
SELECT ALL COUNT ( * ) + ( + + 42 ) col0, 94 + + 78
----
43
172

query II rowsort
SELECT + 97 AS col1, + 68 AS col2
----
97
68

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT 78 + - MAX( + + 65 ) * 53 * COALESCE ( 73, + 8 + + 76 )
----
-251407

skipif mysql # not compatible
query I rowsort label-5192
SELECT 78 + - MAX ( + + 65 ) * 53 * COALESCE ( 73, + 8 + + 76 )
----
-251407

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5193
SELECT ALL - 40 + + 52 DIV + - 47 AS col0, 46 * - 45 + 85 * - MIN( ALL 17 ) * + - 72
----
-41
101970

skipif mysql # not compatible
query II rowsort label-5193
SELECT ALL - 40 + + 52 / + - 47 AS col0, 46 * - 45 + 85 * - MIN ( ALL 17 ) * + - 72
----
-41
101970

query I rowsort
SELECT 49 * - - 67 * + 35
----
114905

query I rowsort
SELECT DISTINCT - ( - 5 ) col0
----
5

query II rowsort
SELECT DISTINCT + 95 - 40 * 79 AS col2, + 23 AS col1
----
-3065
23

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5198
SELECT DISTINCT 61 - MAX( - + 51 ) * CAST( 10 AS SIGNED ) AS col2
----
571

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT 61 - MAX ( - + 51 ) * CAST ( 10 AS INTEGER ) AS col2
----
571

query I rowsort
SELECT DISTINCT - 22 * + + 76 AS col2
----
-1672

query I rowsort
SELECT 97 * + 98 - 87
----
9419

query I rowsort
SELECT 78 * + 62 * - 23 + - 15
----
-111243

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

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

query I rowsort
SELECT 70 + + 88
----
158

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5206
SELECT DISTINCT - + 82 AS col0, - MAX( ALL + 95 ) * - 39 AS col0
----
-82
3705

skipif mysql # not compatible
query II rowsort label-5206
SELECT DISTINCT - + 82 AS col0, - MAX ( ALL + 95 ) * - 39 AS col0
----
-82
3705

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT 0 AS col2, - 35 + + - COUNT( * ) * - 7 + + COUNT( * ) + + 50 * - MIN( - 93 ) * + COUNT( * ) * - + 15 - - ( + 80 ) + - 8 * 36 AS col1
----
0
-69985

skipif mysql # not compatible
query II rowsort label-5207
SELECT 0 AS col2, - 35 + + - COUNT ( * ) * - 7 + + COUNT ( * ) + + 50 * - MIN ( - 93 ) * + COUNT ( * ) * - + 15 - - ( + 80 ) + - 8 * 36 AS col1
----
0
-69985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5208
SELECT NULLIF ( - COUNT( * ), 48 ) AS col2, 89 / CASE + 43 WHEN - 95 THEN NULL WHEN COUNT( * ) / + - COALESCE ( 55, 20 + - + 38 * + COUNT( * ) * + - 47, - SUM( ALL + 23 ) ) / 38 THEN - - ( - - 10 ) + + - 73 ELSE - - 76 / - + 73 END + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5208
SELECT NULLIF ( - COUNT ( * ), 48 ) AS col2, 89 / CASE + 43 WHEN - 95 THEN NULL WHEN COUNT ( * ) / + - COALESCE ( 55, 20 + - + 38 * + COUNT ( * ) * + - 47, - SUM ( ALL + 23 ) ) / 38 THEN - - ( - - 10 ) + + - 73 ELSE - - 76 / - + 73 END + CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT - CASE - + 54 WHEN ( 12 ) + + + 57 THEN NULL WHEN - - 54 * - + CAST( + + AVG ( DISTINCT 33 ) AS SIGNED ) * + CAST( - + 35 AS SIGNED ) + + 75 THEN + + 85 ELSE 56 END
----
-56

skipif mysql # not compatible
query I rowsort label-5209
SELECT - CASE - + 54 WHEN ( 12 ) + + + 57 THEN NULL WHEN - - 54 * - + CAST ( + + AVG ( DISTINCT 33 ) AS INTEGER ) * + CAST ( - + 35 AS INTEGER ) + + 75 THEN + + 85 ELSE 56 END
----
-56

query II rowsort
SELECT - 2 - 35 + + 34, - 50 * + 62 AS col0
----
-3
-3100

query I rowsort
SELECT - - 19 AS col1
----
19

query I rowsort
SELECT NULLIF ( + 87, - 83 ) * - 41
----
-3567

query I rowsort
SELECT ALL 40 + + + 61 + 37
----
138

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5214
SELECT 34 * CASE 67 WHEN + + 52 * + CAST( - COUNT( - 74 ) AS DECIMAL ) THEN - COUNT( * ) + + COUNT( ALL - ( + 38 ) ) DIV - 84 WHEN - + 50 * + - 13 THEN + 39 WHEN 54 + 62 THEN - 52 ELSE + 99 * + NULLIF ( + + 6, + - 99 ) END
----
20196

skipif mysql # not compatible
query I rowsort label-5214
SELECT 34 * CASE 67 WHEN + + 52 * + CAST ( - COUNT ( - 74 ) AS REAL ) THEN - COUNT ( * ) + + COUNT ( ALL - ( + 38 ) ) / - 84 WHEN - + 50 * + - 13 THEN + 39 WHEN 54 + 62 THEN - 52 ELSE + 99 * + NULLIF ( + + 6, + - 99 ) END
----
20196

query I rowsort
SELECT ( - 15 ) * + 73
----
-1095

query I rowsort
SELECT 72 * + - 8 AS col0
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5217
SELECT ALL 74 - + 16 - - - 73 + - 7 * CASE - 50 WHEN COALESCE ( 47, + - 76 ) DIV - 92 + 34 + - 85 * + CASE + - 62 WHEN - - 47 THEN - 17 * + 4 + + 91 END THEN + COUNT( DISTINCT 79 ) ELSE ( + 52 ) END * ( + 61 ) DIV - 18
----
1218

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL 74 - + 16 - - - 73 + - 7 * CASE - 50 WHEN COALESCE ( 47, + - 76 ) / - 92 + 34 + - 85 * + CASE + - 62 WHEN - - 47 THEN - 17 * + 4 + + 91 END THEN + COUNT ( DISTINCT 79 ) ELSE ( + 52 ) END * ( + 61 ) / - 18
----
1218

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5218
SELECT 59 - 49 AS col0, ( - CAST( NULL AS SIGNED ) ) + 4 * + 86 + 90 + + + 66 + - + 1 * + 0 / - 72 AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-5218
SELECT 59 - 49 AS col0, ( - CAST ( NULL AS INTEGER ) ) + 4 * + 86 + 90 + + + 66 + - + 1 * + 0 / - 72 AS col2
----
10
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT DISTINCT - COALESCE ( + - NULLIF ( - + 47, + 12 ), + - 88 DIV - + 98 )
----
-47

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT - COALESCE ( + - NULLIF ( - + 47, + 12 ), + - 88 / - + 98 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5220
SELECT 51 * + ( + + 72 ) + - CASE - + 39 WHEN - 98 THEN - - 27 WHEN + 29 + + 65 THEN - + ( - + 22 ) * + - 59 - CAST( + 75 AS SIGNED ) + - COUNT( * ) * + 83 END + - 34 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT 51 * + ( + + 72 ) + - CASE - + 39 WHEN - 98 THEN - - 27 WHEN + 29 + + 65 THEN - + ( - + 22 ) * + - 59 - CAST ( + 75 AS INTEGER ) + - COUNT ( * ) * + 83 END + - 34 * - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ( 75 ) + + 9 + 85 + + 94 AS col2
----
263

query I rowsort
SELECT DISTINCT - 7 * - + 73
----
511

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ALL - CASE WHEN + 89 IS NULL THEN - 5 + SUM( 60 ) * NULLIF ( - - 52, + 90 + 50 ) * + - 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL - CASE WHEN + 89 IS NULL THEN - 5 + SUM ( 60 ) * NULLIF ( - - 52, + 90 + 50 ) * + - 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5224
SELECT ALL - + 16 * + 83, - COUNT( * ) * 13 * COUNT( * ) AS col0
----
-1328
-13

skipif mysql # not compatible
query II rowsort label-5224
SELECT ALL - + 16 * + 83, - COUNT ( * ) * 13 * COUNT ( * ) AS col0
----
-1328
-13

query I rowsort
SELECT + 58 * - 78 + 63
----
-4461

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT 95 DIV 30 col1
----
3

skipif mysql # not compatible
query I rowsort label-5226
SELECT 95 / 30 col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5227
SELECT ALL + COUNT( * ) + + 70 AS col1, + 24
----
71
24

skipif mysql # not compatible
query II rowsort label-5227
SELECT ALL + COUNT ( * ) + + 70 AS col1, + 24
----
71
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5228
SELECT + COALESCE ( + 25, + - 66 DIV + 71 DIV COUNT( * ) * - 44 * - + 0 * - 92 * 16, - 44 * + - COUNT( * ) ) col2
----
25

skipif mysql # not compatible
query I rowsort label-5228
SELECT + COALESCE ( + 25, + - 66 / + 71 / COUNT ( * ) * - 44 * - + 0 * - 92 * 16, - 44 * + - COUNT ( * ) ) col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5229
SELECT MIN( - 34 ) AS col1, 54 * - + 49 * - 86
----
-34
227556

skipif mysql # not compatible
query II rowsort label-5229
SELECT MIN ( - 34 ) AS col1, 54 * - + 49 * - 86
----
-34
227556

query I rowsort
SELECT DISTINCT + - 74 + - - 56
----
-18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5231
SELECT - 95 DIV - CAST( 55 AS SIGNED ) + + 89
----
90

skipif mysql # not compatible
query I rowsort label-5231
SELECT - 95 / - CAST ( 55 AS INTEGER ) + + 89
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5232
SELECT + 65 DIV - + 14 AS col0, NULLIF ( 47, - - COUNT( * ) * COALESCE ( + 24, + + COALESCE ( - 9, - + 74 ) + + - CAST( - 15 AS DECIMAL ) ) - 17 )
----
-4
47

skipif mysql # not compatible
query II rowsort label-5232
SELECT + 65 / - + 14 AS col0, NULLIF ( 47, - - COUNT ( * ) * COALESCE ( + 24, + + COALESCE ( - 9, - + 74 ) + + - CAST ( - 15 AS REAL ) ) - 17 )
----
-4
47

query I rowsort
SELECT - ( - 84 ) * - 99 + + 40 - + 37 AS col2
----
-8313

query I rowsort
SELECT ALL - + ( 79 ) + - 66 AS col1
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5235
SELECT DISTINCT + ( + - ( + + CAST( NULL AS SIGNED ) ) ) + 57 + - COALESCE ( - 74, - COUNT( * ) + - - 51 ) + + + 3 * + + COUNT( * ), + NULLIF ( 70, - + COALESCE ( 19, 15 ) ) AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-5235
SELECT DISTINCT + ( + - ( + + CAST ( NULL AS INTEGER ) ) ) + 57 + - COALESCE ( - 74, - COUNT ( * ) + - - 51 ) + + + 3 * + + COUNT ( * ), + NULLIF ( 70, - + COALESCE ( 19, 15 ) ) AS col0
----
NULL
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5236
SELECT ALL 61 + 34 + - + MIN( + 67 ) * - 63 - - 86 DIV NULLIF ( + ( - 34 ), + MIN( ALL + + 0 ) * - + 62 * - 26 + - - SUM( + - 78 ) - + MIN( + 4 ) )
----
4314

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL 61 + 34 + - + MIN ( + 67 ) * - 63 - - 86 / NULLIF ( + ( - 34 ), + MIN ( ALL + + 0 ) * - + 62 * - 26 + - - SUM ( + - 78 ) - + MIN ( + 4 ) )
----
4314

query I rowsort
SELECT ALL COALESCE ( 85, + 51 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - 23 * COALESCE ( + 68, 78 * - - MAX( - 38 ), + + 47 )
----
-1564

skipif mysql # not compatible
query I rowsort label-5238
SELECT - 23 * COALESCE ( + 68, 78 * - - MAX ( - 38 ), + + 47 )
----
-1564

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT - 10 + - 52 + - 74 DIV - 68 + - 97 * + 32
----
-3165

skipif mysql # not compatible
query I rowsort label-5239
SELECT - 10 + - 52 + - 74 / - 68 + - 97 * + 32
----
-3165

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

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

query I rowsort
SELECT - 87 + - 19 col0
----
-106

query II rowsort
SELECT + 92 - + 89 + - 12 col2, 42
----
-9
42

query I rowsort
SELECT ALL 98 * 85 AS col0
----
8330

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT - MIN( - 90 ) + + - CASE - ( - - 40 ) WHEN - 26 THEN + 75 * - CASE 58 WHEN + 72 + - - COUNT( * ) * + COUNT( * ) THEN - 40 WHEN 34 + - + 86 THEN NULL ELSE NULL END + - 65 ELSE - + 27 END AS col1
----
117

skipif mysql # not compatible
query I rowsort label-5244
SELECT - MIN ( - 90 ) + + - CASE - ( - - 40 ) WHEN - 26 THEN + 75 * - CASE 58 WHEN + 72 + - - COUNT ( * ) * + COUNT ( * ) THEN - 40 WHEN 34 + - + 86 THEN NULL ELSE NULL END + - 65 ELSE - + 27 END AS col1
----
117

query I rowsort
SELECT + 33 + ( - 55 ) + - 6 * - NULLIF ( 49, - + 33 ) + 29 col0
----
301

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5246
SELECT + NULLIF ( + + MIN( ALL - 22 ), + 65 + - 82 ) + - 2 DIV + 41 * - - 18 + - 19 + 26 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5246
SELECT + NULLIF ( + + MIN ( ALL - 22 ), + 65 + - 82 ) + - 2 / + 41 * - - 18 + - 19 + 26 AS col2
----
-15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT 32 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT 32 / 35
----
0

query I rowsort
SELECT + 3 * - 85 * ( + + 17 )
----
-4335

query I rowsort
SELECT ( + CASE - - 56 WHEN - - 55 THEN + 98 * 76 WHEN + ( - 97 ) - + 19 THEN NULL END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT - 12 DIV 91 * + 36 + 62
----
62

skipif mysql # not compatible
query I rowsort label-5251
SELECT - 12 / 91 * + 36 + 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT - 24 + + ( + COUNT( * ) ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-5252
SELECT - 24 + + ( + COUNT ( * ) ) col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT + ( + COUNT( DISTINCT 99 ) ) * - 85 * - 21 - + + 38
----
1747

skipif mysql # not compatible
query I rowsort label-5253
SELECT + ( + COUNT ( DISTINCT 99 ) ) * - 85 * - 21 - + + 38
----
1747

query I rowsort
SELECT DISTINCT + 78 * - 87
----
-6786

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

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

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

query I rowsort
SELECT ALL - - 88 * - + 40 + 66 AS col1
----
-3454

query I rowsort
SELECT ALL + + 21 * - + 28 + - 69
----
-657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT ( - CASE + AVG ( DISTINCT + 19 ) WHEN + 89 THEN + + 26 ELSE NULL END ) * - 71 + CAST( - ( 44 ) AS SIGNED ) * - - 78 * + + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT ( - CASE + AVG ( DISTINCT + 19 ) WHEN + 89 THEN + + 26 ELSE NULL END ) * - 71 + CAST ( - ( 44 ) AS INTEGER ) * - - 78 * + + 0 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5260
SELECT + SUM( ALL + 68 ) * CASE + + 57 WHEN + 80 THEN ( - - 94 ) - - - 78 + - - 61 * - 22 / 47 ELSE + CASE COUNT( * ) WHEN + - COUNT( * ) THEN NULL WHEN ( + 87 ) + + 59 THEN + CAST( NULL AS SIGNED ) * + CASE + 41 WHEN + 43 + - - 64 + - - 8 THEN - CASE + + 79 WHEN + 46 THEN - MAX( DISTINCT 2 ) WHEN AVG ( DISTINCT 95 ) + 92 THEN NULL ELSE 37 END ELSE 65 END - + NULLIF ( + COUNT( * ), COALESCE ( + AVG ( DISTINCT - 58 ), 81 ) ) * - 11 WHEN - 10 THEN NULL END * ( - 94 / 16 - - 79 * + 14 ) END / 18 + + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT + SUM ( ALL + 68 ) * CASE + + 57 WHEN + 80 THEN ( - - 94 ) - - - 78 + - - 61 * - 22 / 47 ELSE + CASE COUNT ( * ) WHEN + - COUNT ( * ) THEN NULL WHEN ( + 87 ) + + 59 THEN + CAST ( NULL AS INTEGER ) * + CASE + 41 WHEN + 43 + - - 64 + - - 8 THEN - CASE + + 79 WHEN + 46 THEN - MAX ( DISTINCT 2 ) WHEN AVG ( DISTINCT 95 ) + 92 THEN NULL ELSE 37 END ELSE 65 END - + NULLIF ( + COUNT ( * ), COALESCE ( + AVG ( DISTINCT - 58 ), 81 ) ) * - 11 WHEN - 10 THEN NULL END * ( - 94 / 16 - - 79 * + 14 ) END / 18 + + 69 AS col0
----
NULL

query I rowsort
SELECT - 53 * - 67 AS col1
----
3551

query II rowsort
SELECT DISTINCT + + 27 AS col0, - 3
----
27
-3

query I rowsort
SELECT ALL + 14 * + 95 + 29
----
1359

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT 21 * + COUNT( * ) + + 11 - - 27 + + - MAX( 68 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5264
SELECT 21 * + COUNT ( * ) + + 11 - - 27 + + - MAX ( 68 ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5265
SELECT - - 63 - + - COALESCE ( - 29, CAST( 6 AS SIGNED ) - 59 * + MAX( ALL - 12 ) + 13 ) col2
----
34

skipif mysql # not compatible
query I rowsort label-5265
SELECT - - 63 - + - COALESCE ( - 29, CAST ( 6 AS INTEGER ) - 59 * + MAX ( ALL - 12 ) + 13 ) col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL - 58 * COUNT( * ) + - 49 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL - 58 * COUNT ( * ) + - 49 AS col1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT - + 47 + 49 + - + COUNT( - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-5267
SELECT - + 47 + 49 + - + COUNT ( - 79 )
----
1

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

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

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

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

query I rowsort
SELECT + 11 * 34 * + + 6
----
2244

query I rowsort
SELECT DISTINCT + 7 - - 64 col0
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT - COUNT( - 10 ) + + 77 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5273
SELECT - COUNT ( - 10 ) + + 77 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5274
SELECT - 90 AS col1, - CAST( NULL AS SIGNED ) + - COUNT( * ) * - + MIN( DISTINCT 8 ) AS col2
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-5274
SELECT - 90 AS col1, - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - + MIN ( DISTINCT 8 ) AS col2
----
-90
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT DISTINCT 45 * COUNT( * ) * + - 27 AS col2
----
-1215

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT 45 * COUNT ( * ) * + - 27 AS col2
----
-1215

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT ALL + 18 * + ( - + 8 ) * - - COUNT( * ) AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL + 18 * + ( - + 8 ) * - - COUNT ( * ) AS col2
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - COUNT( + 80 ) - - NULLIF ( - 48, 92 + - COALESCE ( - 99, 93, + 12 + + 77 + + 2, - 91 + 71 - - 80 + - 73 ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5280
SELECT - COUNT ( + 80 ) - - NULLIF ( - 48, 92 + - COALESCE ( - 99, 93, + 12 + + 77 + + 2, - 91 + 71 - - 80 + - 73 ) ) AS col1
----
-49

query II rowsort
SELECT - 13 AS col0, - 63 + + - 96
----
-13
-159

query I rowsort
SELECT - ( - - 55 )
----
-55

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5285
SELECT - + CASE + 88 WHEN - 66 THEN + 47 - - COALESCE ( - 47, + ( + 38 ) * 26 * + COUNT( * ), + ( + 82 ), + 43 + + - 39 ) + - + COALESCE ( 39, - - 98 + + 2, - 57 * - 1 * + 77 ) * - - COUNT( * ) END * - 62 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT - + CASE + 88 WHEN - 66 THEN + 47 - - COALESCE ( - 47, + ( + 38 ) * 26 * + COUNT ( * ), + ( + 82 ), + 43 + + - 39 ) + - + COALESCE ( 39, - - 98 + + 2, - 57 * - 1 * + 77 ) * - - COUNT ( * ) END * - 62 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5286
SELECT ALL 14 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL 14 / - 50
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5287
SELECT DISTINCT 33 DIV - + 33 + 83
----
82

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT 33 / - + 33 + 83
----
82

query II rowsort
SELECT + 14, + 4 col2
----
14
4

onlyif mysql # DIV for integer division: 
query II rowsort label-5289
SELECT + - 19 DIV + 72 * 58 + - 24, 69 * + 67 AS col0
----
-24
4623

skipif mysql # not compatible
query II rowsort label-5289
SELECT + - 19 / + 72 * 58 + - 24, 69 * + 67 AS col0
----
-24
4623

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT ALL + - 44 DIV + 70 + + 82 col1
----
82

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL + - 44 / + 70 + + 82 col1
----
82

query I rowsort
SELECT + 74 * - 1 + - 88
----
-162

query II rowsort
SELECT ALL - + 94, 52 AS col2
----
-94
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT DISTINCT SUM( - 19 ) * COUNT( * ) + - + COUNT( * ) AS col0, + 4
----
-20
4

skipif mysql # not compatible
query II rowsort label-5293
SELECT DISTINCT SUM ( - 19 ) * COUNT ( * ) + - + COUNT ( * ) AS col0, + 4
----
-20
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT - 68 + + COUNT( 52 ) * + - COALESCE ( - COALESCE ( 46, - 77 * - 83 * 61 ), - - 64, + 40 * + + 43 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5294
SELECT - 68 + + COUNT ( 52 ) * + - COALESCE ( - COALESCE ( 46, - 77 * - 83 * 61 ), - - 64, + 40 * + + 43 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL - 31 + - - COUNT( * ) * + 58 * + COUNT( * ) col0
----
27

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - 31 + - - COUNT ( * ) * + 58 * + COUNT ( * ) col0
----
27

query I rowsort
SELECT ALL - 73 + 56 + - 47 + - 79 * 0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL - SUM( - 7 ) * - 99
----
-693

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - SUM ( - 7 ) * - 99
----
-693

query I rowsort
SELECT + 99 * - 87 + + + 83 AS col0
----
-8530

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5299
SELECT + 21 AS col2, - CAST( 36 AS SIGNED )
----
21
-36

skipif mysql # not compatible
query II rowsort label-5299
SELECT + 21 AS col2, - CAST ( 36 AS INTEGER )
----
21
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT COALESCE ( 79, + 51 + - 92, + 61 * - MAX( DISTINCT CASE + 84 WHEN - 64 + - 20 + + - 81 * + + 44 THEN - 79 ELSE NULL END ) ) + + 33 * COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-5300
SELECT COALESCE ( 79, + 51 + - 92, + 61 * - MAX ( DISTINCT CASE + 84 WHEN - 64 + - 20 + + - 81 * + + 44 THEN - 79 ELSE NULL END ) ) + + 33 * COUNT ( * )
----
112

query II rowsort
SELECT + + 30 AS col0, 98
----
30
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT 72 * + - NULLIF ( - + 66, + - 91 * MAX( + + 14 ) ) AS col0
----
4752

skipif mysql # not compatible
query I rowsort label-5302
SELECT 72 * + - NULLIF ( - + 66, + - 91 * MAX ( + + 14 ) ) AS col0
----
4752

query I rowsort
SELECT ALL 28 - + 51 * - + 20 AS col0
----
1048

query II rowsort
SELECT 68 + + 55 AS col1, + 28
----
123
28

query I rowsort
SELECT DISTINCT + 76 * 85 * 1
----
6460

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT DISTINCT 57 * + SUM( DISTINCT - + 71 )
----
-4047

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT 57 * + SUM ( DISTINCT - + 71 )
----
-4047

query I rowsort
SELECT 87 * - 25 AS col1
----
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT 58 + 90 * - CASE 0 WHEN 39 THEN 22 - + COUNT( * ) WHEN - 97 * - 31 + + ( - COUNT( * ) ) + - 9 THEN NULL ELSE + 91 END + - 13 * + CASE + - 11 WHEN - + 78 * + 89 * - + 16 + 25 + + + COUNT( * ) * - 8 THEN 98 * + 49 + - - 9 + 70 - + 5 WHEN - 56 / + 97 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT 58 + 90 * - CASE 0 WHEN 39 THEN 22 - + COUNT ( * ) WHEN - 97 * - 31 + + ( - COUNT ( * ) ) + - 9 THEN NULL ELSE + 91 END + - 13 * + CASE + - 11 WHEN - + 78 * + 89 * - + 16 + 25 + + + COUNT ( * ) * - 8 THEN 98 * + 49 + - - 9 + 70 - + 5 WHEN - 56 / + 97 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT 94 - + - COUNT( * ) + - COALESCE ( 20, + 78, + - 47 * + - 36 ) DIV - - MAX( DISTINCT 92 ) * 97 + - + 50 * + COUNT( * ) + + + 32 * + - 21 AS col1
----
-627

skipif mysql # not compatible
query I rowsort label-5309
SELECT 94 - + - COUNT ( * ) + - COALESCE ( 20, + 78, + - 47 * + - 36 ) / - - MAX ( DISTINCT 92 ) * 97 + - + 50 * + COUNT ( * ) + + + 32 * + - 21 AS col1
----
-627

query I rowsort
SELECT 97 * + 11 * 31
----
33077

query I rowsort
SELECT 3 - + 19 * + 88 + - - 57
----
-1612

query I rowsort
SELECT 77 + + 57 AS col0
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT 13 - + COALESCE ( 79, + 32 * + - 45 ) + 88 * 89 DIV - 52
----
-216

skipif mysql # not compatible
query I rowsort label-5313
SELECT 13 - + COALESCE ( 79, + 32 * + - 45 ) + 88 * 89 / - 52
----
-216

query I rowsort
SELECT ALL + 87 + 30 + + 85
----
202

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT 93 + COUNT( * ), 26 AS col1
----
94
26

skipif mysql # not compatible
query II rowsort label-5315
SELECT 93 + COUNT ( * ), 26 AS col1
----
94
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT DISTINCT + + 81 + 61 col2, + COUNT( * ) AS col1
----
142
1

skipif mysql # not compatible
query II rowsort label-5316
SELECT DISTINCT + + 81 + 61 col2, + COUNT ( * ) AS col1
----
142
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT + ( + 0 ) + - COUNT( * ) * + 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5317
SELECT + ( + 0 ) + - COUNT ( * ) * + 34 AS col1
----
-34

query I rowsort
SELECT DISTINCT + ( + 15 ) + 59 AS col1
----
74

query I rowsort
SELECT DISTINCT + 24 * + + 49 + + + 31 + ( + 17 ) * - + 0
----
1207

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT DISTINCT - 74 - + MAX( - 44 )
----
-30

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT - 74 - + MAX ( - 44 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT COUNT( - 17 ) + 5
----
6

skipif mysql # not compatible
query I rowsort label-5322
SELECT COUNT ( - 17 ) + 5
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5323
SELECT DISTINCT - + CAST( - + 29 AS SIGNED ) AS col0, 51 + + CAST( NULL AS SIGNED ) + + - 23 * 74 AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-5323
SELECT DISTINCT - + CAST ( - + 29 AS INTEGER ) AS col0, 51 + + CAST ( NULL AS INTEGER ) + + - 23 * 74 AS col2
----
29
NULL

query I rowsort
SELECT - 41 * 39 + - + 81 * 39 AS col2
----
-4758

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5325
SELECT + 11 * + 68 AS col2, - CAST( + 70 AS SIGNED )
----
748
-70

skipif mysql # not compatible
query II rowsort label-5325
SELECT + 11 * + 68 AS col2, - CAST ( + 70 AS INTEGER )
----
748
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5326
SELECT MIN( DISTINCT + - 53 ) - + 81 DIV + 91 + MIN( - 18 )
----
-71

skipif mysql # not compatible
query I rowsort label-5326
SELECT MIN ( DISTINCT + - 53 ) - + 81 / + 91 + MIN ( - 18 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT + + NULLIF ( 76, - - CAST( NULL AS SIGNED ) )
----
76

skipif mysql # not compatible
query I rowsort label-5327
SELECT + + NULLIF ( 76, - - CAST ( NULL AS INTEGER ) )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5328
SELECT ALL - + CAST( - 17 AS SIGNED ), 30 + + 30 AS col0
----
17
60

skipif mysql # not compatible
query II rowsort label-5328
SELECT ALL - + CAST ( - 17 AS INTEGER ), 30 + + 30 AS col0
----
17
60

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

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

skipif mysql # not compatible
query I rowsort label-5330
SELECT 88 / - 29 + + - ( + COUNT ( * ) ) + 32
----
28

query I rowsort
SELECT NULLIF ( 16, 6 ) * 61 + - 21
----
955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5332
SELECT DISTINCT 75 * - CASE + COUNT( * ) WHEN - - 94 * + + CAST( + 15 AS SIGNED ) THEN - + 9 / + - 28 - - - COUNT( * ) WHEN - - 75 * COUNT( * ) / + - 30 THEN NULL WHEN + 83 THEN NULL ELSE NULL END AS col0, + COUNT( + 13 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5332
SELECT DISTINCT 75 * - CASE + COUNT ( * ) WHEN - - 94 * + + CAST ( + 15 AS INTEGER ) THEN - + 9 / + - 28 - - - COUNT ( * ) WHEN - - 75 * COUNT ( * ) / + - 30 THEN NULL WHEN + 83 THEN NULL ELSE NULL END AS col0, + COUNT ( + 13 ) AS col1
----
NULL
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5334
SELECT + 31 AS col0, MIN( - 6 ) * 57 * + 43 + + NULLIF ( + + 78, - + ( - + 86 ) + - - CASE + + 28 WHEN - 11 THEN 6 END + COUNT( + - 48 ) * 28 + + 18 ) * + - 78 - - + 33
----
31
-20757

skipif mysql # not compatible
query II rowsort label-5334
SELECT + 31 AS col0, MIN ( - 6 ) * 57 * + 43 + + NULLIF ( + + 78, - + ( - + 86 ) + - - CASE + + 28 WHEN - 11 THEN 6 END + COUNT ( + - 48 ) * 28 + + 18 ) * + - 78 - - + 33
----
31
-20757

query I rowsort
SELECT DISTINCT 81 * - 33 AS col0
----
-2673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT CAST( - 51 AS SIGNED ) + - COALESCE ( + 49, 68 + - - 78, - + ( 55 ) * + 86 * ( 58 ) ) * - 0 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5336
SELECT CAST ( - 51 AS INTEGER ) + - COALESCE ( + 49, 68 + - - 78, - + ( 55 ) * + 86 * ( 58 ) ) * - 0 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5337
SELECT 89, 11 DIV + + 48 - + - ( 2 ) + + COUNT( * ) * + 15 AS col0
----
89
17

skipif mysql # not compatible
query II rowsort label-5337
SELECT 89, 11 / + + 48 - + - ( 2 ) + + COUNT ( * ) * + 15 AS col0
----
89
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL COUNT( ALL + 26 ) + 48
----
49

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL COUNT ( ALL + 26 ) + 48
----
49

query I rowsort
SELECT 68 * + + 13 AS col0
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT 3 + + + COUNT( * ) + - 60 * - 61
----
3664

skipif mysql # not compatible
query I rowsort label-5340
SELECT 3 + + + COUNT ( * ) + - 60 * - 61
----
3664

query II rowsort
SELECT 5 AS col1, + 57 * 2 AS col1
----
5
114

query I rowsort
SELECT DISTINCT 3 + + 48
----
51

query I rowsort
SELECT ALL 62 + - 99
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL 32 + + CASE + 13 WHEN - 26 THEN NULLIF ( + + COUNT( * ), - 53 + 58 ) WHEN - 96 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL 32 + + CASE + 13 WHEN - 26 THEN NULLIF ( + + COUNT ( * ), - 53 + 58 ) WHEN - 96 THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT 93 * + 22 * + - 72 * + COUNT( * )
----
-147312

skipif mysql # not compatible
query I rowsort label-5345
SELECT 93 * + 22 * + - 72 * + COUNT ( * )
----
-147312

query I rowsort
SELECT ALL 26 + - + 89 col0
----
-63

query II rowsort
SELECT ALL - ( - - 15 ) * 14 AS col1, - ( + + 96 )
----
-210
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5348
SELECT 12 / + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT 12 / + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 47 + + + 36 AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5350
SELECT 26 - + - CAST( NULL AS SIGNED ) * + + ( CASE SUM( + - 21 ) WHEN + CASE - 15 WHEN + - 72 * AVG ( - 83 ) THEN NULL ELSE - 49 / + + ( 29 ) + 94 END THEN + + 52 WHEN + 79 / 22 THEN NULL WHEN - MIN( DISTINCT - 18 ) * + 41 + - - 5 THEN - - 74 ELSE NULL END ) - 20 - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT 26 - + - CAST ( NULL AS INTEGER ) * + + ( CASE SUM ( + - 21 ) WHEN + CASE - 15 WHEN + - 72 * AVG ( - 83 ) THEN NULL ELSE - 49 / + + ( 29 ) + 94 END THEN + + 52 WHEN + 79 / 22 THEN NULL WHEN - MIN ( DISTINCT - 18 ) * + 41 + - - 5 THEN - - 74 ELSE NULL END ) - 20 - 2
----
NULL

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

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

query I rowsort
SELECT + + 66 - + 28 * - 59 AS col1
----
1718

onlyif mysql # aggregate syntax: 
query II rowsort label-5353
SELECT 86 AS col1, + 14 * ( + - COALESCE ( + 29, + 97 ) ) * + COUNT( * ) * + - 88 + + 89 - COUNT( * )
----
86
35816

skipif mysql # not compatible
query II rowsort label-5353
SELECT 86 AS col1, + 14 * ( + - COALESCE ( + 29, + 97 ) ) * + COUNT ( * ) * + - 88 + + 89 - COUNT ( * )
----
86
35816

query I rowsort
SELECT ALL + + 78 * 41
----
3198

query I rowsort
SELECT + - 92 + + + 18 AS col0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5356
SELECT - - ( + 84 ) DIV + COALESCE ( + 68, 63 )
----
1

skipif mysql # not compatible
query I rowsort label-5356
SELECT - - ( + 84 ) / + COALESCE ( + 68, 63 )
----
1

query I rowsort
SELECT ALL + + 3 - - 21
----
24

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5359
SELECT ALL 15 * + COALESCE ( + 12, - + COUNT( * ) ) AS col0, 30 AS col2
----
180
30

skipif mysql # not compatible
query II rowsort label-5359
SELECT ALL 15 * + COALESCE ( + 12, - + COUNT ( * ) ) AS col0, 30 AS col2
----
180
30

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5361
SELECT 90 * 63 + 4 + + + 43 + - - ( + CAST( + COUNT( * ) AS SIGNED ) )
----
5718

skipif mysql # not compatible
query I rowsort label-5361
SELECT 90 * 63 + 4 + + + 43 + - - ( + CAST ( + COUNT ( * ) AS INTEGER ) )
----
5718

query I rowsort
SELECT - - 84 * 81
----
6804

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ALL - CASE - - COUNT( * ) WHEN + + 3 * - 15 + - 43 * - + 62 THEN NULL ELSE + 1 * 45 END * + 69 * + + 56 AS col1
----
-173880

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL - CASE - - COUNT ( * ) WHEN + + 3 * - 15 + - 43 * - + 62 THEN NULL ELSE + 1 * 45 END * + 69 * + + 56 AS col1
----
-173880

query II rowsort
SELECT + - 44 AS col1, 9 AS col0
----
-44
9

query I rowsort
SELECT ALL - 29 * 64
----
-1856

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5367
SELECT ALL + CASE - 81 WHEN 40 * - 0 + + 95 * + 29 + + CAST( NULL AS SIGNED ) + + COUNT( * ) * - 81 THEN + 45 * 25 + CAST( - 40 AS SIGNED ) + + 48 - + 52 + - - COUNT( * ) * + MIN( DISTINCT + 29 ) * - - 41 / - 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + CASE - 81 WHEN 40 * - 0 + + 95 * + 29 + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 81 THEN + 45 * 25 + CAST ( - 40 AS INTEGER ) + + 48 - + 52 + - - COUNT ( * ) * + MIN ( DISTINCT + 29 ) * - - 41 / - 23 END
----
NULL

query I rowsort
SELECT DISTINCT - 3 * 39 * 41 AS col0
----
-4797

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT - MAX( + 69 ) + - - 49 col2
----
-20

skipif mysql # not compatible
query I rowsort label-5373
SELECT - MAX ( + 69 ) + - - 49 col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5374
SELECT + 80 * - NULLIF ( + 39, CASE - 16 WHEN - - 99 THEN - 35 * - MAX( + 95 ) * - 58 WHEN - - 50 THEN NULL ELSE - 26 + - - 8 END + - - 93 ) * + + SUM( ALL ( - 15 ) ) * - - 51 + - 92 + - ( + 5 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT + 80 * - NULLIF ( + 39, CASE - 16 WHEN - - 99 THEN - 35 * - MAX ( + 95 ) * - 58 WHEN - - 50 THEN NULL ELSE - 26 + - - 8 END + - - 93 ) * + + SUM ( ALL ( - 15 ) ) * - - 51 + - 92 + - ( + 5 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5375
SELECT + CASE - MIN( ALL - 10 ) WHEN CAST( - - 59 AS SIGNED ) * - 20 * - MAX( - - 51 ) THEN + 0 / + 51 WHEN 60 - + 55 THEN 71 * - - 83 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT + CASE - MIN ( ALL - 10 ) WHEN CAST ( - - 59 AS INTEGER ) * - 20 * - MAX ( - - 51 ) THEN + 0 / + 51 WHEN 60 - + 55 THEN 71 * - - 83 ELSE NULL END col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL + 59 + COUNT( - 83 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + 59 + COUNT ( - 83 ) AS col1
----
60

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

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

query I rowsort
SELECT + 20 + + 7 AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT + 96 + + CAST( NULL AS SIGNED ) + - 68 + + 78 * - 7 + - 66 * + 20 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT + 96 + + CAST ( NULL AS INTEGER ) + - 68 + + 78 * - 7 + - 66 * + 20 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT - COALESCE ( + 93, - CAST( - 97 AS SIGNED ) ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5382
SELECT - COALESCE ( + 93, - CAST ( - 97 AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - ( + 12 ), 82 * 46 AS col0
----
-12
3772

query I rowsort
SELECT + 94 + 34 * + - 95 AS col1
----
-3136

query I rowsort
SELECT ALL + ( 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT + ( - + 28 ) + + + 64 - - COUNT( * ) * 38
----
74

skipif mysql # not compatible
query I rowsort label-5386
SELECT + ( - + 28 ) + + + 64 - - COUNT ( * ) * 38
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT + 77 - + 75 AS col1, MIN( DISTINCT - 43 )
----
2
-43

skipif mysql # not compatible
query II rowsort label-5387
SELECT + 77 - + 75 AS col1, MIN ( DISTINCT - 43 )
----
2
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT + 21 + + COUNT( * ) * - 1 * + 39 - 7 + + 90 * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5388
SELECT + 21 + + COUNT ( * ) * - 1 * + 39 - 7 + + 90 * + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL 60 - + - MAX( + + 72 ) + - CASE + 54 WHEN + 29 * - COUNT( * ) * 86 * + + 81 THEN COUNT( DISTINCT 2 ) - 25 + + 7 ELSE - 57 + + + 44 + - ( + MIN( ALL 13 ) ) END AS col1
----
158

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL 60 - + - MAX ( + + 72 ) + - CASE + 54 WHEN + 29 * - COUNT ( * ) * 86 * + + 81 THEN COUNT ( DISTINCT 2 ) - 25 + + 7 ELSE - 57 + + + 44 + - ( + MIN ( ALL 13 ) ) END AS col1
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5390
SELECT + + 29 * - 67 / + 26 * - - NULLIF ( - CAST( NULL AS SIGNED ), - 45 + - + 97 / 90 + - 97 ) + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT + + 29 * - 67 / + 26 * - - NULLIF ( - CAST ( NULL AS INTEGER ), - 45 + - + 97 / 90 + - 97 ) + + 62
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL MAX ( 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT DISTINCT COUNT( * ) - - - 46 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT COUNT ( * ) - - - 46 AS col1
----
-45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5394
SELECT + + COUNT( DISTINCT + + 91 ) + CASE + ( CAST( - ( - - 66 ) AS SIGNED ) ) WHEN 58 * + - CAST( NULL AS SIGNED ) THEN - 88 WHEN 34 THEN NULL ELSE + + 65 END, 80 AS col2
----
66
80

skipif mysql # not compatible
query II rowsort label-5394
SELECT + + COUNT ( DISTINCT + + 91 ) + CASE + ( CAST ( - ( - - 66 ) AS INTEGER ) ) WHEN 58 * + - CAST ( NULL AS INTEGER ) THEN - 88 WHEN 34 THEN NULL ELSE + + 65 END, 80 AS col2
----
66
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT + - 5 + + 58 DIV - 99
----
-5

skipif mysql # not compatible
query I rowsort label-5395
SELECT + - 5 + + 58 / - 99
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5396
SELECT DISTINCT - 41 * - CAST( NULL AS SIGNED ) - + COUNT( * ) + + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT - 41 * - CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + - 19
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5398
SELECT - CAST( 28 AS SIGNED ) DIV + + COUNT( * )
----
-28

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

query I rowsort
SELECT NULLIF ( - + 7, 71 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT - 6 + - 58 + - + COUNT( * ) * + 96 * - 29 * - - 92
----
256064

skipif mysql # not compatible
query I rowsort label-5400
SELECT - 6 + - 58 + - + COUNT ( * ) * + 96 * - 29 * - - 92
----
256064

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

query I rowsort
SELECT ALL + - 90 AS col1
----
-90

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5404
SELECT DISTINCT 5 DIV + ( 14 ) * - 45 + 54 AS col0, COUNT( * ) AS col2
----
54
1

skipif mysql # not compatible
query II rowsort label-5404
SELECT DISTINCT 5 / + ( 14 ) * - 45 + 54 AS col0, COUNT ( * ) AS col2
----
54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT - ( + MAX( DISTINCT 70 ) ) + + 68 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5405
SELECT - ( + MAX ( DISTINCT 70 ) ) + + 68 AS col0
----
-2

query III rowsort
SELECT + 28 AS col2, ( - 21 ), + 66 AS col2
----
28
-21
66

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5408
SELECT + COUNT( DISTINCT - CAST( + + 56 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5408
SELECT + COUNT ( DISTINCT - CAST ( + + 56 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5409
SELECT ( + COALESCE ( - 88, 71 + - + 41 DIV COUNT( * ) ) )
----
-88

skipif mysql # not compatible
query I rowsort label-5409
SELECT ( + COALESCE ( - 88, 71 + - + 41 / COUNT ( * ) ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT - COALESCE ( - - 16, - ( 8 ) + - COUNT( * ) ) * + 14 + - 14
----
-238

skipif mysql # not compatible
query I rowsort label-5410
SELECT - COALESCE ( - - 16, - ( 8 ) + - COUNT ( * ) ) * + 14 + - 14
----
-238

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT ( CASE + - 84 WHEN - + 93 THEN - 25 - + + 21 WHEN + COUNT( * ) / - 36 THEN - 40 WHEN - + 10 * 42 THEN NULL END ) AS col1, 3 * + 42
----
NULL
126

skipif mysql # not compatible
query II rowsort label-5411
SELECT ( CASE + - 84 WHEN - + 93 THEN - 25 - + + 21 WHEN + COUNT ( * ) / - 36 THEN - 40 WHEN - + 10 * 42 THEN NULL END ) AS col1, 3 * + 42
----
NULL
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5412
SELECT ALL + CAST( NULLIF ( - - 89, + 93 ) AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL + CAST ( NULLIF ( - - 89, + 93 ) AS INTEGER ) AS col1
----
89

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

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

query I rowsort
SELECT DISTINCT 98 * 42 * + 77 + - 66 * + + 78 AS col1
----
311784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5415
SELECT - 91 * - CAST( NULL AS SIGNED ) + COUNT( * ) + 49 / - COUNT( * ) - - CAST( + 72 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT - 91 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) + 49 / - COUNT ( * ) - - CAST ( + 72 AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL 4 * + 11 + + ( + 56 ) - - ( + + 57 ) AS col2
----
157

query I rowsort
SELECT 87 * - 29 * - 98 * - - 89 AS col0
----
22005606

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT 93 DIV + 24
----
3

skipif mysql # not compatible
query I rowsort label-5418
SELECT 93 / + 24
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT ALL - 39 - CAST( + - 18 AS SIGNED ) + - - 24 + + 10 * - - 88 + - 38
----
845

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - 39 - CAST ( + - 18 AS INTEGER ) + - - 24 + + 10 * - - 88 + - 38
----
845

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT + 14 DIV - + 53 + 45
----
45

skipif mysql # not compatible
query I rowsort label-5420
SELECT + 14 / - + 53 + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT 53 * + ( + + 43 ) + COUNT( * )
----
2280

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT 53 * + ( + + 43 ) + COUNT ( * )
----
2280

query I rowsort
SELECT DISTINCT - 45 * + + 27 * 17 AS col2
----
-20655

query I rowsort
SELECT DISTINCT 33 * + 79 AS col2
----
2607

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT 4 - COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-5424
SELECT 4 - COUNT ( * ) col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT DISTINCT + 51 * + CAST( NULL AS SIGNED ) * + - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT + 51 * + CAST ( NULL AS INTEGER ) * + - 83 AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 83 + ( + - 81 ) AS col1
----
2

query I rowsort
SELECT ALL + 38 + - - 25 * - 51 * + 86
----
-109612

query I rowsort
SELECT DISTINCT 17 + - 49 + - + 87 AS col2
----
-119

query I rowsort
SELECT ALL 93 + - 1 AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5431
SELECT ALL 51 + + COUNT( DISTINCT 85 ) + + + COUNT( * ) AS col0, 14 AS col1
----
53
14

skipif mysql # not compatible
query II rowsort label-5431
SELECT ALL 51 + + COUNT ( DISTINCT 85 ) + + + COUNT ( * ) AS col0, 14 AS col1
----
53
14

query II rowsort
SELECT 5, - 73 AS col0
----
5
-73

query I rowsort
SELECT 68 * + + 49
----
3332

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

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

query I rowsort
SELECT - 44 * + 5 - 25 AS col0
----
-245

query I rowsort
SELECT ALL 57 * + - 48
----
-2736

query I rowsort
SELECT ALL 16 + 43 AS col2
----
59

query I rowsort
SELECT DISTINCT 92 + + 10
----
102

query I rowsort
SELECT DISTINCT 50 + + 10 + - 58
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5441
SELECT 5 * - - CASE + 41 WHEN + 75 THEN NULL ELSE + + 68 END + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT 5 * - - CASE + 41 WHEN + 75 THEN NULL ELSE + + 68 END + - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 42 AS col1, + 60 col0
----
-42
60

query II rowsort
SELECT ALL - 57 AS col0, 51
----
-57
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5444
SELECT 93 + + 69 + NULLIF ( COUNT( * ), 91 * - 52 + MIN( + 27 ) ) * - + 27 + + 30 + COUNT( * ) * 45 + COUNT( * ) * - 98, - 43 AS col0
----
112
-43

skipif mysql # not compatible
query II rowsort label-5444
SELECT 93 + + 69 + NULLIF ( COUNT ( * ), 91 * - 52 + MIN ( + 27 ) ) * - + 27 + + 30 + COUNT ( * ) * 45 + COUNT ( * ) * - 98, - 43 AS col0
----
112
-43

query I rowsort
SELECT 32 * 97 AS col2
----
3104

onlyif mysql # aggregate syntax: 
query II rowsort label-5446
SELECT 34 AS col1, - ( 66 ) + - + 31 * COUNT( * ) * + - 12 * NULLIF ( + NULLIF ( 49, + + 56 ), + 57 ) * 39 * - - 91
----
34
64691106

skipif mysql # not compatible
query II rowsort label-5446
SELECT 34 AS col1, - ( 66 ) + - + 31 * COUNT ( * ) * + - 12 * NULLIF ( + NULLIF ( 49, + + 56 ), + 57 ) * 39 * - - 91
----
34
64691106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT DISTINCT + COALESCE ( - CAST( NULL AS SIGNED ), 53 ) - - + 99
----
152

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT + COALESCE ( - CAST ( NULL AS INTEGER ), 53 ) - - + 99
----
152

query II rowsort
SELECT 33 * - - 24 + + COALESCE ( - 94, - 17, - 43 * + 52 * + + 72 * - + 9 + + 91 * + 10 ), - 24 AS col2
----
698
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT COUNT( * ) * 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT COUNT ( * ) * 72 AS col2
----
72

query I rowsort
SELECT + 3 * + 17 AS col2
----
51

query II rowsort
SELECT DISTINCT + 76 AS col2, 7 AS col0
----
76
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5452
SELECT ALL + COUNT( * ) AS col0, + NULLIF ( - ( 70 ), + 61 ) DIV - 54 + + + 59 + + - 58 col0
----
1
2

skipif mysql # not compatible
query II rowsort label-5452
SELECT ALL + COUNT ( * ) AS col0, + NULLIF ( - ( 70 ), + 61 ) / - 54 + + + 59 + + - 58 col0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - ( + 83 ) + - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-5453
SELECT - ( + 83 ) + - COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT - 69 * - - 49 * - CASE 87 WHEN + COUNT( * ) + ( - + 99 ) + - + COUNT( * ) * AVG ( - + 70 ) * + 75 + + + COUNT( * ) * - - 78 THEN + - 20 WHEN 52 + - 70 THEN 25 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT - 69 * - - 49 * - CASE 87 WHEN + COUNT ( * ) + ( - + 99 ) + - + COUNT ( * ) * AVG ( - + 70 ) * + 75 + + + COUNT ( * ) * - - 78 THEN + - 20 WHEN 52 + - 70 THEN 25 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT - 78 + + 4 + - 84 * + 30 + - 20 * COUNT( * )
----
-2614

skipif mysql # not compatible
query I rowsort label-5456
SELECT - 78 + + 4 + - 84 * + 30 + - 20 * COUNT ( * )
----
-2614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5457
SELECT MIN( - + 86 ) DIV - 76
----
1

skipif mysql # not compatible
query I rowsort label-5457
SELECT MIN ( - + 86 ) / - 76
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT + ( + + 78 ) + + COUNT( * ) * + 41 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-5458
SELECT + ( + + 78 ) + + COUNT ( * ) * + 41 AS col0
----
119

query I rowsort
SELECT + 61 - 14 col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5460
SELECT ALL - 60, MIN( DISTINCT - - 29 ) col2
----
-60
29

skipif mysql # not compatible
query II rowsort label-5460
SELECT ALL - 60, MIN ( DISTINCT - - 29 ) col2
----
-60
29

query I rowsort
SELECT 19 + - 65 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT + COUNT( + - 71 ) + MIN( DISTINCT - - 53 )
----
54

skipif mysql # not compatible
query I rowsort label-5462
SELECT + COUNT ( + - 71 ) + MIN ( DISTINCT - - 53 )
----
54

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

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

query II rowsort
SELECT 98 AS col2, - 27 * + 99 + + 21 * 97
----
98
-636

query I rowsort
SELECT - CASE 47 WHEN - + 28 THEN NULL ELSE + - 52 * - 15 END AS col0
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL + 22 + - MIN( DISTINCT - 43 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL + 22 + - MIN ( DISTINCT - 43 ) AS col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5467
SELECT COUNT( * ) DIV - ( - SUM( DISTINCT - 48 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT COUNT ( * ) / - ( - SUM ( DISTINCT - 48 ) )
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5469
SELECT ALL + 73 + 29 * + CASE - ( + 44 ) WHEN - - 3 + 8 THEN + 47 * + 83 + + 23 END + - COUNT( * ) col0, - 76
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-5469
SELECT ALL + 73 + 29 * + CASE - ( + 44 ) WHEN - - 3 + 8 THEN + 47 * + 83 + + 23 END + - COUNT ( * ) col0, - 76
----
NULL
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5470
SELECT 88 + + CAST( NULL AS SIGNED ) * 96 * - 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT 88 + + CAST ( NULL AS INTEGER ) * 96 * - 17 col0
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 16, + 66 )
----
-16

query I rowsort
SELECT - + NULLIF ( 49, 22 )
----
-49

query II rowsort
SELECT - + 65 AS col2, - 14 + 54 AS col2
----
-65
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT CASE - - 49 WHEN - 28 * + 50 + - ( COUNT( * ) ) * + 92 + + CASE + COUNT( * ) WHEN + - 43 * - + 16 THEN NULL ELSE + - 6 * + 28 END * COUNT( * ) THEN 48 WHEN 48 THEN 8 * - - 37 + + 58 * + COUNT( * ) - + 64 + + 13 END * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT CASE - - 49 WHEN - 28 * + 50 + - ( COUNT ( * ) ) * + 92 + + CASE + COUNT ( * ) WHEN + - 43 * - + 16 THEN NULL ELSE + - 6 * + 28 END * COUNT ( * ) THEN 48 WHEN 48 THEN 8 * - - 37 + + 58 * + COUNT ( * ) - + 64 + + 13 END * + 32
----
NULL

query I rowsort
SELECT ALL 52 + + 55
----
107

query I rowsort
SELECT 62 * - 51
----
-3162

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT 7 + - - NULLIF ( + 91, + 53 * - 55 + - MAX( 74 ) * 48 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5478
SELECT 7 + - - NULLIF ( + 91, + 53 * - 55 + - MAX ( 74 ) * 48 ) AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5479
SELECT ALL 78 * - 21 * CAST( COUNT( * ) AS SIGNED ) + 22 * + 67 AS col2
----
-164

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL 78 * - 21 * CAST ( COUNT ( * ) AS INTEGER ) + 22 * + 67 AS col2
----
-164

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT ALL NULLIF ( - 19, - 43 ) DIV 59 + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL NULLIF ( - 19, - 43 ) / 59 + - 5
----
-5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5483
SELECT 28 DIV - 83 * 79 + 74 + + ( 98 ) AS col2
----
172

skipif mysql # not compatible
query I rowsort label-5483
SELECT 28 / - 83 * 79 + 74 + + ( 98 ) AS col2
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5484
SELECT - CAST( - + 80 AS SIGNED ) * 40 * - + 70 AS col1
----
-224000

skipif mysql # not compatible
query I rowsort label-5484
SELECT - CAST ( - + 80 AS INTEGER ) * 40 * - + 70 AS col1
----
-224000

query I rowsort
SELECT ALL + 44 * + 10 - + 83
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT ALL 56 * + 74 * - SUM( - 96 ) AS col2
----
397824

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL 56 * + 74 * - SUM ( - 96 ) AS col2
----
397824

query I rowsort
SELECT - 26 * + - NULLIF ( - 16, 49 )
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT DISTINCT MIN( - - 78 ) * + 78 AS col2
----
6084

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT MIN ( - - 78 ) * + 78 AS col2
----
6084

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT ALL - 65 DIV - 16 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL - 65 / - 16 AS col2
----
4

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

query I rowsort
SELECT + - 65 col2
----
-65

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

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

query II rowsort
SELECT - - 17 * - - 63, + 75 AS col1
----
1071
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL MIN( 78 ) col1
----
78

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL MIN ( 78 ) col1
----
78

query I rowsort
SELECT - - 57 * + + 99 AS col1
----
5643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5497
SELECT ALL CASE 71 WHEN + 36 * + ( + + 86 ) THEN + 83 * - SUM( 47 ) / - 57 + + - COALESCE ( COUNT( * ), - 85 * + + COUNT( * ) ) WHEN 41 THEN NULL END + COALESCE ( - COUNT( * ), - 25 * + CAST( 92 AS SIGNED ) ) + AVG ( + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL CASE 71 WHEN + 36 * + ( + + 86 ) THEN + 83 * - SUM ( 47 ) / - 57 + + - COALESCE ( COUNT ( * ), - 85 * + + COUNT ( * ) ) WHEN 41 THEN NULL END + COALESCE ( - COUNT ( * ), - 25 * + CAST ( 92 AS INTEGER ) ) + AVG ( + 32 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT DISTINCT + CAST( - - 29 AS SIGNED ) + 34
----
63

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + CAST ( - - 29 AS INTEGER ) + 34
----
63

query I rowsort
SELECT DISTINCT 82 * + 39 + 9 AS col0
----
3207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5500
SELECT DISTINCT + + 47 + + 3 * - SUM( - 10 ) + - 88 DIV + 47 + + + MAX( 59 ) + - - 34 + + 38 * + 28 AS col1
----
1233

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT + + 47 + + 3 * - SUM ( - 10 ) + - 88 / + 47 + + + MAX ( 59 ) + - - 34 + + 38 * + 28 AS col1
----
1233

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT ALL + 10 + + 0 * + MAX( DISTINCT - 5 ) - - - COALESCE ( 38, - 93, + 19 * + 95 * + - 11 )
----
-28

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL + 10 + + 0 * + MAX ( DISTINCT - 5 ) - - - COALESCE ( 38, - 93, + 19 * + 95 * + - 11 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5502
SELECT - + CAST( NULL AS DECIMAL ) - + + ( COUNT( * ) ) / + + 93 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT - + CAST ( NULL AS REAL ) - + + ( COUNT ( * ) ) / + + 93 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT - - 30 + - - CASE + MIN( + 46 ) WHEN - 5 THEN NULL ELSE 67 END
----
97

skipif mysql # not compatible
query I rowsort label-5503
SELECT - - 30 + - - CASE + MIN ( + 46 ) WHEN - 5 THEN NULL ELSE 67 END
----
97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5505
SELECT DISTINCT - 13 DIV + SUM( ( - + 44 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - 13 / + SUM ( ( - + 44 ) )
----
0

query I rowsort
SELECT DISTINCT + 86 - - - 66 AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT ALL - 32 DIV - 14 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL - 32 / - 14 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL CASE COUNT( * ) WHEN 95 THEN - - 85 WHEN + + 78 * - 21 * + CAST( - - CASE ( - 46 ) WHEN + 7 THEN - - 49 / - 21 END AS SIGNED ) + - 51 THEN NULL END - + MIN( + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL CASE COUNT ( * ) WHEN 95 THEN - - 85 WHEN + + 78 * - 21 * + CAST ( - - CASE ( - 46 ) WHEN + 7 THEN - - 49 / - 21 END AS INTEGER ) + - 51 THEN NULL END - + MIN ( + 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5509
SELECT + 36 * - 17 - + NULLIF ( - - 37, - MAX( ALL - + 86 ) ) * - MIN( DISTINCT + ( + 74 ) ) + - 50 * - + 19 AS col1, + COUNT( * ) * + + 98 - + ( 28 ) + + 74 * - ( COUNT( * ) )
----
3076
-4

skipif mysql # not compatible
query II rowsort label-5509
SELECT + 36 * - 17 - + NULLIF ( - - 37, - MAX ( ALL - + 86 ) ) * - MIN ( DISTINCT + ( + 74 ) ) + - 50 * - + 19 AS col1, + COUNT ( * ) * + + 98 - + ( 28 ) + + 74 * - ( COUNT ( * ) )
----
3076
-4

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

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

query I rowsort
SELECT DISTINCT - 14 * ( 84 )
----
-1176

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT + 98 * 45 * - + COUNT( * )
----
-4410

skipif mysql # not compatible
query I rowsort label-5513
SELECT + 98 * 45 * - + COUNT ( * )
----
-4410

onlyif mysql # aggregate syntax: 
query II rowsort label-5514
SELECT ALL + COUNT( * ), + COUNT( * ) + 51 + 26 AS col1
----
1
78

skipif mysql # not compatible
query II rowsort label-5514
SELECT ALL + COUNT ( * ), + COUNT ( * ) + 51 + 26 AS col1
----
1
78

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

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL + COUNT ( * ) * - MAX ( ALL CAST ( + 75 AS INTEGER ) ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT - CAST( 57 AS SIGNED ) * - + 27 * - 90 * - 45 AS col0
----
6232950

skipif mysql # not compatible
query I rowsort label-5516
SELECT - CAST ( 57 AS INTEGER ) * - + 27 * - 90 * - 45 AS col0
----
6232950

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

query I rowsort
SELECT 42 * - - 29 - - 45
----
1263

query I rowsort
SELECT - 38 * - + 66 * + 57 AS col1
----
142956

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

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

query II rowsort
SELECT DISTINCT + 70 AS col2, + 84 col1
----
70
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5523
SELECT ALL + 73, - COUNT( * ) + CASE - - COUNT( * ) WHEN 37 THEN NULL WHEN + COUNT( * ) * + 76 THEN - 94 * - 98 + + 95 + + 3 * - + NULLIF ( + ( + 9 ), - - COUNT( * ) + + 21 - 64 ) - - - 97 WHEN + 76 THEN NULL END AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-5523
SELECT ALL + 73, - COUNT ( * ) + CASE - - COUNT ( * ) WHEN 37 THEN NULL WHEN + COUNT ( * ) * + 76 THEN - 94 * - 98 + + 95 + + 3 * - + NULLIF ( + ( + 9 ), - - COUNT ( * ) + + 21 - 64 ) - - - 97 WHEN + 76 THEN NULL END AS col2
----
73
NULL

query I rowsort
SELECT ALL + - 54 * - - 95 + - 68
----
-5198

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5526
SELECT + + 47 DIV + 81 + 64 + + 77 * - + 1 col0
----
-13

skipif mysql # not compatible
query I rowsort label-5526
SELECT + + 47 / + 81 + 64 + + 77 * - + 1 col0
----
-13

query I rowsort
SELECT + 60 + - 68 AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5528
SELECT ALL + 13, COUNT( * ) DIV 66 col2
----
13
0

skipif mysql # not compatible
query II rowsort label-5528
SELECT ALL + 13, COUNT ( * ) / 66 col2
----
13
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT - + 45 * 13 * + 70 + 68 + + COUNT( * ) + + 44 AS col2
----
-40837

skipif mysql # not compatible
query I rowsort label-5529
SELECT - + 45 * 13 * + 70 + 68 + + COUNT ( * ) + + 44 AS col2
----
-40837

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT 86 * - 28 + SUM( DISTINCT - 12 ) + 4 AS col0
----
-2416

skipif mysql # not compatible
query I rowsort label-5530
SELECT 86 * - 28 + SUM ( DISTINCT - 12 ) + 4 AS col0
----
-2416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5531
SELECT ALL - 23 * - 61 + - - CAST( NULL AS SIGNED ) * - 22 * + ( - 63 ) + ( 40 ) + 79 * + 20 * + - 45, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5531
SELECT ALL - 23 * - 61 + - - CAST ( NULL AS INTEGER ) * - 22 * + ( - 63 ) + ( 40 ) + 79 * + 20 * + - 45, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT MAX( ALL + 84 ) * - 17 + + 44
----
-1384

skipif mysql # not compatible
query I rowsort label-5532
SELECT MAX ( ALL + 84 ) * - 17 + + 44
----
-1384

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL - - COUNT( * ) * - 95 + - 59
----
-154

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - - COUNT ( * ) * - 95 + - 59
----
-154

query I rowsort
SELECT + + 95 + + 17 + - - 83
----
195

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5536
SELECT DISTINCT + 30 * - - 44 + - COUNT( ALL + 64 ) DIV + 8 + - + 3 * - 43 AS col0
----
1449

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT + 30 * - - 44 + - COUNT ( ALL + 64 ) / + 8 + - + 3 * - 43 AS col0
----
1449

query I rowsort
SELECT ALL + 94 * 39 + - + ( 95 )
----
3571

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT SUM( - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5538
SELECT SUM ( - 77 ) AS col2
----
-77

query I rowsort
SELECT - + 45 + + 98 AS col2
----
53

query I rowsort
SELECT ALL + 40 + - COALESCE ( - 35, 93 ) * 44
----
1580

query I rowsort
SELECT + 76 + 12 - + + 92 AS col0
----
-4

query I rowsort
SELECT - - 70 + 19
----
89

query I rowsort
SELECT + 90 + - + 92 * 72 * 96
----
-635814

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT - MIN( DISTINCT + 22 ) - + 20 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5544
SELECT - MIN ( DISTINCT + 22 ) - + 20 AS col1
----
-42

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL MAX( + - 73 ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL MAX ( + - 73 ) col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5548
SELECT ALL 93 * SUM( CAST( 95 AS SIGNED ) ), COUNT( * ) DIV - + 45 * + - 32 AS col0
----
8835
0

skipif mysql # not compatible
query II rowsort label-5548
SELECT ALL 93 * SUM ( CAST ( 95 AS INTEGER ) ), COUNT ( * ) / - + 45 * + - 32 AS col0
----
8835
0

query I rowsort
SELECT - 4 + + 46 * - 95 AS col2
----
-4374

query I rowsort
SELECT DISTINCT 28 * - 65 AS col1
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL + COUNT( + 72 ) - + 90 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL + COUNT ( + 72 ) - + 90 AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5552
SELECT SUM( ALL - 28 ) DIV 20 + NULLIF ( 77, - - 59 ) * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5552
SELECT SUM ( ALL - 28 ) / 20 + NULLIF ( 77, - - 59 ) * + COUNT ( * )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5553
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) AS col0, 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-5553
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) AS col0, 56
----
NULL
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT DISTINCT + CASE + COUNT( * ) WHEN 78 THEN + 90 - - 10 + + 14 ELSE NULL END / - - 92 + - + 65 * + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT + CASE + COUNT ( * ) WHEN 78 THEN + 90 - - 10 + + 14 ELSE NULL END / - - 92 + - + 65 * + + 6 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5556
SELECT DISTINCT - CASE + 10 WHEN - 70 THEN - 76 * + + 55 + + 28 / + 92 - + 3 * + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN + 70 * + - 30 * - 3 * + ( + + 60 ) / - 0 + - + COUNT( + + 30 ) + - - ( - + 33 ) * - 56 END * 92 * + 44 + - - COUNT( * ) col1, - 23 + 2
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-5556
SELECT DISTINCT - CASE + 10 WHEN - 70 THEN - 76 * + + 55 + + 28 / + 92 - + 3 * + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN + 70 * + - 30 * - 3 * + ( + + 60 ) / - 0 + - + COUNT ( + + 30 ) + - - ( - + 33 ) * - 56 END * 92 * + 44 + - - COUNT ( * ) col1, - 23 + 2
----
NULL
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT ALL 2 * CAST( + 68 AS SIGNED )
----
136

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL 2 * CAST ( + 68 AS INTEGER )
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT - 0 DIV NULLIF ( 26, - - ( - NULLIF ( + 0, - 80 * + + 58 ) ) ) + - 51
----
-51

skipif mysql # not compatible
query I rowsort label-5558
SELECT - 0 / NULLIF ( 26, - - ( - NULLIF ( + 0, - 80 * + + 58 ) ) ) + - 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL + COUNT( * ) + SUM( + 18 ) + 15
----
34

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + COUNT ( * ) + SUM ( + 18 ) + 15
----
34

query I rowsort
SELECT DISTINCT - 29 * + + 91
----
-2639

query I rowsort
SELECT ALL + 70 + 44 * - 72 * - 62 col1
----
196486

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT 94 - - MAX( ALL 15 ) AS col1
----
109

skipif mysql # not compatible
query I rowsort label-5562
SELECT 94 - - MAX ( ALL 15 ) AS col1
----
109

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

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

query I rowsort
SELECT 84 * - + 86 * + 88 + + 91 + + 24 AS col1
----
-635597

query I rowsort
SELECT DISTINCT - 79 + + + 99 * - + 57
----
-5722

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5566
SELECT ALL + 4 + + 97 DIV + - CAST( - 9 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL + 4 + + 97 / + - CAST ( - 9 AS INTEGER )
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT + SUM( DISTINCT - - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-5568
SELECT + SUM ( DISTINCT - - 54 )
----
54

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

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

query I rowsort
SELECT 27 * + 91 AS col1
----
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5571
SELECT - COALESCE ( 56, 68 * 18 - - + 6 + - 45 - NULLIF ( - CASE - 51 WHEN - CAST( NULL AS SIGNED ) THEN - 79 WHEN - 46 THEN + COUNT( * ) END, + AVG ( DISTINCT + 65 ) + + 21 ) * + ( + + 52 ), + 7 * - + 96 ) * 2
----
-112

skipif mysql # not compatible
query I rowsort label-5571
SELECT - COALESCE ( 56, 68 * 18 - - + 6 + - 45 - NULLIF ( - CASE - 51 WHEN - CAST ( NULL AS INTEGER ) THEN - 79 WHEN - 46 THEN + COUNT ( * ) END, + AVG ( DISTINCT + 65 ) + + 21 ) * + ( + + 52 ), + 7 * - + 96 ) * 2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT + 52 * + + 45 - + - COUNT( * ) * + - 41 AS col2
----
2299

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + 52 * + + 45 - + - COUNT ( * ) * + - 41 AS col2
----
2299

query II rowsort
SELECT 32 * 37 AS col1, 89
----
1184
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL COUNT( * ) * - CAST( - 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL COUNT ( * ) * - CAST ( - 5 AS INTEGER )
----
5

query II rowsort
SELECT ALL + + 26 * 96 AS col2, 30 AS col0
----
2496
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT DISTINCT + ( - MAX( + + 18 ) ) * + 78 col2
----
-1404

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT + ( - MAX ( + + 18 ) ) * + 78 col2
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL + COUNT( * ) * + 93 * 17 col2
----
1581

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + COUNT ( * ) * + 93 * 17 col2
----
1581

query I rowsort
SELECT DISTINCT 52 * - + 85 AS col0
----
-4420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT ALL COALESCE ( 73, + + SUM( DISTINCT + 53 ) * + - 65 ) DIV - 12 - - 31 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL COALESCE ( 73, + + SUM ( DISTINCT + 53 ) * + - 65 ) / - 12 - - 31 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT 77 * - + 77 * - SUM( 64 ) * 62
----
23526272

skipif mysql # not compatible
query I rowsort label-5580
SELECT 77 * - + 77 * - SUM ( 64 ) * 62
----
23526272

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

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

query I rowsort
SELECT ALL 81 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT 96 + - NULLIF ( - + COUNT( * ), - 88 * + + 28 * 61 * NULLIF ( + 13, + ( - COUNT( * ) ) * + 11 * + + 33 ) ) * - - 18 + + - 53 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5583
SELECT 96 + - NULLIF ( - + COUNT ( * ), - 88 * + + 28 * 61 * NULLIF ( + 13, + ( - COUNT ( * ) ) * + 11 * + + 33 ) ) * - - 18 + + - 53 AS col2
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT COUNT( * ) + - + CASE + + 39 WHEN COUNT( * ) * - 80 * + COUNT( * ) THEN - - 52 ELSE NULL END + - - 24 * - - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT COUNT ( * ) + - + CASE + + 39 WHEN COUNT ( * ) * - 80 * + COUNT ( * ) THEN - - 52 ELSE NULL END + - - 24 * - - 57 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL - 79 * + COUNT ( + - ( 52 ) ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL 21 * COALESCE ( + + COUNT( * ), + 12 * 11 * 62 + + 26 )
----
21

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL 21 * COALESCE ( + + COUNT ( * ), + 12 * 11 * 62 + + 26 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT COUNT( * ) + + - NULLIF ( 57, - 49 )
----
-56

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT COUNT ( * ) + + - NULLIF ( 57, - 49 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT 47 DIV - + 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5589
SELECT 47 / - + 40 AS col0
----
-1

query I rowsort
SELECT 50 + - 83
----
-33

query I rowsort
SELECT ALL - ( + 61 ) + + 34 col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5592
SELECT - 33 DIV 28 + 68
----
67

skipif mysql # not compatible
query I rowsort label-5592
SELECT - 33 / 28 + 68
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT DISTINCT + + 45 + + CAST( ( + 18 ) AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT + + 45 + + CAST ( ( + 18 ) AS INTEGER )
----
63

query I rowsort
SELECT ALL - + 86 col0
----
-86

query I rowsort
SELECT ALL + - 95 + 26
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT ALL + - 78 DIV + 72
----
-1

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL + - 78 / + 72
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT ALL + + 70 * MIN( DISTINCT - + 76 ), 91 AS col1
----
-5320
91

skipif mysql # not compatible
query II rowsort label-5597
SELECT ALL + + 70 * MIN ( DISTINCT - + 76 ), 91 AS col1
----
-5320
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5598
SELECT DISTINCT + COUNT( * ) + 72 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT + COUNT ( * ) + 72 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 84 * - 30
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5600
SELECT + - 63 col1, + ( - + COUNT( * ) ) * - - 71 - - CAST( NULL AS SIGNED )
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-5600
SELECT + - 63 col1, + ( - + COUNT ( * ) ) * - - 71 - - CAST ( NULL AS INTEGER )
----
-63
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5601
SELECT ALL - - CASE + + CASE 77 WHEN CASE + 50 WHEN - ( + + 9 ) THEN NULL WHEN - COALESCE ( - 67, + + 47 + - + 53 + + - 26 ) + - 3 THEN - 84 ELSE + + 13 * + + ( - - COUNT( DISTINCT + 60 ) ) - + 54 END THEN NULL ELSE 41 * - - MIN( + 99 ) / + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - 96 * - MAX( 62 ) + 5 * - 39 END WHEN + + CAST( NULL AS DECIMAL ) THEN 20 / + 2 + + - CASE 60 WHEN CASE 38 WHEN 16 THEN + 48 * ( - 29 * CAST( NULL AS SIGNED ) ) + + 65 * + 28 WHEN - ( 11 ) * 63 THEN NULL WHEN COUNT( * ) * 92 THEN NULL END + - 46 THEN 50 + 25 * - 93 ELSE 89 * + ( 48 * 7 ) END * 82 END + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL - - CASE + + CASE 77 WHEN CASE + 50 WHEN - ( + + 9 ) THEN NULL WHEN - COALESCE ( - 67, + + 47 + - + 53 + + - 26 ) + - 3 THEN - 84 ELSE + + 13 * + + ( - - COUNT ( DISTINCT + 60 ) ) - + 54 END THEN NULL ELSE 41 * - - MIN ( + 99 ) / + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 96 * - MAX ( 62 ) + 5 * - 39 END WHEN + + CAST ( NULL AS REAL ) THEN 20 / + 2 + + - CASE 60 WHEN CASE 38 WHEN 16 THEN + 48 * ( - 29 * CAST ( NULL AS INTEGER ) ) + + 65 * + 28 WHEN - ( 11 ) * 63 THEN NULL WHEN COUNT ( * ) * 92 THEN NULL END + - 46 THEN 50 + 25 * - 93 ELSE 89 * + ( 48 * 7 ) END * 82 END + 7 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5603
SELECT - ( 10 ) * - 92 * 22 * COUNT( * ) DIV + - COUNT( * )
----
-20240

skipif mysql # not compatible
query I rowsort label-5603
SELECT - ( 10 ) * - 92 * 22 * COUNT ( * ) / + - COUNT ( * )
----
-20240

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT + 45 + + ( - COALESCE ( + - 89, - - 51 ) ) * 32 + + COUNT( * ) AS col1
----
2894

skipif mysql # not compatible
query I rowsort label-5604
SELECT + 45 + + ( - COALESCE ( + - 89, - - 51 ) ) * 32 + + COUNT ( * ) AS col1
----
2894

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT COALESCE ( + + 4, - 92 * + COUNT( * ) * + 59 * - - 80 ) + - 69 * + 75 * + 93 * + 59
----
-28395221

skipif mysql # not compatible
query I rowsort label-5606
SELECT COALESCE ( + + 4, - 92 * + COUNT ( * ) * + 59 * - - 80 ) + - 69 * + 75 * + 93 * + 59
----
-28395221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5607
SELECT ( - 27 ) * + 26 + - - ( - 20 ) - + - 63 * - MAX( ALL 0 ) * - 55 * + + 69 - NULLIF ( 12, ( CAST( + CAST( + 16 AS SIGNED ) AS SIGNED ) ) * - ( - 71 ) ) + + 12
----
-722

skipif mysql # not compatible
query I rowsort label-5607
SELECT ( - 27 ) * + 26 + - - ( - 20 ) - + - 63 * - MAX ( ALL 0 ) * - 55 * + + 69 - NULLIF ( 12, ( CAST ( + CAST ( + 16 AS INTEGER ) AS INTEGER ) ) * - ( - 71 ) ) + + 12
----
-722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5608
SELECT ALL - 32 - 45 DIV + 68 + 46 - + COUNT( * ) + + SUM( ALL - 77 ) + 0 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL - 32 - 45 / + 68 + 46 - + COUNT ( * ) + + SUM ( ALL - 77 ) + 0 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL + + MIN( - 50 ) * + CASE - 11 WHEN + COUNT( * ) + - 7 THEN NULL WHEN 16 + - 51 / + 82 - + 57 THEN NULL ELSE + + MIN( DISTINCT 53 ) END
----
-2650

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + + MIN ( - 50 ) * + CASE - 11 WHEN + COUNT ( * ) + - 7 THEN NULL WHEN 16 + - 51 / + 82 - + 57 THEN NULL ELSE + + MIN ( DISTINCT 53 ) END
----
-2650

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT - 8 + - NULLIF ( CASE WHEN NOT NULL IS NULL THEN 77 END, + ( + + 57 ) ) / COUNT( DISTINCT + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT - 8 + - NULLIF ( CASE WHEN NOT NULL IS NULL THEN 77 END, + ( + + 57 ) ) / COUNT ( DISTINCT + 71 )
----
NULL

query I rowsort
SELECT ALL 52 * + ( 9 ) AS col1
----
468

query I rowsort
SELECT + 22 + 87
----
109

query II rowsort
SELECT 27, 92 AS col1
----
27
92

query I rowsort
SELECT + 57 + - 31
----
26

query II rowsort
SELECT 32, + 26 - 14 col2
----
32
12

query I rowsort
SELECT + 34 + - ( 52 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL COALESCE ( - 77, 91 ) * - + 97 * + 94 + + ( + COUNT( * ) )
----
702087

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL COALESCE ( - 77, 91 ) * - + 97 * + 94 + + ( + COUNT ( * ) )
----
702087

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT DISTINCT ( 5 ) * NULLIF ( 19, + COALESCE ( + 78, + SUM( 38 ) ) + - 65 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT ( 5 ) * NULLIF ( 19, + COALESCE ( + 78, + SUM ( 38 ) ) + - 65 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT + MIN( + 9 ) * - + COUNT( * ) - - + ( + - 38 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT + MIN ( + 9 ) * - + COUNT ( * ) - - + ( + - 38 ) AS col1
----
-47

query I rowsort
SELECT DISTINCT 85 col1
----
85

query I rowsort
SELECT + 98 * - ( 22 ) col1
----
-2156

query I rowsort
SELECT ALL + 83 + - - 97 * ( 2 ) - - - 96
----
181

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT ALL COUNT( 6 ) + NULLIF ( 20, + 66 * 55 * 49 ) * + + 96
----
1921

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL COUNT ( 6 ) + NULLIF ( 20, + 66 * 55 * 49 ) * + + 96
----
1921

query I rowsort
SELECT + 91 + + 44
----
135

query I rowsort
SELECT + 9 * - 15 AS col0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT + COUNT( + 66 ) + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5627
SELECT + COUNT ( + 66 ) + 16 AS col1
----
17

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

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

query I rowsort
SELECT ALL 91 + - 99
----
-8

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

query II rowsort
SELECT ALL 57 col2, + 92
----
57
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT DISTINCT ( - + 47 ) + - CAST( - 2 AS SIGNED ) * + 87
----
127

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT ( - + 47 ) + - CAST ( - 2 AS INTEGER ) * + 87
----
127

query I rowsort
SELECT + 8 * + 62
----
496

query I rowsort
SELECT ALL 19 * 64 * - + 83 * 91 * + - 6
----
55106688

query I rowsort
SELECT DISTINCT + 46 * + 47 AS col1
----
2162

query I rowsort
SELECT DISTINCT - 35 * + 5
----
-175

query I rowsort
SELECT + 67 * 24 * - + 30 + + + 97 * 7
----
-47561

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT ALL COUNT( * ) * + 58 col1
----
58

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL COUNT ( * ) * + 58 col1
----
58

query I rowsort
SELECT + - 7 + + + ( - - 49 ) + - 43 AS col0
----
-1

query II rowsort
SELECT + 21, 44 AS col2
----
21
44

query I rowsort
SELECT DISTINCT 55 * - + 22 * NULLIF ( + 57, - 71 )
----
-68970

query II rowsort
SELECT + - ( - 15 ) AS col0, + 24 AS col2
----
15
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + + 63 * - MIN( + - 63 ) * + MAX( ALL + 86 )
----
341334

skipif mysql # not compatible
query I rowsort label-5643
SELECT + + 63 * - MIN ( + - 63 ) * + MAX ( ALL + 86 )
----
341334

query I rowsort
SELECT - - 58 * + - 52 - 7 + + 43
----
-2980

onlyif mysql # aggregate syntax: 
query II rowsort label-5645
SELECT ALL + 67 AS col0, COUNT( * ) AS col1
----
67
1

skipif mysql # not compatible
query II rowsort label-5645
SELECT ALL + 67 AS col0, COUNT ( * ) AS col1
----
67
1

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

query I rowsort
SELECT + - 88 - - 57
----
-31

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-5650
SELECT ALL + 44 AS col1, COUNT( * ) AS col1, 34 + 49 + - CASE - 71 WHEN - 24 THEN NULL WHEN 55 THEN NULL WHEN 45 + - MIN( - + 64 ) * + 40 * + - 72 THEN - ( 8 ) END / + COUNT( * ) + ( + + 41 ) AS col1
----
44
1
NULL

skipif mysql # not compatible
query III rowsort label-5650
SELECT ALL + 44 AS col1, COUNT ( * ) AS col1, 34 + 49 + - CASE - 71 WHEN - 24 THEN NULL WHEN 55 THEN NULL WHEN 45 + - MIN ( - + 64 ) * + 40 * + - 72 THEN - ( 8 ) END / + COUNT ( * ) + ( + + 41 ) AS col1
----
44
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT ALL + 3 DIV - 77 + + + 84 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL + 3 / - 77 + + + 84 AS col2
----
84

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

skipif mysql # not compatible
query II rowsort label-5652
SELECT DISTINCT + + COUNT ( * ), COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT - - 25 * - + 87 * + 20 AS col1
----
-43500

onlyif mysql # DIV for integer division: 
query I rowsort label-5654
SELECT DISTINCT - 58 DIV 99 DIV + + 37 * 95 * 54 * + - 92 + + + 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT - 58 / 99 / + + 37 * 95 * 54 * + - 92 + + + 25 AS col1
----
25

query I rowsort
SELECT DISTINCT - 53 * - 62 * + ( - 99 ) - + - 62
----
-325252

query I rowsort
SELECT - + 31 * + + ( - + 22 ) AS col0
----
682

query II rowsort
SELECT + + 20 - 57 + - 16 + - + 21 AS col1, 7
----
-74
7

query I rowsort
SELECT + 50 * + 78 * - - 30 AS col0
----
117000

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT ALL + 51 * + CASE + 57 WHEN 47 * + ( + 29 ) THEN COUNT( * ) ELSE 19 * - + 28 + - 8 END AS col0
----
-27540

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + 51 * + CASE + 57 WHEN 47 * + ( + 29 ) THEN COUNT ( * ) ELSE 19 * - + 28 + - 8 END AS col0
----
-27540

onlyif mysql # DIV for integer division: 
query I rowsort label-5660
SELECT - 34 DIV + - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5660
SELECT - 34 / + - 87 AS col1
----
0

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

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

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

query II rowsort
SELECT ALL ( 7 ) col0, + 52 AS col1
----
7
52

query I rowsort
SELECT DISTINCT - 69 + + ( + - 3 ) col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5665
SELECT ALL CAST( - MIN( - + 30 ) AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL CAST ( - MIN ( - + 30 ) AS INTEGER )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5666
SELECT DISTINCT + COUNT( + CAST( 9 AS SIGNED ) ) + - - CAST( NULL AS SIGNED ) * + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT + COUNT ( + CAST ( 9 AS INTEGER ) ) + - - CAST ( NULL AS INTEGER ) * + 38 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT - 92 * COUNT( ALL + 64 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5668
SELECT - 92 * COUNT ( ALL + 64 ) AS col0
----
-92

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5670
SELECT - 62 + + CAST( NULL AS SIGNED ) * - 28 * + 74 - + 87 + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT - 62 + + CAST ( NULL AS INTEGER ) * - 28 * + 74 - + 87 + + 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5671
SELECT DISTINCT CAST( - - CASE + 34 WHEN - MIN( - 96 ) * - ( + 20 ) * + MIN( - 19 ) * - 69 * + + 55 - + + COUNT( * ) + COUNT( * ) THEN - 58 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT CAST ( - - CASE + 34 WHEN - MIN ( - 96 ) * - ( + 20 ) * + MIN ( - 19 ) * - 69 * + + 55 - + + COUNT ( * ) + COUNT ( * ) THEN - 58 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT + COALESCE ( - 87, - + 48 ) * 49 AS col0
----
-4263

onlyif mysql # aggregate syntax: 
query II rowsort label-5673
SELECT - 56 + + 69 + - COUNT( ALL - - 27 ) * + + 46 + 96 + 48 AS col2, 74 AS col1
----
111
74

skipif mysql # not compatible
query II rowsort label-5673
SELECT - 56 + + 69 + - COUNT ( ALL - - 27 ) * + + 46 + 96 + 48 AS col2, 74 AS col1
----
111
74

query II rowsort
SELECT ALL + 89 + - + 4 col0, + 63 + - 20
----
85
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT + COUNT( * ) - - 53 + + 7 * - 65
----
-401

skipif mysql # not compatible
query I rowsort label-5675
SELECT + COUNT ( * ) - - 53 + + 7 * - 65
----
-401

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5676
SELECT - MAX( + 23 ), 70 DIV 72 AS col1
----
-23
0

skipif mysql # not compatible
query II rowsort label-5676
SELECT - MAX ( + 23 ), 70 / 72 AS col1
----
-23
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5677
SELECT DISTINCT ( + 8 ) AS col1, 73 + + CAST( NULL AS SIGNED )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-5677
SELECT DISTINCT ( + 8 ) AS col1, 73 + + CAST ( NULL AS INTEGER )
----
8
NULL

query II rowsort
SELECT - 25 * - - 84 AS col0, ( - 4 ) AS col0
----
-2100
-4

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

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

query I rowsort
SELECT + - COALESCE ( 4, + 34 )
----
-4

query I rowsort
SELECT + 65 + - 22 AS col1
----
43

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT ALL - 98 DIV - 45 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL - 98 / - 45 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT - 28 * - + 46 * - + MAX( + 23 ) - 45 * - 27 + + + 2 AS col2
----
-28407

skipif mysql # not compatible
query I rowsort label-5684
SELECT - 28 * - + 46 * - + MAX ( + 23 ) - 45 * - 27 + + + 2 AS col2
----
-28407

query I rowsort
SELECT + - 12 * 73 AS col1
----
-876

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

query I rowsort
SELECT DISTINCT - - 98 * - 96 + + 62 col2
----
-9346

query I rowsort
SELECT + COALESCE ( 38, 53 ) * + - 0 AS col0
----
0

query I rowsort
SELECT ( - + ( 83 ) ) * + + 89 AS col2
----
-7387

query I rowsort
SELECT ALL + ( + 22 ) + + - 82 AS col0
----
-60

query II rowsort
SELECT 28 + 31, 37 AS col2
----
59
37

query I rowsort
SELECT 69 * 49 - + 74
----
3307

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT - COUNT( + ( + 72 ) ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-5693
SELECT - COUNT ( + ( + 72 ) ) + - 64
----
-65

query I rowsort
SELECT 32 - 23 col0
----
9

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

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

query I rowsort
SELECT ALL 28 + 53
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5697
SELECT ALL + 83 + + CAST( NULL AS SIGNED ) * 20 * - 92 * - - COALESCE ( + - 88, + 77 * - 0 + + - 60 ) + + 35 + + 18 * - ( - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL + 83 + + CAST ( NULL AS INTEGER ) * 20 * - 92 * - - COALESCE ( + - 88, + 77 * - 0 + + - 60 ) + + 35 + + 18 * - ( - 13 )
----
NULL

query I rowsort
SELECT - 65 * + ( + - 67 ) + 13 * - 48 AS col1
----
3731

query II rowsort
SELECT ALL 78 AS col2, 23 AS col0
----
78
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5700
SELECT 31 + ( + 82 ) DIV - + 54 - - MAX( - + 7 )
----
23

skipif mysql # not compatible
query I rowsort label-5700
SELECT 31 + ( + 82 ) / - + 54 - - MAX ( - + 7 )
----
23

query I rowsort
SELECT ALL - 11 * - + 51 AS col2
----
561

query II rowsort
SELECT - 85, 48 * + 12 AS col0
----
-85
576

onlyif mysql # aggregate syntax: 
query III rowsort label-5703
SELECT - 88, 34 * - MAX( - + 47 ) * - - 91 + 33 AS col0, - - ( - - 46 ) AS col0
----
-88
145451
46

skipif mysql # not compatible
query III rowsort label-5703
SELECT - 88, 34 * - MAX ( - + 47 ) * - - 91 + 33 AS col0, - - ( - - 46 ) AS col0
----
-88
145451
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5704
SELECT COUNT( * ) DIV + + NULLIF ( + COUNT( * ), - NULLIF ( 69, + 88 ) + + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5704
SELECT COUNT ( * ) / + + NULLIF ( + COUNT ( * ), - NULLIF ( 69, + 88 ) + + + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT 57 * - - CAST( + 40 AS SIGNED )
----
2280

skipif mysql # not compatible
query I rowsort label-5705
SELECT 57 * - - CAST ( + 40 AS INTEGER )
----
2280

query II rowsort
SELECT 33 AS col2, - 38 AS col2
----
33
-38

query I rowsort
SELECT DISTINCT 55 * + 86
----
4730

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

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL COUNT ( * ) - + + 15 AS col1
----
-14

query I rowsort
SELECT ALL - 21 - + 50 AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5710
SELECT 56 * SUM( + CAST( + + 25 AS SIGNED ) ) AS col0, - 61 + CASE + 68 WHEN - 39 + - 99 * + 24 * - + 88 THEN - - 14 END / + + 60 * + ( + COUNT( * ) ) * + - CAST( NULL AS SIGNED ) + + 31 AS col2
----
1400
NULL

skipif mysql # not compatible
query II rowsort label-5710
SELECT 56 * SUM ( + CAST ( + + 25 AS INTEGER ) ) AS col0, - 61 + CASE + 68 WHEN - 39 + - 99 * + 24 * - + 88 THEN - - 14 END / + + 60 * + ( + COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) + + 31 AS col2
----
1400
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT 33 col0, + 46 + - + CASE - 83 WHEN + + 13 * COALESCE ( + 91, + - 91 * + - 84, - - 24 / + 62 + + + COALESCE ( - COUNT( * ), + COUNT( * ) + - ( + 97 ) * ( + + 21 ) ) + 30 / 25 ) * + 67 + - MAX( ALL - + ( - + 18 ) ) + - 87 / - + COUNT( * ) THEN + 53 WHEN - + 15 THEN NULL END / - 36
----
33
NULL

skipif mysql # not compatible
query II rowsort label-5711
SELECT 33 col0, + 46 + - + CASE - 83 WHEN + + 13 * COALESCE ( + 91, + - 91 * + - 84, - - 24 / + 62 + + + COALESCE ( - COUNT ( * ), + COUNT ( * ) + - ( + 97 ) * ( + + 21 ) ) + 30 / 25 ) * + 67 + - MAX ( ALL - + ( - + 18 ) ) + - 87 / - + COUNT ( * ) THEN + 53 WHEN - + 15 THEN NULL END / - 36
----
33
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5713
SELECT - COUNT( ALL 61 ) * - + 66 * + - 82 AS col1, - 78 + + 9 AS col1
----
-5412
-69

skipif mysql # not compatible
query II rowsort label-5713
SELECT - COUNT ( ALL 61 ) * - + 66 * + - 82 AS col1, - 78 + + 9 AS col1
----
-5412
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT 15 * + COUNT( * ) + - ( - 96 )
----
111

skipif mysql # not compatible
query I rowsort label-5714
SELECT 15 * + COUNT ( * ) + - ( - 96 )
----
111

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5716
SELECT DISTINCT - COALESCE ( 37, + 79, + CAST( NULL AS SIGNED ) )
----
-37

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT - COALESCE ( 37, + 79, + CAST ( NULL AS INTEGER ) )
----
-37

query I rowsort
SELECT ALL - + 83 * - 63
----
5229

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5719
SELECT ALL - - 99 AS col1, + 60 DIV + 26 + - + COUNT( * ) * 41 * - - 84
----
99
-3442

skipif mysql # not compatible
query II rowsort label-5719
SELECT ALL - - 99 AS col1, + 60 / + 26 + - + COUNT ( * ) * 41 * - - 84
----
99
-3442

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL - + COUNT( + 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - + COUNT ( + 32 )
----
-1

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

query I rowsort
SELECT ALL - 75 * + 23 col1
----
-1725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5723
SELECT 64 DIV + + NULLIF ( COUNT( * ), - 35 DIV - 59 ) - - - 72 + - COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-5723
SELECT 64 / + + NULLIF ( COUNT ( * ), - 35 / - 59 ) - - - 72 + - COUNT ( * ) AS col2
----
-9

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT ALL + - COUNT( DISTINCT - 57 ) + - + 20
----
-21

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL + - COUNT ( DISTINCT - 57 ) + - + 20
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5728
SELECT - 88 DIV + 33 DIV + COUNT( * ) AS col2, + 15 AS col1
----
-2
15

skipif mysql # not compatible
query II rowsort label-5728
SELECT - 88 / + 33 / + COUNT ( * ) AS col2, + 15 AS col1
----
-2
15

query I rowsort
SELECT ALL 58 + + - 50 col0
----
8

query I rowsort
SELECT 96 * 17
----
1632

query I rowsort
SELECT DISTINCT + CASE + 24 WHEN - 60 + 1 THEN NULL WHEN + - 17 THEN + 18 END / 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5732
SELECT ALL - 45 AS col2, + COALESCE ( COUNT( * ), + 73 * + 18 DIV + 40 + 12 - + + 3 + + ( - - 54 ), NULLIF ( + 90, 80 + 67 + + + ( + 93 ) ), - COUNT( - + 67 ) + 18 )
----
-45
1

skipif mysql # not compatible
query II rowsort label-5732
SELECT ALL - 45 AS col2, + COALESCE ( COUNT ( * ), + 73 * + 18 / + 40 + 12 - + + 3 + + ( - - 54 ), NULLIF ( + 90, 80 + 67 + + + ( + 93 ) ), - COUNT ( - + 67 ) + 18 )
----
-45
1

query II rowsort
SELECT 49, 26 AS col2
----
49
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT DISTINCT ( + 18 ) + - 7 DIV + COUNT( * ) DIV + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT ( + 18 ) + - 7 / + COUNT ( * ) / + COUNT ( * )
----
11

query I rowsort
SELECT DISTINCT 45 + + + 28 AS col0
----
73

query I rowsort
SELECT ALL 57 * + 17 AS col0
----
969

query I rowsort
SELECT 41 * + 34 AS col2
----
1394

query I rowsort
SELECT ALL 74 + - 5
----
69

query I rowsort
SELECT 12 - 87
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5740
SELECT ALL CAST( + 29 AS SIGNED ) + - - 73 * 98 * + - 53
----
-379133

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL CAST ( + 29 AS INTEGER ) + - - 73 * 98 * + - 53
----
-379133

query I rowsort
SELECT DISTINCT 88 col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT MAX( - 2 ) - + + 17 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT MAX ( - 2 ) - + + 17 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5743
SELECT CASE MIN( 80 ) WHEN CAST( + 40 AS SIGNED ) - 55 - + - 82 * - 41 * + 69 * 86 * - + 60 THEN COUNT( * ) / + ( + 54 ) WHEN - ( - 39 ) THEN 17 END - + ( + - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT CASE MIN ( 80 ) WHEN CAST ( + 40 AS INTEGER ) - 55 - + - 82 * - 41 * + 69 * 86 * - + 60 THEN COUNT ( * ) / + ( + 54 ) WHEN - ( - 39 ) THEN 17 END - + ( + - 4 )
----
NULL

query II rowsort
SELECT NULLIF ( - 97, 40 ) + 6 AS col0, 75 AS col2
----
-91
75

query I rowsort
SELECT ALL 61 * - 79 AS col2
----
-4819

query I rowsort
SELECT 82 * - 11 * 61 AS col2
----
-55022

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT - CASE - 28 WHEN - - 31 + + 59 * + - 47 * - 21 * + 92 THEN - - MIN( + 95 ) WHEN 65 + + 77 THEN NULL ELSE - + 64 END + - 24
----
40

skipif mysql # not compatible
query I rowsort label-5747
SELECT - CASE - 28 WHEN - - 31 + + 59 * + - 47 * - 21 * + 92 THEN - - MIN ( + 95 ) WHEN 65 + + 77 THEN NULL ELSE - + 64 END + - 24
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT - 56 * + CAST( + 27 AS SIGNED )
----
-1512

skipif mysql # not compatible
query I rowsort label-5748
SELECT - 56 * + CAST ( + 27 AS INTEGER )
----
-1512

query I rowsort
SELECT ALL - + 31 * - 39 * + 32
----
38688

query I rowsort
SELECT 32 + + 60 + - 87
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT - NULLIF ( + + 80, - MAX( - 41 ) + - 32 ) + + 57 + - 76 * 68 AS col2
----
-5191

skipif mysql # not compatible
query I rowsort label-5751
SELECT - NULLIF ( + + 80, - MAX ( - 41 ) + - 32 ) + + 57 + - 76 * 68 AS col2
----
-5191

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL + 95 * + NULLIF ( - 45, NULLIF ( - 90, COUNT( * ) ) ) * - 65 col1
----
277875

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL + 95 * + NULLIF ( - 45, NULLIF ( - 90, COUNT ( * ) ) ) * - 65 col1
----
277875

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

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

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

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

query II rowsort
SELECT DISTINCT - - 89 + + ( - 71 ) * - 75 AS col1, + ( + 90 ) + + ( - 79 ) AS col2
----
5414
11

query I rowsort
SELECT + 89 * + 55
----
4895

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT ALL - 39 * - + 23 * + 63 * 23 + + COUNT( * ) col1
----
1299754

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL - 39 * - + 23 * + 63 * 23 + + COUNT ( * ) col1
----
1299754

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + + SUM( - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-5759
SELECT + + SUM ( - 67 )
----
-67

query I rowsort
SELECT - - 32 + - + 23 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL + SUM( + - 33 ) * 99 AS col0
----
-3267

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL + SUM ( + - 33 ) * 99 AS col0
----
-3267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5762
SELECT ALL - + 64 * + COALESCE ( - COUNT( * ), + 87 DIV + 11 ) + 90 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - + 64 * + COALESCE ( - COUNT ( * ), + 87 / + 11 ) + 90 AS col1
----
154

query I rowsort
SELECT COALESCE ( - - 9, - - 44 + - 47 ) AS col0
----
9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5765
SELECT ALL + 98 * + + 58 + - 8 + + COUNT( * ) * 11 AS col2, 7 AS col2
----
5687
7

skipif mysql # not compatible
query II rowsort label-5765
SELECT ALL + 98 * + + 58 + - 8 + + COUNT ( * ) * 11 AS col2, 7 AS col2
----
5687
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT - ( + + MIN( DISTINCT + - 95 ) ) * - 21 + 48 + + - 26 AS col0
----
-1973

skipif mysql # not compatible
query I rowsort label-5766
SELECT - ( + + MIN ( DISTINCT + - 95 ) ) * - 21 + 48 + + - 26 AS col0
----
-1973

query I rowsort
SELECT - 57 + + ( + 52 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT SUM( ALL - 94 ) * + 6 - 25 * COUNT( * )
----
-589

skipif mysql # not compatible
query I rowsort label-5768
SELECT SUM ( ALL - 94 ) * + 6 - 25 * COUNT ( * )
----
-589

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5769
SELECT ALL CAST( NULL AS DECIMAL ) / + - COUNT( * ) / + + 92 * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL CAST ( NULL AS REAL ) / + - COUNT ( * ) / + + 92 * - 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5770
SELECT - 33 + + 0 + + - 8 * 57 + - 15 col2, 42 DIV - - COUNT( * ) - - 92 + - ( COUNT( * ) )
----
-504
133

skipif mysql # not compatible
query II rowsort label-5770
SELECT - 33 + + 0 + + - 8 * 57 + - 15 col2, 42 / - - COUNT ( * ) - - 92 + - ( COUNT ( * ) )
----
-504
133

onlyif mysql # aggregate syntax: 
query II rowsort label-5771
SELECT 93 * + SUM( DISTINCT - - 77 ) + - SUM( + 99 ) AS col0, + COALESCE ( + 78, 80, + 7 ) AS col2
----
7062
78

skipif mysql # not compatible
query II rowsort label-5771
SELECT 93 * + SUM ( DISTINCT - - 77 ) + - SUM ( + 99 ) AS col0, + COALESCE ( + 78, 80, + 7 ) AS col2
----
7062
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT ALL 0 * - 68 - - 89 - + 5 + + 72 DIV + 87 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL 0 * - 68 - - 89 - + 5 + + 72 / + 87 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT + 26 * - CASE ( 65 ) WHEN - - COALESCE ( - 23, + MAX( 86 ) ) / 89 THEN 27 / COALESCE ( + 69, + - 23 ) - 56 END / + 44 * + 29 + + - AVG ( DISTINCT + - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT + 26 * - CASE ( 65 ) WHEN - - COALESCE ( - 23, + MAX ( 86 ) ) / 89 THEN 27 / COALESCE ( + 69, + - 23 ) - 56 END / + 44 * + 29 + + - AVG ( DISTINCT + - 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT DISTINCT + MAX( - 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT + MAX ( - 97 ) AS col0
----
-97

query II rowsort
SELECT ALL 48 AS col0, + 27 AS col1
----
48
27

query I rowsort
SELECT - 90 * + - 86 AS col0
----
7740

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT DISTINCT 2 * COUNT( * ) * + 2 * + 50
----
200

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT 2 * COUNT ( * ) * + 2 * + 50
----
200

onlyif mysql # DIV for integer division: 
query II rowsort label-5778
SELECT DISTINCT 20 * 36 DIV - - 85 AS col1, - 99
----
8
-99

skipif mysql # not compatible
query II rowsort label-5778
SELECT DISTINCT 20 * 36 / - - 85 AS col1, - 99
----
8
-99

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5781
SELECT + - NULLIF ( 8, 46 / + 43 ) * ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT + - NULLIF ( 8, 46 / + 43 ) * ( CAST ( NULL AS INTEGER ) )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5783
SELECT DISTINCT - CAST( - - 6 AS SIGNED ) + - 99 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT - CAST ( - - 6 AS INTEGER ) + - 99 AS col0
----
-105

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5785
SELECT DISTINCT + 42 + - 66 DIV 47, COUNT( * ) col2
----
41
1

skipif mysql # not compatible
query II rowsort label-5785
SELECT DISTINCT + 42 + - 66 / 47, COUNT ( * ) col2
----
41
1

query I rowsort
SELECT ALL 17 + 66
----
83

query I rowsort
SELECT DISTINCT 22 * + 78 col2
----
1716

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT + - 87 + - MAX( ALL + 27 ) AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-5789
SELECT + - 87 + - MAX ( ALL + 27 ) AS col0
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5790
SELECT DISTINCT - - 87 DIV 2 + 89 + COALESCE ( + CAST( - + MIN( 11 ) AS SIGNED ), 95 ) + + 28 * COUNT( * ) AS col2, 78 * 29 AS col0
----
149
2262

skipif mysql # not compatible
query II rowsort label-5790
SELECT DISTINCT - - 87 / 2 + 89 + COALESCE ( + CAST ( - + MIN ( 11 ) AS INTEGER ), 95 ) + + 28 * COUNT ( * ) AS col2, 78 * 29 AS col0
----
149
2262

query II rowsort
SELECT DISTINCT - 90 * + + 56 + - + 50, + 82 * ( - 57 ) AS col1
----
-5090
-4674

onlyif mysql # DIV for integer division: 
query I rowsort label-5792
SELECT DISTINCT + 62 DIV + 44 + + + 69 + + 73 + - 70 - - 96
----
169

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT + 62 / + 44 + + + 69 + + 73 + - 70 - - 96
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT - 69 + 0 - - - 12 DIV 94 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5793
SELECT - 69 + 0 - - - 12 / 94 AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5794
SELECT ALL - 71 DIV - + COUNT( * ) - + 1 * - 92 + + 87
----
250

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL - 71 / - + COUNT ( * ) - + 1 * - 92 + + 87
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT + 39 * + + SUM( + 77 )
----
3003

skipif mysql # not compatible
query I rowsort label-5795
SELECT + 39 * + + SUM ( + 77 )
----
3003

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT + 73, + COUNT( + 60 ) AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-5796
SELECT + 73, + COUNT ( + 60 ) AS col0
----
73
1

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

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

query I rowsort
SELECT 89 * 19 + - 98 AS col2
----
1593

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT ALL + COUNT( + 14 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL + COUNT ( + 14 ) col0
----
1

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

skipif mysql # not compatible
query I rowsort label-5800
SELECT ( + SUM ( + - CAST ( + 38 AS INTEGER ) ) )
----
-38

query I rowsort
SELECT ALL + 89 * 90
----
8010

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

skipif mysql # not compatible
query I rowsort label-5802
SELECT - COUNT ( * ) / - 57
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5803
SELECT DISTINCT + 16 DIV + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT + 16 / + 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT DISTINCT + MAX( 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT + MAX ( 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL + 89 * + COUNT( * ) * + 99 * - + 95
----
-837045

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL + 89 * + COUNT ( * ) * + 99 * - + 95
----
-837045

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT + MIN( ALL + 73 ) * - + 74 * - + 36
----
194472

skipif mysql # not compatible
query I rowsort label-5806
SELECT + MIN ( ALL + 73 ) * - + 74 * - + 36
----
194472

onlyif mysql # aggregate syntax: 
query II rowsort label-5807
SELECT COALESCE ( + 23, - - 26 * + COUNT( * ) ) AS col0, + 63 col0
----
23
63

skipif mysql # not compatible
query II rowsort label-5807
SELECT COALESCE ( + 23, - - 26 * + COUNT ( * ) ) AS col0, + 63 col0
----
23
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT ALL ( - COALESCE ( + SUM( ( - - 38 ) ), 27 * SUM( 67 ) ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL ( - COALESCE ( + SUM ( ( - - 38 ) ), 27 * SUM ( 67 ) ) ) AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5809
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 21 * COUNT( * ) * + 97
----
NULL
2037

skipif mysql # not compatible
query II rowsort label-5809
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 21 * COUNT ( * ) * + 97
----
NULL
2037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5810
SELECT ALL 21 * CASE + - COALESCE ( MIN( DISTINCT - ( 94 ) ), + 54 ) WHEN COUNT( * ) THEN - 77 + CAST( - NULLIF ( + SUM( - + 93 ), 15 + - 63 ) AS SIGNED ) END * + + 78 - MIN( NULLIF ( - 47, + 70 * + 4 ) ) + + 21 * + + 82 * + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL 21 * CASE + - COALESCE ( MIN ( DISTINCT - ( 94 ) ), + 54 ) WHEN COUNT ( * ) THEN - 77 + CAST ( - NULLIF ( + SUM ( - + 93 ), 15 + - 63 ) AS INTEGER ) END * + + 78 - MIN ( NULLIF ( - 47, + 70 * + 4 ) ) + + 21 * + + 82 * + + 46
----
NULL

query I rowsort
SELECT 92 - + - ( - - 10 )
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5812
SELECT + 18 - 35 - 12 DIV - 71 + 84 + - + ( - 30 ) * + + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5812
SELECT + 18 - 35 - 12 / - 71 + 84 + - + ( - 30 ) * + + COUNT ( * ) AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT ALL - CAST( + + 48 AS SIGNED ) + - + 99 * + 28
----
-2820

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - CAST ( + + 48 AS INTEGER ) + - + 99 * + 28
----
-2820

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5816
SELECT ALL + 13 + - 23 + - 54 DIV - 72 * - MAX( + 56 ) AS col0, 60 AS col1
----
-10
60

skipif mysql # not compatible
query II rowsort label-5816
SELECT ALL + 13 + - 23 + - 54 / - 72 * - MAX ( + 56 ) AS col0, 60 AS col1
----
-10
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + 84 + + 38 + 96 * - ( - 14 ) * COUNT( * ) * + 73 AS col1
----
98234

skipif mysql # not compatible
query I rowsort label-5817
SELECT + 84 + + 38 + 96 * - ( - 14 ) * COUNT ( * ) * + 73 AS col1
----
98234

query II rowsort
SELECT 0, - 2 + + 53 + - 32 + + 53 AS col0
----
0
72

query I rowsort
SELECT ALL + 63 + - 18 + 71 AS col1
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT CAST( + 25 AS SIGNED ) + - + 96 * + 95
----
-9095

skipif mysql # not compatible
query I rowsort label-5820
SELECT CAST ( + 25 AS INTEGER ) + - + 96 * + 95
----
-9095

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT ALL + - COUNT( * ) + - 87 + + NULLIF ( COALESCE ( + 19, + + ( - MAX( - 89 ) ) + + + 4 + 44 ), - 2 ) + 89 * + 72 * - 87 AS col0
----
-557565

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL + - COUNT ( * ) + - 87 + + NULLIF ( COALESCE ( + 19, + + ( - MAX ( - 89 ) ) + + + 4 + 44 ), - 2 ) + 89 * + 72 * - 87 AS col0
----
-557565

onlyif mysql # aggregate syntax: 
query II rowsort label-5822
SELECT DISTINCT - 23 AS col0, SUM( ALL - 77 )
----
-23
-77

skipif mysql # not compatible
query II rowsort label-5822
SELECT DISTINCT - 23 AS col0, SUM ( ALL - 77 )
----
-23
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT 10 + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-5823
SELECT 10 + COUNT ( * )
----
11

query I rowsort
SELECT ALL CASE - 1 WHEN - 41 THEN 57 + 7 END + - + 34 + 19 + - 4 + - 56
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 0 AS col1, 93 + 25
----
0
118

query I rowsort
SELECT 15 * 8
----
120

query I rowsort
SELECT 51 * - 3 AS col1
----
-153

query I rowsort
SELECT ALL ( - 93 ) * - 10
----
930

query I rowsort
SELECT DISTINCT 86 * + 70 * + + 26 AS col0
----
156520

onlyif mysql # aggregate syntax: 
query II rowsort label-5831
SELECT DISTINCT + 20 * - COUNT( * ), + 77 * + 51 + + COUNT( ALL - 40 ) + + 3 AS col1
----
-20
3931

skipif mysql # not compatible
query II rowsort label-5831
SELECT DISTINCT + 20 * - COUNT ( * ), + 77 * + 51 + + COUNT ( ALL - 40 ) + + 3 AS col1
----
-20
3931

query I rowsort
SELECT 41 * 33 * + 27 AS col0
----
36531

query I rowsort
SELECT ALL - COALESCE ( - 69, + + 65 - + 2 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT CAST( + 37 AS SIGNED ) * + + CASE + + 63 WHEN - COUNT( * ) / + + 82 + 96 + - 10 * - + 56 THEN 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT CAST ( + 37 AS INTEGER ) * + + CASE + + 63 WHEN - COUNT ( * ) / + + 82 + 96 + - 10 * - + 56 THEN 2 ELSE NULL END
----
NULL

query I rowsort
SELECT 56 - + 67 + - 49 AS col0
----
-60

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5837
SELECT 66 + MAX( + - 41 ) - + CAST( NULL AS SIGNED ) / + 79 / + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT 66 + MAX ( + - 41 ) - + CAST ( NULL AS INTEGER ) / + 79 / + + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5838
SELECT ALL - NULLIF ( SUM( - - 84 ), - ( 8 ) / COALESCE ( - - 32, + 12 ) + - CAST( + 26 AS SIGNED ) * - 71 )
----
-84

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL - NULLIF ( SUM ( - - 84 ), - ( 8 ) / COALESCE ( - - 32, + 12 ) + - CAST ( + 26 AS INTEGER ) * - 71 )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5839
SELECT - COUNT( * ) DIV - NULLIF ( 32, + 0 ) + - 96 DIV + + COALESCE ( + 8, + CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE 15 END, + + ( - + 44 ) + - 37 ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-5839
SELECT - COUNT ( * ) / - NULLIF ( 32, + 0 ) + - 96 / + + COALESCE ( + 8, + CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE 15 END, + + ( - + 44 ) + - 37 ) col2
----
-12

query I rowsort
SELECT DISTINCT - COALESCE ( 28, - 81 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5841
SELECT ALL - 31 + 85 AS col0, + SUM( - 33 ) AS col2
----
54
-33

skipif mysql # not compatible
query II rowsort label-5841
SELECT ALL - 31 + 85 AS col0, + SUM ( - 33 ) AS col2
----
54
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT CASE - 13 WHEN - 7 THEN - 71 END * 4 - + + COUNT( * ) + + 56 / + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5842
SELECT CASE - 13 WHEN - 7 THEN - 71 END * 4 - + + COUNT ( * ) + + 56 / + 44
----
NULL

query I rowsort
SELECT ALL - 67 + + 91 + + ( + 13 ) * - - 4
----
76

query I rowsort
SELECT 31 * 38 * + - 6 + - 90
----
-7158

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT DISTINCT 43 + - 97 * - 70 - + 4 + 26 - + 99 * COUNT( * )
----
6756

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT 43 + - 97 * - 70 - + 4 + 26 - + 99 * COUNT ( * )
----
6756

query I rowsort
SELECT ALL + 95 + - ( + - 51 ) AS col2
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5847
SELECT ALL + + 62 + + COALESCE ( ( 66 ), + + 41 * + ( + 23 ) - CAST( NULL AS SIGNED ), - + 56 ) + - 24 + + 26
----
130

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + + 62 + + COALESCE ( ( 66 ), + + 41 * + ( + 23 ) - CAST ( NULL AS INTEGER ), - + 56 ) + - 24 + + 26
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-5848
SELECT ALL + + 45 + + NULLIF ( - - 83, - 54 ) * - 30, - COUNT( * ) * - CASE + - 70 WHEN + + 23 * 81 + 27 + - 28 * - - 79 THEN NULL WHEN - 86 * 27 THEN NULL ELSE + COUNT( * ) + + 84 * + - 89 END * ( - 69 ) AS col0
----
-2445
515775

skipif mysql # not compatible
query II rowsort label-5848
SELECT ALL + + 45 + + NULLIF ( - - 83, - 54 ) * - 30, - COUNT ( * ) * - CASE + - 70 WHEN + + 23 * 81 + 27 + - 28 * - - 79 THEN NULL WHEN - 86 * 27 THEN NULL ELSE + COUNT ( * ) + + 84 * + - 89 END * ( - 69 ) AS col0
----
-2445
515775

query II rowsort
SELECT + 16 + - 19 AS col2, + 34 AS col2
----
-3
34

query I rowsort
SELECT - 55 * + 89 + - 18 * - 61
----
-3797

query I rowsort
SELECT 17 + - - 89 * - ( 19 ) AS col2
----
-1674

onlyif mysql # DIV for integer division: 
query II rowsort label-5852
SELECT - 82 DIV + + 86 + - 31 col1, + ( + 15 )
----
-31
15

skipif mysql # not compatible
query II rowsort label-5852
SELECT - 82 / + + 86 + - 31 col1, + ( + 15 )
----
-31
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5853
SELECT ALL - - 57 DIV + - 30 + - COUNT( * ) + + 56
----
54

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL - - 57 / + - 30 + - COUNT ( * ) + + 56
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT + 32 * MIN( ALL 70 ) + 0 AS col2
----
2240

skipif mysql # not compatible
query I rowsort label-5855
SELECT + 32 * MIN ( ALL 70 ) + 0 AS col2
----
2240

onlyif mysql # aggregate syntax: 
query II rowsort label-5856
SELECT - MAX( DISTINCT - + 10 ) * + 82 + - 95 * 46, 84 - - 85 AS col0
----
-3550
169

skipif mysql # not compatible
query II rowsort label-5856
SELECT - MAX ( DISTINCT - + 10 ) * + 82 + - 95 * 46, 84 - - 85 AS col0
----
-3550
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT - COUNT( ALL 46 ) - + 38 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-5857
SELECT - COUNT ( ALL 46 ) - + 38 AS col0
----
-39

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

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

query II rowsort
SELECT DISTINCT 65 AS col0, 38 AS col1
----
65
38

onlyif mysql # aggregate syntax: 
query II rowsort label-5860
SELECT DISTINCT 17, 90 * 23 * 24 * + 42 + + 47 * - + SUM( 54 ) AS col0
----
17
2084022

skipif mysql # not compatible
query II rowsort label-5860
SELECT DISTINCT 17, 90 * 23 * 24 * + 42 + + 47 * - + SUM ( 54 ) AS col0
----
17
2084022

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT - COUNT( * ) * + 42 * - + 92
----
3864

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT - COUNT ( * ) * + 42 * - + 92
----
3864

query I rowsort
SELECT ALL - ( + COALESCE ( + + 33, + - 13 * + 61 ) ) col0
----
-33

query II rowsort
SELECT ALL - 15 AS col2, - 30 * 36 * + + 9
----
-15
-9720

query II rowsort
SELECT 50 * - ( - 4 ) AS col1, + 17 AS col0
----
200
17

query I rowsort
SELECT 25 * + 12 + + ( - 68 ) AS col0
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT SUM( DISTINCT 55 )
----
55

skipif mysql # not compatible
query I rowsort label-5866
SELECT SUM ( DISTINCT 55 )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5867
SELECT 40 DIV - - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5867
SELECT 40 / - - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT MIN( ALL + - 70 ) * 82
----
-5740

skipif mysql # not compatible
query I rowsort label-5868
SELECT MIN ( ALL + - 70 ) * 82
----
-5740

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5870
SELECT MAX( DISTINCT + 69 ) DIV - 90, CAST( NULL AS SIGNED ) + + + 49 col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5870
SELECT MAX ( DISTINCT + 69 ) / - 90, CAST ( NULL AS INTEGER ) + + + 49 col2
----
0
NULL

query I rowsort
SELECT ALL 75 * + 42 + + 45 AS col2
----
3195

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

skipif mysql # not compatible
query II rowsort label-5872
SELECT ALL 90 * - ( COUNT ( * ) ), 72 AS col0
----
-90
72

query I rowsort
SELECT + 96 * 59 col0
----
5664

query I rowsort
SELECT ALL 69 * + 94 + 41 * + 26 AS col2
----
7552

query I rowsort
SELECT + 60 * - 14
----
-840

query II rowsort
SELECT - 87 * - 72 * - 2 col2, 38
----
-12528
38

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

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

query I rowsort
SELECT + 67 + 30 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT ALL COALESCE ( - + MAX( - 87 ), COUNT( * ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL COALESCE ( - + MAX ( - 87 ), COUNT ( * ) ) AS col2
----
87

query I rowsort
SELECT DISTINCT - 47 * + ( - - 31 ) AS col0
----
-1457

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

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

query I rowsort
SELECT DISTINCT - + 5 * NULLIF ( - 76, + CASE + + 80 WHEN - 57 THEN + 99 * - + ( - 71 ) WHEN 68 THEN NULL WHEN + 91 THEN NULL END ) + + 1 + - - ( + 82 ) * + 85 + + - 76 AS col2
----
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT DISTINCT - COUNT( * ) - - 25
----
24

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT - COUNT ( * ) - - 25
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5884
SELECT - COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) - - 22 + + 88 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-5884
SELECT - COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) - - 22 + + 88 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT + 56 * - 63 * 73 * COUNT( * ) AS col2
----
-257544

skipif mysql # not compatible
query I rowsort label-5885
SELECT + 56 * - 63 * 73 * COUNT ( * ) AS col2
----
-257544

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

skipif mysql # not compatible
query I rowsort label-5886
SELECT - 25 * - ( COUNT ( * ) )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5887
SELECT - 69 + + - 96 * + 75 + + NULLIF ( - 67, COUNT( * ) * - + 59 + + 75 ) AS col2, COALESCE ( + - 23, - 90 + + MIN( - + 82 ) + 20 * MIN( 23 ) + - + 13 )
----
-7336
-23

skipif mysql # not compatible
query II rowsort label-5887
SELECT - 69 + + - 96 * + 75 + + NULLIF ( - 67, COUNT ( * ) * - + 59 + + 75 ) AS col2, COALESCE ( + - 23, - 90 + + MIN ( - + 82 ) + 20 * MIN ( 23 ) + - + 13 )
----
-7336
-23

query I rowsort
SELECT - 10 * + 90
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL 98 * - 32 * COUNT( * )
----
-3136

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL 98 * - 32 * COUNT ( * )
----
-3136

query I rowsort
SELECT ALL 57 * + 82 * 43 * + - 91
----
-18289362

query I rowsort
SELECT - 63 + + 7 + ( + - 11 ) * - + 16 AS col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5892
SELECT ALL COALESCE ( - COUNT( * ), - ( + 24 ) DIV + 74 + 80 + COUNT( * ) - - 72 DIV + 48 * ( - + 74 ), CASE 9 WHEN 73 THEN COUNT( * ) END )
----
-1

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL COALESCE ( - COUNT ( * ), - ( + 24 ) / + 74 + 80 + COUNT ( * ) - - 72 / + 48 * ( - + 74 ), CASE 9 WHEN 73 THEN COUNT ( * ) END )
----
-1

query I rowsort
SELECT - 74 * - 84 * 88 AS col2
----
547008

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

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

query II rowsort
SELECT DISTINCT - 85 * + + 87, 61 * 84 * 75 AS col2
----
-7395
384300

onlyif mysql # DIV for integer division: 
query II rowsort label-5896
SELECT ALL 53 DIV - + 4 + + + 47 + - 44 * + 39, + 8 + - 42 AS col0
----
-1682
-34

skipif mysql # not compatible
query II rowsort label-5896
SELECT ALL 53 / - + 4 + + + 47 + - 44 * + 39, + 8 + - 42 AS col0
----
-1682
-34

query I rowsort
SELECT ( - 58 ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5898
SELECT 31 * - 39 * + COUNT( 54 ) + + 18, + COUNT( * ) * - - CAST( + 76 AS SIGNED ) * 2 + + CASE 7 WHEN + SUM( ALL - 15 ) * + - COUNT( * ) + - 23 * 57 THEN + - 79 WHEN + 47 THEN NULL ELSE NULL END + 35 + - - 64 * - 91 AS col0
----
-1191
NULL

skipif mysql # not compatible
query II rowsort label-5898
SELECT 31 * - 39 * + COUNT ( 54 ) + + 18, + COUNT ( * ) * - - CAST ( + 76 AS INTEGER ) * 2 + + CASE 7 WHEN + SUM ( ALL - 15 ) * + - COUNT ( * ) + - 23 * 57 THEN + - 79 WHEN + 47 THEN NULL ELSE NULL END + 35 + - - 64 * - 91 AS col0
----
-1191
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT DISTINCT 56 * + + CAST( + 26 AS SIGNED ) * 63 - - 51 AS col1
----
91779

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT 56 * + + CAST ( + 26 AS INTEGER ) * 63 - - 51 AS col1
----
91779

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL COUNT( * ) * + NULLIF ( + + 95, + - 64 ) + 25 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL COUNT ( * ) * + NULLIF ( + + 95, + - 64 ) + 25 AS col0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT DISTINCT NULLIF ( 29, - - 6 * + 84 ) * + 55 + + 20 + - 58 DIV - - 25 AS col2
----
1613

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT NULLIF ( 29, - - 6 * + 84 ) * + 55 + + 20 + - 58 / - - 25 AS col2
----
1613

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5903
SELECT + 90 + + 8 + 46 + 73 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 6 / 51 / - 19 + + 73 - - 39 + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT + 90 + + 8 + 46 + 73 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 6 / 51 / - 19 + + 73 - - 39 + + 25
----
NULL

query I rowsort
SELECT ( - ( - 89 ) ) AS col1
----
89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5906
SELECT ALL 78 * - ( + CAST( - + 74 AS SIGNED ) ) * - 42 + + - 59 + - 39
----
-242522

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL 78 * - ( + CAST ( - + 74 AS INTEGER ) ) * - 42 + + - 59 + - 39
----
-242522

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT + - 95 + + - 83 * - - COUNT( * )
----
-178

skipif mysql # not compatible
query I rowsort label-5907
SELECT + - 95 + + - 83 * - - COUNT ( * )
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT - - 11 * + 5 - - COUNT( * ) col0
----
56

skipif mysql # not compatible
query I rowsort label-5908
SELECT - - 11 * + 5 - - COUNT ( * ) col0
----
56

query I rowsort
SELECT ALL - 9 * + 99
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL - - COUNT( * ) * + 21 * - + ( 50 ) - - ( - + COUNT( * ) )
----
-1051

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL - - COUNT ( * ) * + 21 * - + ( 50 ) - - ( - + COUNT ( * ) )
----
-1051

query I rowsort
SELECT ALL + ( - 90 ) * + 26
----
-2340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT + CAST( - 21 AS SIGNED ) + - - 71
----
50

skipif mysql # not compatible
query I rowsort label-5912
SELECT + CAST ( - 21 AS INTEGER ) + - - 71
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT ALL SUM( ALL 17 ) * 90
----
1530

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL SUM ( ALL 17 ) * 90
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT + ( + CASE 9 WHEN + 39 * + 8 THEN + 96 * + COUNT( * ) WHEN NULLIF ( - + 96, - 90 / + 80 ) / + NULLIF ( - ( 92 ), - - 71 ) * - + COUNT( * ) + + - 34 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT + ( + CASE 9 WHEN + 39 * + 8 THEN + 96 * + COUNT ( * ) WHEN NULLIF ( - + 96, - 90 / + 80 ) / + NULLIF ( - ( 92 ), - - 71 ) * - + COUNT ( * ) + + - 34 THEN NULL END )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5916
SELECT DISTINCT CASE - 3 WHEN + 46 THEN - ( 3 ) WHEN + ( + 73 ) + 66 THEN + + MIN( + - 79 ) * 16 WHEN - 65 THEN 67 * - 35 / - 52 + + - 51 + - 0 + CAST( NULL AS SIGNED ) / + - 85 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT CASE - 3 WHEN + 46 THEN - ( 3 ) WHEN + ( + 73 ) + 66 THEN + + MIN ( + - 79 ) * 16 WHEN - 65 THEN 67 * - 35 / - 52 + + - 51 + - 0 + CAST ( NULL AS INTEGER ) / + - 85 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL - 98 + 35 AS col2
----
-63

query I rowsort
SELECT ALL ( + 95 ) * - 48 * + ( + 95 ) * - 92 + + 67
----
39854467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5919
SELECT + 74 DIV 48 * + + SUM( + - 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5919
SELECT + 74 / 48 * + + SUM ( + - 61 ) AS col1
----
-61

query I rowsort
SELECT ALL - 98 + COALESCE ( + - 84, 30, - 31 ) col1
----
-182

query I rowsort
SELECT ALL + 44 + CASE + - 19 WHEN - 55 THEN NULL ELSE ( + + CASE - 58 WHEN + 69 THEN NULL WHEN + 42 THEN NULL ELSE - + 96 END ) * + ( + 40 ) END
----
-3796

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

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

query I rowsort
SELECT - 3 - 3
----
-6

query II rowsort
SELECT - 88 col0, + 84 AS col1
----
-88
84

query I rowsort
SELECT ALL + 99 + + - 81
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT - NULLIF ( - COUNT( ALL 23 ), - 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT - NULLIF ( - COUNT ( ALL 23 ), - 63 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT MIN( - 26 ) * + 20 * + - 67 AS col1
----
34840

skipif mysql # not compatible
query I rowsort label-5927
SELECT MIN ( - 26 ) * + 20 * + - 67 AS col1
----
34840

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

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

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

query II rowsort
SELECT 50 AS col2, 58 col0
----
50
58

query I rowsort
SELECT ALL + 36 * + + 59
----
2124

query I rowsort
SELECT 81 * - 53 col2
----
-4293

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5933
SELECT + 11 AS col2, + 77 * - + CAST( NULL AS SIGNED ) * + 82 * + 59
----
11
NULL

skipif mysql # not compatible
query II rowsort label-5933
SELECT + 11 AS col2, + 77 * - + CAST ( NULL AS INTEGER ) * + 82 * + 59
----
11
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5934
SELECT - COUNT( * ) * - 62 + - 12, + 51 AS col2
----
50
51

skipif mysql # not compatible
query II rowsort label-5934
SELECT - COUNT ( * ) * - 62 + - 12, + 51 AS col2
----
50
51

query I rowsort
SELECT ALL + ( + 62 ) * - 9 + - 87 AS col2
----
-645

query I rowsort
SELECT ALL + 69 * - 46 * - ( - 97 )
----
-307878

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

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL - COALESCE ( + 26, - + CAST ( NULL AS INTEGER ) )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5938
SELECT DISTINCT + - 96 * 88 + - 67 DIV + ( 45 ) + - COUNT( * ) AS col1
----
-8450

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT + - 96 * 88 + - 67 / + ( 45 ) + - COUNT ( * ) AS col1
----
-8450

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT DISTINCT - - COUNT( 83 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT - - COUNT ( 83 ) col2
----
1

query I rowsort
SELECT 10 * - 93 + + 45
----
-885

query I rowsort
SELECT 53 * + + 72
----
3816

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT ALL + ( - 76 ) DIV + + 41
----
-1

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL + ( - 76 ) / + + 41
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5944
SELECT 84 DIV ( - 26 ), 96 AS col1
----
-3
96

skipif mysql # not compatible
query II rowsort label-5944
SELECT 84 / ( - 26 ), 96 AS col1
----
-3
96

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

skipif mysql # not compatible
query I rowsort label-5945
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

query II rowsort
SELECT ALL 34 col1, 23
----
34
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5947
SELECT ALL + + MAX( ALL + - 74 ) DIV - 81 col1, 71 col0
----
0
71

skipif mysql # not compatible
query II rowsort label-5947
SELECT ALL + + MAX ( ALL + - 74 ) / - 81 col1, 71 col0
----
0
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5948
SELECT DISTINCT - 70 + + 12 + + 0 * + 76 * 20 col1, + COUNT( * ) * + 61
----
-58
61

skipif mysql # not compatible
query II rowsort label-5948
SELECT DISTINCT - 70 + + 12 + + 0 * + 76 * 20 col1, + COUNT ( * ) * + 61
----
-58
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL 18 + + - COUNT( * ) + - 68
----
-51

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL 18 + + - COUNT ( * ) + - 68
----
-51

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

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

query I rowsort
SELECT ALL 31 + - 21 + - 88 * + 46 - - - 11 - 68 AS col0
----
-4117

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT + NULLIF ( - + MIN( 69 ), - 90 * - 12 + 89 + - 76 ) - + COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5952
SELECT + NULLIF ( - + MIN ( 69 ), - 90 * - 12 + 89 + - 76 ) - + COUNT ( * ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT ( + 39 ) + - SUM( DISTINCT 37 ) + + + SUM( ALL - + 54 )
----
-52

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT ( + 39 ) + - SUM ( DISTINCT 37 ) + + + SUM ( ALL - + 54 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT COUNT( * ) + MAX( - 70 )
----
-69

skipif mysql # not compatible
query I rowsort label-5954
SELECT COUNT ( * ) + MAX ( - 70 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5955
SELECT ( + 88 ) - ( + + 48 ) + + + COUNT( * ) DIV + 99 - + 97 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5955
SELECT ( + 88 ) - ( + + 48 ) + + + COUNT ( * ) / + 99 - + 97 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5956
SELECT 60 AS col1, 13 + + 23 + - - COUNT( ALL + 34 ) * ( + 49 ) + + + MAX( + + COALESCE ( - 60, + + 36 ) )
----
60
25

skipif mysql # not compatible
query II rowsort label-5956
SELECT 60 AS col1, 13 + + 23 + - - COUNT ( ALL + 34 ) * ( + 49 ) + + + MAX ( + + COALESCE ( - 60, + + 36 ) )
----
60
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT - 66 AS col2, - COALESCE ( 79, + + 18 * - + MIN( DISTINCT + - 36 ), + - 4 * + 24 ) AS col2
----
-66
-79

skipif mysql # not compatible
query II rowsort label-5957
SELECT - 66 AS col2, - COALESCE ( 79, + + 18 * - + MIN ( DISTINCT + - 36 ), + - 4 * + 24 ) AS col2
----
-66
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5958
SELECT ALL 21 + CAST( NULL AS DECIMAL ) - - 26 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL 21 + CAST ( NULL AS REAL ) - - 26 * COUNT ( * )
----
NULL

query I rowsort
SELECT 50 + - + 95 col0
----
-45

query II rowsort
SELECT DISTINCT 28, 49 col1
----
28
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5961
SELECT ALL - 67 + + 52 * - 77 DIV + COUNT( * )
----
-4071

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - 67 + + 52 * - 77 / + COUNT ( * )
----
-4071

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT ALL + COUNT( * ) + - 29
----
-28

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL + COUNT ( * ) + - 29
----
-28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5963
SELECT 91 DIV + CAST( - 16 AS SIGNED ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-5963
SELECT 91 / + CAST ( - 16 AS INTEGER ) col1
----
-5

query I rowsort
SELECT 94 + + - 7 AS col0
----
87

query I rowsort
SELECT ALL 73 - - + 9
----
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT + 25 * + COUNT( * ) + 39 col2
----
64

skipif mysql # not compatible
query I rowsort label-5967
SELECT + 25 * + COUNT ( * ) + 39 col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5968
SELECT 94 DIV + 11 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5968
SELECT 94 / + 11 AS col0
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-5969
SELECT ALL ( - 28 ) - + + 66 DIV 16 DIV 44 * - 19 AS col2, 3 AS col2
----
-28
3

skipif mysql # not compatible
query II rowsort label-5969
SELECT ALL ( - 28 ) - + + 66 / 16 / 44 * - 19 AS col2, 3 AS col2
----
-28
3

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

skipif mysql # not compatible
query I rowsort label-5970
SELECT ( COALESCE ( + 18, CAST ( NULL AS INTEGER ) ) ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5971
SELECT - - 74 DIV COUNT( * ) - 75
----
-1

skipif mysql # not compatible
query I rowsort label-5971
SELECT - - 74 / COUNT ( * ) - 75
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5972
SELECT CAST( NULL AS SIGNED ) + 15, - 52 AS col1
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-5972
SELECT CAST ( NULL AS INTEGER ) + 15, - 52 AS col1
----
NULL
-52

query I rowsort
SELECT - 60 * + 66
----
-3960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5974
SELECT 9 + + MIN( + - CAST( - 26 AS SIGNED ) )
----
35

skipif mysql # not compatible
query I rowsort label-5974
SELECT 9 + + MIN ( + - CAST ( - 26 AS INTEGER ) )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT CASE - 88 WHEN 80 THEN CAST( NULL AS SIGNED ) WHEN 70 THEN 34 ELSE NULL END * - + 2 + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT CASE - 88 WHEN 80 THEN CAST ( NULL AS INTEGER ) WHEN 70 THEN 34 ELSE NULL END * - + 2 + 20 AS col2
----
NULL

query I rowsort
SELECT 55 + 22 AS col1
----
77

query I rowsort
SELECT 27 * - 33 + - 36 AS col0
----
-927

query I rowsort
SELECT ALL - 21 + - 23 + + 66 + + - ( - ( + 9 ) ) * - 43 AS col2
----
-365

query I rowsort
SELECT DISTINCT + 63 * - + 91 + - 54
----
-5787

onlyif mysql # aggregate syntax: 
query II rowsort label-5980
SELECT 48 * + - 87, - MIN( DISTINCT + + 75 ) AS col1
----
-4176
-75

skipif mysql # not compatible
query II rowsort label-5980
SELECT 48 * + - 87, - MIN ( DISTINCT + + 75 ) AS col1
----
-4176
-75

query I rowsort
SELECT ALL + 41 + + 79 + 26 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT + + 44 * - 24 + - 28 + + 3 * - 70 - - COALESCE ( + CASE + 75 WHEN + 70 + - 48 THEN NULL WHEN - COUNT( ALL + - 10 ) THEN NULL ELSE - 85 END, - 64 * - 48 ) col1
----
-1379

skipif mysql # not compatible
query I rowsort label-5982
SELECT + + 44 * - 24 + - 28 + + 3 * - 70 - - COALESCE ( + CASE + 75 WHEN + 70 + - 48 THEN NULL WHEN - COUNT ( ALL + - 10 ) THEN NULL ELSE - 85 END, - 64 * - 48 ) col1
----
-1379

query I rowsort
SELECT ALL + 72 + 66
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5984
SELECT COALESCE ( + - 35, - - 44 * - 70 - + - 34 + CASE 91 WHEN COALESCE ( + COUNT( * ), - COUNT( * ) * 53 + - 80, 81 * + 58 * + CAST( + + 96 AS SIGNED ) ) THEN 31 ELSE NULL END ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5984
SELECT COALESCE ( + - 35, - - 44 * - 70 - + - 34 + CASE 91 WHEN COALESCE ( + COUNT ( * ), - COUNT ( * ) * 53 + - 80, 81 * + 58 * + CAST ( + + 96 AS INTEGER ) ) THEN 31 ELSE NULL END ) AS col0
----
-35

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

skipif mysql # not compatible
query I rowsort label-5985
SELECT ( COUNT ( * ) ) / + 47 / + 4 AS col0
----
0

query I rowsort
SELECT + 99 + 37 * ( + 82 ) - - - 18
----
3115

query I rowsort
SELECT ALL - 80 + - 90 * - + ( + 5 )
----
370

query I rowsort
SELECT + 91 * - 97 + - 38
----
-8865

onlyif mysql # DIV for integer division: 
query II rowsort label-5989
SELECT DISTINCT 80 DIV 64 * 41 AS col2, + 13
----
41
13

skipif mysql # not compatible
query II rowsort label-5989
SELECT DISTINCT 80 / 64 * 41 AS col2, + 13
----
41
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT - 4 * - - ( + - ( - CAST( 4 AS SIGNED ) ) )
----
-16

skipif mysql # not compatible
query I rowsort label-5990
SELECT - 4 * - - ( + - ( - CAST ( 4 AS INTEGER ) ) )
----
-16

query II rowsort
SELECT ALL 79 * + 57 AS col0, 13 * 28
----
4503
364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5992
SELECT + CAST( + 11 AS SIGNED ) * + + 16 * - - MIN( + 48 ) AS col1
----
8448

skipif mysql # not compatible
query I rowsort label-5992
SELECT + CAST ( + 11 AS INTEGER ) * + + 16 * - - MIN ( + 48 ) AS col1
----
8448

query I rowsort
SELECT + 67 + 20
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT DISTINCT MAX( - + 81 ) * ( - 85 )
----
6885

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT MAX ( - + 81 ) * ( - 85 )
----
6885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5995
SELECT ALL 32 - - + 25 + + 58 DIV + COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL 32 - - + 25 + + 58 / + COUNT ( * )
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5996
SELECT + CAST( NULL AS SIGNED ) * - 16 AS col0, 47 + - 95 * + 48 AS col2
----
NULL
-4513

skipif mysql # not compatible
query II rowsort label-5996
SELECT + CAST ( NULL AS INTEGER ) * - 16 AS col0, 47 + - 95 * + 48 AS col2
----
NULL
-4513

query I rowsort
SELECT + 20 * 21
----
420

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

skipif mysql # not compatible
query I rowsort label-5998
SELECT - COUNT ( - 67 )
----
-1

query I rowsort
SELECT DISTINCT 3 col0
----
3

query I rowsort
SELECT + 84 * + 46
----
3864

onlyif mysql # DIV for integer division: 
query II rowsort label-6001
SELECT DISTINCT - 19 DIV 60 AS col0, 62 * 51 * + 2
----
0
6324

skipif mysql # not compatible
query II rowsort label-6001
SELECT DISTINCT - 19 / 60 AS col0, 62 * 51 * + 2
----
0
6324

query I rowsort
SELECT - 53 * + 33 * 38 * - - 18
----
-1196316

query II rowsort
SELECT ALL 23 * + 70 AS col2, 40 AS col2
----
1610
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6004
SELECT + SUM( + NULLIF ( - 58, - + 53 * + - 78 ) ) AS col0, 77 * 35 - 76 col1
----
-58
2619

skipif mysql # not compatible
query II rowsort label-6004
SELECT + SUM ( + NULLIF ( - 58, - + 53 * + - 78 ) ) AS col0, 77 * 35 - 76 col1
----
-58
2619

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

query I rowsort
SELECT ALL - - 63 * - 86 * 43 + + - COALESCE ( - 65, + 33 )
----
-232909

query I rowsort
SELECT CASE WHEN NULL IS NULL THEN 99 END AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6008
SELECT - - 81 DIV COUNT( * ) * 57 + + 30 + - ( ( 95 ) ) * + 86 AS col2
----
-3523

skipif mysql # not compatible
query I rowsort label-6008
SELECT - - 81 / COUNT ( * ) * 57 + + 30 + - ( ( 95 ) ) * + 86 AS col2
----
-3523

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6009
SELECT DISTINCT - 61 * + CAST( + - 38 AS SIGNED ) + 31 + - 31 DIV 46 AS col2
----
2349

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT - 61 * + CAST ( + - 38 AS INTEGER ) + 31 + - 31 / 46 AS col2
----
2349

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT 29 * COALESCE ( - - 16, 13 - - COALESCE ( MAX( - + 17 ), - 74 ) + + 67, 62 ) * - 79 - 3 + 7 * - 91 * - + 60 * 18 AS col2
----
651301

skipif mysql # not compatible
query I rowsort label-6010
SELECT 29 * COALESCE ( - - 16, 13 - - COALESCE ( MAX ( - + 17 ), - 74 ) + + 67, 62 ) * - 79 - 3 + 7 * - 91 * - + 60 * 18 AS col2
----
651301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6011
SELECT - NULLIF ( - COALESCE ( - + NULLIF ( - 98, - CASE - - CASE + - 63 WHEN COALESCE ( + 5, - 31 - - 70 ) THEN NULL WHEN - COALESCE ( + 40, - 11, - + 65 * + 47 + - 96 * 81 / + 15 * + COUNT( * ) ) THEN - - 85 END WHEN + 53 THEN NULL ELSE + 42 END ), CAST( + COUNT( * ) AS SIGNED ) ), - 90 )
----
98

skipif mysql # not compatible
query I rowsort label-6011
SELECT - NULLIF ( - COALESCE ( - + NULLIF ( - 98, - CASE - - CASE + - 63 WHEN COALESCE ( + 5, - 31 - - 70 ) THEN NULL WHEN - COALESCE ( + 40, - 11, - + 65 * + 47 + - 96 * 81 / + 15 * + COUNT ( * ) ) THEN - - 85 END WHEN + 53 THEN NULL ELSE + 42 END ), CAST ( + COUNT ( * ) AS INTEGER ) ), - 90 )
----
98

query I rowsort
SELECT ALL - + 99 * - 52 - - - 92 * + 17
----
3584

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

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

query I rowsort
SELECT ALL - 40 * 32 AS col0
----
-1280

query I rowsort
SELECT ALL - 22 * - + 11 AS col1
----
242

query I rowsort
SELECT DISTINCT ( - 62 ) AS col1
----
-62

query I rowsort
SELECT - 62 * - 7 AS col2
----
434

query I rowsort
SELECT - NULLIF ( - 52, + 43 * + 84 ) + - 32 * - 96 * 71 * + 71 AS col0
----
15486004

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

query I rowsort
SELECT + 20 * 44 AS col0
----
880

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT ALL 26 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL 26 / + 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6022
SELECT - COUNT( * ) * - 20 / - CAST( NULL AS SIGNED ), 62 col2
----
NULL
62

skipif mysql # not compatible
query II rowsort label-6022
SELECT - COUNT ( * ) * - 20 / - CAST ( NULL AS INTEGER ), 62 col2
----
NULL
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6023
SELECT ALL ( + ( + - 98 ) ), CAST( NULL AS SIGNED ) * + 71 - + COUNT( * ) + - SUM( ALL 60 ) + 4 AS col1
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-6023
SELECT ALL ( + ( + - 98 ) ), CAST ( NULL AS INTEGER ) * + 71 - + COUNT ( * ) + - SUM ( ALL 60 ) + 4 AS col1
----
-98
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT + 84 DIV - 24
----
-3

skipif mysql # not compatible
query I rowsort label-6024
SELECT + 84 / - 24
----
-3

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

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) ) / - AVG ( 33 )
----
NULL

query I rowsort
SELECT DISTINCT 84 * - 98
----
-8232

query I rowsort
SELECT + 37 * - 83
----
-3071

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL ( SUM( + 77 ) ) * + 36 * - + 12
----
-33264

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL ( SUM ( + 77 ) ) * + 36 * - + 12
----
-33264

query I rowsort
SELECT + 51 * 96 * + 33
----
161568

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT + - COUNT( * ) + + 2 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6030
SELECT + - COUNT ( * ) + + 2 AS col0
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT + 40 + + - CAST( NULL AS SIGNED ) * - 99 * 0 * - + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6032
SELECT + 40 + + - CAST ( NULL AS INTEGER ) * - 99 * 0 * - + 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL + 71 / + CASE + - 98 WHEN 42 THEN 36 * + 60 ELSE NULL END + + - ( + + ( + AVG ( DISTINCT 65 ) ) ) / + 24 + - 60 + 65 + - - 15 + - + 68 + - 86 + + COUNT( * ) / + + ( - 63 ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + 71 / + CASE + - 98 WHEN 42 THEN 36 * + 60 ELSE NULL END + + - ( + + ( + AVG ( DISTINCT 65 ) ) ) / + 24 + - 60 + 65 + - - 15 + - + 68 + - 86 + + COUNT ( * ) / + + ( - 63 ) * - 63
----
NULL

query II rowsort
SELECT 27, 4 + - + 92 + + ( - + 88 ) AS col1
----
27
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT + MAX( - 3 ) * + + 3 + - + ( - 4 ) + + 56 - ( + 85 ) * - 22 * - 34
----
-63529

skipif mysql # not compatible
query I rowsort label-6035
SELECT + MAX ( - 3 ) * + + 3 + - + ( - 4 ) + + 56 - ( + 85 ) * - 22 * - 34
----
-63529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT DISTINCT COUNT( * ) * - - 98 * 88 * - CAST( - MIN( DISTINCT - 29 ) AS SIGNED ) * + 64
----
-16006144

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT COUNT ( * ) * - - 98 * 88 * - CAST ( - MIN ( DISTINCT - 29 ) AS INTEGER ) * + 64
----
-16006144

onlyif mysql # aggregate syntax: 
query II rowsort label-6037
SELECT DISTINCT + + NULLIF ( - COUNT( - 79 ), - 37 ), 69 + + 93 AS col0
----
-1
162

skipif mysql # not compatible
query II rowsort label-6037
SELECT DISTINCT + + NULLIF ( - COUNT ( - 79 ), - 37 ), 69 + + 93 AS col0
----
-1
162

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT + COUNT( * ) + + 62 * - NULLIF ( + + NULLIF ( + + 60, + + 6 ), - 76 ) * SUM( ALL + - 26 ) AS col2
----
96721

skipif mysql # not compatible
query I rowsort label-6038
SELECT + COUNT ( * ) + + 62 * - NULLIF ( + + NULLIF ( + + 60, + + 6 ), - 76 ) * SUM ( ALL + - 26 ) AS col2
----
96721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT CAST( 83 AS SIGNED ) * + 94
----
7802

skipif mysql # not compatible
query I rowsort label-6039
SELECT CAST ( 83 AS INTEGER ) * + 94
----
7802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6040
SELECT + NULLIF ( 18, ( - 23 ) + + 40 * - + 89 ) col0, ( COUNT( * ) ) + - CAST( - - 81 AS SIGNED ) + - - 49 + - + 40
----
18
-71

skipif mysql # not compatible
query II rowsort label-6040
SELECT + NULLIF ( 18, ( - 23 ) + + 40 * - + 89 ) col0, ( COUNT ( * ) ) + - CAST ( - - 81 AS INTEGER ) + - - 49 + - + 40
----
18
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6041
SELECT MAX( DISTINCT - ( + 51 ) ) + + - 64 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT MAX ( DISTINCT - ( + 51 ) ) + + - 64 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 78 - + 89 col1
----
-167

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT ALL 56 DIV - - 41
----
1

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL 56 / - - 41
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT 91 + COUNT( * ) + 62 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-6046
SELECT 91 + COUNT ( * ) + 62 AS col1
----
154

query I rowsort
SELECT ALL - 92 * ( 84 )
----
-7728

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

query I rowsort
SELECT 35 + - - 35 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT 38 * MIN( + 46 ) AS col1
----
1748

skipif mysql # not compatible
query I rowsort label-6050
SELECT 38 * MIN ( + 46 ) AS col1
----
1748

query I rowsort
SELECT ALL + + 12 + + ( - 37 )
----
-25

query I rowsort
SELECT + 79 - - 84 AS col0
----
163

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6053
SELECT DISTINCT + 36 + + + 71 + - CAST( 82 AS SIGNED ) DIV - 89 * - 47 + + 11
----
118

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT + 36 + + + 71 + - CAST ( 82 AS INTEGER ) / - 89 * - 47 + + 11
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT + MAX( ALL - + 35 ) - - 63 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6054
SELECT + MAX ( ALL - + 35 ) - - 63 AS col0
----
28

query I rowsort
SELECT ALL + COALESCE ( 83, - 53 )
----
83

query I rowsort
SELECT ALL + + 20 + 6
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT - 87 * + 99 * + 58 + + CASE + 43 WHEN + 32 + 56 THEN - 37 END + - + 42 * + COALESCE ( - 29, + COUNT( * ), + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT - 87 * + 99 * + 58 + + CASE + 43 WHEN + 32 + 56 THEN - 37 END + - + 42 * + COALESCE ( - 29, + COUNT ( * ), + 66 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6058
SELECT DISTINCT + - ( + NULLIF ( - COALESCE ( - 94, - - 49 + 67, + - CASE - - COUNT( * ) WHEN + 27 * + 58 * - - 23 THEN - 71 ELSE NULL END ), + + 19 ) ) + - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT + - ( + NULLIF ( - COALESCE ( - 94, - - 49 + 67, + - CASE - - COUNT ( * ) WHEN + 27 * + 58 * - - 23 THEN - 71 ELSE NULL END ), + + 19 ) ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT 30 / COUNT( * ) * - - CASE CAST( + - 42 AS SIGNED ) WHEN + + AVG ( + 47 ) THEN 9 - - 14 WHEN + - 43 + + + 46 THEN NULL ELSE NULL END * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT 30 / COUNT ( * ) * - - CASE CAST ( + - 42 AS INTEGER ) WHEN + + AVG ( + 47 ) THEN 9 - - 14 WHEN + - 43 + + + 46 THEN NULL ELSE NULL END * - 81
----
NULL

query I rowsort
SELECT ALL + 43 + - 90
----
-47

query I rowsort
SELECT ALL - 84 * + + 68 + + - 38
----
-5750

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

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

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

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

query I rowsort
SELECT DISTINCT - + 92
----
-92

query I rowsort
SELECT DISTINCT - - 75 col1
----
75

query II rowsort
SELECT 59 + COALESCE ( + + 18, + 89 ) + + + 22 AS col0, - 99
----
99
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT + 53 * - MAX( DISTINCT 35 ) + + 57
----
-1798

skipif mysql # not compatible
query I rowsort label-6070
SELECT + 53 * - MAX ( DISTINCT 35 ) + + 57
----
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT DISTINCT SUM( ( - 43 ) ) * + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT SUM ( ( - 43 ) ) * + COUNT ( * )
----
-43

query I rowsort
SELECT 86 * - 32 + + 19
----
-2733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6073
SELECT MAX( ALL + + CAST( NULL AS SIGNED ) ) + - ( - 74 ) - 17 + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT MAX ( ALL + + CAST ( NULL AS INTEGER ) ) + - ( - 74 ) - 17 + - 76
----
NULL

query I rowsort
SELECT 29 + - ( - 90 ) AS col0
----
119

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

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

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

query I rowsort
SELECT ( 76 ) * 84
----
6384

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT 28 + COALESCE ( + 13, + 53 ) * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-6078
SELECT 28 + COALESCE ( + 13, + 53 ) * COUNT ( * )
----
41

query I rowsort
SELECT ALL 1 + - 80
----
-79

query I rowsort
SELECT ALL CASE 94 WHEN COALESCE ( 46, + 73 * 52 ) * 63 THEN 63 WHEN - 1 THEN NULL END + 76
----
NULL

query I rowsort
SELECT ALL + 16 + 84 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6082
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 51 / ( MIN( DISTINCT + 73 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 51 / ( MIN ( DISTINCT + 73 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT 25 + + COUNT( ALL 11 )
----
26

skipif mysql # not compatible
query I rowsort label-6083
SELECT 25 + + COUNT ( ALL 11 )
----
26

query I rowsort
SELECT 63 + + 19
----
82

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

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

query I rowsort
SELECT - 29 + + 97 col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6087
SELECT MAX( + 64 ) DIV ( + 84 ) - + 93 * - COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6087
SELECT MAX ( + 64 ) / ( + 84 ) - + 93 * - COUNT ( * ) AS col1
----
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL 56 * - 92 - + ( - 47 ) * + COUNT( ALL 1 * 29 - + 93 )
----
-5105

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL 56 * - 92 - + ( - 47 ) * + COUNT ( ALL 1 * 29 - + 93 )
----
-5105

query I rowsort
SELECT - 57 * 17
----
-969

query I rowsort
SELECT ALL 69 * + 68 AS col1
----
4692

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

skipif mysql # not compatible
query I rowsort label-6092
SELECT - 75 + - COUNT ( * ) AS col0
----
-76

query I rowsort
SELECT ALL - 81 * + 70
----
-5670

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT - COUNT( - 22 ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6094
SELECT - COUNT ( - 22 ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT - 21 * ( - MAX( ALL 56 ) )
----
1176

skipif mysql # not compatible
query I rowsort label-6095
SELECT - 21 * ( - MAX ( ALL 56 ) )
----
1176

query I rowsort
SELECT 90 * + 26 + 74 AS col1
----
2414

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT + 45 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-6097
SELECT + 45 / - 74
----
0

query I rowsort
SELECT + 3 + ( 35 + - ( - 43 ) )
----
81

query I rowsort
SELECT + CASE 12 WHEN ( ( - 83 ) ) THEN 61 + + 7 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 74 * COALESCE ( + 73, 29 + - 56 ) + NULLIF ( 17, - 19 ) AS col1
----
5419

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT MAX( 82 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-6101
SELECT MAX ( 82 ) col2
----
82

query I rowsort
SELECT DISTINCT 80 * + 8 + 73
----
713

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

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

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

skipif mysql # not compatible
query I rowsort label-6104
SELECT MAX ( - 26 ) col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL + ( 38 ) * - 93 + - COUNT( 13 ) col1
----
-3535

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL + ( 38 ) * - 93 + - COUNT ( 13 ) col1
----
-3535

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT MAX( + 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-6106
SELECT MAX ( + 94 ) col1
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT COUNT( - 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6108
SELECT COUNT ( - 62 ) AS col0
----
1

query I rowsort
SELECT DISTINCT ( - 51 ) + ( 59 )
----
8

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

query I rowsort
SELECT ALL 96 + 69 col1
----
165

query I rowsort
SELECT + 1 * - 48 AS col2
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT + 19 + - 43 * MAX( ALL - 5 )
----
234

skipif mysql # not compatible
query I rowsort label-6114
SELECT + 19 + - 43 * MAX ( ALL - 5 )
----
234

query I rowsort
SELECT DISTINCT 25 + 2 * 47 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL + NULLIF ( 57, COALESCE ( - 82, COUNT( ALL 35 ) + - 80, 15 * SUM( - 12 ) ) )
----
57

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL + NULLIF ( 57, COALESCE ( - 82, COUNT ( ALL 35 ) + - 80, 15 * SUM ( - 12 ) ) )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT ALL 44 + + CAST( 29 AS SIGNED ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL 44 + + CAST ( 29 AS INTEGER ) AS col1
----
73

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6119
SELECT ALL - + 45 DIV 5 col2
----
-9

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL - + 45 / 5 col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT ALL + + 82 - COUNT( * ) * NULLIF ( 1 * + 15, - 54 )
----
67

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL + + 82 - COUNT ( * ) * NULLIF ( 1 * + 15, - 54 )
----
67

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

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

query I rowsort
SELECT + 6 + - 6 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6123
SELECT - - 48 DIV - 15 col0
----
-3

skipif mysql # not compatible
query I rowsort label-6123
SELECT - - 48 / - 15 col0
----
-3

query I rowsort
SELECT - 20 + - 59 AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT - 47 DIV + 37 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6125
SELECT - 47 / + 37 AS col1
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-6127
SELECT + MAX ( 63 )
----
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT 79 * - NULLIF ( MAX( DISTINCT + 51 ) * 51 + 20, + 2 ) col1
----
-207059

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT 79 * - NULLIF ( MAX ( DISTINCT + 51 ) * 51 + 20, + 2 ) col1
----
-207059

query I rowsort
SELECT - + 47 * 83 AS col2
----
-3901

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL - + MIN( DISTINCT 97 ) * - 28
----
2716

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL - + MIN ( DISTINCT 97 ) * - 28
----
2716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6132
SELECT + 66 * CAST( 68 AS SIGNED )
----
4488

skipif mysql # not compatible
query I rowsort label-6132
SELECT + 66 * CAST ( 68 AS INTEGER )
----
4488

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT - 98 DIV - ( 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6134
SELECT - 98 / - ( 81 ) AS col2
----
1

query I rowsort
SELECT - 4 * - + 96 * - 38 col2
----
-14592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6136
SELECT DISTINCT COUNT( * ) DIV - 22 * 80 + 64
----
64

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT COUNT ( * ) / - 22 * 80 + 64
----
64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6138
SELECT - 68 * + COALESCE ( CASE + 75 WHEN 56 THEN 23 DIV 50 WHEN + COUNT( 90 ) THEN NULL END, - 80, + 45 - - 86 DIV 13 )
----
5440

skipif mysql # not compatible
query I rowsort label-6138
SELECT - 68 * + COALESCE ( CASE + 75 WHEN 56 THEN 23 / 50 WHEN + COUNT ( 90 ) THEN NULL END, - 80, + 45 - - 86 / 13 )
----
5440

query I rowsort
SELECT DISTINCT 45 * + 87 + + 48 AS col0
----
3963

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT - 7 * - 89 - - MAX( ALL - 4 ) AS col1
----
619

skipif mysql # not compatible
query I rowsort label-6140
SELECT - 7 * - 89 - - MAX ( ALL - 4 ) AS col1
----
619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT ALL + ( - CAST( - 91 AS SIGNED ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL + ( - CAST ( - 91 AS INTEGER ) ) AS col1
----
91

query I rowsort
SELECT ALL - 33 * - 84
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT - COUNT( * ) + - 41
----
-42

skipif mysql # not compatible
query I rowsort label-6143
SELECT - COUNT ( * ) + - 41
----
-42

query I rowsort
SELECT - 38 * - 42 * - CASE 5 WHEN - 4 THEN - 67 ELSE NULL END
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6146
SELECT + NULLIF ( - COUNT ( * ), + 66 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT DISTINCT + 92 * - 25 * CAST( NULL AS SIGNED ) + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT + 92 * - 25 * CAST ( NULL AS INTEGER ) + 18
----
NULL

query I rowsort
SELECT ALL - 9 * 95 + - 72 AS col1
----
-927

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6149
SELECT - 26 + + CAST( + 30 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-6149
SELECT - 26 + + CAST ( + 30 AS INTEGER )
----
4

query I rowsort
SELECT + 8 * - 56
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT DISTINCT + MAX( DISTINCT - 37 ) * - 45 AS col0
----
1665

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT + MAX ( DISTINCT - 37 ) * - 45 AS col0
----
1665

query I rowsort
SELECT DISTINCT - 15 * + 26 * 0 + 58 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT ALL + COUNT( * ) * + 5 + SUM( ALL - 62 ) * 51
----
-3157

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL + COUNT ( * ) * + 5 + SUM ( ALL - 62 ) * 51
----
-3157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6154
SELECT - NULLIF ( - - 90, 36 * - CAST( NULL AS SIGNED ) )
----
-90

skipif mysql # not compatible
query I rowsort label-6154
SELECT - NULLIF ( - - 90, 36 * - CAST ( NULL AS INTEGER ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT - 54 + - CASE 48 WHEN - 2 THEN + COUNT( - 18 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT - 54 + - CASE 48 WHEN - 2 THEN + COUNT ( - 18 ) END AS col2
----
NULL

query I rowsort
SELECT ALL - 41 * - 8 - 63 * 19 col1
----
-869

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT + 82 + + + MIN( DISTINCT + 9 )
----
91

skipif mysql # not compatible
query I rowsort label-6157
SELECT + 82 + + + MIN ( DISTINCT + 9 )
----
91

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

query I rowsort
SELECT 98 + + 2 AS col0
----
100

query I rowsort
SELECT ALL 78 - - 35 * - 67
----
-2267

query I rowsort
SELECT - ( + 43 ) * - 22
----
946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT NULLIF ( - 78, NULLIF ( - 70, CAST( NULL AS SIGNED ) + 89 ) - - 67 ) * 18 col2
----
-1404

skipif mysql # not compatible
query I rowsort label-6162
SELECT NULLIF ( - 78, NULLIF ( - 70, CAST ( NULL AS INTEGER ) + 89 ) - - 67 ) * 18 col2
----
-1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6163
SELECT - NULLIF ( SUM( DISTINCT 62 ), CAST( NULL AS SIGNED ) )
----
-62

skipif mysql # not compatible
query I rowsort label-6163
SELECT - NULLIF ( SUM ( DISTINCT 62 ), CAST ( NULL AS INTEGER ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT DISTINCT 96 * - - 77 + 20 * - MIN( - 92 )
----
9232

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT 96 * - - 77 + 20 * - MIN ( - 92 )
----
9232

query I rowsort
SELECT DISTINCT - + 84 * + + 91
----
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL - - 59 * - - MAX( COALESCE ( + 62, 59 * 55 ) ) AS col0
----
3658

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL - - 59 * - - MAX ( COALESCE ( + 62, 59 * 55 ) ) AS col0
----
3658

query I rowsort
SELECT 8 * - 21 AS col2
----
-168

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

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

query I rowsort
SELECT 87 + - - 32 - 22 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6170
SELECT - 20 * - CASE 54 WHEN + ( - ( - COUNT( * ) ) ) * 53 THEN CAST( NULL AS SIGNED ) WHEN 70 THEN + 97 ELSE CASE - CAST( NULL AS SIGNED ) WHEN NULLIF ( - 56, + 5 + - 70 ) * - 13 THEN + ( 66 ) * - 72 END END - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT - 20 * - CASE 54 WHEN + ( - ( - COUNT ( * ) ) ) * 53 THEN CAST ( NULL AS INTEGER ) WHEN 70 THEN + 97 ELSE CASE - CAST ( NULL AS INTEGER ) WHEN NULLIF ( - 56, + 5 + - 70 ) * - 13 THEN + ( 66 ) * - 72 END END - 0 AS col0
----
NULL

query I rowsort
SELECT 46 + - 50 AS col2
----
-4

query I rowsort
SELECT + 73 + + 21 AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6173
SELECT + 47 DIV - 34 + MIN( ALL + 16 )
----
15

skipif mysql # not compatible
query I rowsort label-6173
SELECT + 47 / - 34 + MIN ( ALL + 16 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6174
SELECT + 79 * - - 82 + - + 89 DIV 64
----
6477

skipif mysql # not compatible
query I rowsort label-6174
SELECT + 79 * - - 82 + - + 89 / 64
----
6477

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT COUNT( * ) * - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT COUNT ( * ) * - 42 AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6176
SELECT ALL 98 + - ( - 18 ) + COUNT( * ) DIV + COALESCE ( + 26 DIV 26, ( 47 ) * 62 )
----
117

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL 98 + - ( - 18 ) + COUNT ( * ) / + COALESCE ( + 26 / 26, ( 47 ) * 62 )
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT ALL + ( 51 ) + - 25 DIV + 1
----
26

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL + ( 51 ) + - 25 / + 1
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-6178
SELECT DISTINCT - 45 AS col0, 9 DIV ( - 75 ) col1
----
-45
0

skipif mysql # not compatible
query II rowsort label-6178
SELECT DISTINCT - 45 AS col0, 9 / ( - 75 ) col1
----
-45
0

query I rowsort
SELECT ALL 50 + + ( + - 73 ) - 76 * - 30
----
2257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT 19 + - + 4 + 3 + CAST( + 65 AS SIGNED ) * 64 AS col1
----
4178

skipif mysql # not compatible
query I rowsort label-6180
SELECT 19 + - + 4 + 3 + CAST ( + 65 AS INTEGER ) * 64 AS col1
----
4178

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

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

query II rowsort
SELECT + 77 AS col0, 71 AS col0
----
77
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT - 40 * 63 * + COUNT( * ) + - 12
----
-2532

skipif mysql # not compatible
query I rowsort label-6183
SELECT - 40 * 63 * + COUNT ( * ) + - 12
----
-2532

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL + MIN( 74 ) + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL + MIN ( 74 ) + + COUNT ( * )
----
75

query I rowsort
SELECT 65 * - 20 + + - 26 - - 42 * 21
----
-444

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

skipif mysql # not compatible
query I rowsort label-6186
SELECT COUNT ( * ) * - 80 * + 19
----
-1520

query I rowsort
SELECT 48 + - 5 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL MAX( DISTINCT 92 ) - + 2 * COUNT( + 54 )
----
90

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL MAX ( DISTINCT 92 ) - + 2 * COUNT ( + 54 )
----
90

query I rowsort
SELECT DISTINCT - 84 * - 1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT ALL - 29 - + - 23 + + MIN( ALL 64 )
----
58

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL - 29 - + - 23 + + MIN ( ALL 64 )
----
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT 54 DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6192
SELECT 54 / + 91 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT DISTINCT + - 61 * - MAX( - + 95 )
----
-5795

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT + - 61 * - MAX ( - + 95 )
----
-5795

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

query I rowsort
SELECT ALL + 26 * + 69 + - 68 AS col2
----
1726

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT 53 DIV 11 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6197
SELECT 53 / 11 AS col1
----
4

query I rowsort
SELECT + CASE 56 WHEN 53 THEN NULL WHEN - 52 THEN NULL ELSE - 79 END
----
-79

query I rowsort
SELECT - 55 + - 0
----
-55

query I rowsort
SELECT DISTINCT - - 56 * + 14 + - + 24 AS col0
----
760

onlyif mysql # aggregate syntax: 
query II rowsort label-6201
SELECT DISTINCT COUNT( * ) AS col2, 21 * - 81 AS col0
----
1
-1701

skipif mysql # not compatible
query II rowsort label-6201
SELECT DISTINCT COUNT ( * ) AS col2, 21 * - 81 AS col0
----
1
-1701

onlyif mysql # DIV for integer division: 
query II rowsort label-6202
SELECT - 68 AS col0, 84 DIV - 71 AS col1
----
-68
-1

skipif mysql # not compatible
query II rowsort label-6202
SELECT - 68 AS col0, 84 / - 71 AS col1
----
-68
-1

query I rowsort
SELECT + 4 + + 3 AS col0
----
7

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

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

query I rowsort
SELECT + 18 + 29 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL + 50 + COUNT( - 81 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL + 50 + COUNT ( - 81 ) AS col2
----
51

query II rowsort
SELECT - 24 AS col0, - 40 AS col1
----
-24
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT 22 + - 77 + - MAX( + 98 ) AS col2
----
-153

skipif mysql # not compatible
query I rowsort label-6208
SELECT 22 + - 77 + - MAX ( + 98 ) AS col2
----
-153

query I rowsort
SELECT - 84 * - 21 - + 92
----
1672

query I rowsort
SELECT ALL + + 14 + - + 75 - + 90 AS col2
----
-151

query I rowsort
SELECT DISTINCT + 50 * - - ( + 65 ) AS col1
----
3250

query I rowsort
SELECT ALL 80 + + 42
----
122

query I rowsort
SELECT DISTINCT 9 + + 31 + - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT MAX( - - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-6214
SELECT MAX ( - - 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT - 99 * - COUNT( * ) - 52 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6215
SELECT - 99 * - COUNT ( * ) - 52 AS col1
----
47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT DISTINCT ( - 11 ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT ( - 11 ) / + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT 97 / COUNT( * ) - - CASE + 39 WHEN + ( - 83 ) / - COUNT( * ) THEN + 20 * 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT 97 / COUNT ( * ) - - CASE + 39 WHEN + ( - 83 ) / - COUNT ( * ) THEN + 20 * 41 END
----
NULL

query I rowsort
SELECT ALL - 93 * 54 - + 76
----
-5098

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT COUNT( 72 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6220
SELECT COUNT ( 72 ) col1
----
1

query I rowsort
SELECT ALL + 43 * + 33 - 23 AS col0
----
1396

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT COUNT( - 55 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6222
SELECT COUNT ( - 55 ) col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT COUNT( * ) * + - 61 * - 82 * - + 3 * 6 AS col2
----
-90036

skipif mysql # not compatible
query I rowsort label-6224
SELECT COUNT ( * ) * + - 61 * - 82 * - + 3 * 6 AS col2
----
-90036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT COUNT( * ) + - + 10 + - 19 * - + 30 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT COUNT ( * ) + - + 10 + - 19 * - + 30 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 73 * + 17 * + + 29 + 42 AS col1
----
-35947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT - 63 * - 98 + - - CAST( - 85 AS SIGNED ) * 90
----
-1476

skipif mysql # not compatible
query I rowsort label-6227
SELECT - 63 * - 98 + - - CAST ( - 85 AS INTEGER ) * 90
----
-1476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6228
SELECT - - CAST( - + 93 AS SIGNED ) * + + 42 - + 40 AS col2
----
-3946

skipif mysql # not compatible
query I rowsort label-6228
SELECT - - CAST ( - + 93 AS INTEGER ) * + + 42 - + 40 AS col2
----
-3946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6229
SELECT + - COALESCE ( COUNT( ALL + 66 ), 18 * + 98 ) * COALESCE ( - COALESCE ( 59, + ( + CAST( NULL AS SIGNED ) ) + 88, + 39 ) * - 70, 47, 1 + + 25 DIV SUM( ( + 61 ) ) ) + - 45
----
-4175

skipif mysql # not compatible
query I rowsort label-6229
SELECT + - COALESCE ( COUNT ( ALL + 66 ), 18 * + 98 ) * COALESCE ( - COALESCE ( 59, + ( + CAST ( NULL AS INTEGER ) ) + 88, + 39 ) * - 70, 47, 1 + + 25 / SUM ( ( + 61 ) ) ) + - 45
----
-4175

query I rowsort
SELECT ALL 0 * + 66 - - 83 + - 26 + - 72 * + ( ( 8 ) ) * 63
----
-36231

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT - 44 + COALESCE ( - - SUM( ALL + + 56 ), - 1 ) col1
----
12

skipif mysql # not compatible
query I rowsort label-6232
SELECT - 44 + COALESCE ( - - SUM ( ALL + + 56 ), - 1 ) col1
----
12

query I rowsort
SELECT ALL + - 83 * 94 + - CASE - - 93 WHEN 15 THEN + 39 END + + 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT ALL + - 67 DIV + 89 * - 30 col1
----
0

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + - 67 / + 89 * - 30 col1
----
0

query I rowsort
SELECT DISTINCT - 45 + + + 52
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT - NULLIF ( - SUM( ALL 94 ), + COUNT( * ) + ( + 95 ) )
----
94

skipif mysql # not compatible
query I rowsort label-6236
SELECT - NULLIF ( - SUM ( ALL 94 ), + COUNT ( * ) + ( + 95 ) )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6237
SELECT - 2 DIV 34 * - ( + SUM( 67 ) ) + - 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6237
SELECT - 2 / 34 * - ( + SUM ( 67 ) ) + - 3 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL - - CASE - 9 WHEN 47 / 52 THEN COALESCE ( + 5, + 31 * - 95, 36 ) ELSE + 87 - 69 END + COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL - - CASE - 9 WHEN 47 / 52 THEN COALESCE ( + 5, + 31 * - 95, 36 ) ELSE + 87 - 69 END + COUNT ( * ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT - MIN( ALL + - 64 ) + + 65 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-6239
SELECT - MIN ( ALL + - 64 ) + + 65 AS col1
----
129

query I rowsort
SELECT ALL + 93 * + - 86
----
-7998

query I rowsort
SELECT DISTINCT - + 66 + + 86
----
20

query I rowsort
SELECT ALL + + 87 + 95 + 89
----
271

query I rowsort
SELECT ALL NULLIF ( - + 25, + 79 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT - MAX( NULLIF ( 59, - 38 + + - 82 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-6244
SELECT - MAX ( NULLIF ( 59, - 38 + + - 82 ) )
----
-59

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

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

query I rowsort
SELECT DISTINCT ( - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL ( - 55 ) * SUM( - 72 )
----
3960

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL ( - 55 ) * SUM ( - 72 )
----
3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT - 3 + 61 + - 14 * - 29 + - + COUNT( * ) + + 89 DIV - NULLIF ( 90 + - 59 * + 40, 73 ) AS col2
----
463

skipif mysql # not compatible
query I rowsort label-6248
SELECT - 3 + 61 + - 14 * - 29 + - + COUNT ( * ) + + 89 / - NULLIF ( 90 + - 59 * + 40, 73 ) AS col2
----
463

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT 1 DIV 27 + - 55
----
-55

skipif mysql # not compatible
query I rowsort label-6249
SELECT 1 / 27 + - 55
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6250
SELECT ALL + COALESCE ( - 45, + 14 DIV - 6 + + NULLIF ( 25, - 64 + ( - 30 ) ) ) * MAX( 38 )
----
-1710

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL + COALESCE ( - 45, + 14 / - 6 + + NULLIF ( 25, - 64 + ( - 30 ) ) ) * MAX ( 38 )
----
-1710

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6252
SELECT + 49 + 68 * + SUM( - - 32 ) DIV COUNT( * ) + 4
----
2229

skipif mysql # not compatible
query I rowsort label-6252
SELECT + 49 + 68 * + SUM ( - - 32 ) / COUNT ( * ) + 4
----
2229

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT - 19 * - MIN( DISTINCT 93 ) AS col1
----
1767

skipif mysql # not compatible
query I rowsort label-6253
SELECT - 19 * - MIN ( DISTINCT 93 ) AS col1
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT + 94 * + MIN( ALL 39 ) + + 29 AS col2
----
3695

skipif mysql # not compatible
query I rowsort label-6254
SELECT + 94 * + MIN ( ALL 39 ) + + 29 AS col2
----
3695

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

skipif mysql # not compatible
query I rowsort label-6255
SELECT - COUNT ( * ) / 37 * + - 0 AS col1
----
0

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

query I rowsort
SELECT + 0 * 17 * - 32 + + - 47
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6258
SELECT ALL CAST( NULL AS SIGNED ) / 44 * - MAX( ALL + COALESCE ( + 48, + 56, - 56 ) ) * - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL CAST ( NULL AS INTEGER ) / 44 * - MAX ( ALL + COALESCE ( + 48, + 56, - 56 ) ) * - 15 AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT + - 87 DIV 71 DIV - + ( 21 )
----
0

skipif mysql # not compatible
query I rowsort label-6260
SELECT + - 87 / 71 / - + ( 21 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6261
SELECT DISTINCT + COUNT( DISTINCT 53 ) * + MAX( DISTINCT 89 ) DIV + - 77
----
-1

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT + COUNT ( DISTINCT 53 ) * + MAX ( DISTINCT 89 ) / + - 77
----
-1

query I rowsort
SELECT ALL + NULLIF ( 30, - 41 + - 15 ) * - 24
----
-720

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT ALL + + NULLIF ( 90, 38 ) AS col2, - COUNT( ALL + 96 ) AS col0
----
90
-1

skipif mysql # not compatible
query II rowsort label-6264
SELECT ALL + + NULLIF ( 90, 38 ) AS col2, - COUNT ( ALL + 96 ) AS col0
----
90
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL - 13 * 66 + + + COUNT( * ) * + 45 * + 88
----
3102

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL - 13 * 66 + + + COUNT ( * ) * + 45 * + 88
----
3102

query II rowsort
SELECT + + 60 AS col2, 61 AS col1
----
60
61

query I rowsort
SELECT ALL + - 66 * - 24 + + 5
----
1589

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL + 58 * COUNT( * ) * CASE - 7 WHEN - ( 70 ) * - 17 THEN NULL ELSE 38 + 62 END AS col0
----
5800

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL + 58 * COUNT ( * ) * CASE - 7 WHEN - ( 70 ) * - 17 THEN NULL ELSE 38 + 62 END AS col0
----
5800

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6270
SELECT + COUNT( * ) col1, + 5 - - 60
----
1
65

skipif mysql # not compatible
query II rowsort label-6270
SELECT + COUNT ( * ) col1, + 5 - - 60
----
1
65

query I rowsort
SELECT ALL - COALESCE ( - 2, - + 9, - 97 ) * - - 56 + 24
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT DISTINCT + 24 * + NULLIF ( + ( - 32 ), + 72 * - COUNT( * ) ) AS col1
----
-768

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT + 24 * + NULLIF ( + ( - 32 ), + 72 * - COUNT ( * ) ) AS col1
----
-768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6273
SELECT DISTINCT - 33 * - CAST( NULL AS SIGNED ) + 13 * + 36 * - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT - 33 * - CAST ( NULL AS INTEGER ) + 13 * + 36 * - 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6274
SELECT DISTINCT 81 AS col2, MAX( DISTINCT - 63 ) * - + 84 * + 44 AS col0
----
81
232848

skipif mysql # not compatible
query II rowsort label-6274
SELECT DISTINCT 81 AS col2, MAX ( DISTINCT - 63 ) * - + 84 * + 44 AS col0
----
81
232848

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT + 57 * + 19 + - - 17 + + 51 * + - 94 * - COUNT( * ) - + 92
----
5802

skipif mysql # not compatible
query I rowsort label-6275
SELECT + 57 * + 19 + - - 17 + + 51 * + - 94 * - COUNT ( * ) - + 92
----
5802

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

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

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

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT - 98 / + COUNT ( * ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT + - 92 + + + COUNT( * ) + + 32
----
-59

skipif mysql # not compatible
query I rowsort label-6278
SELECT + - 92 + + + COUNT ( * ) + + 32
----
-59

query I rowsort
SELECT - 21 * + 57
----
-1197

onlyif mysql # DIV for integer division: 
query I rowsort label-6280
SELECT ALL - 5 DIV - 32 * + ( + - 93 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL - 5 / - 32 * + ( + - 93 ) col1
----
0

query II rowsort
SELECT 88, ( - 87 ) + - 88 * + - 60 + - 70 - 24 AS col2
----
88
5099

query II rowsort
SELECT - 39 + - 53 col1, - 76 + + + 62
----
-92
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL CASE 80 WHEN - 52 + + 90 THEN + COUNT( * ) WHEN 56 THEN 22 WHEN COALESCE ( ( 40 ), - 12, - 29 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL CASE 80 WHEN - 52 + + 90 THEN + COUNT ( * ) WHEN 56 THEN 22 WHEN COALESCE ( ( 40 ), - 12, - 29 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT - CASE - 14 WHEN 81 + - 5 * + 22 + SUM( + 79 ) * 34 THEN - 60 END * - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT - CASE - 14 WHEN 81 + - 5 * + 22 + SUM ( + 79 ) * 34 THEN - 60 END * - 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT - 27 * + + 51 * + + COUNT( ALL + 73 )
----
-1377

skipif mysql # not compatible
query I rowsort label-6285
SELECT - 27 * + + 51 * + + COUNT ( ALL + 73 )
----
-1377

query I rowsort
SELECT - 91 * ( - - 23 ) AS col0
----
-2093

query I rowsort
SELECT - 62 + 31
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6288
SELECT ALL CAST( - 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL CAST ( - 22 AS INTEGER )
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL ( + MAX( DISTINCT - - 51 ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL ( + MAX ( DISTINCT - - 51 ) ) AS col1
----
51

query I rowsort
SELECT 38 * - 73 AS col0
----
-2774

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6292
SELECT CASE 43 WHEN - 61 THEN NULL WHEN - - 67 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN - 28 * 83 END * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT CASE 43 WHEN - 61 THEN NULL WHEN - - 67 THEN NULL WHEN CAST ( NULL AS REAL ) THEN - 28 * 83 END * 60 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6293
SELECT + ( - - 51 ) DIV ( + 10 ) * - + 2 + 68 - COALESCE ( - 76, 40 )
----
134

skipif mysql # not compatible
query I rowsort label-6293
SELECT + ( - - 51 ) / ( + 10 ) * - + 2 + 68 - COALESCE ( - 76, 40 )
----
134

query II rowsort
SELECT DISTINCT - 92 AS col2, 8
----
-92
8

query I rowsort
SELECT DISTINCT + + 62 + 64 col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT ALL - 47 * - - COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - 47 * - - COUNT ( * ) AS col0
----
-47

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

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

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

query I rowsort
SELECT DISTINCT - + 50 + + 80
----
30

query II rowsort
SELECT DISTINCT 74 + 33 * + ( 99 ) AS col0, COALESCE ( - + 39, ( 36 ) + 37 ) * 35
----
3341
-1365

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT 31 + 69 DIV - - 66 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6301
SELECT 31 + 69 / - - 66 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT + SUM( DISTINCT 45 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-6302
SELECT + SUM ( DISTINCT 45 ) col0
----
45

query I rowsort
SELECT 77 + + 86 AS col0
----
163

query I rowsort
SELECT 21 - + 15
----
6

query II rowsort
SELECT ALL 45 + - 4 AS col2, 6
----
41
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT + 16 * - MIN( + 73 ) + 94 * - 16
----
-2672

skipif mysql # not compatible
query I rowsort label-6306
SELECT + 16 * - MIN ( + 73 ) + 94 * - 16
----
-2672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6307
SELECT + 28 * 59 * - 20 + - COUNT( * ) + + 94 * NULLIF ( CAST( NULL AS SIGNED ), + 13 * 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT + 28 * 59 * - 20 + - COUNT ( * ) + + 94 * NULLIF ( CAST ( NULL AS INTEGER ), + 13 * 54 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT 77 * + COALESCE ( NULLIF ( 53, COUNT( * ) ), - 65, - ( 40 ) )
----
4081

skipif mysql # not compatible
query I rowsort label-6308
SELECT 77 * + COALESCE ( NULLIF ( 53, COUNT ( * ) ), - 65, - ( 40 ) )
----
4081

query I rowsort
SELECT ALL - 2 - + 29 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT + COUNT( ALL 96 ) - - - COUNT( * ) + 34 - 87 * - COUNT( * ) + + NULLIF ( - NULLIF ( - 34, - 90 * + COUNT( * ) ), - 78 / + 89 )
----
155

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT + COUNT ( ALL 96 ) - - - COUNT ( * ) + 34 - 87 * - COUNT ( * ) + + NULLIF ( - NULLIF ( - 34, - 90 * + COUNT ( * ) ), - 78 / + 89 )
----
155

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

skipif mysql # not compatible
query II rowsort label-6311
SELECT - 16 AS col0, COUNT ( * ) AS col1
----
-16
1

query II rowsort
SELECT - 27, 20 * + 82 * + 94 AS col2
----
-27
154160

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT 15 + - 55 * + 36 - + 30 * - - 60 + COUNT( * ) + + 55 * + 47
----
-1179

skipif mysql # not compatible
query I rowsort label-6313
SELECT 15 + - 55 * + 36 - + 30 * - - 60 + COUNT ( * ) + + 55 * + 47
----
-1179

query I rowsort
SELECT DISTINCT ( - + 44 ) - - + 89 AS col0
----
45

query I rowsort
SELECT 29 * - - 84
----
2436

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT DISTINCT - 56 DIV + 68 * + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT - 56 / + 68 * + 67 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6317
SELECT 48 DIV - COALESCE ( + ( - 51 ), + - COUNT( * ), + - 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6317
SELECT 48 / - COALESCE ( + ( - 51 ), + - COUNT ( * ), + - 65 ) AS col0
----
0

query I rowsort
SELECT 54 - 94 AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6319
SELECT DISTINCT MIN( DISTINCT 8 ) * - CAST( NULL AS SIGNED ) * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT MIN ( DISTINCT 8 ) * - CAST ( NULL AS INTEGER ) * - 81
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6320
SELECT COUNT( * ) DIV - + 26 * - 90 * - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6320
SELECT COUNT ( * ) / - + 26 * - 90 * - 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT 73 * COUNT( - - 29 ) col1
----
73

skipif mysql # not compatible
query I rowsort label-6321
SELECT 73 * COUNT ( - - 29 ) col1
----
73

query II rowsort
SELECT ALL - 39 + - + 92 AS col0, + 36
----
-131
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT COUNT( * ) + + + 28 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6323
SELECT COUNT ( * ) + + + 28 AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6324
SELECT SUM( + 40 ) * - NULLIF ( + + COALESCE ( - + COUNT( * ), 18 DIV - 67, + COALESCE ( NULLIF ( COUNT( * ), ( ( + ( - 35 ) ) ) + - 51 ), 12 + COUNT( * ), CASE 51 WHEN - 3 * + 12 THEN CASE 19 WHEN 98 + - 8 THEN NULL WHEN + COUNT( * ) THEN + 18 END ELSE NULL END + 7 ) ), - 77 + + MAX( ALL 77 ) ) * 62 AS col2
----
2480

skipif mysql # not compatible
query I rowsort label-6324
SELECT SUM ( + 40 ) * - NULLIF ( + + COALESCE ( - + COUNT ( * ), 18 / - 67, + COALESCE ( NULLIF ( COUNT ( * ), ( ( + ( - 35 ) ) ) + - 51 ), 12 + COUNT ( * ), CASE 51 WHEN - 3 * + 12 THEN CASE 19 WHEN 98 + - 8 THEN NULL WHEN + COUNT ( * ) THEN + 18 END ELSE NULL END + 7 ) ), - 77 + + MAX ( ALL 77 ) ) * 62 AS col2
----
2480

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL - ( - - NULLIF ( 73, + 83 + - MIN( + 53 ) / - 2 * + 11 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL - ( - - NULLIF ( 73, + 83 + - MIN ( + 53 ) / - 2 * + 11 ) )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6326
SELECT 72 * 62 AS col2, CAST( NULL AS SIGNED ) + + - 30 AS col2
----
4464
NULL

skipif mysql # not compatible
query II rowsort label-6326
SELECT 72 * 62 AS col2, CAST ( NULL AS INTEGER ) + + - 30 AS col2
----
4464
NULL

query II rowsort
SELECT ALL - 7 + - 50 - + - 49 AS col0, 8
----
-8
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6328
SELECT + NULLIF ( + + CASE + - SUM( - 8 ) WHEN - - ( - 15 ) / - NULLIF ( + 96, - 46 / + CAST( NULL AS SIGNED ) + + 7 ) THEN 39 * ( 19 ) WHEN NULLIF ( 3, + 11 / + MAX( 12 ) ) * 31 THEN NULL END, + COUNT( * ) * 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT + NULLIF ( + + CASE + - SUM ( - 8 ) WHEN - - ( - 15 ) / - NULLIF ( + 96, - 46 / + CAST ( NULL AS INTEGER ) + + 7 ) THEN 39 * ( 19 ) WHEN NULLIF ( 3, + 11 / + MAX ( 12 ) ) * 31 THEN NULL END, + COUNT ( * ) * 41 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT COUNT( * ) * + ( + + COUNT( * ) ) + + + 78 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6329
SELECT COUNT ( * ) * + ( + + COUNT ( * ) ) + + + 78 AS col1
----
79

query I rowsort
SELECT ALL + 66 + + 30
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6331
SELECT ALL - + COUNT( - CAST( NULL AS SIGNED ) ) AS col1, - 67 col0, - - 37 col0
----
0
-67
37

skipif mysql # not compatible
query III rowsort label-6331
SELECT ALL - + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1, - 67 col0, - - 37 col0
----
0
-67
37

query I rowsort
SELECT + COALESCE ( + - 6, - 10 ) * 27 AS col1
----
-162

query I rowsort
SELECT ALL + COALESCE ( - 65, - 64 ) - 81 + - NULLIF ( 37, 59 ) * + 36
----
-1478

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL - - 5 * - COUNT( * ) + - COUNT( DISTINCT - 16 ) * + 47
----
-52

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL - - 5 * - COUNT ( * ) + - COUNT ( DISTINCT - 16 ) * + 47
----
-52

query I rowsort
SELECT DISTINCT + - 43 - - + CASE - + 32 WHEN + 2 / NULLIF ( 67, + + 85 ) THEN + 8 WHEN + 65 - 16 THEN NULL END + - 23 * + 93
----
NULL

query I rowsort
SELECT ALL - 14 * - 67 * + 9 * - 70 * 66 + 32 * + 98 + 84 * + 25 AS col1
----
-38996804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6337
SELECT + + 10 * - 47 + - CAST( + + 73 AS SIGNED ) - + COALESCE ( - MIN( + 20 ), + COUNT( * ) ) AS col0
----
-523

skipif mysql # not compatible
query I rowsort label-6337
SELECT + + 10 * - 47 + - CAST ( + + 73 AS INTEGER ) - + COALESCE ( - MIN ( + 20 ), + COUNT ( * ) ) AS col0
----
-523

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

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

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

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

query I rowsort
SELECT 15 * + - 48 + - + 62
----
-782

onlyif mysql # aggregate syntax: 
query II rowsort label-6341
SELECT - COUNT( * ), - 3 * + 53 + 88 AS col2
----
-1
-71

skipif mysql # not compatible
query II rowsort label-6341
SELECT - COUNT ( * ), - 3 * + 53 + 88 AS col2
----
-1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT DISTINCT MIN( DISTINCT 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT MIN ( DISTINCT 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL + CASE 68 WHEN - + 21 * + ( - 90 ) * + 70 * - + 35 THEN + MIN( DISTINCT 20 ) ELSE NULL END / - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL + CASE 68 WHEN - + 21 * + ( - 90 ) * + 70 * - + 35 THEN + MIN ( DISTINCT 20 ) ELSE NULL END / - 49 AS col1
----
NULL

query I rowsort
SELECT 38 * - 37 col0
----
-1406

query I rowsort
SELECT ALL 68 * + - 48 AS col1
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT NULLIF ( - 85, + COUNT( * ) ) / + COUNT( * ) + - + CASE 4 WHEN - - 67 THEN ( 87 ) WHEN - 55 / 35 THEN NULL END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT NULLIF ( - 85, + COUNT ( * ) ) / + COUNT ( * ) + - + CASE 4 WHEN - - 67 THEN ( 87 ) WHEN - 55 / 35 THEN NULL END * 82
----
NULL

query II rowsort
SELECT 42 AS col0, 98 AS col0
----
42
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6348
SELECT + 8 - SUM( DISTINCT - 1 ) AS col1, + 64
----
9
64

skipif mysql # not compatible
query II rowsort label-6348
SELECT + 8 - SUM ( DISTINCT - 1 ) AS col1, + 64
----
9
64

query I rowsort
SELECT + 20 * - 9
----
-180

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

skipif mysql # not compatible
query I rowsort label-6350
SELECT - MAX ( DISTINCT 87 )
----
-87

query II rowsort
SELECT 93 AS col1, - 25
----
93
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6352
SELECT ALL 8 + 69 + + CAST( ( + - 88 ) AS SIGNED ) + + 40 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL 8 + 69 + + CAST ( ( + - 88 ) AS INTEGER ) + + 40 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT - MIN( - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-6353
SELECT - MIN ( - 42 )
----
42

query II rowsort
SELECT 66, 17 AS col1
----
66
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL COUNT( ALL + 90 ) * + - 59 * + 84 * + - 14 + 63
----
69447

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL COUNT ( ALL + 90 ) * + - 59 * + 84 * + - 14 + 63
----
69447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6356
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 26 + + - COUNT( * ) * - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 26 + + - COUNT ( * ) * - 59 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 19 + 29 AS col0
----
48

query I rowsort
SELECT DISTINCT 31 + 89 AS col1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6359
SELECT ALL - 8 + ( + - CAST( - 44 AS SIGNED ) ) * + 30 * + 11 * + 89 AS col2
----
1292272

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - 8 + ( + - CAST ( - 44 AS INTEGER ) ) * + 30 * + 11 * + 89 AS col2
----
1292272

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT - COALESCE ( 28, + COALESCE ( + + 33, + + ( - 93 ) + + 86, + - 41 ), COUNT( * ) + 34 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6360
SELECT - COALESCE ( 28, + COALESCE ( + + 33, + + ( - 93 ) + + 86, + - 41 ), COUNT ( * ) + 34 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT + - MAX( DISTINCT 70 ) + + 46 * 65 AS col1
----
2920

skipif mysql # not compatible
query I rowsort label-6361
SELECT + - MAX ( DISTINCT 70 ) + + 46 * 65 AS col1
----
2920

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT - + 76 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-6362
SELECT - + 76 / + 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT CAST( - CAST( - MAX( + + 83 ) AS SIGNED ) AS SIGNED ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6363
SELECT CAST ( - CAST ( - MAX ( + + 83 ) AS INTEGER ) AS INTEGER ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6364
SELECT + CAST( NULL AS SIGNED ) * + MAX( - 20 ) + - 48 - + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6364
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( - 20 ) + - 48 - + - 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6365
SELECT DISTINCT - + 20 * - ( + - COUNT( * ) ), 43 * - 83 * + - AVG ( ALL + CAST( NULL AS SIGNED ) ) + + COALESCE ( + COALESCE ( - 14, 52 - + 96 ), 23 * - 10 ) + - 35 AS col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-6365
SELECT DISTINCT - + 20 * - ( + - COUNT ( * ) ), 43 * - 83 * + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + + COALESCE ( + COALESCE ( - 14, 52 - + 96 ), 23 * - 10 ) + - 35 AS col1
----
-20
NULL

query II rowsort
SELECT DISTINCT + + 62 AS col2, 0 AS col2
----
62
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT DISTINCT + 93 * 82 + - ( - 82 ) + + MAX( DISTINCT - - ( + ( - 91 ) ) ) * 40 * 50
----
-174292

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT + 93 * 82 + - ( - 82 ) + + MAX ( DISTINCT - - ( + ( - 91 ) ) ) * 40 * 50
----
-174292

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT ALL 53 * - 10 - + + MAX( + - 10 ) + + + 13 * - 68 col0
----
-1404

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL 53 * - 10 - + + MAX ( + - 10 ) + + + 13 * - 68 col0
----
-1404

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

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

query I rowsort
SELECT - 24 * + 75 AS col0
----
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT ALL + 54 DIV + 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL + 54 / + 36 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6372
SELECT - + 49 DIV 30 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6372
SELECT - + 49 / 30 AS col1
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6374
SELECT + - CAST( + COUNT( * ) AS SIGNED ) * + ( - + 95 ) + 54 col1
----
149

skipif mysql # not compatible
query I rowsort label-6374
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) * + ( - + 95 ) + 54 col1
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT + 82 * - CAST( NULL AS SIGNED ) + + + 84 + + + 9 + - ( + + 43 ) * + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT + 82 * - CAST ( NULL AS INTEGER ) + + + 84 + + + 9 + - ( + + 43 ) * + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT - + SUM( ALL - + 78 ) - + 82 - - 16 * - 93 + + 28 + + 24 * - 85 * COUNT( * )
----
-3504

skipif mysql # not compatible
query I rowsort label-6376
SELECT - + SUM ( ALL - + 78 ) - + 82 - - 16 * - 93 + + 28 + + 24 * - 85 * COUNT ( * )
----
-3504

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

query II rowsort
SELECT 98 AS col2, - 95 * 84 * + - 76 col0
----
98
606480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL + MAX( - + 9 ) * + 5 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL + MAX ( - + 9 ) * + 5 AS col2
----
-45

query I rowsort
SELECT - 56 * ( 95 )
----
-5320

query I rowsort
SELECT ALL 78 * + ( + COALESCE ( - 92, - 75, - + 11, + 2 + 13, - 35 * - 67 ) ) * 35 + + ( 91 ) AS col2
----
-251069

query I rowsort
SELECT 75 * - - 39 * + - 51 + + + 54 AS col0
----
-149121

query I rowsort
SELECT - 3 * 72 AS col1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT + 66 * - 50 * + COUNT( * ) + + 48 * + CASE - COALESCE ( 25, - 67 + + + COUNT( * ), 12 ) WHEN 24 THEN NULL ELSE 42 + + 47 END * + 47 AS col1
----
197484

skipif mysql # not compatible
query I rowsort label-6385
SELECT + 66 * - 50 * + COUNT ( * ) + + 48 * + CASE - COALESCE ( 25, - 67 + + + COUNT ( * ), 12 ) WHEN 24 THEN NULL ELSE 42 + + 47 END * + 47 AS col1
----
197484

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT - 20 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-6386
SELECT - 20 / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT + COALESCE ( + - COUNT( * ), + 35 + + 63 ) * 81
----
-81

skipif mysql # not compatible
query I rowsort label-6387
SELECT + COALESCE ( + - COUNT ( * ), + 35 + + 63 ) * 81
----
-81

query I rowsort
SELECT - COALESCE ( - 83, + 98 )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6389
SELECT - MIN( DISTINCT + 93 ), - 71 + - COUNT( - 22 ) AS col2
----
-93
-72

skipif mysql # not compatible
query II rowsort label-6389
SELECT - MIN ( DISTINCT + 93 ), - 71 + - COUNT ( - 22 ) AS col2
----
-93
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL 84 + COUNT( * ) + + MAX( DISTINCT - ( - 58 ) )
----
143

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL 84 + COUNT ( * ) + + MAX ( DISTINCT - ( - 58 ) )
----
143

query I rowsort
SELECT - 66 + + 39
----
-27

query I rowsort
SELECT ALL 78 + - - 65
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL SUM( ALL - + ( 72 ) ) + + CASE + 82 WHEN + + 93 THEN + NULLIF ( + 28, + COUNT( * ) + COUNT( * ) ) WHEN ( + 73 ) THEN 83 * 5 + + 93 ELSE NULL END + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL SUM ( ALL - + ( 72 ) ) + + CASE + 82 WHEN + + 93 THEN + NULLIF ( + 28, + COUNT ( * ) + COUNT ( * ) ) WHEN ( + 73 ) THEN 83 * 5 + + 93 ELSE NULL END + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT - 30 + - - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-6394
SELECT - 30 + - - COUNT ( * )
----
-29

query I rowsort
SELECT + COALESCE ( + - 59, + 40 - - 87 ) + - 30
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT 60 * COUNT( * ) * + 48
----
2880

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT 60 * COUNT ( * ) * + 48
----
2880

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT - 54 + + 80 - + 38 DIV - 37 + - 72 + + - NULLIF ( 82, - 49 ) DIV - 30
----
-43

skipif mysql # not compatible
query I rowsort label-6397
SELECT - 54 + + 80 - + 38 / - 37 + - 72 + + - NULLIF ( 82, - 49 ) / - 30
----
-43

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

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

query I rowsort
SELECT + 67 + 28 col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT + - CASE MIN( - + 75 ) WHEN + - COUNT( * ) * - - 78 * 54 THEN COUNT( * ) ELSE NULL END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT + - CASE MIN ( - + 75 ) WHEN + - COUNT ( * ) * - - 78 * 54 THEN COUNT ( * ) ELSE NULL END * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 39 - - - 86
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6402
SELECT + + 31 / + CASE - MAX( - NULLIF ( - 66, - 13 ) ) WHEN + 17 THEN CAST( NULL AS SIGNED ) END + + ( COUNT( 23 ) ) * ( + NULLIF ( + 78, 66 + - 95 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT + + 31 / + CASE - MAX ( - NULLIF ( - 66, - 13 ) ) WHEN + 17 THEN CAST ( NULL AS INTEGER ) END + + ( COUNT ( 23 ) ) * ( + NULLIF ( + 78, 66 + - 95 ) )
----
NULL

query I rowsort
SELECT + + 53 * + - ( 1 )
----
-53

query I rowsort
SELECT DISTINCT + ( 0 ) col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT DISTINCT 9 DIV + 20 * + 65
----
0

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT 9 / + 20 * + 65
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6407
SELECT DISTINCT - 65 * - - COUNT( * ) * + COUNT( * ) * - 47 col2, - 68 col0
----
3055
-68

skipif mysql # not compatible
query II rowsort label-6407
SELECT DISTINCT - 65 * - - COUNT ( * ) * + COUNT ( * ) * - 47 col2, - 68 col0
----
3055
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6408
SELECT - + 30 DIV - 38 + + MIN( ALL - - 74 ) + + 53 - + 20 + 27 DIV + + 97 * 86 * 13 + 73
----
180

skipif mysql # not compatible
query I rowsort label-6408
SELECT - + 30 / - 38 + + MIN ( ALL - - 74 ) + + 53 - + 20 + 27 / + + 97 * 86 * 13 + 73
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL + 32 * 86 * + - CASE COUNT( * ) WHEN 82 + - 54 THEN NULL ELSE 2 END * 27
----
-148608

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL + 32 * 86 * + - CASE COUNT ( * ) WHEN 82 + - 54 THEN NULL ELSE 2 END * 27
----
-148608

query I rowsort
SELECT ALL - 73 * + 8
----
-584

query I rowsort
SELECT + + 51 * 82
----
4182

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT ALL + CAST( - 63 AS SIGNED ) * + 6
----
-378

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL + CAST ( - 63 AS INTEGER ) * + 6
----
-378

query I rowsort
SELECT DISTINCT 98 * - 93 * + 15
----
-136710

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

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

query I rowsort
SELECT 88 * - + 81 - + 97 AS col1
----
-7225

query I rowsort
SELECT 64 + 34
----
98

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

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

query I rowsort
SELECT ALL + 52 + - 13 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT 47 - + ( 90 ) * + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6421
SELECT 47 - + ( 90 ) * + COUNT ( * ) AS col2
----
-43

query II rowsort
SELECT ALL 25, - 88 AS col1
----
25
-88

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

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

query I rowsort
SELECT DISTINCT + 35 * ( + 92 )
----
3220

query I rowsort
SELECT 79 + 86
----
165

query I rowsort
SELECT ALL + 17 * - 45
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT ALL + 8 - + - NULLIF ( + - COUNT( * ), - 18 + 27 * - 86 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL + 8 - + - NULLIF ( + - COUNT ( * ), - 18 + 27 * - 86 ) AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6428
SELECT - 46 AS col0, - 92 + - 61 + - + 54 DIV - SUM( ALL + + 90 ) + + 39
----
-46
-114

skipif mysql # not compatible
query II rowsort label-6428
SELECT - 46 AS col0, - 92 + - 61 + - + 54 / - SUM ( ALL + + 90 ) + + 39
----
-46
-114

query I rowsort
SELECT ALL - 45 - + 74 AS col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT 72 * + - 53 * MIN( + - ( + + 74 ) ) AS col0
----
282384

skipif mysql # not compatible
query I rowsort label-6430
SELECT 72 * + - 53 * MIN ( + - ( + + 74 ) ) AS col0
----
282384

query II rowsort
SELECT + 99, 13 AS col0
----
99
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6432
SELECT ALL - 31 col1, + ( - ( + 75 ) ) * - 53 + + SUM( DISTINCT 48 ) AS col1
----
-31
4023

skipif mysql # not compatible
query II rowsort label-6432
SELECT ALL - 31 col1, + ( - ( + 75 ) ) * - 53 + + SUM ( DISTINCT 48 ) AS col1
----
-31
4023

query I rowsort
SELECT + COALESCE ( - 4, - + COALESCE ( + 29, 78 + 52 ), + 90, - 74 ) AS col1
----
-4

query I rowsort
SELECT ALL - 87 * + - 7 + - COALESCE ( - 25, - 75 - - - 80 + + 21 - + 36, + 73 ) + - 44
----
590

onlyif mysql # DIV for integer division: 
query I rowsort label-6435
SELECT 51 DIV + + 10 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6435
SELECT 51 / + + 10 AS col0
----
5

query II rowsort
SELECT - 67 AS col2, 2 AS col1
----
-67
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT + 6 DIV 41 * - - 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6437
SELECT + 6 / 41 * - - 20 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6438
SELECT 0 + - + 81 + 62 * - - 84 * + + 2 - - COUNT( * ) * + - ( - 4 ), + 29 AS col0
----
10339
29

skipif mysql # not compatible
query II rowsort label-6438
SELECT 0 + - + 81 + 62 * - - 84 * + + 2 - - COUNT ( * ) * + - ( - 4 ), + 29 AS col0
----
10339
29

query II rowsort
SELECT + + 46 AS col1, 18
----
46
18

query I rowsort
SELECT ALL 98 * + 75
----
7350

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT - + MAX( ALL - + 0 ) * + 74 - + 34 * - 97 + + ( + 52 )
----
3350

skipif mysql # not compatible
query I rowsort label-6441
SELECT - + MAX ( ALL - + 0 ) * + 74 - + 34 * - 97 + + ( + 52 )
----
3350

query I rowsort
SELECT 20 * - 17
----
-340

query I rowsort
SELECT DISTINCT - 35 * + 25
----
-875

query I rowsort
SELECT ALL - NULLIF ( + 42, - - 41 ) AS col1
----
-42

query I rowsort
SELECT ( 33 ) + + 48 + + + 39
----
120

query I rowsort
SELECT ALL + 91 * + - COALESCE ( 63, + 69 )
----
-5733

onlyif mysql # DIV for integer division: 
query I rowsort label-6447
SELECT 0 * - 90 DIV + - 56 + - + 13 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6447
SELECT 0 * - 90 / + - 56 + - + 13 AS col2
----
-13

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

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

query II rowsort
SELECT + NULLIF ( - 93, 81 ) * 63 * - 80 AS col2, - 79
----
468720
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT + 20 * - 84 - + - MAX( ALL + 65 ) AS col0
----
-1615

skipif mysql # not compatible
query I rowsort label-6450
SELECT + 20 * - 84 - + - MAX ( ALL + 65 ) AS col0
----
-1615

onlyif mysql # aggregate syntax: 
query II rowsort label-6451
SELECT ALL - 93, + COALESCE ( + 24, - 36 * - - COUNT( * ) + 65 * + - COUNT( * ) ) col0
----
-93
24

skipif mysql # not compatible
query II rowsort label-6451
SELECT ALL - 93, + COALESCE ( + 24, - 36 * - - COUNT ( * ) + 65 * + - COUNT ( * ) ) col0
----
-93
24

query II rowsort
SELECT 58 AS col1, 6 * NULLIF ( - 56, 95 ) + - 81 + 92
----
58
-325

query I rowsort
SELECT 67 + + 16 * 5 AS col2
----
147

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6455
SELECT 66, - COUNT( * ) + - NULLIF ( COUNT( * ), CASE - - 1 WHEN + + 38 + + - AVG ( - 60 ) * - 30 THEN + 32 * 41 ELSE ( + COUNT( ALL 59 ) ) + - 57 * 44 END ) * - 67
----
66
66

skipif mysql # not compatible
query II rowsort label-6455
SELECT 66, - COUNT ( * ) + - NULLIF ( COUNT ( * ), CASE - - 1 WHEN + + 38 + + - AVG ( - 60 ) * - 30 THEN + 32 * 41 ELSE ( + COUNT ( ALL 59 ) ) + - 57 * 44 END ) * - 67
----
66
66

query I rowsort
SELECT ALL 9 * + 83
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT 20 + - - ( 18 ) + COALESCE ( - 14, 56, - COUNT( * ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT 20 + - - ( 18 ) + COALESCE ( - 14, 56, - COUNT ( * ) ) AS col0
----
24

query II rowsort
SELECT DISTINCT - 95, + 90 + + 79 * + 33 * ( 24 ) - + 14 AS col0
----
-95
62644

query I rowsort
SELECT DISTINCT - 76 + + 36 - ( ( - 85 ) ) AS col2
----
45

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

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

query I rowsort
SELECT ALL 49 * 46
----
2254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6462
SELECT DISTINCT 8 - COUNT( * ) + + MIN( + - 21 ) DIV + 36
----
7

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT 8 - COUNT ( * ) + + MIN ( + - 21 ) / + 36
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6463
SELECT 47 DIV + COUNT( ALL - 84 )
----
47

skipif mysql # not compatible
query I rowsort label-6463
SELECT 47 / + COUNT ( ALL - 84 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT 82 * 66 DIV 32 * 62
----
10478

skipif mysql # not compatible
query I rowsort label-6464
SELECT 82 * 66 / 32 * 62
----
10478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6465
SELECT DISTINCT 43 - 63 * - - 75 * - + CASE - 40 WHEN + - 38 + COALESCE ( + 45, - - COUNT( * ), + 98 ) THEN + - CAST( NULL AS SIGNED ) + 72 * NULLIF ( 5 + + AVG ( DISTINCT + 20 ), + 54 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT 43 - 63 * - - 75 * - + CASE - 40 WHEN + - 38 + COALESCE ( + 45, - - COUNT ( * ), + 98 ) THEN + - CAST ( NULL AS INTEGER ) + 72 * NULLIF ( 5 + + AVG ( DISTINCT + 20 ), + 54 ) END AS col2
----
NULL

query II rowsort
SELECT - 90 AS col1, - 2 AS col1
----
-90
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT ALL - MAX( ALL 96 ) - + + 13 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL - MAX ( ALL 96 ) - + + 13 AS col0
----
-109

query I rowsort
SELECT DISTINCT - 91 - + 44
----
-135

onlyif mysql # aggregate syntax: 
query II rowsort label-6469
SELECT + MAX( 20 ) + COUNT( * ) * 26 * + 52 * 92 AS col1, + SUM( DISTINCT 14 )
----
124404
14

skipif mysql # not compatible
query II rowsort label-6469
SELECT + MAX ( 20 ) + COUNT ( * ) * 26 * + 52 * 92 AS col1, + SUM ( DISTINCT 14 )
----
124404
14

query I rowsort
SELECT ALL - + 63 * - + 86 AS col1
----
5418

query I rowsort
SELECT 35 * + - 68 AS col0
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL - COUNT( * ) * ( MIN( DISTINCT + 55 ) ) + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - COUNT ( * ) * ( MIN ( DISTINCT + 55 ) ) + - COUNT ( * )
----
-56

query II rowsort
SELECT DISTINCT - 94 col0, 23
----
-94
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6474
SELECT - SUM( + 91 ) col1, CAST( 28 AS SIGNED ) + 9
----
-91
37

skipif mysql # not compatible
query II rowsort label-6474
SELECT - SUM ( + 91 ) col1, CAST ( 28 AS INTEGER ) + 9
----
-91
37

query I rowsort
SELECT - 99 + - 51
----
-150

query II rowsort
SELECT ALL 84 AS col1, 24 AS col1
----
84
24

query I rowsort
SELECT + 13 + - 3 * 11
----
-20

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

skipif mysql # not compatible
query I rowsort label-6478
SELECT COUNT ( * ) + + 41 * + COUNT ( * ) / + - 77 * - 30 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6479
SELECT COUNT( * ) AS col0, ( - 58 ) - 30 AS col1
----
1
-88

skipif mysql # not compatible
query II rowsort label-6479
SELECT COUNT ( * ) AS col0, ( - 58 ) - 30 AS col1
----
1
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6480
SELECT NULLIF ( - COUNT( * ), - - COUNT( + 83 ) - + 13 DIV SUM( + ( 29 ) ) + + - 72 ) + - 86 + 23 * + COALESCE ( 83 * - CASE + 33 * 41 WHEN 77 THEN NULL ELSE 68 + + SUM( ALL 59 ) * - 43 END, COUNT( * ) DIV 48 )
----
4713234

skipif mysql # not compatible
query I rowsort label-6480
SELECT NULLIF ( - COUNT ( * ), - - COUNT ( + 83 ) - + 13 / SUM ( + ( 29 ) ) + + - 72 ) + - 86 + 23 * + COALESCE ( 83 * - CASE + 33 * 41 WHEN 77 THEN NULL ELSE 68 + + SUM ( ALL 59 ) * - 43 END, COUNT ( * ) / 48 )
----
4713234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6481
SELECT ALL - 35, + 86 * CAST( + 71 AS SIGNED ) AS col2
----
-35
6106

skipif mysql # not compatible
query II rowsort label-6481
SELECT ALL - 35, + 86 * CAST ( + 71 AS INTEGER ) AS col2
----
-35
6106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT ALL - 32 + + CAST( - - 10 AS SIGNED ) * - 50
----
-532

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL - 32 + + CAST ( - - 10 AS INTEGER ) * - 50
----
-532

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT ALL - - 46 DIV - 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - - 46 / - 39 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT DISTINCT + - 16 * - 26 + + - 42 + SUM( DISTINCT - + 13 ) * - COALESCE ( + MIN( DISTINCT - 41 ), - 12 ) col0
----
-159

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT + - 16 * - 26 + + - 42 + SUM ( DISTINCT - + 13 ) * - COALESCE ( + MIN ( DISTINCT - 41 ), - 12 ) col0
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6485
SELECT ALL - 79 * - CAST( NULL AS SIGNED ) / CASE - + SUM( 13 ) WHEN + 45 THEN - - COUNT( DISTINCT + + 29 ) ELSE NULL END * - 80 + - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL - 79 * - CAST ( NULL AS INTEGER ) / CASE - + SUM ( 13 ) WHEN + 45 THEN - - COUNT ( DISTINCT + + 29 ) ELSE NULL END * - 80 + - 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT DISTINCT - COUNT( - + 97 ) * + CASE + - 0 WHEN - 52 THEN NULL WHEN - - 81 THEN SUM( ( + 84 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - COUNT ( - + 97 ) * + CASE + - 0 WHEN - 52 THEN NULL WHEN - - 81 THEN SUM ( ( + 84 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6487
SELECT - 6 DIV + + 67 + 99 * + COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6487
SELECT - 6 / + + 67 + 99 * + COUNT ( * ) AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT ALL - + 50 * + 75 + 81 DIV 99 DIV + 15
----
-3750

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL - + 50 * + 75 + 81 / 99 / + 15
----
-3750

query I rowsort
SELECT - 45 * + 91
----
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT - COALESCE ( - NULLIF ( + COUNT( * ), 50 ), + 93 - - 40, + 97 ) + - + 88 - 10 * + - 21 + + 28 * 81
----
2391

skipif mysql # not compatible
query I rowsort label-6490
SELECT - COALESCE ( - NULLIF ( + COUNT ( * ), 50 ), + 93 - - 40, + 97 ) + - + 88 - 10 * + - 21 + + 28 * 81
----
2391

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

skipif mysql # not compatible
query I rowsort label-6491
SELECT - 59 * + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT + 74 * 48 + - ( + COUNT( * ) ) AS col1
----
3551

skipif mysql # not compatible
query I rowsort label-6492
SELECT + 74 * 48 + - ( + COUNT ( * ) ) AS col1
----
3551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6493
SELECT ALL - + COUNT( * ) * + 38 * - 45 DIV 1 + - 79 + - COUNT( * ) + - + MAX( DISTINCT 77 ) + - 4 + NULLIF ( - ( - 39 ), - 27 - + 43 ) DIV - 9 AS col2
----
1545

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL - + COUNT ( * ) * + 38 * - 45 / 1 + - 79 + - COUNT ( * ) + - + MAX ( DISTINCT 77 ) + - 4 + NULLIF ( - ( - 39 ), - 27 - + 43 ) / - 9 AS col2
----
1545

query I rowsort
SELECT DISTINCT + + 4 * - 84
----
-336

query I rowsort
SELECT DISTINCT 50 * 54 AS col0
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT ALL 72 * 20 + + CASE 19 WHEN + 31 / MAX( - 61 ) * - 78 + + - 40 + + COUNT( * ) THEN NULL WHEN + + ( + COUNT( * ) ) * + 17 THEN + SUM( + 51 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL 72 * 20 + + CASE 19 WHEN + 31 / MAX ( - 61 ) * - 78 + + - 40 + + COUNT ( * ) THEN NULL WHEN + + ( + COUNT ( * ) ) * + 17 THEN + SUM ( + 51 ) END col1
----
NULL

query I rowsort
SELECT - 74 * + + 50 col2
----
-3700

query I rowsort
SELECT ALL - ( + 11 ) * + 43
----
-473

onlyif mysql # aggregate syntax: 
query II rowsort label-6499
SELECT - 91 + - - SUM( 88 ) AS col0, 57
----
-3
57

skipif mysql # not compatible
query II rowsort label-6499
SELECT - 91 + - - SUM ( 88 ) AS col0, 57
----
-3
57

query I rowsort
SELECT DISTINCT - 34 * - - 97
----
-3298

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT ALL COUNT( * ) * + + COUNT( - 10 ) * + COUNT( * ) + - - 57 + - 34 * 34 - - + 92 + + + 65 * COUNT( * )
----
-941

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL COUNT ( * ) * + + COUNT ( - 10 ) * + COUNT ( * ) + - - 57 + - 34 * 34 - - + 92 + + + 65 * COUNT ( * )
----
-941

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT - COUNT( * ) - ( - 69 )
----
68

skipif mysql # not compatible
query I rowsort label-6503
SELECT - COUNT ( * ) - ( - 69 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6504
SELECT + MAX( + ( - 5 ) ) DIV + 20 DIV 8 * - 86 * - 35
----
0

skipif mysql # not compatible
query I rowsort label-6504
SELECT + MAX ( + ( - 5 ) ) / + 20 / 8 * - 86 * - 35
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6505
SELECT + CASE + 60 WHEN + 39 THEN NULL WHEN - ( - 9 ) THEN 4 ELSE CAST( NULL AS DECIMAL ) + + + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT + CASE + 60 WHEN + 39 THEN NULL WHEN - ( - 9 ) THEN 4 ELSE CAST ( NULL AS REAL ) + + + 95 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL 66 / + + 89 * + - COUNT ( + 70 ) AS col1
----
0

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

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

query I rowsort
SELECT ALL 34 col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6509
SELECT + 61 DIV - MIN( - 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6509
SELECT + 61 / - MIN ( - 97 ) AS col0
----
0

query II rowsort
SELECT ALL 30 * - 17 AS col1, - 54
----
-510
-54

query I rowsort
SELECT + + 71 * - - 18 AS col2
----
1278

query II rowsort
SELECT - ( + 3 ), - 70 AS col2
----
-3
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6513
SELECT - + 16 DIV COALESCE ( CAST( NULL AS SIGNED ), + 89, 13 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6513
SELECT - + 16 / COALESCE ( CAST ( NULL AS INTEGER ), + 89, 13 ) AS col1
----
0

query II rowsort
SELECT - - 41 * + 72 AS col1, 40 AS col1
----
2952
40

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

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL - 35 + + 38 + + COUNT ( * ) + - - 72 * + 11
----
796

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT ALL + 44 + + + 36 AS col1, + SUM( DISTINCT + ( - + 21 ) ) + + 48 AS col1
----
80
27

skipif mysql # not compatible
query II rowsort label-6516
SELECT ALL + 44 + + + 36 AS col1, + SUM ( DISTINCT + ( - + 21 ) ) + + 48 AS col1
----
80
27

query I rowsort
SELECT - 77 * - - 91 AS col1
----
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT ALL ( 51 ) + COUNT( * ) + + 40 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL ( 51 ) + COUNT ( * ) + + 40 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6519
SELECT ALL ( - NULLIF ( - COUNT( * ), - + 47 * 1 + + 23 + CAST( + 51 AS SIGNED ) * 38 - + COALESCE ( 20, + 33 * + COUNT( * ) ) + - 32 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL ( - NULLIF ( - COUNT ( * ), - + 47 * 1 + + 23 + CAST ( + 51 AS INTEGER ) * 38 - + COALESCE ( 20, + 33 * + COUNT ( * ) ) + - 32 ) )
----
1

query I rowsort
SELECT + + 20 + + 68 - 4 AS col1
----
84

query I rowsort
SELECT - + 14 * + 39
----
-546

query I rowsort
SELECT ALL - - 26 + - 71 * + - 20 * + 39 AS col1
----
55406

query I rowsort
SELECT - + 2 * - + 84 + 29 AS col1
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT - 30 * + COUNT( - 78 ) - - 8 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6524
SELECT - 30 * + COUNT ( - 78 ) - - 8 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT + SUM( ALL - 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6525
SELECT + SUM ( ALL - 0 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL CASE - - 62 WHEN + SUM( DISTINCT - 40 ) THEN NULL WHEN 78 THEN - 9 + 66 + 73 + 47 * - 95 * - 84 END * NULLIF ( 9, - MIN( - 91 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL CASE - - 62 WHEN + SUM ( DISTINCT - 40 ) THEN NULL WHEN 78 THEN - 9 + 66 + 73 + 47 * - 95 * - 84 END * NULLIF ( 9, - MIN ( - 91 ) ) AS col0
----
NULL

query II rowsort
SELECT - 50 + - 10 - 47 AS col0, 16 * + 32 AS col2
----
-107
512

query I rowsort
SELECT ( + 16 ) col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-6529
SELECT DISTINCT + 99 AS col0, CASE + 68 WHEN - 87 THEN COALESCE ( + 36, + - 23 * - + 19 / + 72 ) END - + CASE + - 35 WHEN - - COUNT( ALL - 94 ) THEN + COUNT( * ) * + 39 END
----
99
NULL

skipif mysql # not compatible
query II rowsort label-6529
SELECT DISTINCT + 99 AS col0, CASE + 68 WHEN - 87 THEN COALESCE ( + 36, + - 23 * - + 19 / + 72 ) END - + CASE + - 35 WHEN - - COUNT ( ALL - 94 ) THEN + COUNT ( * ) * + 39 END
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT - NULLIF ( COUNT( * ), - - 70 + + + 85 + - 55 * + 82 ) * - - 45 * 77 + + - 79 AS col0
----
-3544

skipif mysql # not compatible
query I rowsort label-6530
SELECT - NULLIF ( COUNT ( * ), - - 70 + + + 85 + - 55 * + 82 ) * - - 45 * 77 + + - 79 AS col0
----
-3544

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT DISTINCT MIN( DISTINCT + + 10 ) * + - 85 + - ( + 65 )
----
-915

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT MIN ( DISTINCT + + 10 ) * + - 85 + - ( + 65 )
----
-915

query I rowsort
SELECT 58 * + 86 - - 20 col2
----
5008

query I rowsort
SELECT ALL + 58 * + + 8 AS col2
----
464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6534
SELECT - NULLIF ( - 25, + 58 / + 9 + COUNT( * ) * - NULLIF ( + ( + 52 ), + 7 * - 16 ) ) / + 49 * - 72 + CASE 46 WHEN 27 THEN - COUNT( * ) / + 83 ELSE NULL END + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT - NULLIF ( - 25, + 58 / + 9 + COUNT ( * ) * - NULLIF ( + ( + 52 ), + 7 * - 16 ) ) / + 49 * - 72 + CASE 46 WHEN 27 THEN - COUNT ( * ) / + 83 ELSE NULL END + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT - 84 * - + 17 * - 27 AS col2
----
-38556

query I rowsort
SELECT + 90 * 73
----
6570

query I rowsort
SELECT + ( + - 63 ) * - 72 + 13 * 97
----
5797

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

query I rowsort
SELECT DISTINCT - 4 * + 28 AS col1
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6541
SELECT - COUNT( * ) + + ( + CAST( + 14 AS SIGNED ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6541
SELECT - COUNT ( * ) + + ( + CAST ( + 14 AS INTEGER ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ALL - 86 * + 10 * + 64 * - COALESCE ( + + ( 38 ), - SUM( DISTINCT + + 72 ) )
----
2091520

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL - 86 * + 10 * + 64 * - COALESCE ( + + ( 38 ), - SUM ( DISTINCT + + 72 ) )
----
2091520

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6543
SELECT ALL + CAST( NULL AS SIGNED ), ( 43 ) * + ( - + 10 ) + + + 82 AS col2, - 98 AS col0
----
NULL
-348
-98

skipif mysql # not compatible
query III rowsort label-6543
SELECT ALL + CAST ( NULL AS INTEGER ), ( 43 ) * + ( - + 10 ) + + + 82 AS col2, - 98 AS col0
----
NULL
-348
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT CASE + - 85 WHEN + + 75 * - 41 * + COUNT( * ) * + ( - 60 ) * - + 56 - + NULLIF ( + - 35, + - 11 ) THEN - - 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT CASE + - 85 WHEN + + 75 * - 41 * + COUNT ( * ) * + ( - 60 ) * - + 56 - + NULLIF ( + - 35, + - 11 ) THEN - - 11 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL CASE + + COUNT( * ) WHEN CASE + 13 WHEN + 11 THEN NULL WHEN + + COUNT( * ) THEN 86 * 27 / + + COUNT( * ) / + SUM( - + 45 ) + - 20 / - + 76 * + COUNT( * ) ELSE NULL END THEN + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL CASE + + COUNT ( * ) WHEN CASE + 13 WHEN + 11 THEN NULL WHEN + + COUNT ( * ) THEN 86 * 27 / + + COUNT ( * ) / + SUM ( - + 45 ) + - 20 / - + 76 * + COUNT ( * ) ELSE NULL END THEN + 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT + 71 * - COUNT( * ) + - 20 AS col0, + SUM( + 40 ) * 29 * + - 64 + - 71 + - ( + ( + ( 35 ) ) )
----
-91
-74346

skipif mysql # not compatible
query II rowsort label-6546
SELECT + 71 * - COUNT ( * ) + - 20 AS col0, + SUM ( + 40 ) * 29 * + - 64 + - 71 + - ( + ( + ( 35 ) ) )
----
-91
-74346

query I rowsort
SELECT CASE 55 WHEN + + ( - - 93 ) * 87 * 24 * + + 54 + 80 * - ( + 35 ) + + 29 THEN 47 WHEN + 70 * 12 THEN NULL END * 48 + - 97
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6548
SELECT ALL + 8, 39 + CASE - COUNT( * ) WHEN + 61 + + 91 THEN NULL WHEN + 94 THEN ( + 5 ) END + + 30 AS col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-6548
SELECT ALL + 8, 39 + CASE - COUNT ( * ) WHEN + 61 + + 91 THEN NULL WHEN + 94 THEN ( + 5 ) END + + 30 AS col0
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT - COUNT( * ) * + - 93 + - 59 + - MIN( - 45 )
----
79

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT - COUNT ( * ) * + - 93 + - 59 + - MIN ( - 45 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6550
SELECT ALL - - COALESCE ( COALESCE ( - SUM( - CAST( + + 88 AS SIGNED ) ), + 61 ), + 66 + + 55 ) * COUNT( * ) + - 20 * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - - COALESCE ( COALESCE ( - SUM ( - CAST ( + + 88 AS INTEGER ) ), + 61 ), + 66 + + 55 ) * COUNT ( * ) + - 20 * + COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT + NULLIF ( - 24, + MIN( + 79 ) + + COALESCE ( + 83, + 54 ) ) + 91
----
67

skipif mysql # not compatible
query I rowsort label-6551
SELECT + NULLIF ( - 24, + MIN ( + 79 ) + + COALESCE ( + 83, + 54 ) ) + 91
----
67

query II rowsort
SELECT - + 98, 34 * - 83 * + 7 col0
----
-98
-19754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6553
SELECT ALL + + COALESCE ( + + COUNT( * ), - 82 ) * + CASE CASE - 65 WHEN 56 THEN - + COALESCE ( + 67, COUNT( * ) * ( - + 30 ) * + 56 + + 16 * - 87 + - ( + 11 ), 73, ( SUM( CAST( 15 AS SIGNED ) ) ) * + 33 ) ELSE COALESCE ( + 81, + ( - 34 ) ) END WHEN 37 THEN 71 / - 99 WHEN - CAST( + 2 AS SIGNED ) THEN NULL WHEN - 64 * - ( 3 ) THEN NULL END + + 73 + - SUM( DISTINCT 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL + + COALESCE ( + + COUNT ( * ), - 82 ) * + CASE CASE - 65 WHEN 56 THEN - + COALESCE ( + 67, COUNT ( * ) * ( - + 30 ) * + 56 + + 16 * - 87 + - ( + 11 ), 73, ( SUM ( CAST ( 15 AS INTEGER ) ) ) * + 33 ) ELSE COALESCE ( + 81, + ( - 34 ) ) END WHEN 37 THEN 71 / - 99 WHEN - CAST ( + 2 AS INTEGER ) THEN NULL WHEN - 64 * - ( 3 ) THEN NULL END + + 73 + - SUM ( DISTINCT 22 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6554
SELECT DISTINCT - 48 * + 50 * + 33 + - 33 + + + COUNT( * ) DIV 73 * + 33 * - + COUNT( * )
----
-79233

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT - 48 * + 50 * + 33 + - 33 + + + COUNT ( * ) / 73 * + 33 * - + COUNT ( * )
----
-79233

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

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL SUM ( ALL - - 17 )
----
17

query I rowsort
SELECT + 61 + - 22
----
39

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

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

query II rowsort
SELECT DISTINCT + 39, 74 + ( + 20 ) - - - 0 AS col1
----
39
94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6560
SELECT ALL 53 * 79 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6562
SELECT - CAST( NULL AS SIGNED ) + 60 / - 50 AS col0, + 1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6562
SELECT - CAST ( NULL AS INTEGER ) + 60 / - 50 AS col0, + 1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT - 50 * + CASE - 96 WHEN + 78 THEN AVG ( - + 58 ) - - + 92 * 30 + 84 + + ( - COALESCE ( + CASE + 64 WHEN CASE 59 WHEN 39 THEN NULL WHEN + 95 THEN + 49 WHEN - MAX( ALL - 46 ) + - 33 * CASE + 40 WHEN + 5 - 23 * 44 THEN + 30 END THEN NULL END * + 52 THEN NULL ELSE 81 END, ( - MIN( ALL + 53 ) ) * 86 + 79 / 81, - ( 71 ) * 75 + 73 ) ) WHEN - COUNT( * ) THEN NULL ELSE NULL END + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT - 50 * + CASE - 96 WHEN + 78 THEN AVG ( - + 58 ) - - + 92 * 30 + 84 + + ( - COALESCE ( + CASE + 64 WHEN CASE 59 WHEN 39 THEN NULL WHEN + 95 THEN + 49 WHEN - MAX ( ALL - 46 ) + - 33 * CASE + 40 WHEN + 5 - 23 * 44 THEN + 30 END THEN NULL END * + 52 THEN NULL ELSE 81 END, ( - MIN ( ALL + 53 ) ) * 86 + 79 / 81, - ( 71 ) * 75 + 73 ) ) WHEN - COUNT ( * ) THEN NULL ELSE NULL END + + 23
----
NULL

query II rowsort
SELECT - - 93 AS col1, ( 2 )
----
93
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6565
SELECT ALL + NULLIF ( - 91, 95 * + SUM( ALL 83 ) - + 51 + + ( + - 30 ) ), - CAST( NULL AS SIGNED ) * + 54 + + 20 AS col0
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-6565
SELECT ALL + NULLIF ( - 91, 95 * + SUM ( ALL 83 ) - + 51 + + ( + - 30 ) ), - CAST ( NULL AS INTEGER ) * + 54 + + 20 AS col0
----
-91
NULL

query I rowsort
SELECT DISTINCT 1 col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6567
SELECT ALL + 89 * - COUNT( * ) DIV COUNT( - 0 ), + MIN( ALL + 90 ) AS col2
----
-89
90

skipif mysql # not compatible
query II rowsort label-6567
SELECT ALL + 89 * - COUNT ( * ) / COUNT ( - 0 ), + MIN ( ALL + 90 ) AS col2
----
-89
90

query II rowsort
SELECT DISTINCT + 80 * + 66 col0, 34
----
5280
34

query I rowsort
SELECT DISTINCT 91 - + 38 + - 44 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6570
SELECT ALL 26 * - 69, - CAST( NULL AS SIGNED ) AS col0
----
-1794
NULL

skipif mysql # not compatible
query II rowsort label-6570
SELECT ALL 26 * - 69, - CAST ( NULL AS INTEGER ) AS col0
----
-1794
NULL

query I rowsort
SELECT CASE + 36 WHEN 46 THEN NULL WHEN 35 THEN 67 - - 29 END * - 51
----
NULL

query I rowsort
SELECT DISTINCT + 72 * - + ( - + ( 48 ) )
----
3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6573
SELECT - CAST( NULL AS SIGNED ) / COUNT( - 40 ) + - + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT - CAST ( NULL AS INTEGER ) / COUNT ( - 40 ) + - + 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT ALL - COALESCE ( - - 68, COUNT( * ) )
----
-68

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL - COALESCE ( - - 68, COUNT ( * ) )
----
-68

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

query I rowsort
SELECT DISTINCT 25 * - - 18 AS col2
----
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6577
SELECT ALL + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col1, 9 col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-6577
SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1, 9 col1
----
NULL
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6578
SELECT 98 DIV + 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6578
SELECT 98 / + 76 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT COUNT( * ) + MAX( ALL + 6 )
----
7

skipif mysql # not compatible
query I rowsort label-6579
SELECT COUNT ( * ) + MAX ( ALL + 6 )
----
7

query I rowsort
SELECT ALL + 69 + + 87 AS col2
----
156

query I rowsort
SELECT ALL - 10 + 16 + 33 * + 52 AS col1
----
1722

query I rowsort
SELECT NULLIF ( - 79, + 16 * 69 + + 42 )
----
-79

query I rowsort
SELECT ALL - 19 * + 64 AS col2
----
-1216

onlyif mysql # aggregate syntax: 
query II rowsort label-6584
SELECT + 32 * COUNT( * ) col1, - 35 + - + 61 AS col2
----
32
-96

skipif mysql # not compatible
query II rowsort label-6584
SELECT + 32 * COUNT ( * ) col1, - 35 + - + 61 AS col2
----
32
-96

query I rowsort
SELECT ALL + 8 + 80 + - - 76 AS col1
----
164

query I rowsort
SELECT ALL CASE 51 WHEN - - 86 * + 75 + - 85 + + + 49 THEN NULL ELSE - 17 * + 59 END
----
-1003

query I rowsort
SELECT ALL ( 77 ) + - 76
----
1

query I rowsort
SELECT - 98 * + 9 * + + 20 AS col1
----
-17640

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT - MIN( CASE - 43 WHEN - 89 THEN NULL WHEN 29 THEN NULL ELSE 23 END ) * - 62
----
1426

skipif mysql # not compatible
query I rowsort label-6589
SELECT - MIN ( CASE - 43 WHEN - 89 THEN NULL WHEN 29 THEN NULL ELSE 23 END ) * - 62
----
1426

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT ALL 65 DIV + + 10 - + 77 * 79
----
-6077

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL 65 / + + 10 - + 77 * 79
----
-6077

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

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

query I rowsort
SELECT DISTINCT 83 - - 55 AS col2
----
138

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6595
SELECT - COALESCE ( + ( + + 73 ), + + 82, - 71 * 46 DIV - 10 + - - 71 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6595
SELECT - COALESCE ( + ( + + 73 ), + + 82, - 71 * 46 / - 10 + - - 71 ) AS col2
----
-73

query I rowsort
SELECT 76 * + 82 AS col2
----
6232

query I rowsort
SELECT 47 + + 37 AS col2
----
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT AVG ( DISTINCT - 68 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT AVG ( DISTINCT - 68 ) * - + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6600
SELECT ( COUNT ( * ) ) * 69
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL - SUM( DISTINCT - - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL - SUM ( DISTINCT - - 11 )
----
-11

query I rowsort
SELECT ( - 2 ) * 20 * 22 col2
----
-880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6604
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - MAX( 48 ) / + NULLIF ( + 58, + 59 + + - 24 * - ( + COUNT( * ) ) ) + - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - MAX ( 48 ) / + NULLIF ( + 58, + 59 + + - 24 * - ( + COUNT ( * ) ) ) + - - 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6605
SELECT MAX( DISTINCT + ( 74 ) ) AS col1, - 19
----
74
-19

skipif mysql # not compatible
query II rowsort label-6605
SELECT MAX ( DISTINCT + ( 74 ) ) AS col1, - 19
----
74
-19

query I rowsort
SELECT - 78 * + 25 + - + 18 * + - 82 AS col1
----
-474

query I rowsort
SELECT ( + - 88 ) * - 26 AS col2
----
2288

query I rowsort
SELECT 81 + 72 col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT 32 * 40 - + COUNT( DISTINCT + + 90 ) AS col2
----
1279

skipif mysql # not compatible
query I rowsort label-6609
SELECT 32 * 40 - + COUNT ( DISTINCT + + 90 ) AS col2
----
1279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6610
SELECT CAST( - - 38 AS SIGNED ) + + 31 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6610
SELECT CAST ( - - 38 AS INTEGER ) + + 31 AS col2
----
69

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6612
SELECT ALL + 23 + + 30 * + 21 DIV + COUNT( * ) AS col0
----
653

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL + 23 + + 30 * + 21 / + COUNT ( * ) AS col0
----
653

query I rowsort
SELECT DISTINCT 68 + - 58 + + + 36
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT - + 84 + + COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-6614
SELECT - + 84 + + COUNT ( * ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6615
SELECT ALL - + CAST( NULL AS SIGNED ) + - 37 + + - SUM( COALESCE ( + 65, - 19 * + 63 * 37 ) ) + - + 89 + + 41 + + NULLIF ( + + 34, + + 68 * 14 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - + CAST ( NULL AS INTEGER ) + - 37 + + - SUM ( COALESCE ( + 65, - 19 * + 63 * 37 ) ) + - + 89 + + 41 + + NULLIF ( + + 34, + + 68 * 14 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6616
SELECT - 24 * + 76 * - 74 * + 80 * - - 35 + - 48 * COALESCE ( 36, 19, CAST( NULL AS SIGNED ) - + 36 * 27 )
----
377931072

skipif mysql # not compatible
query I rowsort label-6616
SELECT - 24 * + 76 * - 74 * + 80 * - - 35 + - 48 * COALESCE ( 36, 19, CAST ( NULL AS INTEGER ) - + 36 * 27 )
----
377931072

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT - COUNT( ALL + + 84 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6617
SELECT - COUNT ( ALL + + 84 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6618
SELECT ALL - COUNT( * ) * 80 DIV - 87 * + 99 DIV 47 * 36 * - 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL - COUNT ( * ) * 80 / - 87 * + 99 / 47 * 36 * - 1 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT - - 16 + - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6619
SELECT - - 16 + - COUNT ( * ) AS col0
----
15

query I rowsort
SELECT - - 58 * 61
----
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT ALL - COUNT( ALL + 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - COUNT ( ALL + 36 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT DISTINCT COUNT( DISTINCT - 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT COUNT ( DISTINCT - 47 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT + - 7 * 64 * + - COUNT( * ) + COUNT( * )
----
449

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT + - 7 * 64 * + - COUNT ( * ) + COUNT ( * )
----
449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6624
SELECT - 46 + - 62 + - - 52 col2, COUNT( + - CAST( - ( ( - + 13 ) ) AS SIGNED ) ) * 93 + COALESCE ( + - 38, + 6 * + ( COALESCE ( CAST( COUNT( * ) AS SIGNED ), CASE - 1 WHEN SUM( 11 ) THEN + CASE WHEN NOT 28 IS NULL THEN NULL ELSE 2 END WHEN 19 THEN NULL WHEN 49 THEN NULL END * 8 ) ) - COUNT( * ), COUNT( * ) + 4 ) * CAST( COUNT( * ) AS SIGNED )
----
-56
55

skipif mysql # not compatible
query II rowsort label-6624
SELECT - 46 + - 62 + - - 52 col2, COUNT ( + - CAST ( - ( ( - + 13 ) ) AS INTEGER ) ) * 93 + COALESCE ( + - 38, + 6 * + ( COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), CASE - 1 WHEN SUM ( 11 ) THEN + CASE WHEN NOT 28 IS NULL THEN NULL ELSE 2 END WHEN 19 THEN NULL WHEN 49 THEN NULL END * 8 ) ) - COUNT ( * ), COUNT ( * ) + 4 ) * CAST ( COUNT ( * ) AS INTEGER )
----
-56
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT - COUNT( - 54 ) + - 91 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6626
SELECT - COUNT ( - 54 ) + - 91 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT - 68 + + + ( - COUNT( * ) ) + + + 0
----
-69

skipif mysql # not compatible
query I rowsort label-6627
SELECT - 68 + + + ( - COUNT ( * ) ) + + + 0
----
-69

query I rowsort
SELECT DISTINCT + 69 * 55
----
3795

onlyif mysql # aggregate syntax: 
query II rowsort label-6629
SELECT + COUNT( * ) + - + COUNT( * ) AS col1, + 24 * + MIN( DISTINCT + 4 ) + 65
----
0
161

skipif mysql # not compatible
query II rowsort label-6629
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col1, + 24 * + MIN ( DISTINCT + 4 ) + 65
----
0
161

query I rowsort
SELECT - 91 * 84 AS col1
----
-7644

query I rowsort
SELECT + 97 + - 36 * 69 AS col0
----
-2387

query I rowsort
SELECT + 73 + - + 87 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6633
SELECT 37 col1, ( - MIN( DISTINCT - 84 ) )
----
37
84

skipif mysql # not compatible
query II rowsort label-6633
SELECT 37 col1, ( - MIN ( DISTINCT - 84 ) )
----
37
84

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

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT + 17 + - - COUNT ( * ) AS col1
----
18

query I rowsort
SELECT ALL 73 * - 40
----
-2920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6636
SELECT ALL COUNT( * ) + + 12 - + 24 + + + 6 * - 98 + 35 DIV + 46 * + + 92 DIV COUNT( * ) - - 3 AS col1
----
-596

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL COUNT ( * ) + + 12 - + 24 + + + 6 * - 98 + 35 / + 46 * + + 92 / COUNT ( * ) - - 3 AS col1
----
-596

query I rowsort
SELECT ALL + 99 + + 3 + - - 1
----
103

query I rowsort
SELECT DISTINCT - 45 * - ( + + 19 ) AS col1
----
855

onlyif mysql # DIV for integer division: 
query I rowsort label-6639
SELECT + 14 DIV - - 44
----
0

skipif mysql # not compatible
query I rowsort label-6639
SELECT + 14 / - - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL - 58 * 29 + + 33 * + COUNT( * ) * + 79 AS col1
----
925

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL - 58 * 29 + + 33 * + COUNT ( * ) * + 79 AS col1
----
925

query I rowsort
SELECT + NULLIF ( + 97, 95 ) col0
----
97

query I rowsort
SELECT ALL 37 * - 82 AS col0
----
-3034

query I rowsort
SELECT + 83 * 25
----
2075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6644
SELECT ALL + 80 * 42 * 91 + - + 13 * 61 + - COUNT( * ) + 84 - + CAST( + 23 AS SIGNED ) * - 62 AS col1
----
306476

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL + 80 * 42 * 91 + - + 13 * 61 + - COUNT ( * ) + 84 - + CAST ( + 23 AS INTEGER ) * - 62 AS col1
----
306476

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

skipif mysql # not compatible
query II rowsort label-6645
SELECT + COUNT ( * ) col2, - ( + 45 )
----
1
-45

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6647
SELECT + SUM( ALL + 34 ) * - 66 * 13 * + - 34 DIV - 34 AS col1, + 65
----
-29172
65

skipif mysql # not compatible
query II rowsort label-6647
SELECT + SUM ( ALL + 34 ) * - 66 * 13 * + - 34 / - 34 AS col1, + 65
----
-29172
65

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT ALL + 31 * - - 1 + 37 DIV - 76
----
31

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + 31 * - - 1 + 37 / - 76
----
31

query I rowsort
SELECT + 71 - 50 AS col0
----
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT + - 13 * - SUM( DISTINCT + 88 ) AS col0
----
1144

skipif mysql # not compatible
query I rowsort label-6651
SELECT + - 13 * - SUM ( DISTINCT + 88 ) AS col0
----
1144

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT ALL 97 * + + 81 - - 83 DIV + - 60 AS col2
----
7856

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL 97 * + + 81 - - 83 / + - 60 AS col2
----
7856

query II rowsort
SELECT 66, 45 AS col0
----
66
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6655
SELECT + COUNT( * ) * + - ( 62 ) DIV 53 + 28 + NULLIF ( + + 44, 77 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6655
SELECT + COUNT ( * ) * + - ( 62 ) / 53 + 28 + NULLIF ( + + 44, 77 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT + 41 * COUNT( * ) * - 8 col0
----
-328

skipif mysql # not compatible
query I rowsort label-6656
SELECT + 41 * COUNT ( * ) * - 8 col0
----
-328

query II rowsort
SELECT 72 AS col1, + 88 * + 63
----
72
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT - - 31 + 11 + - - SUM( ALL 14 )
----
56

skipif mysql # not compatible
query I rowsort label-6658
SELECT - - 31 + 11 + - - SUM ( ALL 14 )
----
56

query I rowsort
SELECT ALL - 25 * + - 32 AS col0
----
800

query I rowsort
SELECT - + ( + 68 ) + 34 + - + ( + - 2 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-6661
SELECT ALL SUM( DISTINCT 77 ) * + ( + 24 ) AS col2, COUNT( * ) AS col1
----
1848
1

skipif mysql # not compatible
query II rowsort label-6661
SELECT ALL SUM ( DISTINCT 77 ) * + ( + 24 ) AS col2, COUNT ( * ) AS col1
----
1848
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT MIN( ALL 75 )
----
75

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT MIN ( ALL 75 )
----
75

query II rowsort
SELECT DISTINCT - 50, 5 AS col1
----
-50
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6664
SELECT ALL - - 92 DIV - 18 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - - 92 / - 18 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6665
SELECT ALL + 30 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL + 30 / + 63
----
0

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

query II rowsort
SELECT - 68 * - 77 col0, 87 AS col2
----
5236
87

query I rowsort
SELECT - 85 - + ( + 97 )
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT - MAX( DISTINCT - ( - 77 ) ) * + 96
----
-7392

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT - MAX ( DISTINCT - ( - 77 ) ) * + 96
----
-7392

query I rowsort
SELECT ALL + 4 + + 86
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL 67 + MAX( - + 84 ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL 67 + MAX ( - + 84 ) col0
----
-17

query I rowsort
SELECT ALL - 40 + - 60 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT - 38 * + CASE - 87 WHEN - + 81 * - + 8 + + + 48 + + 1 * - COUNT( * ) - + 51 - + - 35 * 51 THEN - 21 + + 79 ELSE NULL END * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT - 38 * + CASE - 87 WHEN - + 81 * - + 8 + + + 48 + + 1 * - COUNT ( * ) - + 51 - + - 35 * 51 THEN - 21 + + 79 ELSE NULL END * 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6674
SELECT ALL - COUNT( * ) + + 43 AS col1, 17
----
42
17

skipif mysql # not compatible
query II rowsort label-6674
SELECT ALL - COUNT ( * ) + + 43 AS col1, 17
----
42
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT ALL - COALESCE ( + + 42, + - CAST( NULL AS SIGNED ) ) + 47
----
5

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL - COALESCE ( + + 42, + - CAST ( NULL AS INTEGER ) ) + 47
----
5

query I rowsort
SELECT - 2 + - - ( - 17 )
----
-19

query I rowsort
SELECT - 8 * + 85 * - 44 AS col2
----
29920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6678
SELECT - CAST( - COUNT( * ) AS SIGNED ) + + 69
----
70

skipif mysql # not compatible
query I rowsort label-6678
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + + 69
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT + CASE - 73 WHEN + COUNT( * ) / 95 * + 64 + + 86 / MAX( ALL - - 17 ) - 61 THEN - 24 ELSE MIN( DISTINCT - 85 ) END AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-6679
SELECT + CASE - 73 WHEN + COUNT ( * ) / 95 * + 64 + + 86 / MAX ( ALL - - 17 ) - 61 THEN - 24 ELSE MIN ( DISTINCT - 85 ) END AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6680
SELECT ALL + 59 DIV - 60 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL + 59 / - 60 + - COUNT ( * ) AS col1
----
-1

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

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

query I rowsort
SELECT 26 + 96 + + 79
----
201

query I rowsort
SELECT ALL + 20 * - 77
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT MAX( - - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-6684
SELECT MAX ( - - 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT + - CASE WHEN NOT 13 IS NOT NULL THEN + 10 END * 67 + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT + - CASE WHEN NOT 13 IS NOT NULL THEN + 10 END * 67 + + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL + 96 - + 75 + 7 * 57 * + COALESCE ( + ( + ( + 80 ) ), 86 )
----
31941

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6688
SELECT ALL NULLIF ( 60, + 87 * + NULLIF ( - 48, ( + COUNT( * ) ) ) ) DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL NULLIF ( 60, + 87 * + NULLIF ( - 48, ( + COUNT ( * ) ) ) ) / - 84 AS col0
----
0

query I rowsort
SELECT 41 * - 12 * - + 30 + - - 87 - + - 4 * 76 + - 79
----
15072

query I rowsort
SELECT DISTINCT - + 54
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6691
SELECT DISTINCT 20 * - CAST( NULL AS SIGNED ) * COUNT( - 76 ) * 71 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT 20 * - CAST ( NULL AS INTEGER ) * COUNT ( - 76 ) * 71 col1
----
NULL

query I rowsort
SELECT - - 13 col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6693
SELECT ALL + 20 * + CASE + 36 WHEN + 25 THEN CAST( 78 AS SIGNED ) END * + + COUNT( * ) + - - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL + 20 * + CASE + 36 WHEN + 25 THEN CAST ( 78 AS INTEGER ) END * + + COUNT ( * ) + - - 95 AS col1
----
NULL

query I rowsort
SELECT ALL 56 + - 28 AS col0
----
28

query I rowsort
SELECT ALL 26 * - 30 col0
----
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6696
SELECT CASE - + 21 WHEN + CAST( NULL AS SIGNED ) THEN 58 ELSE NULL END + + + 12 / + - 9 - - - CAST( NULL AS SIGNED ) / + 81 / 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT CASE - + 21 WHEN + CAST ( NULL AS INTEGER ) THEN 58 ELSE NULL END + + + 12 / + - 9 - - - CAST ( NULL AS INTEGER ) / + 81 / 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT ALL + SUM( - + 94 ) + COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL + SUM ( - + 94 ) + COUNT ( * ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL 20 + 47 + + COUNT( * ) * + 37
----
104

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL 20 + 47 + + COUNT ( * ) * + 37
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT 7 + + NULLIF ( + COUNT( * ), ( - 35 ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6699
SELECT 7 + + NULLIF ( + COUNT ( * ), ( - 35 ) ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT 17 + - COALESCE ( + - 95, 58 * 15 - COUNT( * ) )
----
112

skipif mysql # not compatible
query I rowsort label-6700
SELECT 17 + - COALESCE ( + - 95, 58 * 15 - COUNT ( * ) )
----
112

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

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

query II rowsort
SELECT 86, - 31 + - 14 col1
----
86
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT 26 + + MAX( - 38 ) * 53 * - 90 * - 72 AS col2
----
-13050694

skipif mysql # not compatible
query I rowsort label-6703
SELECT 26 + + MAX ( - 38 ) * 53 * - 90 * - 72 AS col2
----
-13050694

query I rowsort
SELECT 36 + 83 col2
----
119

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

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

query I rowsort
SELECT 16 * - 51
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL 54 - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL 54 - COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT COALESCE ( - 94, - 71 ) * + - COALESCE ( - 64, + 90 ) + + - 37 AS col0
----
-6053

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6710
SELECT ALL + COUNT( * ) - - 70 * 8 * CAST( + COUNT( * ) AS SIGNED )
----
561

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + COUNT ( * ) - - 70 * 8 * CAST ( + COUNT ( * ) AS INTEGER )
----
561

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

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

query I rowsort
SELECT 42 * + 20
----
840

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

skipif mysql # not compatible
query II rowsort label-6713
SELECT 21 AS col2, COUNT ( * ) AS col2
----
21
1

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

query II rowsort
SELECT + 11, - NULLIF ( + - 52, - + 10 ) AS col1
----
11
52

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6717
SELECT 90 * - SUM( + 23 ) AS col1, - ( + 5 )
----
-2070
-5

skipif mysql # not compatible
query II rowsort label-6717
SELECT 90 * - SUM ( + 23 ) AS col1, - ( + 5 )
----
-2070
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT COUNT( * ) * 26 col0
----
26

skipif mysql # not compatible
query I rowsort label-6718
SELECT COUNT ( * ) * 26 col0
----
26

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6721
SELECT CAST( NULL AS DECIMAL ) * - 52 * + 61 * - COUNT( * ) + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT CAST ( NULL AS REAL ) * - 52 * + 61 * - COUNT ( * ) + - 46
----
NULL

query I rowsort
SELECT DISTINCT 38 * 5
----
190

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

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

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

query I rowsort
SELECT 92 * + + 93
----
8556

query I rowsort
SELECT DISTINCT + 82 * - 58 * - 6 * - 93 AS col1
----
-2653848

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT MIN( 18 ) + + 98 + - ( - COUNT( * ) ) + + 32 * - + 94 AS col1
----
-2891

skipif mysql # not compatible
query I rowsort label-6727
SELECT MIN ( 18 ) + + 98 + - ( - COUNT ( * ) ) + + 32 * - + 94 AS col1
----
-2891

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

query I rowsort
SELECT ALL - 32 + + 71
----
39

query I rowsort
SELECT + 1 * + 13 AS col0
----
13

query I rowsort
SELECT DISTINCT + + 16 + + 68 - + 0
----
84

query I rowsort
SELECT 61 * 75 AS col2
----
4575

onlyif mysql # aggregate syntax: 
query II rowsort label-6733
SELECT DISTINCT MAX( DISTINCT 68 ) AS col1, 1 AS col0
----
68
1

skipif mysql # not compatible
query II rowsort label-6733
SELECT DISTINCT MAX ( DISTINCT 68 ) AS col1, 1 AS col0
----
68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT NULLIF ( - 15, + COUNT( * ) ) * + ( + 93 ) * - 55 col2
----
76725

skipif mysql # not compatible
query I rowsort label-6734
SELECT NULLIF ( - 15, + COUNT ( * ) ) * + ( + 93 ) * - 55 col2
----
76725

query I rowsort
SELECT ALL 14 + + - 42 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT DISTINCT COUNT( * ) - + 37 + + + 10 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT COUNT ( * ) - + 37 + + + 10 AS col0
----
-26

query I rowsort
SELECT DISTINCT 1 - - 99 AS col0
----
100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT + COUNT( * ) * 77 * + + 72
----
5544

skipif mysql # not compatible
query I rowsort label-6739
SELECT + COUNT ( * ) * 77 * + + 72
----
5544

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

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

query II rowsort
SELECT + 89 + 22, 98 AS col0
----
111
98

query I rowsort
SELECT - 95 - 52
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-6743
SELECT DISTINCT ( + 36 ) DIV + ( 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT ( + 36 ) / + ( 35 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6744
SELECT + 38 + + 95 AS col1, 70 + + - COUNT( * ) - - MIN( DISTINCT 82 ) - 36 / - - CASE - 22 WHEN + + 93 THEN CAST( - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS DECIMAL ) ELSE NULL END * + + 98 + + + NULLIF ( 18, - 96 )
----
133
NULL

skipif mysql # not compatible
query II rowsort label-6744
SELECT + 38 + + 95 AS col1, 70 + + - COUNT ( * ) - - MIN ( DISTINCT 82 ) - 36 / - - CASE - 22 WHEN + + 93 THEN CAST ( - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS REAL ) ELSE NULL END * + + 98 + + + NULLIF ( 18, - 96 )
----
133
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6745
SELECT + - 49 DIV - 68 * + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6745
SELECT + - 49 / - 68 * + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT DISTINCT - COUNT( * ) * - 82 * + ( 81 )
----
6642

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT - COUNT ( * ) * - 82 * + ( 81 )
----
6642

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6748
SELECT - COUNT( ALL + 72 ) DIV + - ( + + 26 )
----
0

skipif mysql # not compatible
query I rowsort label-6748
SELECT - COUNT ( ALL + 72 ) / + - ( + + 26 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6749
SELECT DISTINCT + + CASE - 23 WHEN 52 + - - 36 + - - ( 42 ) THEN NULL WHEN + 23 / - + 87 + 45 * CAST( + - 71 AS SIGNED ) THEN + - 98 WHEN + - 97 * - + 57 THEN NULL WHEN + + 75 THEN - COUNT( * ) + - 20 END * - - 15 + + MAX( - 59 ) * COALESCE ( + 85, - 12 + - 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT + + CASE - 23 WHEN 52 + - - 36 + - - ( 42 ) THEN NULL WHEN + 23 / - + 87 + 45 * CAST ( + - 71 AS INTEGER ) THEN + - 98 WHEN + - 97 * - + 57 THEN NULL WHEN + + 75 THEN - COUNT ( * ) + - 20 END * - - 15 + + MAX ( - 59 ) * COALESCE ( + 85, - 12 + - 82 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 37 * + 31 * 53 * + 29 * - 93 + + 50
----
-163953277

query I rowsort
SELECT + ( + 20 ) * - 51 AS col2
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT DISTINCT + COUNT( * ) * 31 + - 14 * - 13 * + 19 * - + 59
----
-203991

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT + COUNT ( * ) * 31 + - 14 * - 13 * + 19 * - + 59
----
-203991

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ALL 93 * + - 5 + - 23 - COUNT( * ) * + 8 AS col0
----
-496

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL 93 * + - 5 + - 23 - COUNT ( * ) * + 8 AS col0
----
-496

query I rowsort
SELECT ALL ( - - 73 ) * + 19 AS col2
----
1387

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

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

query I rowsort
SELECT - 32 - + 41 AS col2
----
-73

query I rowsort
SELECT DISTINCT - 0 * - - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT + 45 * - COUNT( ALL - + 96 ) + - 65
----
-110

skipif mysql # not compatible
query I rowsort label-6758
SELECT + 45 * - COUNT ( ALL - + 96 ) + - 65
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT + 8 - CAST( NULL AS SIGNED ) * - 76 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT + 8 - CAST ( NULL AS INTEGER ) * - 76 col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6761
SELECT ALL - MAX( DISTINCT + 99 ) * - 62 AS col1, 41 + + COUNT( * ) - 26 - - + COALESCE ( - COUNT( * ), ( - - 15 ), + 73 ) * CAST( + COUNT( * ) AS SIGNED ) * - 42 * - 88 + + + 0
----
6138
-3680

skipif mysql # not compatible
query II rowsort label-6761
SELECT ALL - MAX ( DISTINCT + 99 ) * - 62 AS col1, 41 + + COUNT ( * ) - 26 - - + COALESCE ( - COUNT ( * ), ( - - 15 ), + 73 ) * CAST ( + COUNT ( * ) AS INTEGER ) * - 42 * - 88 + + + 0
----
6138
-3680

onlyif mysql # aggregate syntax: 
query II rowsort label-6762
SELECT COUNT( * ), 45 * - 9 col0
----
1
-405

skipif mysql # not compatible
query II rowsort label-6762
SELECT COUNT ( * ), 45 * - 9 col0
----
1
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT SUM( + + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-6763
SELECT SUM ( + + 93 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT - 73 + - 57 DIV 20 + - 28 AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-6764
SELECT - 73 + - 57 / 20 + - 28 AS col1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT ALL + COUNT( * ) - 81 + 15
----
-65

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL + COUNT ( * ) - 81 + 15
----
-65

query I rowsort
SELECT ALL ( - 51 ) col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6767
SELECT - 49 + + CAST( - + ( 52 ) AS SIGNED ) AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-6767
SELECT - 49 + + CAST ( - + ( 52 ) AS INTEGER ) AS col1
----
-101

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

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

query I rowsort
SELECT + 42 * 65 AS col1
----
2730

query I rowsort
SELECT + 19 + - + 32 * - 20 + COALESCE ( - 94, - + 64 * - 68 * 20, + 86, - + 78 * 58 + 4 - - ( + 43 ) )
----
565

onlyif mysql # aggregate syntax: 
query II rowsort label-6772
SELECT ALL 35 AS col1, + MAX( + - 45 )
----
35
-45

skipif mysql # not compatible
query II rowsort label-6772
SELECT ALL 35 AS col1, + MAX ( + - 45 )
----
35
-45

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

skipif mysql # not compatible
query I rowsort label-6773
SELECT - 6 * - COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT - NULLIF ( ( - COUNT( * ) ), 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6774
SELECT - NULLIF ( ( - COUNT ( * ) ), 46 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT DISTINCT NULLIF ( - - MIN( + + ( 31 ) ), 2 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT NULLIF ( - - MIN ( + + ( 31 ) ), 2 ) AS col2
----
31

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

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

query I rowsort
SELECT + 71 * + 81 AS col1
----
5751

query I rowsort
SELECT ALL 41 + - + 78 AS col1
----
-37

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

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

query II rowsort
SELECT - 8, + 71 AS col1
----
-8
71

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

query I rowsort
SELECT - + 87 * + 11 AS col0
----
-957

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

query II rowsort
SELECT + - 22 AS col1, 62 AS col2
----
-22
62

query I rowsort
SELECT + + COALESCE ( 46, 90, + 78 ) - + - 52
----
98

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

query I rowsort
SELECT + - 52 * - + 72
----
3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6789
SELECT ALL + - 78 * MIN( ALL 36 ) DIV + SUM( ALL - - CAST( + 69 AS SIGNED ) ) + - 69 * - 51
----
3479

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL + - 78 * MIN ( ALL 36 ) / + SUM ( ALL - - CAST ( + 69 AS INTEGER ) ) + - 69 * - 51
----
3479

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT - 68 - COUNT( * ) * COUNT( ALL - - ( - 10 ) ) + - ( 82 ) AS col1, - 86 AS col1
----
-151
-86

skipif mysql # not compatible
query II rowsort label-6792
SELECT - 68 - COUNT ( * ) * COUNT ( ALL - - ( - 10 ) ) + - ( 82 ) AS col1, - 86 AS col1
----
-151
-86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6793
SELECT - 85 + 42 - - + CAST( + 45 AS SIGNED ) DIV + + 67 + 65
----
22

skipif mysql # not compatible
query I rowsort label-6793
SELECT - 85 + 42 - - + CAST ( + 45 AS INTEGER ) / + + 67 + 65
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL + COUNT( - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL + COUNT ( - 55 )
----
1

query I rowsort
SELECT - 55 * + 51
----
-2805

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

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

query I rowsort
SELECT DISTINCT - 49 col2
----
-49

query I rowsort
SELECT 26 * 23
----
598

query II rowsort
SELECT ALL 21 AS col1, + 33 + + 58 col0
----
21
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6800
SELECT DISTINCT 73 AS col0, + MIN( ALL 70 )
----
73
70

skipif mysql # not compatible
query II rowsort label-6800
SELECT DISTINCT 73 AS col0, + MIN ( ALL 70 )
----
73
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT 6 + + 25 + - CASE WHEN 68 >= NULL THEN NULL ELSE - 92 * 72 DIV - 4 END AS col2
----
-1625

skipif mysql # not compatible
query I rowsort label-6801
SELECT 6 + + 25 + - CASE WHEN 68 >= NULL THEN NULL ELSE - 92 * 72 / - 4 END AS col2
----
-1625

onlyif mysql # DIV for integer division: 
query I rowsort label-6802
SELECT 45 DIV + 22 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6802
SELECT 45 / + 22 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL - ( - COUNT( * ) ) * - NULLIF ( + 53, - 14 + - 18 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - ( - COUNT ( * ) ) * - NULLIF ( + 53, - 14 + - 18 ) AS col0
----
-53

query I rowsort
SELECT 16 * - - 3
----
48

query II rowsort
SELECT - 86, - 66 AS col0
----
-86
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT 32 - - CASE - COUNT( ALL - + 46 ) WHEN 66 * - - 9 THEN - SUM( ALL - 23 ) END * 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT 32 - - CASE - COUNT ( ALL - + 46 ) WHEN 66 * - - 9 THEN - SUM ( ALL - 23 ) END * 82 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT 35 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-6807
SELECT 35 / 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT 41 - - 31 * - COUNT( * ) col0
----
10

skipif mysql # not compatible
query I rowsort label-6808
SELECT 41 - - 31 * - COUNT ( * ) col0
----
10

query I rowsort
SELECT ALL + 88 * 82 col0
----
7216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6810
SELECT ALL ( - CAST( - 48 AS SIGNED ) ) + + 79 - + - COUNT( * ) + MAX( DISTINCT - ( + 59 ) ) + + - 60 + - 88 * - - MIN( + CAST( NULL AS SIGNED ) ) / 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL ( - CAST ( - 48 AS INTEGER ) ) + + 79 - + - COUNT ( * ) + MAX ( DISTINCT - ( + 59 ) ) + + - 60 + - 88 * - - MIN ( + CAST ( NULL AS INTEGER ) ) / 58 AS col0
----
NULL

query I rowsort
SELECT ALL + + 27 + + + 40 AS col0
----
67

query I rowsort
SELECT + 78 - 22
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT ALL MIN( + 79 ) AS col1, + COUNT( * ) * + - 72
----
79
-72

skipif mysql # not compatible
query II rowsort label-6813
SELECT ALL MIN ( + 79 ) AS col1, + COUNT ( * ) * + - 72
----
79
-72

query I rowsort
SELECT ALL + + 52 + - 64 col2
----
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-6815
SELECT + 22 + + - ( - 1 ) + 59 * 5 DIV + + 76 AS col1, 82
----
26
82

skipif mysql # not compatible
query II rowsort label-6815
SELECT + 22 + + - ( - 1 ) + 59 * 5 / + + 76 AS col1, 82
----
26
82

query I rowsort
SELECT 57 - 31
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT + COUNT( * ) + + + NULLIF ( + - 14, ( - 40 ) ) + + CASE - - 46 WHEN - 62 + + 12 + 99 THEN + 84 WHEN 53 THEN NULL WHEN - - ( - 38 ) THEN NULL END + + 40 + + + 89 * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6817
SELECT + COUNT ( * ) + + + NULLIF ( + - 14, ( - 40 ) ) + + CASE - - 46 WHEN - 62 + + 12 + 99 THEN + 84 WHEN 53 THEN NULL WHEN - - ( - 38 ) THEN NULL END + + 40 + + + 89 * - 44
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL MAX( 62 ) + MIN( DISTINCT - + 80 )
----
-18

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL MAX ( 62 ) + MIN ( DISTINCT - + 80 )
----
-18

query II rowsort
SELECT ALL - + 19 col1, - 25 * 85 AS col2
----
-19
-2125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6821
SELECT + COUNT( * ) DIV - - 66 + COUNT( * ) * - - COALESCE ( + 75, ( COUNT( * ) ) DIV 80 - 12 ), - 13 col1
----
75
-13

skipif mysql # not compatible
query II rowsort label-6821
SELECT + COUNT ( * ) / - - 66 + COUNT ( * ) * - - COALESCE ( + 75, ( COUNT ( * ) ) / 80 - 12 ), - 13 col1
----
75
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT DISTINCT - + COUNT( - + 5 ) * + 58 * + MAX( 21 ) * + 80 AS col0
----
-97440

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT - + COUNT ( - + 5 ) * + 58 * + MAX ( 21 ) * + 80 AS col0
----
-97440

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT DISTINCT + - 10 + + 82 * 1 DIV ( + 11 ) * + 98 AS col0
----
676

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT + - 10 + + 82 * 1 / ( + 11 ) * + 98 AS col0
----
676

onlyif mysql # DIV for integer division: 
query II rowsort label-6824
SELECT + 20, + 83 - - 83 + - 95 DIV 35 AS col0
----
20
164

skipif mysql # not compatible
query II rowsort label-6824
SELECT + 20, + 83 - - 83 + - 95 / 35 AS col0
----
20
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6825
SELECT DISTINCT ( 71 ) * 51 * + 10 + + CAST( - - 32 AS SIGNED )
----
36242

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT ( 71 ) * 51 * + 10 + + CAST ( - - 32 AS INTEGER )
----
36242

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT + 38 DIV 6
----
6

skipif mysql # not compatible
query I rowsort label-6826
SELECT + 38 / 6
----
6

query II rowsort
SELECT + 43 AS col1, + 16 * + - 72
----
43
-1152

onlyif mysql # aggregate syntax: 
query II rowsort label-6828
SELECT + ( ( - + ( 18 ) ) ) AS col2, + 50 - + COUNT( * ) + + 98 AS col2
----
-18
147

skipif mysql # not compatible
query II rowsort label-6828
SELECT + ( ( - + ( 18 ) ) ) AS col2, + 50 - + COUNT ( * ) + + 98 AS col2
----
-18
147

query I rowsort
SELECT 30 + - 0 + - 89 * - - 96
----
-8514

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT COUNT( * ) * - + 4 * + + 78 * 43 AS col0
----
-13416

skipif mysql # not compatible
query I rowsort label-6830
SELECT COUNT ( * ) * - + 4 * + + 78 * 43 AS col0
----
-13416

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT COALESCE ( - MIN( - + 86 ), - 88 + + 39 * - - 75 * - MAX( + COALESCE ( NULLIF ( + 73, - 15 + + 17 ), - 75 ) ) + 73 + SUM( DISTINCT + + NULLIF ( - 16, 21 ) ) ) + 15
----
101

skipif mysql # not compatible
query I rowsort label-6831
SELECT COALESCE ( - MIN ( - + 86 ), - 88 + + 39 * - - 75 * - MAX ( + COALESCE ( NULLIF ( + 73, - 15 + + 17 ), - 75 ) ) + 73 + SUM ( DISTINCT + + NULLIF ( - 16, 21 ) ) ) + 15
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT 10 * + MAX( DISTINCT - + 61 ) AS col0
----
-610

skipif mysql # not compatible
query I rowsort label-6832
SELECT 10 * + MAX ( DISTINCT - + 61 ) AS col0
----
-610

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

skipif mysql # not compatible
query I rowsort label-6833
SELECT ( 10 ) * + COUNT ( * ) * 21 AS col1
----
210

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

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

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

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT NULLIF ( COUNT ( * ), - 14 ) * + 93
----
93

query I rowsort
SELECT 7 + + 8 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT 42 - 64 + + COALESCE ( + - 29, + - COALESCE ( - - 81, - 55 ) * - 1, 37 * + - ( CASE + 26 WHEN + 40 * ( - 76 ) + - 63 THEN + 17 * 8 WHEN - 45 * - 17 / NULLIF ( - 2, - 99 + COUNT( * ) ) * 88 THEN 68 END ) - 1 )
----
-51

skipif mysql # not compatible
query I rowsort label-6837
SELECT 42 - 64 + + COALESCE ( + - 29, + - COALESCE ( - - 81, - 55 ) * - 1, 37 * + - ( CASE + 26 WHEN + 40 * ( - 76 ) + - 63 THEN + 17 * 8 WHEN - 45 * - 17 / NULLIF ( - 2, - 99 + COUNT ( * ) ) * 88 THEN 68 END ) - 1 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL - COUNT( + 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - COUNT ( + 7 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6839
SELECT - CAST( + 18 AS SIGNED ) * + + 60 + + - COUNT( ALL - + 66 ) + 27 DIV - 48 AS col0, - COUNT( + 16 ) col1
----
-1081
-1

skipif mysql # not compatible
query II rowsort label-6839
SELECT - CAST ( + 18 AS INTEGER ) * + + 60 + + - COUNT ( ALL - + 66 ) + 27 / - 48 AS col0, - COUNT ( + 16 ) col1
----
-1081
-1

query I rowsort
SELECT 26 * - + 86 AS col0
----
-2236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6841
SELECT CASE 86 WHEN - 69 THEN 38 * - 66 * + + 60 * + CASE WHEN - ( + 33 ) IS NOT NULL THEN - - ( + 62 ) + CAST( + 40 AS SIGNED ) ELSE NULL END * 36 END * 74 + + MIN( - CASE + 8 WHEN 26 / + 32 + - + 99 THEN + 14 ELSE NULL END ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT CASE 86 WHEN - 69 THEN 38 * - 66 * + + 60 * + CASE WHEN - ( + 33 ) IS NOT NULL THEN - - ( + 62 ) + CAST ( + 40 AS INTEGER ) ELSE NULL END * 36 END * 74 + + MIN ( - CASE + 8 WHEN 26 / + 32 + - + 99 THEN + 14 ELSE NULL END ) + + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT COUNT( * ) + + COALESCE ( + - 5, 82 ) + - COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6843
SELECT COUNT ( * ) + + COALESCE ( + - 5, 82 ) + - COUNT ( * ) AS col0
----
-5

query I rowsort
SELECT ALL ( + - 41 ) + - 28 - 76 + - + 76 * - + 62 AS col1
----
4567

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL COUNT( * ) + - + 78 - ( + 74 ) AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL COUNT ( * ) + - + 78 - ( + 74 ) AS col0
----
-151

query I rowsort
SELECT 2 + - 90 - + ( + - 7 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-6847
SELECT ALL + + 79 + - 25 AS col2, + COALESCE ( - 0, + - 52, - 12 ) * - - ( - 77 ) / ( + 42 ) / + + ( 42 ) + + 59 + - + 98 * - + 54 / + CASE - SUM( - + 8 ) WHEN - COUNT( * ) THEN NULL WHEN 54 THEN NULL WHEN - COALESCE ( - + 37, 87 ) * 11 THEN - 24 ELSE NULL END col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-6847
SELECT ALL + + 79 + - 25 AS col2, + COALESCE ( - 0, + - 52, - 12 ) * - - ( - 77 ) / ( + 42 ) / + + ( 42 ) + + 59 + - + 98 * - + 54 / + CASE - SUM ( - + 8 ) WHEN - COUNT ( * ) THEN NULL WHEN 54 THEN NULL WHEN - COALESCE ( - + 37, 87 ) * 11 THEN - 24 ELSE NULL END col1
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT + 93 * + COUNT( ALL 32 ) col0
----
93

skipif mysql # not compatible
query I rowsort label-6848
SELECT + 93 * + COUNT ( ALL 32 ) col0
----
93

query I rowsort
SELECT 79 + + 13
----
92

query I rowsort
SELECT - 76 + + 7 * + + 46 * + 36
----
11516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6851
SELECT ALL + 65 + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + 65 + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT 59 * + ( + 96 ) + + COUNT( * )
----
5665

skipif mysql # not compatible
query I rowsort label-6852
SELECT 59 * + ( + 96 ) + + COUNT ( * )
----
5665

query I rowsort
SELECT DISTINCT + - 58 - 2 + - - 99
----
39

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

query I rowsort
SELECT ALL + + 7 - - 93 AS col1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6856
SELECT ( - CAST( - 8 AS SIGNED ) ) * 66 AS col1
----
528

skipif mysql # not compatible
query I rowsort label-6856
SELECT ( - CAST ( - 8 AS INTEGER ) ) * 66 AS col1
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ALL - 24 - 88 + + - 88 + + CASE - - 13 WHEN - 28 + - 56 - + + ( - - COUNT( * ) ) THEN + 70 ELSE - 77 * MAX( ALL - 90 ) END AS col0
----
6730

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL - 24 - 88 + + - 88 + + CASE - - 13 WHEN - 28 + - 56 - + + ( - - COUNT ( * ) ) THEN + 70 ELSE - 77 * MAX ( ALL - 90 ) END AS col0
----
6730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6858
SELECT + 24 * - - 34 - - 8 + - COUNT( + 33 ) + + 94 * - CAST( + + 38 AS SIGNED ) * + + 91 * + 53 + - - 18 * + - 56 - - - 3 AS col1
----
-17227944

skipif mysql # not compatible
query I rowsort label-6858
SELECT + 24 * - - 34 - - 8 + - COUNT ( + 33 ) + + 94 * - CAST ( + + 38 AS INTEGER ) * + + 91 * + 53 + - - 18 * + - 56 - - - 3 AS col1
----
-17227944

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6859
SELECT - 45 * - - CAST( - + 90 AS SIGNED ), - 57 * - - 86 * + 68 AS col1
----
4050
-333336

skipif mysql # not compatible
query II rowsort label-6859
SELECT - 45 * - - CAST ( - + 90 AS INTEGER ), - 57 * - - 86 * + 68 AS col1
----
4050
-333336

query I rowsort
SELECT COALESCE ( + 24, - 48 * ( - ( - 20 ) ) ) AS col1
----
24

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

query I rowsort
SELECT + 50 * - 14 col2
----
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-6863
SELECT + 2 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-6863
SELECT + 2 / + 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL COALESCE ( + COUNT( * ), COUNT( * ), COALESCE ( + + 93, + - 4 + + 4, + 31 * - 94 + - 60 ) ) * 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL COALESCE ( + COUNT ( * ), COUNT ( * ), COALESCE ( + + 93, + - 4 + + 4, + 31 * - 94 + - 60 ) ) * 38 AS col0
----
38

query I rowsort
SELECT - 14 * 45 col1
----
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT - 32 * 29 + - + 9 + + - 49 + + 39 DIV - 29 AS col0
----
-987

skipif mysql # not compatible
query I rowsort label-6866
SELECT - 32 * 29 + - + 9 + + - 49 + + 39 / - 29 AS col0
----
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT DISTINCT - 62 * + COUNT( DISTINCT + 47 ) + - + 33 + - 91 + - CASE + + 50 WHEN - 60 THEN NULL WHEN + 67 * 61 THEN - NULLIF ( - - 9, 41 / + COUNT( DISTINCT 77 ) ) * 67 + + 55 * - NULLIF ( - 65, - CASE 33 WHEN + 40 * - - 63 * COUNT( * ) THEN + 22 WHEN COUNT( * ) THEN 97 * COUNT( * ) END ) END - 67 / - AVG ( - 9 ) / - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT - 62 * + COUNT ( DISTINCT + 47 ) + - + 33 + - 91 + - CASE + + 50 WHEN - 60 THEN NULL WHEN + 67 * 61 THEN - NULLIF ( - - 9, 41 / + COUNT ( DISTINCT 77 ) ) * 67 + + 55 * - NULLIF ( - 65, - CASE 33 WHEN + 40 * - - 63 * COUNT ( * ) THEN + 22 WHEN COUNT ( * ) THEN 97 * COUNT ( * ) END ) END - 67 / - AVG ( - 9 ) / - 1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT ALL 66 + + - 27 DIV - 96 + + 30
----
96

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL 66 + + - 27 / - 96 + + 30
----
96

query I rowsort
SELECT ALL 30 + 72 * 78 * 90 AS col0
----
505470

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6870
SELECT ALL 37 AS col1, - CAST( NULL AS DECIMAL )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-6870
SELECT ALL 37 AS col1, - CAST ( NULL AS REAL )
----
37
NULL

query I rowsort
SELECT - COALESCE ( - 31, 11 ) AS col1
----
31

query I rowsort
SELECT ALL - 16 + + 30 AS col0
----
14

query I rowsort
SELECT - ( - 84 ) col0
----
84

query I rowsort
SELECT ALL 94 * - - 31 AS col2
----
2914

query I rowsort
SELECT + 77 + + ( + 29 )
----
106

query I rowsort
SELECT ALL - 69 + + 65
----
-4

query I rowsort
SELECT + COALESCE ( 22, - + 8 )
----
22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6879
SELECT + + 89 - 46 + + - 78 + 29 DIV NULLIF ( 29, + 7 * - - 61 + + 82 * - CASE - + 30 WHEN - 14 THEN NULL WHEN - 43 + + 63 THEN MAX( + 9 ) DIV 35 ELSE NULL END ) * - NULLIF ( - COUNT( * ), - + 58 )
----
-34

skipif mysql # not compatible
query I rowsort label-6879
SELECT + + 89 - 46 + + - 78 + 29 / NULLIF ( 29, + 7 * - - 61 + + 82 * - CASE - + 30 WHEN - 14 THEN NULL WHEN - 43 + + 63 THEN MAX ( + 9 ) / 35 ELSE NULL END ) * - NULLIF ( - COUNT ( * ), - + 58 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT DISTINCT 92 - - MIN( ALL + - 17 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT 92 - - MIN ( ALL + - 17 ) AS col1
----
75

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

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

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

query II rowsort
SELECT - 32 AS col1, 97 - - 33
----
-32
130

query I rowsort
SELECT - - CASE - ( + 14 ) WHEN + 51 THEN NULL WHEN 9 THEN 66 ELSE + 35 END
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6885
SELECT - CAST( + 37 AS SIGNED ) * - - 1, + CAST( - + 2 AS SIGNED ) + 45 col1
----
-37
43

skipif mysql # not compatible
query II rowsort label-6885
SELECT - CAST ( + 37 AS INTEGER ) * - - 1, + CAST ( - + 2 AS INTEGER ) + 45 col1
----
-37
43

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

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

query II rowsort
SELECT ALL - 55, + 11 AS col1
----
-55
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT - 76 - - 10 * - 19 * MIN( + 94 ) AS col2
----
-17936

skipif mysql # not compatible
query I rowsort label-6888
SELECT - 76 - - 10 * - 19 * MIN ( + 94 ) AS col2
----
-17936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT - CASE + 85 WHEN + 97 * - + 63 + 32 + - COUNT( * ) * 89 + 13 THEN + + CASE - - ( + + 53 ) WHEN - 49 * ( - - ( - 34 ) ) * + 67 - 43 * - - 13 THEN - 61 END / 19 + - 98 WHEN + 44 THEN NULL WHEN + CASE + 67 WHEN 55 THEN - 25 - + CASE + 15 WHEN 44 * - CAST( 98 AS SIGNED ) + - CAST( 50 AS SIGNED ) * + 94 THEN 72 + 44 WHEN CASE - 72 WHEN - 23 THEN 3 ELSE + 71 END * COUNT( 46 + - 64 ) THEN NULL END END + 53 * - 59 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT - CASE + 85 WHEN + 97 * - + 63 + 32 + - COUNT ( * ) * 89 + 13 THEN + + CASE - - ( + + 53 ) WHEN - 49 * ( - - ( - 34 ) ) * + 67 - 43 * - - 13 THEN - 61 END / 19 + - 98 WHEN + 44 THEN NULL WHEN + CASE + 67 WHEN 55 THEN - 25 - + CASE + 15 WHEN 44 * - CAST ( 98 AS INTEGER ) + - CAST ( 50 AS INTEGER ) * + 94 THEN 72 + 44 WHEN CASE - 72 WHEN - 23 THEN 3 ELSE + 71 END * COUNT ( 46 + - 64 ) THEN NULL END END + 53 * - 59 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6890
SELECT + COUNT( * ) + + CAST( + - 17 AS SIGNED ) + - 54 * + + COALESCE ( + + 59, 85 ) AS col0
----
-3202

skipif mysql # not compatible
query I rowsort label-6890
SELECT + COUNT ( * ) + + CAST ( + - 17 AS INTEGER ) + - 54 * + + COALESCE ( + + 59, 85 ) AS col0
----
-3202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6891
SELECT - CAST( 97 AS SIGNED ) - MAX( DISTINCT + 66 ) + - SUM( - 50 ) AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-6891
SELECT - CAST ( 97 AS INTEGER ) - MAX ( DISTINCT + 66 ) + - SUM ( - 50 ) AS col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT - - 87 * + COUNT( * ) * - 41 * - 38 AS col1
----
135546

skipif mysql # not compatible
query I rowsort label-6892
SELECT - - 87 * + COUNT ( * ) * - 41 * - 38 AS col1
----
135546

query I rowsort
SELECT - - 82 * + + 35
----
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT - 3 + - + ( MAX( + 45 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-6894
SELECT - 3 + - + ( MAX ( + 45 ) )
----
-48

query II rowsort
SELECT DISTINCT 61 AS col0, 54
----
61
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6896
SELECT DISTINCT ( - - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) * 85 * ( - 49 ) + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT ( - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) * 85 * ( - 49 ) + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL + 55 * - - ( MAX( - 5 ) )
----
-275

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + 55 * - - ( MAX ( - 5 ) )
----
-275

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6899
SELECT - 9 + - - 63 + + + ( - 60 ) AS col0, - MAX( ALL - + 7 ) AS col2
----
-6
7

skipif mysql # not compatible
query II rowsort label-6899
SELECT - 9 + - - 63 + + + ( - 60 ) AS col0, - MAX ( ALL - + 7 ) AS col2
----
-6
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT ALL - 91 * + - COALESCE ( - + COUNT( * ), - 65, 33 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL - 91 * + - COALESCE ( - + COUNT ( * ), - 65, 33 ) AS col1
----
-91

query I rowsort
SELECT - 26 * + NULLIF ( - - 51, - 93 ) * - 91
----
120666

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT - 53 DIV 90 DIV - - 37 * + 69 + - + 6 - 90 * - 57 AS col2
----
5124

skipif mysql # not compatible
query I rowsort label-6904
SELECT - 53 / 90 / - - 37 * + 69 + - + 6 - 90 * - 57 AS col2
----
5124

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

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

query I rowsort
SELECT + COALESCE ( ( - 42 ), - + 31 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL 90 * COUNT( * ) + - ( + + 34 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL 90 * COUNT ( * ) + - ( + + 34 ) AS col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6908
SELECT - COUNT( 67 ) + - - 42 + CASE + - 1 WHEN + ( + COUNT( * ) ) THEN - 0 * + COUNT( * ) * + + 82 * - SUM( + 59 ) WHEN + 13 * + - 0 * + + MAX( ALL + 15 ) THEN + + 43 DIV + + 37 + 4 ELSE + - 31 * 43 * + ( - 35 ) * 25 * + 2 + - 79 * - 86 END * 25
----
58488641

skipif mysql # not compatible
query I rowsort label-6908
SELECT - COUNT ( 67 ) + - - 42 + CASE + - 1 WHEN + ( + COUNT ( * ) ) THEN - 0 * + COUNT ( * ) * + + 82 * - SUM ( + 59 ) WHEN + 13 * + - 0 * + + MAX ( ALL + 15 ) THEN + + 43 / + + 37 + 4 ELSE + - 31 * 43 * + ( - 35 ) * 25 * + 2 + - 79 * - 86 END * 25
----
58488641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6909
SELECT 20 * 81 * - NULLIF ( + 63, - 48 * + ( NULLIF ( - ( COALESCE ( COUNT( * ), + COUNT( ALL - - 21 ), + 6, 96 ) ), 61 ) ) ) * 4 + - - ( + CASE + 14 WHEN CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + ( + 84 ) * - - 60 * ( - MIN( ALL - 20 ) ) THEN - 76 WHEN - 42 * + 76 THEN 98 + 14 WHEN + 46 THEN 63 * + 12 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT 20 * 81 * - NULLIF ( + 63, - 48 * + ( NULLIF ( - ( COALESCE ( COUNT ( * ), + COUNT ( ALL - - 21 ), + 6, 96 ) ), 61 ) ) ) * 4 + - - ( + CASE + 14 WHEN CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + ( + 84 ) * - - 60 * ( - MIN ( ALL - 20 ) ) THEN - 76 WHEN - 42 * + 76 THEN 98 + 14 WHEN + 46 THEN 63 * + 12 END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 34 * 80 + + + 50
----
2770

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT DISTINCT + SUM( DISTINCT 63 )
----
63

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT + SUM ( DISTINCT 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT + COUNT( * ) + + 22 * + 1 col2
----
23

skipif mysql # not compatible
query I rowsort label-6912
SELECT + COUNT ( * ) + + 22 * + 1 col2
----
23

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

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

query I rowsort
SELECT + + 4 + + 59 + - 53
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT ALL 7 * + 80 - - 35 DIV - ( - 93 )
----
560

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL 7 * + 80 - - 35 / - ( - 93 )
----
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), - ( CASE + 92 WHEN + + COUNT( * ) THEN NULL WHEN + + 75 + ( 92 ) THEN COALESCE ( ( + COUNT( * ) ), + 63 ) END ), MIN( 25 ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6916
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), - ( CASE + 92 WHEN + + COUNT ( * ) THEN NULL WHEN + + 75 + ( 92 ) THEN COALESCE ( ( + COUNT ( * ) ), + 63 ) END ), MIN ( 25 ) ) AS col0
----
25

query II rowsort
SELECT 29 * 77 * + 47 + + 70, + 23 AS col2
----
105021
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6918
SELECT + + 60 * CAST( + 85 AS SIGNED )
----
5100

skipif mysql # not compatible
query I rowsort label-6918
SELECT + + 60 * CAST ( + 85 AS INTEGER )
----
5100

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

skipif mysql # not compatible
query II rowsort label-6919
SELECT ALL + COUNT ( * ) / 7 AS col1, + 71 * - 0 AS col1
----
0
0

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

query I rowsort
SELECT ALL + 59 * + 26 - - 46 - + - CASE + 22 WHEN - + 13 / 61 THEN - - 79 END * + ( - 35 ) * + - 45 AS col0
----
NULL

query I rowsort
SELECT ALL ( 89 ) * - + 30 + 70 AS col1
----
-2600

query I rowsort
SELECT + 38 * - - ( 12 )
----
456

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

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

query I rowsort
SELECT + - 91 * 64 AS col1
----
-5824

query I rowsort
SELECT + 88 + 85 AS col1
----
173

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6928
SELECT ALL + ( - 59 ) * + 83 * - + NULLIF ( MIN( ALL + 94 ), COUNT( * ) * + 22 + 49 + NULLIF ( + 18, + 81 + - COUNT( * ) * + 42 * - + 43 / + - NULLIF ( 1, + COUNT( * ) * 46 / - ( + AVG ( ALL 21 ) ) + CAST( 21 AS SIGNED ) + ( - 52 ) + 41 ) + - COUNT( * ) ) + 82 * 31 ) AS col0
----
460318

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL + ( - 59 ) * + 83 * - + NULLIF ( MIN ( ALL + 94 ), COUNT ( * ) * + 22 + 49 + NULLIF ( + 18, + 81 + - COUNT ( * ) * + 42 * - + 43 / + - NULLIF ( 1, + COUNT ( * ) * 46 / - ( + AVG ( ALL 21 ) ) + CAST ( 21 AS INTEGER ) + ( - 52 ) + 41 ) + - COUNT ( * ) ) + 82 * 31 ) AS col0
----
460318

query I rowsort
SELECT 26 * + 11 AS col2
----
286

query I rowsort
SELECT ALL ( 44 ) + + NULLIF ( + - 18, 50 ) * + 52
----
-892

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT COUNT( * ) - 71 * - 35 AS col0
----
2486

skipif mysql # not compatible
query I rowsort label-6931
SELECT COUNT ( * ) - 71 * - 35 AS col0
----
2486

query I rowsort
SELECT ALL 67 + 45
----
112

query I rowsort
SELECT 52 + + 15 * + - 93
----
-1343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6934
SELECT + 58 col1, - MIN( DISTINCT + 11 ) / - CAST( NULL AS SIGNED ) + 28 + + 29 / ( + 36 ) * + - 5 - 39 - + 54 + + ( + 85 ) * + AVG ( - 77 ) AS col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-6934
SELECT + 58 col1, - MIN ( DISTINCT + 11 ) / - CAST ( NULL AS INTEGER ) + 28 + + 29 / ( + 36 ) * + - 5 - 39 - + 54 + + ( + 85 ) * + AVG ( - 77 ) AS col1
----
58
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT 64 * + 75 * ( - COALESCE ( + - 30, - ( + NULLIF ( - 93, - - 83 ) ) - + COALESCE ( + 81, - COUNT( * ) - 0 ), + 88 + 24 + + + 17 + - - 22 ) ) AS col2
----
144000

skipif mysql # not compatible
query I rowsort label-6936
SELECT 64 * + 75 * ( - COALESCE ( + - 30, - ( + NULLIF ( - 93, - - 83 ) ) - + COALESCE ( + 81, - COUNT ( * ) - 0 ), + 88 + 24 + + + 17 + - - 22 ) ) AS col2
----
144000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6937
SELECT ALL - 6 AS col2, 59 + + 14 + - 50 / + CAST( NULL AS SIGNED ) AS col0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-6937
SELECT ALL - 6 AS col2, 59 + + 14 + - 50 / + CAST ( NULL AS INTEGER ) AS col0
----
-6
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6938
SELECT 42 DIV + CASE - ( NULLIF ( - + 18, - - 93 ) ) WHEN - + 35 THEN NULL ELSE + + 47 * - + ( + 61 ) * + MIN( DISTINCT + ( + 92 ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-6938
SELECT 42 / + CASE - ( NULLIF ( - + 18, - - 93 ) ) WHEN - + 35 THEN NULL ELSE + + 47 * - + ( + 61 ) * + MIN ( DISTINCT + ( + 92 ) ) END
----
0

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

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

query I rowsort
SELECT DISTINCT 84 * - NULLIF ( 28, 61 ) * NULLIF ( 0, + - 64 + + - 88 ) * + 99 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6941
SELECT ALL - 61 DIV - CASE - 23 WHEN + 12 THEN NULL WHEN + - 87 THEN + 38 WHEN + + 68 - - COUNT( * ) * + + NULLIF ( + - 1, + - 25 * - MAX( ALL - 61 ) * + - ( ( + CAST( + 91 AS SIGNED ) ) ) ) + - 69 THEN NULL ELSE NULL END AS col1, + 79 * + 54 * - 14 + - - 15 + + 75 + - - 38 + - 62 DIV 37 * COUNT( * )
----
NULL
-59597

skipif mysql # not compatible
query II rowsort label-6941
SELECT ALL - 61 / - CASE - 23 WHEN + 12 THEN NULL WHEN + - 87 THEN + 38 WHEN + + 68 - - COUNT ( * ) * + + NULLIF ( + - 1, + - 25 * - MAX ( ALL - 61 ) * + - ( ( + CAST ( + 91 AS INTEGER ) ) ) ) + - 69 THEN NULL ELSE NULL END AS col1, + 79 * + 54 * - 14 + - - 15 + + 75 + - - 38 + - 62 / 37 * COUNT ( * )
----
NULL
-59597

onlyif mysql # aggregate syntax: 
query II rowsort label-6942
SELECT 3 AS col2, - MIN( DISTINCT - 42 ) col1
----
3
42

skipif mysql # not compatible
query II rowsort label-6942
SELECT 3 AS col2, - MIN ( DISTINCT - 42 ) col1
----
3
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6943
SELECT - 82 * - 82 + + 23 DIV 30
----
6724

skipif mysql # not compatible
query I rowsort label-6943
SELECT - 82 * - 82 + + 23 / 30
----
6724

onlyif mysql # aggregate syntax: 
query III rowsort label-6944
SELECT ALL - 67, + COUNT( * ) * + 8 AS col2, - 87 AS col0
----
-67
8
-87

skipif mysql # not compatible
query III rowsort label-6944
SELECT ALL - 67, + COUNT ( * ) * + 8 AS col2, - 87 AS col0
----
-67
8
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6945
SELECT ALL + + CASE - - 99 WHEN + + 76 THEN NULL ELSE 85 * + MIN( ALL - + 50 ) * 78 - - 90 + 38 * - 84 * + 26 - + 41 END - COUNT( * ) - 25 DIV - 64
----
-414444

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL + + CASE - - 99 WHEN + + 76 THEN NULL ELSE 85 * + MIN ( ALL - + 50 ) * 78 - - 90 + 38 * - 84 * + 26 - + 41 END - COUNT ( * ) - 25 / - 64
----
-414444

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

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

query I rowsort
SELECT ALL - 87 - - - 80 AS col2
----
-167

query I rowsort
SELECT + + 33 * - - 67 + - 24 + - 18 AS col1
----
2169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6949
SELECT 78 AS col0, - CAST( 50 AS SIGNED ) AS col2
----
78
-50

skipif mysql # not compatible
query II rowsort label-6949
SELECT 78 AS col0, - CAST ( 50 AS INTEGER ) AS col2
----
78
-50

query I rowsort
SELECT - 36 * 88
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT 36 + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6951
SELECT 36 + COUNT ( * ) AS col1
----
37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6953
SELECT + COUNT( + 64 ) * 88 DIV - 51 + + 91 + + 91
----
181

skipif mysql # not compatible
query I rowsort label-6953
SELECT + COUNT ( + 64 ) * 88 / - 51 + + 91 + + 91
----
181

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

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

query I rowsort
SELECT ALL 55 + + - 70
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT - COALESCE ( MIN( + - 25 ), 55 ) * + 29 AS col2
----
725

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - COALESCE ( MIN ( + - 25 ), 55 ) * + 29 AS col2
----
725

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT DISTINCT + + 83 + COUNT( * ) + + 44 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT + + 83 + COUNT ( * ) + + 44 AS col2
----
128

query I rowsort
SELECT 98 + - 76 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6959
SELECT ALL - 41 + - 67 + + + 93 - + + MAX( 64 ) AS col2, 90
----
-79
90

skipif mysql # not compatible
query II rowsort label-6959
SELECT ALL - 41 + - 67 + + + 93 - + + MAX ( 64 ) AS col2, 90
----
-79
90

query I rowsort
SELECT 85 + + 34
----
119

onlyif mysql # DIV for integer division: 
query II rowsort label-6961
SELECT 10 + ( 64 ) * + + ( - 89 ) * - 58 AS col2, 45 DIV - 70
----
330378
0

skipif mysql # not compatible
query II rowsort label-6961
SELECT 10 + ( 64 ) * + + ( - 89 ) * - 58 AS col2, 45 / - 70
----
330378
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT COUNT( * ) - - + 43 + - - MAX( 81 ) AS col2
----
125

skipif mysql # not compatible
query I rowsort label-6962
SELECT COUNT ( * ) - - + 43 + - - MAX ( 81 ) AS col2
----
125

query II rowsort
SELECT DISTINCT 54 AS col2, 14 AS col0
----
54
14

query I rowsort
SELECT DISTINCT 79 + + 0 + + 42
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT DISTINCT 90 + + CASE COUNT( * ) WHEN + 74 + + + 19 + 61 * 79 THEN 31 + + MAX( - + NULLIF ( - + 50, 87 + - 65 ) ) ELSE + 7 + + 1 END
----
98

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT 90 + + CASE COUNT ( * ) WHEN + 74 + + + 19 + 61 * 79 THEN 31 + + MAX ( - + NULLIF ( - + 50, 87 + - 65 ) ) ELSE + 7 + + 1 END
----
98

query II rowsort
SELECT ALL 59 AS col0, - 65 AS col0
----
59
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT 65 / 7 + - ( - CASE - 85 WHEN + ( + + 62 ) + + 40 THEN NULL WHEN 16 THEN + - COALESCE ( - 21, - SUM( ALL + - ( 63 ) ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT 65 / 7 + - ( - CASE - 85 WHEN + ( + + 62 ) + + 40 THEN NULL WHEN 16 THEN + - COALESCE ( - 21, - SUM ( ALL + - ( 63 ) ) ) ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL 25 * 7 AS col0
----
175

query I rowsort
SELECT DISTINCT - 20 * - + 59 * 60 + 5 * + 69 * 84 * - 52
----
-1436160

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

skipif mysql # not compatible
query I rowsort label-6970
SELECT SUM ( ALL - 66 )
----
-66

query I rowsort
SELECT - 95 * + - 21 + - + 47
----
1948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6972
SELECT 35 * + + CAST( - + 2 AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6972
SELECT 35 * + + CAST ( - + 2 AS INTEGER ) AS col2
----
-70

query I rowsort
SELECT 70 * - - 17 col1
----
1190

query I rowsort
SELECT 57 * 52 + - - NULLIF ( + 29, + 29 ) + - 92 AS col0
----
NULL

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

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

query I rowsort
SELECT 89 + - 42 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT MIN( + 10 ) * + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-6977
SELECT MIN ( + 10 ) * + COUNT ( * )
----
10

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

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL - 57 * ( + COUNT ( * ) ) / - 73 * + 85 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT SUM( 5 ) + 52 col1
----
57

skipif mysql # not compatible
query I rowsort label-6979
SELECT SUM ( 5 ) + 52 col1
----
57

query I rowsort
SELECT DISTINCT 77 * + 30
----
2310

query I rowsort
SELECT + 56 * 78 + + 44 AS col1
----
4412

query I rowsort
SELECT ALL 54 * 77
----
4158

query II rowsort
SELECT DISTINCT - 54 AS col2, 60 * + - 65 AS col0
----
-54
-3900

query I rowsort
SELECT ALL - + 37 AS col1
----
-37

query II rowsort
SELECT 72 + + + 65 col2, + 84
----
137
84

query I rowsort
SELECT 2 + - 26
----
-24

query I rowsort
SELECT - 29 + - 89 * 79
----
-7060

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

query I rowsort
SELECT + - 51 col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT + - COUNT( DISTINCT NULLIF ( + 92, 48 * - 16 - 91 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6990
SELECT + - COUNT ( DISTINCT NULLIF ( + 92, 48 * - 16 - 91 ) )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT ALL + 5 + + + CASE 32 WHEN + 84 + + + 54 THEN + ( - 80 ) * - 44 WHEN - 95 * + - 63 + - NULLIF ( + MIN( ALL - + 16 ), - 23 ) * + 3 * - NULLIF ( + 82, + 26 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL + 5 + + + CASE 32 WHEN + 84 + + + 54 THEN + ( - 80 ) * - 44 WHEN - 95 * + - 63 + - NULLIF ( + MIN ( ALL - + 16 ), - 23 ) * + 3 * - NULLIF ( + 82, + 26 ) THEN NULL END
----
NULL

query I rowsort
SELECT - 96 + + + 55 AS col0
----
-41

query II rowsort
SELECT ALL - 71 col0, 12
----
-71
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6995
SELECT - + 25 + + CASE 79 WHEN + 14 THEN - NULLIF ( + 11, 31 ) ELSE - 81 + - 34 DIV - - 89 + + 71 END + + CASE + CAST( - COUNT( * ) AS SIGNED ) WHEN + COUNT( * ) * COUNT( * ) + - + 14 + + COALESCE ( 99, - + 34 + + 29, COUNT( * ) ) * + 31 DIV COUNT( * ) THEN 39 ELSE + NULLIF ( + 57, 56 ) END + 63 * 46
----
2920

skipif mysql # not compatible
query I rowsort label-6995
SELECT - + 25 + + CASE 79 WHEN + 14 THEN - NULLIF ( + 11, 31 ) ELSE - 81 + - 34 / - - 89 + + 71 END + + CASE + CAST ( - COUNT ( * ) AS INTEGER ) WHEN + COUNT ( * ) * COUNT ( * ) + - + 14 + + COALESCE ( 99, - + 34 + + 29, COUNT ( * ) ) * + 31 / COUNT ( * ) THEN 39 ELSE + NULLIF ( + 57, 56 ) END + 63 * 46
----
2920

query I rowsort
SELECT DISTINCT - NULLIF ( - + 50, - + 22 ) + + + NULLIF ( + CASE + - ( - 86 ) WHEN 47 THEN - 4 WHEN + 62 + + 28 + - 93 THEN + - 85 + + 91 - + 18 * 74 END, 50 )
----
NULL

query I rowsort
SELECT ALL + ( - - 31 ) + + 35 * + 82 col2
----
2901

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT - + 76 * - ( - 33 ) + + COALESCE ( 8, - ( - + COUNT( * ) ) ) col0
----
-2500

skipif mysql # not compatible
query I rowsort label-6999
SELECT - + 76 * - ( - 33 ) + + COALESCE ( 8, - ( - + COUNT ( * ) ) ) col0
----
-2500

query I rowsort
SELECT ALL - - 93 + + 48
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT - + COUNT( + 46 ) * - ( - - 75 ) * + 86 AS col1
----
6450

skipif mysql # not compatible
query I rowsort label-7001
SELECT - + COUNT ( + 46 ) * - ( - - 75 ) * + 86 AS col1
----
6450

query I rowsort
SELECT ALL - 54 * - 83
----
4482

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT + 59 + - 52 DIV + 93
----
59

skipif mysql # not compatible
query I rowsort label-7003
SELECT + 59 + - 52 / + 93
----
59

query I rowsort
SELECT ALL COALESCE ( 12, - 73 ) AS col0
----
12

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT DISTINCT CASE - + 76 WHEN - 84 THEN CASE WHEN NULL BETWEEN NULL AND SUM( DISTINCT - 36 ) THEN - - ( + 1 ) ELSE NULL END ELSE - 56 END, 82 + - 5 AS col1
----
-56
77

skipif mysql # not compatible
query II rowsort label-7006
SELECT DISTINCT CASE - + 76 WHEN - 84 THEN CASE WHEN NULL BETWEEN NULL AND SUM ( DISTINCT - 36 ) THEN - - ( + 1 ) ELSE NULL END ELSE - 56 END, 82 + - 5 AS col1
----
-56
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7007
SELECT + 20 DIV 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7007
SELECT + 20 / 40 AS col0
----
0

query I rowsort
SELECT ALL 31 * + - 61 AS col2
----
-1891

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7010
SELECT ALL - 34 - - 60 DIV 98 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL - 34 - - 60 / 98 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT DISTINCT 66 * MAX( 61 ) AS col2
----
4026

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT 66 * MAX ( 61 ) AS col2
----
4026

query I rowsort
SELECT ALL ( - 73 ) * 13
----
-949

query I rowsort
SELECT - 84 - - 95 col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7014
SELECT 71 DIV - 17 - - MIN( 67 )
----
63

skipif mysql # not compatible
query I rowsort label-7014
SELECT 71 / - 17 - - MIN ( 67 )
----
63

query II rowsort
SELECT ALL 72 * - 67 AS col0, 40 AS col0
----
-4824
40

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7017
SELECT DISTINCT MAX( - 51 ) * - ( + + CAST( NULL AS SIGNED ) ) / 82 - + - 71 * - - 69 - 84 AS col1, - 46
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-7017
SELECT DISTINCT MAX ( - 51 ) * - ( + + CAST ( NULL AS INTEGER ) ) / 82 - + - 71 * - - 69 - 84 AS col1, - 46
----
NULL
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ( + + SUM( - - 46 ) ) col1
----
46

skipif mysql # not compatible
query I rowsort label-7018
SELECT ( + + SUM ( - - 46 ) ) col1
----
46

query I rowsort
SELECT + 52 * + - 57 - + 40
----
-3004

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT + + MAX( 69 ) * - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-7020
SELECT + + MAX ( 69 ) * - COUNT ( * )
----
-69

query I rowsort
SELECT + - 12 + - - ( + NULLIF ( + 62, + + 80 ) ) * 54
----
3336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7022
SELECT + 57 * - COUNT( * ) * 24 DIV - - NULLIF ( - COUNT( * ), - - 25 + - + 77 + - COUNT( + 27 ) )
----
1368

skipif mysql # not compatible
query I rowsort label-7022
SELECT + 57 * - COUNT ( * ) * 24 / - - NULLIF ( - COUNT ( * ), - - 25 + - + 77 + - COUNT ( + 27 ) )
----
1368

query I rowsort
SELECT - 27 * + 3 AS col0
----
-81

query I rowsort
SELECT ALL + 88 * 89 + + 32 AS col0
----
7864

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT + + MAX( 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT + + MAX ( 3 ) AS col0
----
3

query II rowsort
SELECT ALL - + 1 * - 88 + COALESCE ( - + 30, - 85 ) AS col1, + ( + 40 ) + + - 36
----
58
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7028
SELECT DISTINCT - COUNT( * ) * - 0 AS col1, - 34 * 99
----
0
-3366

skipif mysql # not compatible
query II rowsort label-7028
SELECT DISTINCT - COUNT ( * ) * - 0 AS col1, - 34 * 99
----
0
-3366

onlyif mysql # aggregate syntax: 
query II rowsort label-7029
SELECT - COUNT( * ) * - - 45 col0, NULLIF ( 42, - 76 ) AS col2
----
-45
42

skipif mysql # not compatible
query II rowsort label-7029
SELECT - COUNT ( * ) * - - 45 col0, NULLIF ( 42, - 76 ) AS col2
----
-45
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7030
SELECT CAST( 84 AS SIGNED ) col1, - COUNT( * ) DIV + COUNT( + 72 ) + 11
----
84
10

skipif mysql # not compatible
query II rowsort label-7030
SELECT CAST ( 84 AS INTEGER ) col1, - COUNT ( * ) / + COUNT ( + 72 ) + 11
----
84
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7031
SELECT - MAX( ALL + 67 ) DIV + - 63 col1
----
1

skipif mysql # not compatible
query I rowsort label-7031
SELECT - MAX ( ALL + 67 ) / + - 63 col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT - + NULLIF ( 36, COALESCE ( + + 89, + 75, 29 * - MIN( ALL 26 ) + - COALESCE ( 32, 3 ) ) * - ( + ( - - 34 ) ) + + + MIN( DISTINCT + 97 ) ) * - - 28, MIN( ALL + ( - 96 ) ) + - 90 AS col0
----
-1008
-186

skipif mysql # not compatible
query II rowsort label-7032
SELECT - + NULLIF ( 36, COALESCE ( + + 89, + 75, 29 * - MIN ( ALL 26 ) + - COALESCE ( 32, 3 ) ) * - ( + ( - - 34 ) ) + + + MIN ( DISTINCT + 97 ) ) * - - 28, MIN ( ALL + ( - 96 ) ) + - 90 AS col0
----
-1008
-186

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

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

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

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

query I rowsort
SELECT ALL + 74 * - 47
----
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT - MAX( ALL + - 42 ) + 90
----
132

skipif mysql # not compatible
query I rowsort label-7036
SELECT - MAX ( ALL + - 42 ) + 90
----
132

query I rowsort
SELECT DISTINCT ( - - 96 ) AS col2
----
96

query I rowsort
SELECT - 84 + - 97
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL ( - SUM( - COALESCE ( - 67, + 26 ) ) ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL ( - SUM ( - COALESCE ( - 67, + 26 ) ) ) AS col0
----
-67

query I rowsort
SELECT ALL + 75 * - 78
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT - MAX( - 95 ) + 45
----
140

skipif mysql # not compatible
query I rowsort label-7041
SELECT - MAX ( - 95 ) + 45
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-7042
SELECT - MAX( DISTINCT - 23 ) * - 73 AS col0, + 29 * - 64
----
-1679
-1856

skipif mysql # not compatible
query II rowsort label-7042
SELECT - MAX ( DISTINCT - 23 ) * - 73 AS col0, + 29 * - 64
----
-1679
-1856

query I rowsort
SELECT + 42 + - 0 + - + 42 col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT - SUM( + - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-7045
SELECT - SUM ( + - 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT - ( COUNT( * ) ) * - 69 + + 59 + - - 44 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-7046
SELECT - ( COUNT ( * ) ) * - 69 + + 59 + - - 44 AS col0
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-7047
SELECT DISTINCT + ( - + COALESCE ( - COUNT( ALL 53 ), - + 93 * + 75 ) ), - 31 + 46 * 46 - - 5 AS col1
----
1
2090

skipif mysql # not compatible
query II rowsort label-7047
SELECT DISTINCT + ( - + COALESCE ( - COUNT ( ALL 53 ), - + 93 * + 75 ) ), - 31 + 46 * 46 - - 5 AS col1
----
1
2090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7048
SELECT ALL + 40 DIV - - ( - 74 ) AS col2, + 2 + - + CASE + MIN( ALL 1 ) WHEN + 85 * + 33 + 6 THEN + CASE + COALESCE ( MAX( ALL ( - CAST( NULL AS SIGNED ) ) ), + + 2 + + COUNT( * ) * ( - + 55 ), + - CAST( NULL AS DECIMAL ) * + 93 + + 67 + + 0 + 17 DIV - 48 * + 22 * + 26 + - 30 ) WHEN - ( + 3 ) DIV 53 + + 16 THEN + NULLIF ( 1, AVG ( DISTINCT + NULLIF ( - 28, 98 ) ) * NULLIF ( 98 + - MIN( ALL 82 - + 93 ), + COUNT( * ) ) + COUNT( * ) ) WHEN 84 * - COUNT( * ) THEN + COUNT( * ) ELSE NULL END + 73 ELSE NULL END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7048
SELECT ALL + 40 / - - ( - 74 ) AS col2, + 2 + - + CASE + MIN ( ALL 1 ) WHEN + 85 * + 33 + 6 THEN + CASE + COALESCE ( MAX ( ALL ( - CAST ( NULL AS INTEGER ) ) ), + + 2 + + COUNT ( * ) * ( - + 55 ), + - CAST ( NULL AS REAL ) * + 93 + + 67 + + 0 + 17 / - 48 * + 22 * + 26 + - 30 ) WHEN - ( + 3 ) / 53 + + 16 THEN + NULLIF ( 1, AVG ( DISTINCT + NULLIF ( - 28, 98 ) ) * NULLIF ( 98 + - MIN ( ALL 82 - + 93 ), + COUNT ( * ) ) + COUNT ( * ) ) WHEN 84 * - COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END + 73 ELSE NULL END
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT + 48 * + + 51 * - COUNT( * ) + + 12
----
-2436

skipif mysql # not compatible
query I rowsort label-7049
SELECT + 48 * + + 51 * - COUNT ( * ) + + 12
----
-2436

query I rowsort
SELECT + COALESCE ( - 82, - - 28 ) + - - 18
----
-64

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

skipif mysql # not compatible
query II rowsort label-7051
SELECT - 2, - COUNT ( * ) + - ( + + COUNT ( * ) ) AS col1
----
-2
-2

query I rowsort
SELECT ALL + 69 + - 9
----
60

query I rowsort
SELECT - 64 + - 32 * + - 91 col2
----
2848

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

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

query I rowsort
SELECT ALL COALESCE ( - - 64, + 81 * 85 ) + - 23 + 56 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT - + 62 * 74 + COUNT( * ) + 4 AS col1
----
-4583

skipif mysql # not compatible
query I rowsort label-7056
SELECT - + 62 * 74 + COUNT ( * ) + 4 AS col1
----
-4583

query I rowsort
SELECT ALL 61 + 98 AS col0
----
159

query I rowsort
SELECT DISTINCT + 45 + + + 76 AS col0
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7059
SELECT DISTINCT - COALESCE ( - 87, - - 86, + 56 DIV MIN( DISTINCT - + 26 ) )
----
87

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT - COALESCE ( - 87, - - 86, + 56 / MIN ( DISTINCT - + 26 ) )
----
87

query I rowsort
SELECT + 14 + - 17 - - 16 + + + 62 * - - 15 * - - ( 40 ) * - 32 + - 35
----
-1190422

query I rowsort
SELECT + 58 * 92
----
5336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7062
SELECT CASE - 40 WHEN - 26 THEN + 49 * CAST( + 2 AS SIGNED ) ELSE NULL END + - 99 * COUNT( * ) AS col0, - 89 AS col1, + 22 DIV - 91 AS col2
----
NULL
-89
0

skipif mysql # not compatible
query III rowsort label-7062
SELECT CASE - 40 WHEN - 26 THEN + 49 * CAST ( + 2 AS INTEGER ) ELSE NULL END + - 99 * COUNT ( * ) AS col0, - 89 AS col1, + 22 / - 91 AS col2
----
NULL
-89
0

query II rowsort
SELECT 59, - 69 col2
----
59
-69

query I rowsort
SELECT 68 * + 98 + + 14 + + - 74 col1
----
6604

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

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

query I rowsort
SELECT DISTINCT + 57 col2
----
57

query I rowsort
SELECT 60 * + + 30 * + 97 * - - 97 AS col0
----
16936200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT DISTINCT CAST( + 12 AS SIGNED ) * - - 8 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT CAST ( + 12 AS INTEGER ) * - - 8 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ALL COUNT( * ) - - - 94 AS col2
----
-93

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

query II rowsort
SELECT 61 * 61 AS col1, 40 * - 28 * + 86
----
3721
-96320

query I rowsort
SELECT 70 * - 55 AS col1
----
-3850

query I rowsort
SELECT 80 + + - 98 * - 17 AS col0
----
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT ( ( + + 68 ) ) * + COUNT( * ) * ( - - 40 ) AS col0
----
2720

skipif mysql # not compatible
query I rowsort label-7073
SELECT ( ( + + 68 ) ) * + COUNT ( * ) * ( - - 40 ) AS col0
----
2720

onlyif mysql # aggregate syntax: 
query II rowsort label-7074
SELECT DISTINCT + 53 * + CASE - ( 40 ) WHEN + + 65 THEN COUNT( * ) * + COALESCE ( + 30, - - 57 ) ELSE NULL END AS col2, + 19 + + - 3
----
NULL
16

skipif mysql # not compatible
query II rowsort label-7074
SELECT DISTINCT + 53 * + CASE - ( 40 ) WHEN + + 65 THEN COUNT ( * ) * + COALESCE ( + 30, - - 57 ) ELSE NULL END AS col2, + 19 + + - 3
----
NULL
16

query II rowsort
SELECT ALL - 99 + 84 * - 50 * - + 45, 81 + - 36 AS col2
----
188901
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL + COUNT( * ) * - + 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL + COUNT ( * ) * - + 19 AS col0
----
-19

query II rowsort
SELECT 76 * + - 48 AS col2, 18
----
-3648
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT COUNT( * ) + + 99 * + 29 AS col0
----
2872

skipif mysql # not compatible
query I rowsort label-7078
SELECT COUNT ( * ) + + 99 * + 29 AS col0
----
2872

query I rowsort
SELECT DISTINCT + 27 + + - 17
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT ALL - MIN( DISTINCT + - 79 ) + 84
----
163

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL - MIN ( DISTINCT + - 79 ) + 84
----
163

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

query I rowsort
SELECT ALL + - 62 * 41 AS col1
----
-2542

query I rowsort
SELECT DISTINCT + + 0 + 32 + - 18 + - 58 AS col0
----
-44

query I rowsort
SELECT DISTINCT - 65 + + 86 AS col0
----
21

query I rowsort
SELECT ALL + - 50 + - 53 AS col2
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT ALL - 27 + - + 0 * - 92 DIV + 66 * - + 12 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL - 27 + - + 0 * - 92 / + 66 * - + 12 AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT NULLIF ( - + 88, + 77 + - + SUM( - - 44 ) * - ( + - 24 ) + + 73 ) * - + COALESCE ( + + 25, - 54, 47 ) + CASE - - 86 WHEN - 1 + - - 82 - + ( MIN( DISTINCT - 85 ) ) + + COUNT( - 55 ) + CASE + 24 WHEN + + 32 * + 96 - + 88 + 88 * + 32 THEN + 74 * + COALESCE ( 1 * + 17, - COUNT( * ), 98 * 66 + COALESCE ( 97, 89 * - COALESCE ( 67, MIN( 93 ) + 17 * 38 ) ) ) ELSE COUNT( * ) + 84 * 7 END THEN NULL WHEN + 61 / - 96 THEN - COUNT( * ) / - CAST( - 35 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT NULLIF ( - + 88, + 77 + - + SUM ( - - 44 ) * - ( + - 24 ) + + 73 ) * - + COALESCE ( + + 25, - 54, 47 ) + CASE - - 86 WHEN - 1 + - - 82 - + ( MIN ( DISTINCT - 85 ) ) + + COUNT ( - 55 ) + CASE + 24 WHEN + + 32 * + 96 - + 88 + 88 * + 32 THEN + 74 * + COALESCE ( 1 * + 17, - COUNT ( * ), 98 * 66 + COALESCE ( 97, 89 * - COALESCE ( 67, MIN ( 93 ) + 17 * 38 ) ) ) ELSE COUNT ( * ) + 84 * 7 END THEN NULL WHEN + 61 / - 96 THEN - COUNT ( * ) / - CAST ( - 35 AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT 49 DIV + 54 * - 48 + 60 + + 22
----
82

skipif mysql # not compatible
query I rowsort label-7088
SELECT 49 / + 54 * - 48 + 60 + + 22
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7089
SELECT ALL - CAST( 51 AS SIGNED ) - - 17 col1
----
-34

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL - CAST ( 51 AS INTEGER ) - - 17 col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT + + CASE + 70 WHEN - COALESCE ( + 78, 97 - 31 ) THEN NULL ELSE + + 23 * 82 + + 32 + + + MAX( ALL 55 ) END AS col0
----
1973

skipif mysql # not compatible
query I rowsort label-7090
SELECT + + CASE + 70 WHEN - COALESCE ( + 78, 97 - 31 ) THEN NULL ELSE + + 23 * 82 + + 32 + + + MAX ( ALL 55 ) END AS col0
----
1973

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ALL COUNT( DISTINCT + 77 ) - - - 41
----
-40

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL COUNT ( DISTINCT + 77 ) - - - 41
----
-40

query I rowsort
SELECT 98 * - - 15
----
1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7094
SELECT ALL - 22 * - COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL - 22 * - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL + 31 - + - 16
----
47

query II rowsort
SELECT 66, 25 AS col1
----
66
25

query I rowsort
SELECT ALL 8 - - + 93
----
101

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

skipif mysql # not compatible
query I rowsort label-7098
SELECT COUNT ( * ) * - - 61
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7099
SELECT CAST( 45 AS SIGNED ) * - - 61 AS col2, 11 AS col1
----
2745
11

skipif mysql # not compatible
query II rowsort label-7099
SELECT CAST ( 45 AS INTEGER ) * - - 61 AS col2, 11 AS col1
----
2745
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT 44 + + NULLIF ( - 66, + - 50 + + + 30 ) * + CASE - 61 WHEN - SUM( DISTINCT - COALESCE ( + + 20, + 38 ) ) THEN NULL WHEN + + 87 * - + 79 * - 69 THEN 6 END + 0 + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT 44 + + NULLIF ( - 66, + - 50 + + + 30 ) * + CASE - 61 WHEN - SUM ( DISTINCT - COALESCE ( + + 20, + 38 ) ) THEN NULL WHEN + + 87 * - + 79 * - 69 THEN 6 END + 0 + 73 AS col2
----
NULL

query I rowsort
SELECT 54 + - + 91 + 66 AS col2
----
29

query I rowsort
SELECT ALL 49 * 69
----
3381

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT - SUM( - + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-7103
SELECT - SUM ( - + 69 )
----
69

query I rowsort
SELECT ALL 1 + 4
----
5

query I rowsort
SELECT 79 + + 48 + 78
----
205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7106
SELECT ALL 13 * - COALESCE ( + - 45, + - 59 * - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - COUNT( * ), 29 )
----
585

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL 13 * - COALESCE ( + - 45, + - 59 * - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ), 29 )
----
585

query II rowsort
SELECT DISTINCT 72, + 95 * + - 92 AS col1
----
72
-8740

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

query I rowsort
SELECT ALL 65 + - + 58
----
7

query II rowsort
SELECT 69 + - 40 - 92 + - 46 * - + 94 AS col0, - 73 AS col1
----
4261
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT - 53 + - + 41 DIV + - 43
----
-53

skipif mysql # not compatible
query I rowsort label-7111
SELECT - 53 + - + 41 / + - 43
----
-53

query I rowsort
SELECT DISTINCT - 43 col1
----
-43

query I rowsort
SELECT DISTINCT + 11 + - 49 AS col2
----
-38

query I rowsort
SELECT DISTINCT - 36 + - 55 AS col1
----
-91

query I rowsort
SELECT DISTINCT - + 58 * - 75 + 3 * 12 * - + 21 * - 66
----
54246

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT + + COUNT( 19 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7117
SELECT + + COUNT ( 19 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT - - 25 DIV + + 49 + - + 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7118
SELECT - - 25 / + + 49 + - + 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT COALESCE ( + - ( + - ( - 35 ) ), 44 * + + SUM( ALL 64 ) ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-7119
SELECT COALESCE ( + - ( + - ( - 35 ) ), 44 * + + SUM ( ALL 64 ) ) col2
----
-35

query II rowsort
SELECT DISTINCT + + 39 * - ( - 88 ) * - 57 - + 99 AS col1, - ( + 82 ) AS col2
----
-195723
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7121
SELECT ALL - COALESCE ( - COUNT( * ), 30 + COUNT( * ) + + + 38 + + 0 * - + ( + - COUNT( * ) ) * - - 26 * - 92, + + CAST( NULL AS SIGNED ) + CASE + 78 WHEN - - 81 THEN - 71 + 13 ELSE 58 + - + CASE + + 67 WHEN - 30 THEN + + 94 + + 68 - - - 12 END END, + - 52 ) * - 23 + 70
----
47

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL - COALESCE ( - COUNT ( * ), 30 + COUNT ( * ) + + + 38 + + 0 * - + ( + - COUNT ( * ) ) * - - 26 * - 92, + + CAST ( NULL AS INTEGER ) + CASE + 78 WHEN - - 81 THEN - 71 + 13 ELSE 58 + - + CASE + + 67 WHEN - 30 THEN + + 94 + + 68 - - - 12 END END, + - 52 ) * - 23 + 70
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL + COUNT( 14 )
----
1

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + COUNT ( 14 )
----
1

query I rowsort
SELECT - - ( - 6 ) + + 4 AS col2
----
-2

query I rowsort
SELECT ALL + + ( + COALESCE ( 71, + 92 ) ) AS col1
----
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT - SUM( + 3 ) + + 32
----
29

skipif mysql # not compatible
query I rowsort label-7126
SELECT - SUM ( + 3 ) + + 32
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7127
SELECT + SUM( ALL - - 31 ), 33 + - COALESCE ( + CASE - 34 WHEN - 0 * - MAX( ALL + - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 73 THEN - 61 * + 31 ELSE NULL END, + 73 ) * + 60 + 25 * - 91 * + - 79 + COUNT( * ) - - - 56 * 94 * + 38 col0
----
31
-24653

skipif mysql # not compatible
query II rowsort label-7127
SELECT + SUM ( ALL - - 31 ), 33 + - COALESCE ( + CASE - 34 WHEN - 0 * - MAX ( ALL + - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 73 THEN - 61 * + 31 ELSE NULL END, + 73 ) * + 60 + 25 * - 91 * + - 79 + COUNT ( * ) - - - 56 * 94 * + 38 col0
----
31
-24653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7128
SELECT + CAST( COUNT( * ) AS SIGNED ) + 21 AS col2
----
22

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

query I rowsort
SELECT - CASE + 56 WHEN - 81 THEN - 77 END * - + 10 + - - 24 + + 76 / 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT - 37 * - COUNT( * ) * - - 87 * + CASE - 29 WHEN - COUNT( * ) + - 89 + - + MAX( ALL + 18 ) THEN + - 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT - 37 * - COUNT ( * ) * - - 87 * + CASE - 29 WHEN - COUNT ( * ) + - 89 + - + MAX ( ALL + 18 ) THEN + - 48 ELSE NULL END
----
NULL

query I rowsort
SELECT + 24 * + 12 + - + ( + 83 ) col1
----
205

query I rowsort
SELECT ALL - 40 * 64 + + 26 AS col1
----
-2534

onlyif mysql # aggregate syntax: 
query II rowsort label-7133
SELECT ALL - 71 * + CASE - 11 WHEN - 24 + ( + 41 ) THEN - NULLIF ( + 41, + COUNT( * ) + + 42 + + + 36 ) * 21 * - 64 END * - 84 AS col2, 95 * + 93 AS col2
----
NULL
8835

skipif mysql # not compatible
query II rowsort label-7133
SELECT ALL - 71 * + CASE - 11 WHEN - 24 + ( + 41 ) THEN - NULLIF ( + 41, + COUNT ( * ) + + 42 + + + 36 ) * 21 * - 64 END * - 84 AS col2, 95 * + 93 AS col2
----
NULL
8835

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT - SUM( + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-7134
SELECT - SUM ( + 69 )
----
-69

query I rowsort
SELECT DISTINCT - 53 * 28 AS col1
----
-1484

query I rowsort
SELECT DISTINCT + 99 + 39 + 6
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - 95 - + + COALESCE ( + - 39, - SUM( + 36 ), 40 )
----
-56

skipif mysql # not compatible
query I rowsort label-7137
SELECT - 95 - + + COALESCE ( + - 39, - SUM ( + 36 ), 40 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT ALL 66 + 22 DIV + 71
----
66

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL 66 + 22 / + 71
----
66

query II rowsort
SELECT 43 col1, 66 AS col2
----
43
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7140
SELECT + 53 * 54 col0, + COUNT( * )
----
2862
1

skipif mysql # not compatible
query II rowsort label-7140
SELECT + 53 * 54 col0, + COUNT ( * )
----
2862
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7141
SELECT 59 AS col0, 91 + SUM( 85 ) * + 25 * + COALESCE ( - - CASE + 38 WHEN - MIN( DISTINCT + + 62 ) + 7 + - 16 * 55 THEN NULL WHEN + + 54 THEN - 14 * + CAST( NULL AS SIGNED ) END, + COUNT( * ) + + 97 + + 98 )
----
59
416591

skipif mysql # not compatible
query II rowsort label-7141
SELECT 59 AS col0, 91 + SUM ( 85 ) * + 25 * + COALESCE ( - - CASE + 38 WHEN - MIN ( DISTINCT + + 62 ) + 7 + - 16 * 55 THEN NULL WHEN + + 54 THEN - 14 * + CAST ( NULL AS INTEGER ) END, + COUNT ( * ) + + 97 + + 98 )
----
59
416591

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7142
SELECT ALL 87 AS col2, 53 + - CAST( NULL AS SIGNED )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-7142
SELECT ALL 87 AS col2, 53 + - CAST ( NULL AS INTEGER )
----
87
NULL

query I rowsort
SELECT ALL + 7 + ( - 59 ) AS col2
----
-52

query I rowsort
SELECT + - ( + ( NULLIF ( + 47, + 16 * 55 ) ) ) * - - 30 AS col0
----
-1410

query I rowsort
SELECT + 58 * + 93
----
5394

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT NULLIF ( + 66, + ( 57 ) + + COUNT( 66 ) + + 63 * - 98 )
----
66

skipif mysql # not compatible
query I rowsort label-7148
SELECT NULLIF ( + 66, + ( 57 ) + + COUNT ( 66 ) + + 63 * - 98 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT DISTINCT + - NULLIF ( + 29, + SUM( DISTINCT - - 13 ) + - 17 * COUNT( * ) - - - 0 )
----
-29

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT + - NULLIF ( + 29, + SUM ( DISTINCT - - 13 ) + - 17 * COUNT ( * ) - - - 0 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT + + COUNT( * ) / 63 + CASE 48 WHEN - COALESCE ( - 0, + - COUNT( * ) ) THEN + - ( + SUM( 11 ) ) END + + + 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT + + COUNT ( * ) / 63 + CASE 48 WHEN - COALESCE ( - 0, + - COUNT ( * ) ) THEN + - ( + SUM ( 11 ) ) END + + + 61 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7151
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - - 98 * + COUNT( - 34 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT - CAST ( NULL AS REAL ) * - - 98 * + COUNT ( - 34 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT DISTINCT + SUM( ( 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT + SUM ( ( 0 ) )
----
0

query II rowsort
SELECT + 61 * - 24 AS col1, + 90 AS col1
----
-1464
90

query I rowsort
SELECT ALL - 39 * - 29 col1
----
1131

query I rowsort
SELECT ALL + ( 13 ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT DISTINCT COALESCE ( - - 31, + SUM( + 57 ) * + COUNT( * ) ) * + 36
----
1116

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT COALESCE ( - - 31, + SUM ( + 57 ) * + COUNT ( * ) ) * + 36
----
1116

query I rowsort
SELECT + 83 * - 68 - - 43 AS col2
----
-5601

query I rowsort
SELECT DISTINCT 39 * 35 + + 45
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL 7 * + 74 + COUNT( - 1 )
----
519

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL 7 * + 74 + COUNT ( - 1 )
----
519

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7161
SELECT + CAST( NULL AS SIGNED ) * + NULLIF ( - 56, + CAST( NULL AS SIGNED ) ) + - 90 + + + ( 20 ), - ( 17 ) col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-7161
SELECT + CAST ( NULL AS INTEGER ) * + NULLIF ( - 56, + CAST ( NULL AS INTEGER ) ) + - 90 + + + ( 20 ), - ( 17 ) col0
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL COUNT( * ) * - 44 * - 42 + + - 1 AS col1
----
1847

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL COUNT ( * ) * - 44 * - 42 + + - 1 AS col1
----
1847

query I rowsort
SELECT 69 + + 47 - 97 AS col1
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ALL + MIN( ALL 26 ) + - 88 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL + MIN ( ALL 26 ) + - 88 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT 24 * - MIN( - 41 ) AS col1
----
984

skipif mysql # not compatible
query I rowsort label-7166
SELECT 24 * - MIN ( - 41 ) AS col1
----
984

query I rowsort
SELECT DISTINCT + 95 + 83
----
178

onlyif mysql # aggregate syntax: 
query II rowsort label-7168
SELECT DISTINCT - COUNT( * ) * 26 AS col0, 55 AS col1
----
-26
55

skipif mysql # not compatible
query II rowsort label-7168
SELECT DISTINCT - COUNT ( * ) * 26 AS col0, 55 AS col1
----
-26
55

query I rowsort
SELECT ALL + 77 * + - 87
----
-6699

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7171
SELECT 14 + + COUNT( * ) * + + 54 AS col1, 97 AS col0
----
68
97

skipif mysql # not compatible
query II rowsort label-7171
SELECT 14 + + COUNT ( * ) * + + 54 AS col1, 97 AS col0
----
68
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7172
SELECT ALL + + 80 - + + 29 + 9 * - CASE + 7 WHEN 98 THEN - - 78 + COUNT( - CAST( NULL AS SIGNED ) ) + + - 94 + + 76 WHEN - 90 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL + + 80 - + + 29 + 9 * - CASE + 7 WHEN 98 THEN - - 78 + COUNT ( - CAST ( NULL AS INTEGER ) ) + + - 94 + + 76 WHEN - 90 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7173
SELECT ( - - 97 ) AS col2, + NULLIF ( - + 87, + ( COUNT( * ) ) )
----
97
-87

skipif mysql # not compatible
query II rowsort label-7173
SELECT ( - - 97 ) AS col2, + NULLIF ( - + 87, + ( COUNT ( * ) ) )
----
97
-87

query II rowsort
SELECT 24 * + 74, 63 + 85 AS col1
----
1776
148

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7176
SELECT - - COALESCE ( - - 70, - COALESCE ( + - CASE - - 12 WHEN + + 93 / + - ( - 34 ) * + 68 + + + 62 + - + 22 * + - 28 * + - COALESCE ( - - 74, NULLIF ( - - 57, + COUNT( * ) / + 72 + + 20 ), MIN( NULLIF ( - + 90, - - 0 / + 47 ) ) ) * COUNT( * ) THEN NULL ELSE - 33 END, - 71 + 88, - CAST( - + CAST( - 77 AS SIGNED ) AS SIGNED ) ) )
----
70

skipif mysql # not compatible
query I rowsort label-7176
SELECT - - COALESCE ( - - 70, - COALESCE ( + - CASE - - 12 WHEN + + 93 / + - ( - 34 ) * + 68 + + + 62 + - + 22 * + - 28 * + - COALESCE ( - - 74, NULLIF ( - - 57, + COUNT ( * ) / + 72 + + 20 ), MIN ( NULLIF ( - + 90, - - 0 / + 47 ) ) ) * COUNT ( * ) THEN NULL ELSE - 33 END, - 71 + 88, - CAST ( - + CAST ( - 77 AS INTEGER ) AS INTEGER ) ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - 69 + SUM( DISTINCT - 40 )
----
-109

skipif mysql # not compatible
query I rowsort label-7177
SELECT - 69 + SUM ( DISTINCT - 40 )
----
-109

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

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

query I rowsort
SELECT DISTINCT - 32 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT ALL - COALESCE ( + + 26, - 86 * COUNT( * ) + + MIN( DISTINCT + 18 ), + + 63 ) * - COUNT( * ) col1
----
26

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL - COALESCE ( + + 26, - 86 * COUNT ( * ) + + MIN ( DISTINCT + 18 ), + + 63 ) * - COUNT ( * ) col1
----
26

query I rowsort
SELECT DISTINCT 70 * - - ( - 58 )
----
-4060

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT 14 + + 89 + - - 54 * COUNT( * ) * - COUNT( * ) * - + 93
----
5125

skipif mysql # not compatible
query I rowsort label-7183
SELECT 14 + + 89 + - - 54 * COUNT ( * ) * - COUNT ( * ) * - + 93
----
5125

query I rowsort
SELECT 3 - + 74 * - + 71
----
5257

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT COUNT( * ) * + - 56 * + 88 * 2 AS col2
----
-9856

skipif mysql # not compatible
query I rowsort label-7186
SELECT COUNT ( * ) * + - 56 * + 88 * 2 AS col2
----
-9856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7187
SELECT ( - COUNT( * ) ) * + ( ( - 47 ) ) col0, CAST( NULL AS SIGNED ) + - CAST( - CAST( - 97 AS SIGNED ) AS SIGNED )
----
47
NULL

skipif mysql # not compatible
query II rowsort label-7187
SELECT ( - COUNT ( * ) ) * + ( ( - 47 ) ) col0, CAST ( NULL AS INTEGER ) + - CAST ( - CAST ( - 97 AS INTEGER ) AS INTEGER )
----
47
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7190
SELECT ALL COUNT( * ) + - + 30 DIV 95 col2
----
1

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL COUNT ( * ) + - + 30 / 95 col2
----
1

query I rowsort
SELECT DISTINCT + 71 * + 80 AS col2
----
5680

query I rowsort
SELECT ALL + 8 * + 66
----
528

query I rowsort
SELECT 89 + 20 AS col0
----
109

query I rowsort
SELECT ALL 90 + + ( 94 ) + - + 99 col1
----
85

query II rowsort
SELECT 68, 55 AS col1
----
68
55

query I rowsort
SELECT 5 + - 71 * + - 78 + - 47 + - + 32 AS col0
----
5464

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT 14 + - NULLIF ( + 69, - COUNT( DISTINCT 9 ) ) * - 40 + + - COUNT( * ) - 95
----
2678

skipif mysql # not compatible
query I rowsort label-7197
SELECT 14 + - NULLIF ( + 69, - COUNT ( DISTINCT 9 ) ) * - 40 + + - COUNT ( * ) - 95
----
2678

query I rowsort
SELECT ALL + 90 * - 77
----
-6930

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7199
SELECT ALL + 81 - - CAST( NULL AS SIGNED ) * - 6 AS col1, COALESCE ( 8, - + 77 * + - 85, + 13 + ( - 88 ) DIV + + 50 * 95 + + 56 ) AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-7199
SELECT ALL + 81 - - CAST ( NULL AS INTEGER ) * - 6 AS col1, COALESCE ( 8, - + 77 * + - 85, + 13 + ( - 88 ) / + + 50 * 95 + + 56 ) AS col1
----
NULL
8

query I rowsort
SELECT ALL 48 * 68
----
3264

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

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL + 45 / COUNT ( * )
----
45

query I rowsort
SELECT 20 * 92
----
1840

onlyif mysql # aggregate syntax: 
query II rowsort label-7203
SELECT COUNT( ALL - 48 ) - + 99 AS col2, 69 AS col0
----
-98
69

skipif mysql # not compatible
query II rowsort label-7203
SELECT COUNT ( ALL - 48 ) - + 99 AS col2, 69 AS col0
----
-98
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT + 40 DIV 87 * - 85
----
0

skipif mysql # not compatible
query I rowsort label-7204
SELECT + 40 / 87 * - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT SUM( ALL 56 ) * - 26 * + 97 AS col1
----
-141232

skipif mysql # not compatible
query I rowsort label-7205
SELECT SUM ( ALL 56 ) * - 26 * + 97 AS col1
----
-141232

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - COUNT( ALL ( + 20 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7206
SELECT - COUNT ( ALL ( + 20 ) )
----
-1

query I rowsort
SELECT DISTINCT - + 78 * + ( + 60 )
----
-4680

query I rowsort
SELECT ALL - 50 * - 77 col1
----
3850

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

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

query I rowsort
SELECT 18 - - + 33 AS col0
----
51

query II rowsort
SELECT ALL 12, - 3 AS col1
----
12
-3

query I rowsort
SELECT 49 + CASE + + 78 WHEN + 10 THEN NULL ELSE - ( 94 ) END - + - 21 * 95 * + 3 AS col2
----
5940

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT ALL - - 36 + + NULLIF ( + - COUNT( * ), - 3 * + COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL - - 36 + + NULLIF ( + - COUNT ( * ), - 3 * + COUNT ( * ) )
----
35

query I rowsort
SELECT ALL + 14 * + - 83
----
-1162

query I rowsort
SELECT + 99 + 86 col2
----
185

query I rowsort
SELECT DISTINCT + 47 * + 43 + ( + 87 ) AS col2
----
2108

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT DISTINCT CAST( + CAST( + 72 AS SIGNED ) AS SIGNED ) * + 42 + + 38
----
3062

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT CAST ( + CAST ( + 72 AS INTEGER ) AS INTEGER ) * + 42 + + 38
----
3062

onlyif mysql # aggregate syntax: 
query II rowsort label-7220
SELECT COUNT( DISTINCT + 7 ), 45 AS col0
----
1
45

skipif mysql # not compatible
query II rowsort label-7220
SELECT COUNT ( DISTINCT + 7 ), 45 AS col0
----
1
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7221
SELECT CASE - 2 WHEN 0 THEN NULL WHEN + 16 * 80 * + - 21 THEN - 47 + - + 4 / + - CAST( - + 31 AS SIGNED ) WHEN - 96 THEN NULL ELSE NULL END * - 64 AS col1, + 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-7221
SELECT CASE - 2 WHEN 0 THEN NULL WHEN + 16 * 80 * + - 21 THEN - 47 + - + 4 / + - CAST ( - + 31 AS INTEGER ) WHEN - 96 THEN NULL ELSE NULL END * - 64 AS col1, + 90
----
NULL
90

query I rowsort
SELECT ALL 56 * + 39 * - + 86 + - 95
----
-187919

query I rowsort
SELECT - 55 * - + 36
----
1980

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

skipif mysql # not compatible
query I rowsort label-7224
SELECT - 72 / 32
----
-2

query I rowsort
SELECT + 78 * - 33 * 15 AS col0
----
-38610

query I rowsort
SELECT ALL - 26 * - 65 * 16 - + + 78 * 29
----
24778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7227
SELECT COUNT( * ) * - 87 - + COUNT( 91 ) + + 98 * - + COALESCE ( + - COUNT( * ), + + CAST( + + 93 AS SIGNED ) ), - 67 AS col2
----
10
-67

skipif mysql # not compatible
query II rowsort label-7227
SELECT COUNT ( * ) * - 87 - + COUNT ( 91 ) + + 98 * - + COALESCE ( + - COUNT ( * ), + + CAST ( + + 93 AS INTEGER ) ), - 67 AS col2
----
10
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT SUM( ALL - + 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-7228
SELECT SUM ( ALL - + 62 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT - 36 * + COUNT( - ( + + 89 ) ) - 65
----
-101

skipif mysql # not compatible
query I rowsort label-7229
SELECT - 36 * + COUNT ( - ( + + 89 ) ) - 65
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-7230
SELECT ALL + MAX( DISTINCT 7 ), - 57 col1
----
7
-57

skipif mysql # not compatible
query II rowsort label-7230
SELECT ALL + MAX ( DISTINCT 7 ), - 57 col1
----
7
-57

query I rowsort
SELECT ALL 89 * 15 AS col2
----
1335

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT MAX( - - NULLIF ( - 10, - 74 / - 46 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-7232
SELECT MAX ( - - NULLIF ( - 10, - 74 / - 46 ) )
----
-10

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

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

query I rowsort
SELECT + 88 * 72 AS col0
----
6336

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7236
SELECT + 59 + - + 50 DIV COALESCE ( - SUM( 77 ), + 45 ) + 93 AS col2, 22
----
152
22

skipif mysql # not compatible
query II rowsort label-7236
SELECT + 59 + - + 50 / COALESCE ( - SUM ( 77 ), + 45 ) + 93 AS col2, 22
----
152
22

query I rowsort
SELECT ALL - 70 * 14
----
-980

query I rowsort
SELECT - - 59 - + + 25
----
34

query I rowsort
SELECT + + 90 + - 11
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT + COUNT( * ) + + COUNT( + 92 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-7240
SELECT + COUNT ( * ) + + COUNT ( + 92 ) col0
----
2

query I rowsort
SELECT - + 82 * - 65
----
5330

query I rowsort
SELECT ALL - - 33 + - - ( + 69 ) AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT + CASE - + 62 WHEN + + 63 THEN + ( - 21 ) ELSE + ( - MIN( ALL + - 39 ) ) END
----
39

skipif mysql # not compatible
query I rowsort label-7243
SELECT + CASE - + 62 WHEN + + 63 THEN + ( - 21 ) ELSE + ( - MIN ( ALL + - 39 ) ) END
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT + 79 + - - CASE - 16 WHEN + 54 * 72 THEN NULL WHEN - + COUNT( * ) THEN - 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT + 79 + - - CASE - 16 WHEN + 54 * 72 THEN NULL WHEN - + COUNT ( * ) THEN - 74 ELSE NULL END
----
NULL

query I rowsort
SELECT - - 43 AS col2
----
43

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7247
SELECT DISTINCT + - 96 + + 68 * + + COUNT( * ) * 60 AS col0, 32 - - 88 + + CASE - - 30 WHEN - - 1 THEN NULL WHEN 69 + 50 - ( - + 75 ) THEN - 28 * 84 * 5 ELSE NULL END / 98 AS col0
----
3984
NULL

skipif mysql # not compatible
query II rowsort label-7247
SELECT DISTINCT + - 96 + + 68 * + + COUNT ( * ) * 60 AS col0, 32 - - 88 + + CASE - - 30 WHEN - - 1 THEN NULL WHEN 69 + 50 - ( - + 75 ) THEN - 28 * 84 * 5 ELSE NULL END / 98 AS col0
----
3984
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT ALL + NULLIF ( 44, 70 * - 0 / + - CAST( NULL AS SIGNED ) - 3 + + 38 ) + + 58 - - 66 AS col1
----
168

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL + NULLIF ( 44, 70 * - 0 / + - CAST ( NULL AS INTEGER ) - 3 + + 38 ) + + 58 - - 66 AS col1
----
168

query I rowsort
SELECT DISTINCT - - 83 * + ( + 2 )
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT DISTINCT - + SUM( + 35 ) + + 68
----
33

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT - + SUM ( + 35 ) + + 68
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7251
SELECT - 33 * - CAST( NULL AS SIGNED ), - 92 + COUNT( ( 83 ) ) + + + 52 + + ( + + 96 ) DIV 49 col1, + - COUNT( * ) AS col1
----
NULL
-38
-1

skipif mysql # not compatible
query III rowsort label-7251
SELECT - 33 * - CAST ( NULL AS INTEGER ), - 92 + COUNT ( ( 83 ) ) + + + 52 + + ( + + 96 ) / 49 col1, + - COUNT ( * ) AS col1
----
NULL
-38
-1

query I rowsort
SELECT DISTINCT + 58 * + 28
----
1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT DISTINCT + ( + + AVG ( ALL - CAST( NULL AS SIGNED ) ) ) + COALESCE ( - - COUNT( + - 53 ), - + ( - 0 ), - + 44 ) + 14 * COUNT( - 77 ) - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT + ( + + AVG ( ALL - CAST ( NULL AS INTEGER ) ) ) + COALESCE ( - - COUNT ( + - 53 ), - + ( - 0 ), - + 44 ) + 14 * COUNT ( - 77 ) - - 93
----
NULL

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

query I rowsort
SELECT ( - + NULLIF ( + - 44, - 14 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT + 78 - - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7256
SELECT + 78 - - COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7257
SELECT ALL + COUNT( * ) DIV MAX( ALL - + 41 ) - + 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL + COUNT ( * ) / MAX ( ALL - + 41 ) - + 81 AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7258
SELECT - ( MAX( 55 ) ) + 30 + - + 97 AS col2, + 76 * + 0 DIV - - 30
----
-122
0

skipif mysql # not compatible
query II rowsort label-7258
SELECT - ( MAX ( 55 ) ) + 30 + - + 97 AS col2, + 76 * + 0 / - - 30
----
-122
0

query I rowsort
SELECT - 1 * 58
----
-58

query I rowsort
SELECT DISTINCT + COALESCE ( + 87, 10, + 78 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT DISTINCT 30 * 23 * + 81 * COUNT( ALL - + 52 )
----
55890

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT 30 * 23 * + 81 * COUNT ( ALL - + 52 )
----
55890

query I rowsort
SELECT - 65 * + 70
----
-4550

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT + 71 + + - 48 + - 7 DIV + 14 - + 97 - 51 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-7263
SELECT + 71 + + - 48 + - 7 / + 14 - + 97 - 51 AS col0
----
-125

query I rowsort
SELECT NULLIF ( ( - 49 ), 38 ) AS col2
----
-49

query I rowsort
SELECT DISTINCT 94 * 84
----
7896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT DISTINCT COALESCE ( + 47, - - 78, 45 ) / + + CAST( NULL AS SIGNED ) * + 38 + - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT COALESCE ( + 47, - - 78, 45 ) / + + CAST ( NULL AS INTEGER ) * + 38 + - 21 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7267
SELECT ALL - 16 DIV - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - 16 / - 27 AS col1
----
0

query I rowsort
SELECT ALL - ( - 32 ) * 21 - NULLIF ( 9, - 28 / - 9 ) + 33
----
696

query I rowsort
SELECT DISTINCT - 46 * + 7 + + ( - 97 ) + + 30 + - 41
----
-430

query I rowsort
SELECT + - 67 - - + 32 AS col0
----
-35

query I rowsort
SELECT DISTINCT - 23 + + 5 AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7272
SELECT ALL ( + + 60 ) + - - 18 + 45 + + + COUNT( * ) + - 33 col0, - MIN( + + 73 ) * + - CAST( + 52 AS SIGNED ) AS col0
----
91
3796

skipif mysql # not compatible
query II rowsort label-7272
SELECT ALL ( + + 60 ) + - - 18 + 45 + + + COUNT ( * ) + - 33 col0, - MIN ( + + 73 ) * + - CAST ( + 52 AS INTEGER ) AS col0
----
91
3796

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

query II rowsort
SELECT + - 9 + - - 80 - + 24 + + 43 * - + 38 AS col0, 48 AS col2
----
-1587
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7275
SELECT - CAST( + ( - + 96 ) AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7275
SELECT - CAST ( + ( - + 96 ) AS INTEGER ) AS col1
----
96

query I rowsort
SELECT ALL 96 + + - 73
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT + COALESCE ( + COALESCE ( COALESCE ( - ( + 74 ), + 66, - + COUNT( * ) ), - ( - 32 ) ), 68, 2 ) - + 66 col2
----
-140

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT + COALESCE ( + COALESCE ( COALESCE ( - ( + 74 ), + 66, - + COUNT ( * ) ), - ( - 32 ) ), 68, 2 ) - + 66 col2
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7278
SELECT + - ( COALESCE ( - 30, + - 39 * + 87 + 86 + 65 * - 53 ) ) * + + 2 * - + CAST( - 44 AS SIGNED ) + - 2 - - + ( COUNT( * ) ) * + 18 - ( - 94 ) + 67
----
2817

skipif mysql # not compatible
query I rowsort label-7278
SELECT + - ( COALESCE ( - 30, + - 39 * + 87 + 86 + 65 * - 53 ) ) * + + 2 * - + CAST ( - 44 AS INTEGER ) + - 2 - - + ( COUNT ( * ) ) * + 18 - ( - 94 ) + 67
----
2817

query II rowsort
SELECT ( 37 ) + - CASE 75 WHEN - 5 THEN - 71 WHEN + 13 + + 36 THEN NULL WHEN - 77 THEN + - 89 END + - 70, + 50 col0
----
NULL
50

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

skipif mysql # not compatible
query II rowsort label-7280
SELECT - 90 AS col0, + COUNT ( * ) * 67
----
-90
67

query I rowsort
SELECT 5 + 23 + - ( + 41 ) * - - 80 * ( 84 ) AS col1
----
-275492

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

query II rowsort
SELECT 15 + + - 13 - 66 * + 5 * + ( + 64 ) AS col1, - 90 * + 33 col2
----
-21118
-2970

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7285
SELECT 98 DIV ( - 67 ) * 27 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-7285
SELECT 98 / ( - 67 ) * 27 / - 51
----
0

query I rowsort
SELECT ALL + 22 * + + 97
----
2134

query II rowsort
SELECT ALL - 79 col1, + 83 + - AVG ( + + 58 ) * - - 68 + - CASE - 84 WHEN - - 41 THEN - + 16 + - 34 / - 67 ELSE NULL END
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT DISTINCT - CASE - 77 WHEN 65 THEN + + 18 WHEN - + 73 * 26 THEN NULL WHEN - 46 / - 99 * COUNT( * ) THEN + 27 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT - CASE - 77 WHEN 65 THEN + + 18 WHEN - + 73 * 26 THEN NULL WHEN - 46 / - 99 * COUNT ( * ) THEN + 27 END col0
----
NULL

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

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

query I rowsort
SELECT 24 * + - NULLIF ( - 9, - 35 )
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7291
SELECT + CAST( NULL AS SIGNED ) / + 20 - + 56 - + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT + CAST ( NULL AS INTEGER ) / + 20 - + 56 - + 36 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - CASE + NULLIF ( 41, + - 75 * 23 ) WHEN 95 THEN 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT 4 + MIN( ALL + + 86 ) + + + 15
----
105

skipif mysql # not compatible
query I rowsort label-7293
SELECT 4 + MIN ( ALL + + 86 ) + + + 15
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 61 * - + ( - - 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 61 * - + ( - - 6 ) AS col2
----
NULL

query II rowsort
SELECT ALL - ( + - 89 ), + 37 * - 25 + - + 56 col0
----
89
-981

query II rowsort
SELECT ALL - 60 + + 95 * - 56 * + 78 AS col2, - 70
----
-415020
-70

query I rowsort
SELECT 87 * - + 63 - + - 4 + - + 11 * + - 66
----
-4751

onlyif mysql # DIV for integer division: 
query I rowsort label-7298
SELECT DISTINCT 98 * 38 DIV NULLIF ( + 84, 67 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT 98 * 38 / NULLIF ( + 84, 67 ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7299
SELECT COALESCE ( - COUNT( * ), + + 91 DIV + 29 + + + 79 * 85 * - COUNT( * ) * - 4, + 43 DIV - - 52, - 57 ) - + + 66 + - MAX( + 86 ) - - 95 * + 38 AS col0
----
3457

skipif mysql # not compatible
query I rowsort label-7299
SELECT COALESCE ( - COUNT ( * ), + + 91 / + 29 + + + 79 * 85 * - COUNT ( * ) * - 4, + 43 / - - 52, - 57 ) - + + 66 + - MAX ( + 86 ) - - 95 * + 38 AS col0
----
3457

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7300
SELECT ALL - - COALESCE ( 2, + 36 DIV - + 14 * 61 * + COUNT( * ) ), - NULLIF ( + - 48, - - ( 88 ) ) AS col0
----
2
48

skipif mysql # not compatible
query II rowsort label-7300
SELECT ALL - - COALESCE ( 2, + 36 / - + 14 * 61 * + COUNT ( * ) ), - NULLIF ( + - 48, - - ( 88 ) ) AS col0
----
2
48

query I rowsort
SELECT ALL + 87 + + 6
----
93

query I rowsort
SELECT ALL - 76 + - 20 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT ALL 25 * - + CASE 90 WHEN + + 50 + + 94 THEN 57 END * + + 34 + + 69 + - 45 / - - COUNT( * ) - - - 45 + + 81 * + 69 * + - 32 + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL 25 * - + CASE 90 WHEN + + 50 + + 94 THEN 57 END * + + 34 + + 69 + - 45 / - - COUNT ( * ) - - - 45 + + 81 * + 69 * + - 32 + - 67
----
NULL

query II rowsort
SELECT + 41, - 80 + 61 + - 26 + + + 84 * + ( - - 19 ) - + 10 * - 42 AS col1
----
41
1971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7305
SELECT DISTINCT - - COUNT( * ) + + CASE + CAST( CAST( + + 35 AS SIGNED ) AS DECIMAL ) WHEN 23 * 72 + - 21 + + 64 THEN + NULLIF ( 87, - 66 * + 19 - 74 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT - - COUNT ( * ) + + CASE + CAST ( CAST ( + + 35 AS INTEGER ) AS REAL ) WHEN 23 * 72 + - 21 + + 64 THEN + NULLIF ( 87, - 66 * + 19 - 74 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - + 78 AS col1
----
-78

query I rowsort
SELECT - 52 + ( - - 58 ) AS col1
----
6

query I rowsort
SELECT + - 85 * + 77 + 76 - - 71 * - 15 col2
----
-7534

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT SUM( DISTINCT 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7309
SELECT SUM ( DISTINCT 70 ) AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7310
SELECT - CAST( COUNT( * ) AS SIGNED ) + - 27 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7310
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - 27 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT + COUNT( * ) - + - 41 + 51 + 47 * - + 37 * COUNT( DISTINCT 16 )
----
-1646

skipif mysql # not compatible
query I rowsort label-7311
SELECT + COUNT ( * ) - + - 41 + 51 + 47 * - + 37 * COUNT ( DISTINCT 16 )
----
-1646

query I rowsort
SELECT ALL - 35 + + 10
----
-25

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

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

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

query I rowsort
SELECT ALL - 86 + + + 23 AS col0
----
-63

query I rowsort
SELECT 80 * - 88 + - + 53 * + 24 AS col1
----
-8312

query II rowsort
SELECT ALL - 62 AS col2, 44 col0
----
-62
44

query I rowsort
SELECT DISTINCT + 11 * + - 10 + + 16
----
-94

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

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

query I rowsort
SELECT 52 * + 24
----
1248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7321
SELECT ALL 94 DIV - - COUNT( - 14 )
----
94

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL 94 / - - COUNT ( - 14 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT - MAX( ALL - - 65 ) * + 51 AS col2
----
-3315

skipif mysql # not compatible
query I rowsort label-7322
SELECT - MAX ( ALL - - 65 ) * + 51 AS col2
----
-3315

query I rowsort
SELECT + 77 + + CASE 8 WHEN 99 THEN NULL ELSE - 23 END
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7324
SELECT CAST( NULL AS SIGNED ) + 17 + + - 48 * - MIN( + ( + 81 ) ) * + 67 + + + 74 * + + 98 - - COUNT( * ) + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7324
SELECT CAST ( NULL AS INTEGER ) + 17 + + - 48 * - MIN ( + ( + 81 ) ) * + 67 + + + 74 * + + 98 - - COUNT ( * ) + + 76
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7325
SELECT COALESCE ( + - COUNT( * ), + + 57, + ( + + 83 ) - - + COUNT( * ) ) + + 69 + + 99 DIV - SUM( DISTINCT + 68 )
----
67

skipif mysql # not compatible
query I rowsort label-7325
SELECT COALESCE ( + - COUNT ( * ), + + 57, + ( + + 83 ) - - + COUNT ( * ) ) + + 69 + + 99 / - SUM ( DISTINCT + 68 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7326
SELECT CAST( - COALESCE ( 95, - 69 + - ( 0 ) + - 22 * - - 80, + 71 ) AS SIGNED ) * - - 25 + + + 32 * - COUNT( * ) - - 99 + + + 12 + - 22 + + - AVG ( ALL 44 ) * 50 * - + 72 - - + 22 / - MAX( - - 38 ) * - 58 * - 46 + COUNT( * ) * 2 * + 90 * CAST( NULL AS SIGNED ) + + - 98 * - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7326
SELECT CAST ( - COALESCE ( 95, - 69 + - ( 0 ) + - 22 * - - 80, + 71 ) AS INTEGER ) * - - 25 + + + 32 * - COUNT ( * ) - - 99 + + + 12 + - 22 + + - AVG ( ALL 44 ) * 50 * - + 72 - - + 22 / - MAX ( - - 38 ) * - 58 * - 46 + COUNT ( * ) * 2 * + 90 * CAST ( NULL AS INTEGER ) + + - 98 * - 91 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT 33 DIV - 74 col2
----
0

skipif mysql # not compatible
query I rowsort label-7327
SELECT 33 / - 74 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7328
SELECT DISTINCT CASE ( - - 12 ) WHEN 42 THEN NULL ELSE + 66 + COUNT( * ) END DIV - 4 + - 95 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT CASE ( - - 12 ) WHEN 42 THEN NULL ELSE + 66 + COUNT ( * ) END / - 4 + - 95 AS col1
----
-111

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7330
SELECT ALL + 1 * - + 64, CAST( NULL AS SIGNED ) + - 1 + - 77 AS col1, - MIN( - CAST( CAST( + - 34 AS SIGNED ) AS SIGNED ) ) AS col1
----
-64
NULL
-34

skipif mysql # not compatible
query III rowsort label-7330
SELECT ALL + 1 * - + 64, CAST ( NULL AS INTEGER ) + - 1 + - 77 AS col1, - MIN ( - CAST ( CAST ( + - 34 AS INTEGER ) AS INTEGER ) ) AS col1
----
-64
NULL
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7331
SELECT CAST( NULL AS SIGNED ) DIV - 30 AS col0, - 23 DIV 52
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7331
SELECT CAST ( NULL AS INTEGER ) / - 30 AS col0, - 23 / 52
----
NULL
0

query II rowsort
SELECT ALL NULLIF ( - 13, 41 + - + 95 ) + - 89, - 41 AS col0
----
-102
-41

query I rowsort
SELECT DISTINCT 76 + 19 * + - 27 AS col1
----
-437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7334
SELECT DISTINCT + 83 * ( + CASE 22 WHEN + ( + - 66 ) - + CAST( NULL AS SIGNED ) THEN - COUNT( * ) - - 66 - + + 85 END ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT + 83 * ( + CASE 22 WHEN + ( + - 66 ) - + CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) - - 66 - + + 85 END ) * - 68
----
NULL

query III rowsort
SELECT ALL 11 + - 19 AS col2, + 6 col1, + - 4
----
-8
6
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL ( 76 ) * 40 - - ( - + MAX( + 33 ) ) AS col2
----
3007

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL ( 76 ) * 40 - - ( - + MAX ( + 33 ) ) AS col2
----
3007

query I rowsort
SELECT - 10 * 97 * - 72 + + 32 + 99
----
69971

query II rowsort
SELECT - 9 * + 64 AS col2, 87 AS col0
----
-576
87

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

query I rowsort
SELECT DISTINCT + 89 * + 48 AS col2
----
4272

query II rowsort
SELECT ALL - 31 + 24 col2, + 37 + + 24 col1
----
-7
61

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

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

query I rowsort
SELECT ALL - - CASE + 33 WHEN - - 96 THEN NULL WHEN + + 30 THEN NULL WHEN - + 17 THEN NULL ELSE - 67 END
----
-67

query I rowsort
SELECT DISTINCT - + ( 17 ) + - - 40 * - ( - - 7 )
----
-297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7345
SELECT DISTINCT - CASE + - MIN( ALL + + 32 ) WHEN - 80 * + - 32 + + COUNT( DISTINCT - ( 42 ) ) THEN CAST( - 70 AS SIGNED ) WHEN 13 * - COUNT( * ) THEN + 28 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - CASE + - MIN ( ALL + + 32 ) WHEN - 80 * + - 32 + + COUNT ( DISTINCT - ( 42 ) ) THEN CAST ( - 70 AS INTEGER ) WHEN 13 * - COUNT ( * ) THEN + 28 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT DISTINCT - - CAST( - 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - - CAST ( - 44 AS INTEGER )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT DISTINCT + 37 - 17 * + ( - + COUNT( * ) ) * 70 col0
----
1227

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT + 37 - 17 * + ( - + COUNT ( * ) ) * 70 col0
----
1227

query I rowsort
SELECT ALL + - 39 * + 10 AS col1
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT 87 * - - COALESCE ( + + COUNT( * ), + 2 )
----
87

skipif mysql # not compatible
query I rowsort label-7349
SELECT 87 * - - COALESCE ( + + COUNT ( * ), + 2 )
----
87

query I rowsort
SELECT DISTINCT - 82 * - + 20 AS col0
----
1640

query I rowsort
SELECT + NULLIF ( - 61, - - NULLIF ( - + 75, + 35 ) ) AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7352
SELECT ALL + - NULLIF ( 29, + COALESCE ( - - 54, + 64, COUNT( - - CAST( + 37 AS SIGNED ) ) ) * - 40 + - 10 ) * - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL + - NULLIF ( 29, + COALESCE ( - - 54, + 64, COUNT ( - - CAST ( + 37 AS INTEGER ) ) ) * - 40 + - 10 ) * - COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7353
SELECT - + COUNT( * ) - - 99 + - 71 col2, 73 AS col1
----
27
73

skipif mysql # not compatible
query II rowsort label-7353
SELECT - + COUNT ( * ) - - 99 + - 71 col2, 73 AS col1
----
27
73

query I rowsort
SELECT + - 43 * 50
----
-2150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7355
SELECT + CAST( NULL AS SIGNED ) + + MAX( - 91 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT + CAST ( NULL AS INTEGER ) + + MAX ( - 91 ) col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( 34, 36 + + 76 + 70 + 63 * + 70 - - ( 74 ) * + - 42 ) - ( + 32 ) + - 29 - 43
----
-70

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

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

query II rowsort
SELECT ALL 90 AS col0, 83 AS col1
----
90
83

query I rowsort
SELECT DISTINCT + 49 * + + 51
----
2499

query I rowsort
SELECT + 78 - - 54
----
132

query I rowsort
SELECT + 54 - - 7
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL MIN( ALL - - 40 ) + + MAX( + 54 ) * + 0 + + + 84
----
124

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL MIN ( ALL - - 40 ) + + MAX ( + 54 ) * + 0 + + + 84
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT ALL 37 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL 37 / + 42
----
0

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

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

query I rowsort
SELECT ALL NULLIF ( - - 4, + + 13 ) * - - 46 * 9 + - 15
----
1641

query I rowsort
SELECT + 36 * + + 35
----
1260

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT + COUNT( * ) + + 80 + + 82, 12 + - + 30 + 27 + + - 5 * + ( 52 ) + + 53 + + - COUNT( * ) * 71 + + 49 col0
----
163
-220

skipif mysql # not compatible
query II rowsort label-7368
SELECT + COUNT ( * ) + + 80 + + 82, 12 + - + 30 + 27 + + - 5 * + ( 52 ) + + 53 + + - COUNT ( * ) * 71 + + 49 col0
----
163
-220

query II rowsort
SELECT ALL + 88, + ( - 94 ) AS col0
----
88
-94

query III rowsort
SELECT DISTINCT + 91 * + + 78 + 12 AS col1, 65 + 95 - - 91 col0, + 94 col1
----
7110
251
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT + NULLIF ( 13, - + 80 + - + 32 * - NULLIF ( - NULLIF ( + - 87, 88 ), + + 0 * - 19 ) + + MAX( - 56 ) )
----
13

skipif mysql # not compatible
query I rowsort label-7371
SELECT + NULLIF ( 13, - + 80 + - + 32 * - NULLIF ( - NULLIF ( + - 87, 88 ), + + 0 * - 19 ) + + MAX ( - 56 ) )
----
13

query I rowsort
SELECT ALL 32 * - + 26 + 54 AS col1
----
-778

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

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

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

skipif mysql # not compatible
query II rowsort label-7374
SELECT DISTINCT + COUNT ( * ), COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT ( - 46 ) * - 29 AS col0
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT 24 * - 41 - + - SUM( - 41 ) * + COALESCE ( - 19, 23 )
----
-205

skipif mysql # not compatible
query I rowsort label-7376
SELECT 24 * - 41 - + - SUM ( - 41 ) * + COALESCE ( - 19, 23 )
----
-205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7377
SELECT - 66 DIV - COALESCE ( 45, - + 25 ) + + 5 + COUNT( * ) col0
----
7

skipif mysql # not compatible
query I rowsort label-7377
SELECT - 66 / - COALESCE ( 45, - + 25 ) + + 5 + COUNT ( * ) col0
----
7

query I rowsort
SELECT + - ( - 86 ) * + 46 AS col0
----
3956

query I rowsort
SELECT + - 79 + + 58 AS col0
----
-21

query I rowsort
SELECT + + 30 col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT ALL + ( - 29 ) / + 2 + + + 40 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL + ( - 29 ) / + 2 + + + 40 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT + MAX( - NULLIF ( + 15, - - 2 ) ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-7382
SELECT + MAX ( - NULLIF ( + 15, - - 2 ) ) col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7383
SELECT - 4 DIV + MIN( ALL + - 56 )
----
0

skipif mysql # not compatible
query I rowsort label-7383
SELECT - 4 / + MIN ( ALL + - 56 )
----
0

query II rowsort
SELECT + 43 * + 65 + - + 77 AS col0, - NULLIF ( - 95, - - 37 / + 66 - + ( 21 ) ) AS col0
----
2718
95

query II rowsort
SELECT ALL + - CASE + ( - - 97 ) WHEN - 61 + - 66 THEN 38 WHEN - 73 * 94 THEN NULL END AS col0, + 24 AS col1
----
NULL
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7386
SELECT + 78 * COUNT( - - 65 ) * + 10 + - 26 - - + 11 * - 27 + - 64 + + 57 * - - AVG ( DISTINCT + 40 ) * 89 - 63 * - + 25 + + CASE + 72 WHEN - 57 * - - 81 * 0 / 17 THEN - CAST( NULL AS DECIMAL ) WHEN + - 72 THEN NULL WHEN 91 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT + 78 * COUNT ( - - 65 ) * + 10 + - 26 - - + 11 * - 27 + - 64 + + 57 * - - AVG ( DISTINCT + 40 ) * 89 - 63 * - + 25 + + CASE + 72 WHEN - 57 * - - 81 * 0 / 17 THEN - CAST ( NULL AS REAL ) WHEN + - 72 THEN NULL WHEN 91 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 44 * + - 45 AS col1
----
1980

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

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

query II rowsort
SELECT ALL + 92 AS col2, - 16 + + 18 AS col0
----
92
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7390
SELECT - + 72 DIV + - 83 + + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-7390
SELECT - + 72 / + - 83 + + - 31
----
-31

query II rowsort
SELECT ALL 22 col2, 78 AS col0
----
22
78

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

query I rowsort
SELECT - + 28 + - 88
----
-116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7394
SELECT DISTINCT - CAST( NULL AS SIGNED ), 50 * 89 * - + 77 AS col2
----
NULL
-342650

skipif mysql # not compatible
query II rowsort label-7394
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 50 * 89 * - + 77 AS col2
----
NULL
-342650

query I rowsort
SELECT DISTINCT NULLIF ( - + ( - + 58 ), - 18 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT DISTINCT 28, + 6 * + COUNT( * ) * + COALESCE ( + - COUNT( * ), + + 11 * - COALESCE ( + 90, + 94 ) ) * - + COALESCE ( 22, - 66 + + ( COUNT( * ) ) ) AS col2
----
28
132

skipif mysql # not compatible
query II rowsort label-7396
SELECT DISTINCT 28, + 6 * + COUNT ( * ) * + COALESCE ( + - COUNT ( * ), + + 11 * - COALESCE ( + 90, + 94 ) ) * - + COALESCE ( 22, - 66 + + ( COUNT ( * ) ) ) AS col2
----
28
132

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

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL MAX ( - ( - - 33 ) )
----
-33

query II rowsort
SELECT - 79 + + - 91, 33 AS col2
----
-170
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT DISTINCT CASE + 93 WHEN + 24 * - - 67 + + 77 THEN - COALESCE ( 8, - + COUNT( * ) ) WHEN + + COUNT( * ) - - - 96 THEN + 64 + + 15 + 88 / 34 * - 50 * + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT CASE + 93 WHEN + 24 * - - 67 + + 77 THEN - COALESCE ( 8, - + COUNT ( * ) ) WHEN + + COUNT ( * ) - - - 96 THEN + 64 + + 15 + 88 / 34 * - 50 * + + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 91 + 59
----
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-7401
SELECT - 72 DIV + 51 AS col1, 42 * + ( 7 ) AS col2
----
-1
294

skipif mysql # not compatible
query II rowsort label-7401
SELECT - 72 / + 51 AS col1, 42 * + ( 7 ) AS col2
----
-1
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7402
SELECT - 84 + - - ( + COALESCE ( + 58, + CASE - - ( CAST( NULL AS SIGNED ) ) WHEN - 69 THEN + 74 * + 11 * + COALESCE ( 9, - 7 * - - 99, 53 ) WHEN 66 * 23 THEN NULL WHEN + - ( + + 53 ) * + 27 + + + 77 * + COUNT( * ) THEN - + 62 - + 99 ELSE NULL END, + MAX( ALL ( 97 ) ) * 86 ) ) + - - 92 * + 31 * - COUNT( * ) - 15 + + - 76 * - + 84 AS col2
----
3491

skipif mysql # not compatible
query I rowsort label-7402
SELECT - 84 + - - ( + COALESCE ( + 58, + CASE - - ( CAST ( NULL AS INTEGER ) ) WHEN - 69 THEN + 74 * + 11 * + COALESCE ( 9, - 7 * - - 99, 53 ) WHEN 66 * 23 THEN NULL WHEN + - ( + + 53 ) * + 27 + + + 77 * + COUNT ( * ) THEN - + 62 - + 99 ELSE NULL END, + MAX ( ALL ( 97 ) ) * 86 ) ) + - - 92 * + 31 * - COUNT ( * ) - 15 + + - 76 * - + 84 AS col2
----
3491

query I rowsort
SELECT - 19 * + 91
----
-1729

query II rowsort
SELECT + 25 + - - ( - 19 ) * - - 82 AS col1, 52
----
-1533
52

query II rowsort
SELECT ALL - 0 * 26 AS col2, ( - 89 ) AS col0
----
0
-89

query I rowsort
SELECT + 42 * 88 AS col2
----
3696

query I rowsort
SELECT ALL + 73 + + + NULLIF ( COALESCE ( + 70, - 95 * + 36 - + 18 ), + 18 )
----
143

query I rowsort
SELECT ALL ( NULLIF ( + 96, + 86 ) ) + 21
----
117

query I rowsort
SELECT - 30 + 77 * + 58 AS col1
----
4436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7410
SELECT DISTINCT + 55 + MIN( ( - 61 ) ) + - - 39 DIV + 69 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT + 55 + MIN ( ( - 61 ) ) + - - 39 / + 69 AS col0
----
-6

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

query I rowsort
SELECT - 6 + 86
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7413
SELECT DISTINCT 18 DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT 18 / + 39
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7414
SELECT + SUM( DISTINCT - - 34 ) + + - COUNT( * ) DIV + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-7414
SELECT + SUM ( DISTINCT - - 34 ) + + - COUNT ( * ) / + + COUNT ( * )
----
33

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

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + CAST ( NULL AS REAL ) + - + 44
----
NULL

query I rowsort
SELECT - 53 * + 29 * 40 AS col1
----
-61480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7417
SELECT 29 * 30 DIV 91 * + 66 + - COUNT( * ) * + + 37
----
557

skipif mysql # not compatible
query I rowsort label-7417
SELECT 29 * 30 / 91 * + 66 + - COUNT ( * ) * + + 37
----
557

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT + 76 - + 0 + - COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-7418
SELECT + 76 - + 0 + - COUNT ( * ) AS col1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7419
SELECT DISTINCT 82 DIV - 81 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT 82 / - 81 AS col0
----
-1

query I rowsort
SELECT + + 22 * - 85 * + 26 + + - 13
----
-48633

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

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

query I rowsort
SELECT ALL - 48 * + 53 AS col0
----
-2544

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT + - COUNT( * ) + + + 85 * + COALESCE ( - + MIN( ( - 8 ) ), + NULLIF ( 5, 8 ), + 58 * - - 81 )
----
679

skipif mysql # not compatible
query I rowsort label-7423
SELECT + - COUNT ( * ) + + + 85 * + COALESCE ( - + MIN ( ( - 8 ) ), + NULLIF ( 5, 8 ), + 58 * - - 81 )
----
679

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT ALL - 87 * - + 6 * COUNT( * )
----
522

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL - 87 * - + 6 * COUNT ( * )
----
522

query I rowsort
SELECT 58 * + 1 + 71
----
129

query I rowsort
SELECT - 77 * - + 30
----
2310

query I rowsort
SELECT + 95 * 4 + + + 62
----
442

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

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

query I rowsort
SELECT - - 19 col1
----
19

query I rowsort
SELECT ALL 61 + + 13 AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT CAST( - 38 AS SIGNED ) - - + 91 + 96
----
149

skipif mysql # not compatible
query I rowsort label-7431
SELECT CAST ( - 38 AS INTEGER ) - - + 91 + 96
----
149

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7434
SELECT 43 * CASE - 91 WHEN + 82 THEN + 91 + NULLIF ( - 5, SUM( + 68 ) + - CAST( + 20 AS DECIMAL ) + - COUNT( * ) / + 11 * + 27 ) * + COALESCE ( - CAST( 7 AS SIGNED ), - + COUNT( * ), - - 59 + 78 ) END, + 20 col1
----
NULL
20

skipif mysql # not compatible
query II rowsort label-7434
SELECT 43 * CASE - 91 WHEN + 82 THEN + 91 + NULLIF ( - 5, SUM ( + 68 ) + - CAST ( + 20 AS REAL ) + - COUNT ( * ) / + 11 * + 27 ) * + COALESCE ( - CAST ( 7 AS INTEGER ), - + COUNT ( * ), - - 59 + 78 ) END, + 20 col1
----
NULL
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7435
SELECT 49 + 21 * - 15 * - CAST( NULL AS SIGNED ) + - 45 AS col0, + 24 * - 19 + + - 21
----
NULL
-477

skipif mysql # not compatible
query II rowsort label-7435
SELECT 49 + 21 * - 15 * - CAST ( NULL AS INTEGER ) + - 45 AS col0, + 24 * - 19 + + - 21
----
NULL
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT DISTINCT + SUM( DISTINCT - 92 ) + - COUNT( * ) + - NULLIF ( ( 81 ), + ( - - 25 ) ) + 25 + + - 25
----
-174

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT + SUM ( DISTINCT - 92 ) + - COUNT ( * ) + - NULLIF ( ( 81 ), + ( - - 25 ) ) + 25 + + - 25
----
-174

query I rowsort
SELECT DISTINCT 56 col2
----
56

query I rowsort
SELECT ALL - 96 + 74 AS col0
----
-22

query II rowsort
SELECT 15 AS col2, - 94 * + 68 + 11 * 2
----
15
-6370

query I rowsort
SELECT 42 - + 72 AS col1
----
-30

query I rowsort
SELECT ALL - 69 * - 32 AS col0
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7442
SELECT ALL - CAST( + - 47 AS SIGNED ) + + - 37 col1, + COUNT( * ) - - 7
----
10
8

skipif mysql # not compatible
query II rowsort label-7442
SELECT ALL - CAST ( + - 47 AS INTEGER ) + + - 37 col1, + COUNT ( * ) - - 7
----
10
8

query II rowsort
SELECT 96 AS col0, 3 AS col1
----
96
3

query I rowsort
SELECT 32 + 26
----
58

query I rowsort
SELECT 68 * - 94 AS col1
----
-6392

query I rowsort
SELECT ALL - 70 * ( 30 )
----
-2100

query I rowsort
SELECT 74 + + - 17 * + 57 + - - CASE - 32 WHEN - 62 * - - 6 * 64 + + + 27 THEN + 60 + - - 68 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 52 * - 43 AS col0
----
2236

query I rowsort
SELECT DISTINCT - 99 - - 26
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT - MAX( 84 ) * COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7450
SELECT - MAX ( 84 ) * COUNT ( * ) AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7451
SELECT - 62 DIV NULLIF ( - 81, + MAX( ALL + 84 ) ) + - + 44
----
-44

skipif mysql # not compatible
query I rowsort label-7451
SELECT - 62 / NULLIF ( - 81, + MAX ( ALL + 84 ) ) + - + 44
----
-44

query I rowsort
SELECT 73 + - 73
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7453
SELECT ALL - + NULLIF ( + - CAST( + - 29 AS SIGNED ), - - 75 )
----
-29

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - + NULLIF ( + - CAST ( + - 29 AS INTEGER ), - - 75 )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7454
SELECT ALL + MIN( ALL - 84 ) DIV + + 80
----
-1

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL + MIN ( ALL - 84 ) / + + 80
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7455
SELECT - 19 + - - 71 + - - COUNT( - 9 ) + + NULLIF ( + - 52, + CASE + 56 WHEN 39 * + - 49 + NULLIF ( + 24, 13 * CAST( NULLIF ( + 26, 63 ) AS SIGNED ) + 55 * - COUNT( * ) ) THEN NULL WHEN + 93 THEN 67 END )
----
1

skipif mysql # not compatible
query I rowsort label-7455
SELECT - 19 + - - 71 + - - COUNT ( - 9 ) + + NULLIF ( + - 52, + CASE + 56 WHEN 39 * + - 49 + NULLIF ( + 24, 13 * CAST ( NULLIF ( + 26, 63 ) AS INTEGER ) + 55 * - COUNT ( * ) ) THEN NULL WHEN + 93 THEN 67 END )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL + MAX( ALL 34 ) * - 16
----
-544

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + MAX ( ALL 34 ) * - 16
----
-544

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7459
SELECT ALL - CAST( NULL AS SIGNED ) + - CASE + + 15 WHEN - 27 THEN - - 2 WHEN MIN( ALL 96 ) THEN NULL WHEN - + 36 THEN NULL ELSE NULL END + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL - CAST ( NULL AS INTEGER ) + - CASE + + 15 WHEN - 27 THEN - - 2 WHEN MIN ( ALL 96 ) THEN NULL WHEN - + 36 THEN NULL ELSE NULL END + + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT + NULLIF ( - + NULLIF ( - 22, 12 / - 55 * - + 40 ), - 97 - + + 99 / + - COUNT( * ) ) * - COUNT( * ) - + - 39 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7460
SELECT + NULLIF ( - + NULLIF ( - 22, 12 / - 55 * - + 40 ), - 97 - + + 99 / + - COUNT ( * ) ) * - COUNT ( * ) - + - 39 AS col0
----
17

query I rowsort
SELECT ALL - - 61 * + 51
----
3111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT DISTINCT + - 98 + 97 + - + 39 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT + - 98 + 97 + - + 39 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT 34 + - + 87 * CASE - + SUM( ALL + 54 ) WHEN + 1 * + 65 + - ( + 28 ) + + 54 THEN - + 60 + + - 28 + 19 END * - - 17 / - 34 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT 34 + - + 87 * CASE - + SUM ( ALL + 54 ) WHEN + 1 * + 65 + - ( + 28 ) + + 54 THEN - + 60 + + - 28 + 19 END * - - 17 / - 34 / - COUNT ( * )
----
NULL

query I rowsort
SELECT + 40 * + 74 + - 1 - - 34 * + 48 + + + 48 AS col2
----
4639

query II rowsort
SELECT 76 AS col0, 76 AS col1
----
76
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7467
SELECT COUNT( * ) * + 71 DIV + - ( + - 86 ) * + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7467
SELECT COUNT ( * ) * + 71 / + - ( + - 86 ) * + 89 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7469
SELECT ALL - 69 AS col1, COUNT( * ) DIV - - 18 AS col0
----
-69
0

skipif mysql # not compatible
query II rowsort label-7469
SELECT ALL - 69 AS col1, COUNT ( * ) / - - 18 AS col0
----
-69
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7470
SELECT + 42, 72 + 13 * - 59 * - - 54 + + 78 / 6 * + CAST( NULL AS SIGNED ) AS col2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-7470
SELECT + 42, 72 + 13 * - 59 * - - 54 + + 78 / 6 * + CAST ( NULL AS INTEGER ) AS col2
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT NULLIF ( + COUNT( 62 ), COUNT( * ) * 5 ) + - 68 + - 69 AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-7471
SELECT NULLIF ( + COUNT ( 62 ), COUNT ( * ) * 5 ) + - 68 + - 69 AS col0
----
-136

query I rowsort
SELECT - 52 * + - 25 - 58
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT COUNT( * ) + + - COUNT( * ) * + + COUNT( * ) * ( - - 94 ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-7473
SELECT COUNT ( * ) + + - COUNT ( * ) * + + COUNT ( * ) * ( - - 94 ) col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL COALESCE ( - + 92, - - 0 ) + COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL COALESCE ( - + 92, - - 0 ) + COUNT ( * ) AS col1
----
-91

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

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

query I rowsort
SELECT ALL 83 + + + 35
----
118

query I rowsort
SELECT DISTINCT 13 + - 30
----
-17

query I rowsort
SELECT ALL + 37 * + 22 col0
----
814

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT 29 + - COUNT( ALL 96 ) * - 62 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7479
SELECT 29 + - COUNT ( ALL 96 ) * - 62 AS col2
----
91

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

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

query I rowsort
SELECT 77 + - - 40 col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL MAX( ALL - NULLIF ( ( 89 ), + ( + 98 ) ) )
----
-89

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL MAX ( ALL - NULLIF ( ( 89 ), + ( + 98 ) ) )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-7483
SELECT ALL - 18 AS col1, 37 * - + COUNT( * ) + + 95
----
-18
58

skipif mysql # not compatible
query II rowsort label-7483
SELECT ALL - 18 AS col1, 37 * - + COUNT ( * ) + + 95
----
-18
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT - ( - 63 ) + + - COUNT( * ) - - - MAX( - + 53 )
----
115

skipif mysql # not compatible
query I rowsort label-7484
SELECT - ( - 63 ) + + - COUNT ( * ) - - - MAX ( - + 53 )
----
115

query II rowsort
SELECT ALL + 5 AS col0, - 88 * + 91 AS col2
----
5
-8008

query II rowsort
SELECT ALL + 64 col0, 4 AS col2
----
64
4

query I rowsort
SELECT - 37 + 58 * + 18 * - 51
----
-53281

query I rowsort
SELECT + 81 * - - 7 * 76 col1
----
43092

query I rowsort
SELECT ALL + + 33 AS col1
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7490
SELECT DISTINCT - 63 * - 63 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT - 63 * - 63 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - - 16 * + 25
----
400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7492
SELECT ALL - - 27 * CASE 91 WHEN - SUM( ALL 79 ) THEN NULL ELSE 53 END * CAST( - 76 AS SIGNED ) * + 14 - + 53 + - + 16 + + + 64 col1
----
-1522589

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - - 27 * CASE 91 WHEN - SUM ( ALL 79 ) THEN NULL ELSE 53 END * CAST ( - 76 AS INTEGER ) * + 14 - + 53 + - + 16 + + + 64 col1
----
-1522589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT - COUNT( * ) + - ( + 67 ) DIV - - 35
----
-2

skipif mysql # not compatible
query I rowsort label-7493
SELECT - COUNT ( * ) + - ( + 67 ) / - - 35
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT ALL 8 * - - 54 + ( - + COUNT( * ) ) + - + 41 col0
----
390

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL 8 * - - 54 + ( - + COUNT ( * ) ) + - + 41 col0
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT ALL 96 * - 41 + - COUNT( * )
----
-3937

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL 96 * - 41 + - COUNT ( * )
----
-3937

query II rowsort
SELECT + 91 col0, 5
----
91
5

query II rowsort
SELECT + 25 AS col0, - 73 * 90 AS col1
----
25
-6570

query II rowsort
SELECT + + 33 col2, + 8 AS col2
----
33
8

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

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

query I rowsort
SELECT - + 89 * + 92 AS col2
----
-8188

query I rowsort
SELECT + + ( + + 65 ) + + 41 + + + ( + - ( - 51 ) )
----
157

query I rowsort
SELECT - 20 * + 27
----
-540

onlyif mysql # aggregate syntax: 
query II rowsort label-7503
SELECT + 26 + + COUNT( * ) AS col0, 63
----
27
63

skipif mysql # not compatible
query II rowsort label-7503
SELECT + 26 + + COUNT ( * ) AS col0, 63
----
27
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL + SUM( 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL + SUM ( 7 ) AS col2
----
7

query I rowsort
SELECT - 90 * 69
----
-6210

onlyif mysql # aggregate syntax: 
query II rowsort label-7506
SELECT ALL 1 * - 72, + CASE + + 91 WHEN + 89 THEN + 70 END + - CASE + COUNT( * ) WHEN - 65 THEN - ( - 88 ) * + 75 + 9 + - 22 / + + 45 WHEN 57 * 53 - - 49 + + + 64 THEN NULL ELSE NULL END AS col0
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-7506
SELECT ALL 1 * - 72, + CASE + + 91 WHEN + 89 THEN + 70 END + - CASE + COUNT ( * ) WHEN - 65 THEN - ( - 88 ) * + 75 + 9 + - 22 / + + 45 WHEN 57 * 53 - - 49 + + + 64 THEN NULL ELSE NULL END AS col0
----
-72
NULL

query I rowsort
SELECT DISTINCT + 96 * - - 33
----
3168

query I rowsort
SELECT - 30 - + 35 * 56
----
-1990

query I rowsort
SELECT + 53 + - 92
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7510
SELECT + COALESCE ( 29, - 15 + + MAX( ALL - 55 ) ) DIV + 3 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7510
SELECT + COALESCE ( 29, - 15 + + MAX ( ALL - 55 ) ) / + 3 AS col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7511
SELECT - COALESCE ( - 1, + 11 ), COUNT( * ) + - 21 * - 31 AS col1
----
1
652

skipif mysql # not compatible
query II rowsort label-7511
SELECT - COALESCE ( - 1, + 11 ), COUNT ( * ) + - 21 * - 31 AS col1
----
1
652

onlyif mysql # aggregate syntax: 
query II rowsort label-7512
SELECT + ( - CASE 73 WHEN + 33 THEN - 18 ELSE NULL END ) * - 86 - + + 61, COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7512
SELECT + ( - CASE 73 WHEN + 33 THEN - 18 ELSE NULL END ) * - 86 - + + 61, COUNT ( * ) col0
----
NULL
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT + + 94 * - 79 * 82 + + - COUNT( * ) + 70 AS col2
----
-608863

skipif mysql # not compatible
query I rowsort label-7514
SELECT + + 94 * - 79 * 82 + + - COUNT ( * ) + 70 AS col2
----
-608863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT DISTINCT 66 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT 66 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 10 - - 26 col2, 92
----
36
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT DISTINCT 6 DIV + 66 + - - 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT 6 / + 66 + - - 49 AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7518
SELECT DISTINCT - - 85 DIV - COUNT( * ) + - 90 + + + 45 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT - - 85 / - COUNT ( * ) + - 90 + + + 45 AS col2
----
-130

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

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

query I rowsort
SELECT + NULLIF ( + 26, - 92 )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT ALL - 22 DIV - 29 * 48 + 28 + 96 * - + 98 AS col1
----
-9380

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - 22 / - 29 * 48 + 28 + 96 * - + 98 AS col1
----
-9380

query I rowsort
SELECT + - 18 + - 21 * ( + 61 ) * + 84 + 88 * + 58 * - 83
----
-531254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7523
SELECT ALL - - COUNT( * ) DIV - COALESCE ( + 78, + + 7 + - 15 + - 74 * + 94 ) + - 13 * + 88 * - SUM( DISTINCT + 57 ) * - 42 + 46 + + + 42 * + - NULLIF ( + 30, - + 41 ) * - + 98
----
-2615210

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - - COUNT ( * ) / - COALESCE ( + 78, + + 7 + - 15 + - 74 * + 94 ) + - 13 * + 88 * - SUM ( DISTINCT + 57 ) * - 42 + 46 + + + 42 * + - NULLIF ( + 30, - + 41 ) * - + 98
----
-2615210

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT DISTINCT - 10 * CAST( - 28 AS SIGNED ) - MIN( DISTINCT + + 59 )
----
221

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT - 10 * CAST ( - 28 AS INTEGER ) - MIN ( DISTINCT + + 59 )
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7528
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7528
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 0
----
NULL
0

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

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

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

query I rowsort
SELECT - 60 * + + 18
----
-1080

query I rowsort
SELECT - 30 + + ( 31 ) * - + 23 col1
----
-743

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

skipif mysql # not compatible
query I rowsort label-7533
SELECT + 12 - + - COUNT ( * ) AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7534
SELECT ALL - 11 * - 65 * 55 col0, CAST( NULL AS SIGNED ) * CASE 21 WHEN - + 95 / + + 21 THEN NULL WHEN 60 THEN 3 - + + 42 - 73 - + 64 END AS col0
----
39325
NULL

skipif mysql # not compatible
query II rowsort label-7534
SELECT ALL - 11 * - 65 * 55 col0, CAST ( NULL AS INTEGER ) * CASE 21 WHEN - + 95 / + + 21 THEN NULL WHEN 60 THEN 3 - + + 42 - 73 - + 64 END AS col0
----
39325
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7536
SELECT ALL - 38 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL - 38 / + 79
----
0

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

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

query I rowsort
SELECT ALL 12 * + 6 AS col1
----
72

query II rowsort
SELECT ALL 26, 80 col2
----
26
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT MIN( ALL 21 ) + + 50 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7540
SELECT MIN ( ALL 21 ) + + 50 AS col1
----
71

query I rowsort
SELECT ALL + 48 * - - 5
----
240

query I rowsort
SELECT 48 * - 23
----
-1104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT 78 + - 47 + - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7544
SELECT 78 + - 47 + - COUNT ( * ) AS col2
----
30

query I rowsort
SELECT - 72 + 27
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT MIN( 71 ) * - CAST( 43 AS SIGNED )
----
-3053

skipif mysql # not compatible
query I rowsort label-7546
SELECT MIN ( 71 ) * - CAST ( 43 AS INTEGER )
----
-3053

query I rowsort
SELECT DISTINCT 11 + + + 63 * - ( 23 )
----
-1438

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

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

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - 68 + + COUNT ( * ) AS col2
----
-67

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

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

query I rowsort
SELECT ALL - 88 + + 80 AS col1
----
-8

query I rowsort
SELECT 47 + 20 AS col2
----
67

query I rowsort
SELECT DISTINCT - ( 0 ) + 21 AS col2
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT 40 + CASE - - 20 WHEN 72 * - CASE SUM( - 61 ) WHEN ( + COUNT( * ) ) + + SUM( ALL + + 64 ) THEN 85 END THEN NULL WHEN 28 THEN NULL ELSE - + 78 * 52 END AS col0
----
-4016

skipif mysql # not compatible
query I rowsort label-7555
SELECT 40 + CASE - - 20 WHEN 72 * - CASE SUM ( - 61 ) WHEN ( + COUNT ( * ) ) + + SUM ( ALL + + 64 ) THEN 85 END THEN NULL WHEN 28 THEN NULL ELSE - + 78 * 52 END AS col0
----
-4016

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

query I rowsort
SELECT - ( - + CASE 48 WHEN - + 37 THEN 60 END ) * - 84 AS col1
----
NULL

query I rowsort
SELECT 17 + - 4
----
13

query I rowsort
SELECT + 62 * + 49 AS col1
----
3038

query I rowsort
SELECT ALL 41 - - - 90 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7561
SELECT DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 31 AS col2, 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-7561
SELECT DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 31 AS col2, 72
----
NULL
72

query I rowsort
SELECT ALL 84 * - + 65
----
-5460

query I rowsort
SELECT 96 * + 62
----
5952

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT ALL - COALESCE ( 57, - - COUNT( * ) DIV - 75 * + 12 DIV 10 )
----
-57

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL - COALESCE ( 57, - - COUNT ( * ) / - 75 * + 12 / 10 )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7566
SELECT ( + CAST( + + 77 AS SIGNED ) ) * + 16 AS col1, 3 * + 59 AS col1
----
1232
177

skipif mysql # not compatible
query II rowsort label-7566
SELECT ( + CAST ( + + 77 AS INTEGER ) ) * + 16 AS col1, 3 * + 59 AS col1
----
1232
177

query I rowsort
SELECT 49 * - 83
----
-4067

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

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT - COUNT ( ALL + + 95 ) AS col0
----
-1

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

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

query I rowsort
SELECT DISTINCT - 0 col1
----
0

query I rowsort
SELECT DISTINCT - 24 * - 4
----
96

query I rowsort
SELECT 51 * + ( + 90 )
----
4590

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT 83 DIV - 35 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7573
SELECT 83 / - 35 AS col2
----
-2

query I rowsort
SELECT ALL - 7 + + 57 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7575
SELECT CAST( - 72 AS SIGNED ) - - 30 + - 47 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7575
SELECT CAST ( - 72 AS INTEGER ) - - 30 + - 47 AS col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-7576
SELECT - 47 + - 95 DIV - 93 col0
----
-46

skipif mysql # not compatible
query I rowsort label-7576
SELECT - 47 + - 95 / - 93 col0
----
-46

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

skipif mysql # not compatible
query I rowsort label-7577
SELECT 93 / + - 59 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT - CASE - 79 WHEN - - 59 * + 60 THEN - 52 END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + + 12, + 62 ) + + 91 AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7581
SELECT 85 * - 80 + - + 9 + - - 77 AS col0, + 83 * - - MIN( - 82 ) AS col1
----
-6732
-6806

skipif mysql # not compatible
query II rowsort label-7581
SELECT 85 * - 80 + - + 9 + - - 77 AS col0, + 83 * - - MIN ( - 82 ) AS col1
----
-6732
-6806

query I rowsort
SELECT ALL - + 81 + - 2 * - 45 AS col0
----
9

query I rowsort
SELECT + 97 - - + 7 AS col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT ALL - CAST( - + ( - 12 ) AS SIGNED ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL - CAST ( - + ( - 12 ) AS INTEGER ) AS col0
----
-12

query II rowsort
SELECT - - ( + + 84 ) AS col2, - 14
----
84
-14

query I rowsort
SELECT ALL - 52 col0
----
-52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7588
SELECT DISTINCT + 24 - COUNT( - ( - 72 ) ) + 53 + 9 + - 18 DIV + 59 * + CAST( MIN( + - ( - + 49 ) ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT + 24 - COUNT ( - ( - 72 ) ) + 53 + 9 + - 18 / + 59 * + CAST ( MIN ( + - ( - + 49 ) ) AS INTEGER )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT + NULLIF ( + - 35, + 5 + - + COUNT( * ) + + - COALESCE ( - MAX( DISTINCT 82 ), - 24 ) + - 6 + + + 61 * + - 62 + ( - + 76 ) + + 6 + - 28 * + COUNT( * ) * - 10 * 19 * - 38 + + - COUNT( * ) * - 31 )
----
-35

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT + NULLIF ( + - 35, + 5 + - + COUNT ( * ) + + - COALESCE ( - MAX ( DISTINCT 82 ), - 24 ) + - 6 + + + 61 * + - 62 + ( - + 76 ) + + 6 + - 28 * + COUNT ( * ) * - 10 * 19 * - 38 + + - COUNT ( * ) * - 31 )
----
-35

query I rowsort
SELECT - - 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT COUNT( ALL 57 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7591
SELECT COUNT ( ALL 57 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT MAX( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-7593
SELECT MAX ( - 40 )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7594
SELECT 13 DIV - 84 * - 98
----
0

skipif mysql # not compatible
query I rowsort label-7594
SELECT 13 / - 84 * - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT MAX( ALL - + 1 ) * - + ( + + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT MAX ( ALL - + 1 ) * - + ( + + 62 )
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-7596
SELECT - 35 DIV + 46 + + 96 AS col2, - 37
----
96
-37

skipif mysql # not compatible
query II rowsort label-7596
SELECT - 35 / + 46 + + 96 AS col2, - 37
----
96
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7597
SELECT CAST( + - ( + 79 ) AS SIGNED ) * + 15
----
-1185

skipif mysql # not compatible
query I rowsort label-7597
SELECT CAST ( + - ( + 79 ) AS INTEGER ) * + 15
----
-1185

query I rowsort
SELECT 32 + 18 col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT 47 * - - CAST( + + 89 AS SIGNED ) - 16
----
4167

skipif mysql # not compatible
query I rowsort label-7599
SELECT 47 * - - CAST ( + + 89 AS INTEGER ) - 16
----
4167

query I rowsort
SELECT ALL 42 * - 53
----
-2226

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT - 47 * + 51 + - COUNT( * ) * + 59 - + 84 + - 29
----
-2569

skipif mysql # not compatible
query I rowsort label-7601
SELECT - 47 * + 51 + - COUNT ( * ) * + 59 - + 84 + - 29
----
-2569

query I rowsort
SELECT 48 * 48 AS col1
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT DISTINCT 48 * - - MIN( ALL 87 )
----
4176

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT 48 * - - MIN ( ALL 87 )
----
4176

query II rowsort
SELECT DISTINCT + 6, 9 col1
----
6
9

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

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

query I rowsort
SELECT DISTINCT 76 + 21 * - 78
----
-1562

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7608
SELECT + NULLIF ( + 23, + 84 ) + 69 * + CAST( - CAST( 57 AS SIGNED ) AS SIGNED ) * + 20 - - COUNT( * )
----
-78636

skipif mysql # not compatible
query I rowsort label-7608
SELECT + NULLIF ( + 23, + 84 ) + 69 * + CAST ( - CAST ( 57 AS INTEGER ) AS INTEGER ) * + 20 - - COUNT ( * )
----
-78636

query I rowsort
SELECT - 52 * + - 9 + - - ( 68 )
----
536

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

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

query I rowsort
SELECT + 93 + - 50 + CASE 35 WHEN + 56 + 52 THEN - 26 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL 99 + COUNT( * ) col0
----
100

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL 99 + COUNT ( * ) col0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + COALESCE ( + - 89, - 80 + - ( + 0 ) ) / + - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COALESCE ( + - 89, - 80 + - ( + 0 ) ) / + - 48 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7614
SELECT ALL 50 * + - 98 * - SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

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

query II rowsort
SELECT ALL - 21 AS col2, + 26 col2
----
-21
26

query I rowsort
SELECT + - 80 + - + 35 AS col0
----
-115

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

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

query I rowsort
SELECT + + 5 + - 29 - 89 + + 5
----
-108

query I rowsort
SELECT - - 0 - - + 30
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT ALL NULLIF ( - 1, 31 ), + COUNT( DISTINCT - 24 ) + - - 5 AS col0
----
-1
6

skipif mysql # not compatible
query II rowsort label-7620
SELECT ALL NULLIF ( - 1, 31 ), + COUNT ( DISTINCT - 24 ) + - - 5 AS col0
----
-1
6

query I rowsort
SELECT ALL + 67 - + 38 col2
----
29

query I rowsort
SELECT - + 56 * + 52 + + ( 67 ) * - ( 85 )
----
-8607

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT - 92 + ( - MIN( + + 85 ) ) AS col0
----
-177

skipif mysql # not compatible
query I rowsort label-7623
SELECT - 92 + ( - MIN ( + + 85 ) ) AS col0
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-7624
SELECT DISTINCT + NULLIF ( - 99, 79 ) DIV - 43
----
2

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT + NULLIF ( - 99, 79 ) / - 43
----
2

query I rowsort
SELECT - ( - - 96 ) + + - 71 AS col2
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7626
SELECT DISTINCT - MIN( ALL - 7 ) * - ( + - 92 ) * + + ( 33 ) * + 7 * + ( 8 ) + + CAST( + 26 AS SIGNED ) col0
----
1190138

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT - MIN ( ALL - 7 ) * - ( + - 92 ) * + + ( 33 ) * + 7 * + ( 8 ) + + CAST ( + 26 AS INTEGER ) col0
----
1190138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7627
SELECT DISTINCT COALESCE ( 57, + + 98, 21 * 19 - 33 + 10 + 66 * + + COALESCE ( + 42, 9, - ( + 5 ), + - COUNT( + 33 ) ) DIV + ( - - 2 ) * + 83 DIV + 43 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT COALESCE ( 57, + + 98, 21 * 19 - 33 + 10 + 66 * + + COALESCE ( + 42, 9, - ( + 5 ), + - COUNT ( + 33 ) ) / + ( - - 2 ) * + 83 / + 43 ) AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7628
SELECT ALL - CASE - + CAST( - 72 AS SIGNED ) WHEN 43 / - COUNT( * ) * 35 * - - 53 + + MAX( + - 90 ) THEN NULL ELSE - 33 END * + CAST( NULL AS DECIMAL ) / - 51 * - CASE 77 WHEN - - CAST( NULL AS SIGNED ) THEN - + 80 ELSE NULL END + + - ( + - 20 ) * - + COUNT( * ) + - 8 * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - CASE - + CAST ( - 72 AS INTEGER ) WHEN 43 / - COUNT ( * ) * 35 * - - 53 + + MAX ( + - 90 ) THEN NULL ELSE - 33 END * + CAST ( NULL AS REAL ) / - 51 * - CASE 77 WHEN - - CAST ( NULL AS INTEGER ) THEN - + 80 ELSE NULL END + + - ( + - 20 ) * - + COUNT ( * ) + - 8 * + 95
----
NULL

query I rowsort
SELECT - 7 * + 54 * + 61
----
-23058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7630
SELECT DISTINCT + ( + 87 ), + 56 * - - 85 * + CAST( + COUNT( * ) AS SIGNED ) * - 24 - - 79 AS col1
----
87
-114161

skipif mysql # not compatible
query II rowsort label-7630
SELECT DISTINCT + ( + 87 ), + 56 * - - 85 * + CAST ( + COUNT ( * ) AS INTEGER ) * - 24 - - 79 AS col1
----
87
-114161

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

query II rowsort
SELECT ALL COALESCE ( 89, + 45, 19 ) * 6 + - 54 AS col0, - 62 AS col2
----
480
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7633
SELECT ( + 5 ), 4 * + 44 + + + 9 + - MAX( DISTINCT + 87 ) + + - 26 AS col1
----
5
72

skipif mysql # not compatible
query II rowsort label-7633
SELECT ( + 5 ), 4 * + 44 + + + 9 + - MAX ( DISTINCT + 87 ) + + - 26 AS col1
----
5
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7634
SELECT ALL 89 * - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + + 85 - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL 89 * - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + + 85 - - 30
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7636
SELECT ALL COUNT( * ) * - CAST( - CASE + + 7 WHEN + CAST( + 41 AS SIGNED ) + - CASE + 46 WHEN - COUNT( * ) THEN - CAST( NULL AS SIGNED ) END * - 38 THEN + + 33 + 17 WHEN + 98 THEN NULL END AS DECIMAL ) + 53 - - NULLIF ( 42, + - COUNT( * ) * + - 52 + + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL COUNT ( * ) * - CAST ( - CASE + + 7 WHEN + CAST ( + 41 AS INTEGER ) + - CASE + 46 WHEN - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) END * - 38 THEN + + 33 + 17 WHEN + 98 THEN NULL END AS REAL ) + 53 - - NULLIF ( 42, + - COUNT ( * ) * + - 52 + + 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT - COUNT( * ) - + + 37 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7637
SELECT - COUNT ( * ) - + + 37 AS col2
----
-38

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

query I rowsort
SELECT ALL 29 * ( - 15 ) * - 39 + + 10 AS col1
----
16975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7640
SELECT + ( + ( - 65 ) ) DIV 55 * MAX( DISTINCT + 96 ) + + + 15 col2
----
-81

skipif mysql # not compatible
query I rowsort label-7640
SELECT + ( + ( - 65 ) ) / 55 * MAX ( DISTINCT + 96 ) + + + 15 col2
----
-81

query I rowsort
SELECT ALL + 37 * + - 16 + - 87
----
-679

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7642
SELECT DISTINCT + - 39, + ( - - CASE + 70 WHEN - + 90 * - ( 1 ) THEN + 69 + + 82 * 92 ELSE + + COUNT( ALL + - 25 ) DIV 29 END ) col0
----
-39
0

skipif mysql # not compatible
query II rowsort label-7642
SELECT DISTINCT + - 39, + ( - - CASE + 70 WHEN - + 90 * - ( 1 ) THEN + 69 + + 82 * 92 ELSE + + COUNT ( ALL + - 25 ) / 29 END ) col0
----
-39
0

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

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

query I rowsort
SELECT + + 26 * 59 AS col1
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - - COALESCE ( 45, - - ( - COUNT( * ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-7645
SELECT - - COALESCE ( 45, - - ( - COUNT ( * ) ) )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7646
SELECT ALL - + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * - CAST( - - 66 AS SIGNED ) * + 48 - + CAST( + 90 AS DECIMAL ) * - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - CAST ( - - 66 AS INTEGER ) * + 48 - + CAST ( + 90 AS REAL ) * - - 50
----
NULL

query I rowsort
SELECT + - 51 + - 2
----
-53

query II rowsort
SELECT ALL + ( 27 ) * 24 * - + 84 * - NULLIF ( 57, 55 ) AS col0, 9 AS col0
----
3102624
9

query II rowsort
SELECT - 5, 29 AS col0
----
-5
29

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

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL MIN ( - 76 )
----
-76

query I rowsort
SELECT ALL + + 59 * - - 64 + + 45 AS col2
----
3821

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

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

query I rowsort
SELECT ALL 51 * - 62
----
-3162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7654
SELECT + MAX( ALL - 70 ) - - 24 DIV + 47 + + NULLIF ( - 64, COUNT( * ) ) AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-7654
SELECT + MAX ( ALL - 70 ) - - 24 / + 47 + + NULLIF ( - 64, COUNT ( * ) ) AS col2
----
-134

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7656
SELECT + - COALESCE ( + ( 86 ), - 51, - ( - 36 ) * + + 3 ) DIV - - 50 - + 36 AS col2, 0
----
-37
0

skipif mysql # not compatible
query II rowsort label-7656
SELECT + - COALESCE ( + ( 86 ), - 51, - ( - 36 ) * + + 3 ) / - - 50 - + 36 AS col2, 0
----
-37
0

query I rowsort
SELECT - - 44 * - - 8 * - + ( + + 21 ) * + 84
----
-620928

query I rowsort
SELECT + + 33 - + 90
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7659
SELECT 59 AS col2, COUNT( * ) AS col0, - 9 * - CAST( NULL AS SIGNED )
----
59
1
NULL

skipif mysql # not compatible
query III rowsort label-7659
SELECT 59 AS col2, COUNT ( * ) AS col0, - 9 * - CAST ( NULL AS INTEGER )
----
59
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7660
SELECT + COUNT( * ) * - + 98 DIV + - COALESCE ( - 94, + 19 + - - 46 DIV + 98 ), - 2 * - - 0 col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-7660
SELECT + COUNT ( * ) * - + 98 / + - COALESCE ( - 94, + 19 + - - 46 / + 98 ), - 2 * - - 0 col1
----
-1
0

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

skipif mysql # not compatible
query I rowsort label-7661
SELECT 58 - CAST ( NULL AS INTEGER ) + + 49
----
NULL

query II rowsort
SELECT 68 * - 35 col0, - 25 - - ( - + 26 )
----
-2380
-51

query I rowsort
SELECT ALL + 93 + 15
----
108

onlyif mysql # DIV for integer division: 
query II rowsort label-7664
SELECT 77 * + 36 AS col0, 80 - - 17 + 75 DIV + 98
----
2772
97

skipif mysql # not compatible
query II rowsort label-7664
SELECT 77 * + 36 AS col0, 80 - - 17 + 75 / + 98
----
2772
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT 67 + + - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7665
SELECT 67 + + - COUNT ( * ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7666
SELECT - 7 DIV - 23 - - + 7 - - 53 + 75
----
135

skipif mysql # not compatible
query I rowsort label-7666
SELECT - 7 / - 23 - - + 7 - - 53 + 75
----
135

query II rowsort
SELECT ALL - 58 + + 11 AS col2, + 11 AS col0
----
-47
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT + 7 * + COUNT( * ) + 1 + - + 56
----
-48

skipif mysql # not compatible
query I rowsort label-7668
SELECT + 7 * + COUNT ( * ) + 1 + - + 56
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7669
SELECT + 44 * MAX( + + 80 ) + + 34 * - CASE + NULLIF ( - + 57, - AVG ( DISTINCT 41 ) - 48 * + 56 * + ( 9 ) * + - 25 / NULLIF ( - + CAST( NULL AS SIGNED ), - 53 / + 57 + + CASE + + 48 WHEN - MAX( 49 ) THEN NULL ELSE - 95 END ) + + + 43 * + CASE 67 WHEN 52 * 33 + - 24 THEN + 45 WHEN 13 THEN NULL END * - 20 * - 5 + COALESCE ( 11, + 7, + - COALESCE ( - 91, + 22 * - 87, + COUNT( + - 87 ) ) + + - ( - 53 ) * 67 * COUNT( 93 ) + - 97, + COALESCE ( 1, 67 + - 66 * - NULLIF ( COUNT( * ) + - NULLIF ( 87 + + 31, - ( - 41 ) ), 92 + 32 * 58 ) ) ) - 46 * - 50 ) WHEN - CAST( NULL AS SIGNED ) + - 28 THEN 89 + 95 END + + COUNT( * ) * COALESCE ( CASE + 71 WHEN 3 + COUNT( * ) THEN - 53 * + CAST( - 10 AS DECIMAL ) WHEN + 54 * 33 THEN 98 WHEN + 26 + - CAST( + CAST( 61 AS SIGNED ) AS SIGNED ) THEN NULL ELSE NULL END, 80 + 41, 44, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT + 44 * MAX ( + + 80 ) + + 34 * - CASE + NULLIF ( - + 57, - AVG ( DISTINCT 41 ) - 48 * + 56 * + ( 9 ) * + - 25 / NULLIF ( - + CAST ( NULL AS INTEGER ), - 53 / + 57 + + CASE + + 48 WHEN - MAX ( 49 ) THEN NULL ELSE - 95 END ) + + + 43 * + CASE 67 WHEN 52 * 33 + - 24 THEN + 45 WHEN 13 THEN NULL END * - 20 * - 5 + COALESCE ( 11, + 7, + - COALESCE ( - 91, + 22 * - 87, + COUNT ( + - 87 ) ) + + - ( - 53 ) * 67 * COUNT ( 93 ) + - 97, + COALESCE ( 1, 67 + - 66 * - NULLIF ( COUNT ( * ) + - NULLIF ( 87 + + 31, - ( - 41 ) ), 92 + 32 * 58 ) ) ) - 46 * - 50 ) WHEN - CAST ( NULL AS INTEGER ) + - 28 THEN 89 + 95 END + + COUNT ( * ) * COALESCE ( CASE + 71 WHEN 3 + COUNT ( * ) THEN - 53 * + CAST ( - 10 AS REAL ) WHEN + 54 * 33 THEN 98 WHEN + 26 + - CAST ( + CAST ( 61 AS INTEGER ) AS INTEGER ) THEN NULL ELSE NULL END, 80 + 41, 44, COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT ALL - COALESCE ( - 7, + - 27 + + 8 + 80 * 9 * - + 15, - 76 DIV 25 )
----
7

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - COALESCE ( - 7, + - 27 + + 8 + 80 * 9 * - + 15, - 76 / 25 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7671
SELECT 2 + - MIN( ALL COALESCE ( 39, 11 DIV - 33 + - - 99 ) ) * 31 DIV CAST( + + COUNT( * ) AS SIGNED )
----
-1207

skipif mysql # not compatible
query I rowsort label-7671
SELECT 2 + - MIN ( ALL COALESCE ( 39, 11 / - 33 + - - 99 ) ) * 31 / CAST ( + + COUNT ( * ) AS INTEGER )
----
-1207

query III rowsort
SELECT ALL + 61 - - - ( 47 ) AS col2, - 67 * + 94 col0, 19 + - + 91
----
14
-6298
-72

query I rowsort
SELECT + 72 * 91
----
6552

query II rowsort
SELECT + CASE + 25 WHEN + 68 THEN NULL ELSE - ( + + 99 ) * + 70 + + 23 END col1, + 17 AS col2
----
-6907
17

query I rowsort
SELECT ALL - - 55 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT DISTINCT - 67 * + - 95 + CASE - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN - 4 THEN - 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT - 67 * + - 95 + CASE - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN - 4 THEN - 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7677
SELECT - CASE + COUNT( * ) WHEN + 7 THEN NULL ELSE + 95 END DIV 92, + 77 AS col2
----
-1
77

skipif mysql # not compatible
query II rowsort label-7677
SELECT - CASE + COUNT ( * ) WHEN + 7 THEN NULL ELSE + 95 END / 92, + 77 AS col2
----
-1
77

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7679
SELECT - CASE + + 74 WHEN 89 THEN - COUNT( * ) ELSE + 78 END, 16 * + 2 * + + MAX( + 67 ) + - 94 col2
----
-78
2050

skipif mysql # not compatible
query II rowsort label-7679
SELECT - CASE + + 74 WHEN 89 THEN - COUNT ( * ) ELSE + 78 END, 16 * + 2 * + + MAX ( + 67 ) + - 94 col2
----
-78
2050

query I rowsort
SELECT - ( - 54 )
----
54

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

query II rowsort
SELECT DISTINCT 34 AS col2, 39 AS col1
----
34
39

query II rowsort
SELECT ( + + 75 ) + - 16 AS col0, - 47
----
59
-47

query I rowsort
SELECT DISTINCT + 79 * - - NULLIF ( - - 99, + - 95 * + + 13 + - 2 + - 4 / ( - 77 ) + 73 + 53 ) AS col2
----
7821

query I rowsort
SELECT DISTINCT 25 + 6
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL 84 + - MAX( 72 ) * + + 93 + + - 77 AS col0
----
-6689

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL 84 + - MAX ( 72 ) * + + 93 + + - 77 AS col0
----
-6689

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT ALL 60 + + - 16 DIV 49 - - 27
----
87

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL 60 + + - 16 / 49 - - 27
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7689
SELECT 87 + + + MIN( DISTINCT + + 37 ), 22 + + + 41 AS col1
----
124
63

skipif mysql # not compatible
query II rowsort label-7689
SELECT 87 + + + MIN ( DISTINCT + + 37 ), 22 + + + 41 AS col1
----
124
63

query I rowsort
SELECT 93 + 78
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-7691
SELECT 67 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-7691
SELECT 67 / - 39
----
-1

query I rowsort
SELECT 89 * 81 + 82
----
7291

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT SUM( DISTINCT + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7693
SELECT SUM ( DISTINCT + 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL + 89 - 72 * + COUNT( ALL - - 85 ) + + 64 * MIN( ALL + - 57 )
----
-3631

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL + 89 - 72 * + COUNT ( ALL - - 85 ) + + 64 * MIN ( ALL + - 57 )
----
-3631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7695
SELECT ALL - 22 AS col1, CAST( + SUM( ALL + - 65 ) AS SIGNED ) DIV - 94 + - 70 AS col0
----
-22
-70

skipif mysql # not compatible
query II rowsort label-7695
SELECT ALL - 22 AS col1, CAST ( + SUM ( ALL + - 65 ) AS INTEGER ) / - 94 + - 70 AS col0
----
-22
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT 92 DIV + 9
----
10

skipif mysql # not compatible
query I rowsort label-7696
SELECT 92 / + 9
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT DISTINCT 11 DIV ( - - 36 ) * + ( - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT 11 / ( - - 36 ) * + ( - 55 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT ALL 70 - + 40 DIV 86 col0
----
70

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL 70 - + 40 / 86 col0
----
70

query II rowsort
SELECT 76 * - ( + 56 ), 86 AS col1
----
-4256
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT MAX( DISTINCT - 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7700
SELECT MAX ( DISTINCT - 21 ) AS col2
----
-21

query I rowsort
SELECT - 70 * + 21 AS col2
----
-1470

query I rowsort
SELECT ALL + + 51 * - 88
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL - CASE 44 WHEN - - 37 THEN + 30 - + COALESCE ( - - 91, - NULLIF ( - 21, - - 51 * + 90 ) / + + 73 + - 40, 67 ) * 17 WHEN - MAX( - 29 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - CASE 44 WHEN - - 37 THEN + 30 - + COALESCE ( - - 91, - NULLIF ( - 21, - - 51 * + 90 ) / + + 73 + - 40, 67 ) * 17 WHEN - MAX ( - 29 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 85 + - 60
----
25

query II rowsort
SELECT DISTINCT - - 28, + 95 AS col1
----
28
95

query I rowsort
SELECT ALL - ( + COALESCE ( - 93, ( - 22 ) ) )
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7707
SELECT - CAST( NULL AS DECIMAL ) / - 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT - CAST ( NULL AS REAL ) / - 38 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT DISTINCT - 55 DIV 16 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT - 55 / 16 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT - CAST( NULL AS SIGNED ) + 8 + - 70 * + 50 / - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT - CAST ( NULL AS INTEGER ) + 8 + - 70 * + 50 / - 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT ALL - COALESCE ( - + COUNT( * ), - 99 * - + 99 * + ( + ( + - 52 ) ) ) * - COUNT( * ) * - 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL - COALESCE ( - + COUNT ( * ), - 99 * - + 99 * + ( + ( + - 52 ) ) ) * - COUNT ( * ) * - 29 AS col0
----
29

query I rowsort
SELECT + 39 * 39
----
1521

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT 11 * + MIN( + 27 ) + - 76 AS col1
----
221

skipif mysql # not compatible
query I rowsort label-7712
SELECT 11 * + MIN ( + 27 ) + - 76 AS col1
----
221

onlyif mysql # DIV for integer division: 
query I rowsort label-7713
SELECT DISTINCT - + 33 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT - + 33 / + 99 AS col0
----
0

query I rowsort
SELECT ALL - 61 + - 35
----
-96

query I rowsort
SELECT DISTINCT - 75 + 19
----
-56

query I rowsort
SELECT ALL + 20 + + 65 + 51 AS col2
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT - 66 - - 1 + 94 + + - NULLIF ( CAST( 75 AS SIGNED ), - 8 * - 27 )
----
-46

skipif mysql # not compatible
query I rowsort label-7717
SELECT - 66 - - 1 + 94 + + - NULLIF ( CAST ( 75 AS INTEGER ), - 8 * - 27 )
----
-46

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

skipif mysql # not compatible
query I rowsort label-7718
SELECT - COUNT ( 12 )
----
-1

query I rowsort
SELECT DISTINCT 71 - + 78
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT + 83 * - CAST( - 77 AS SIGNED ) AS col2
----
6391

skipif mysql # not compatible
query I rowsort label-7720
SELECT + 83 * - CAST ( - 77 AS INTEGER ) AS col2
----
6391

query I rowsort
SELECT DISTINCT 35 * - + ( + + 38 ) AS col1
----
-1330

query I rowsort
SELECT + 47 * 65
----
3055

query I rowsort
SELECT + 64 - + 87
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7724
SELECT + 99 DIV 79 + 36 + SUM( + 63 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7724
SELECT + 99 / 79 + 36 + SUM ( + 63 ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT + COUNT( * ) * - COUNT( * ) + + - 99 + - 46 AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-7725
SELECT + COUNT ( * ) * - COUNT ( * ) + + - 99 + - 46 AS col2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT 95 DIV 49 + - 49 * + ( 18 ) + - + 75
----
-956

skipif mysql # not compatible
query I rowsort label-7726
SELECT 95 / 49 + - 49 * + ( 18 ) + - + 75
----
-956

onlyif mysql # DIV for integer division: 
query II rowsort label-7727
SELECT - 34 DIV + 16 AS col2, 95
----
-2
95

skipif mysql # not compatible
query II rowsort label-7727
SELECT - 34 / + 16 AS col2, 95
----
-2
95

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7730
SELECT DISTINCT MIN( ALL 63 ) DIV - 84 * ( - 21 )
----
0

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT MIN ( ALL 63 ) / - 84 * ( - 21 )
----
0

query I rowsort
SELECT - 47 + + 75 + + 10 AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7732
SELECT ALL 17 DIV COUNT( DISTINCT - 11 ) + 10 * - 32 AS col2
----
-303

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL 17 / COUNT ( DISTINCT - 11 ) + 10 * - 32 AS col2
----
-303

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT - 61 + 8 + - COUNT( * ) * + 38 - + COUNT( * ) * + COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-7733
SELECT - 61 + 8 + - COUNT ( * ) * + 38 - + COUNT ( * ) * + COUNT ( * ) AS col2
----
-92

query I rowsort
SELECT DISTINCT + ( - 91 ) * - + 98 * 10 + + COALESCE ( + 94, - - 24 ) + - - 83 AS col1
----
89357

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL + COALESCE ( + MIN( 28 ), - + 68, 26 * + 98 + 38 ) col0
----
28

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL + COALESCE ( + MIN ( 28 ), - + 68, 26 * + 98 + 38 ) col0
----
28

query I rowsort
SELECT DISTINCT - 13 * + 40 + + 45 AS col2
----
-475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT ALL CASE - NULLIF ( 62, CAST( NULL AS SIGNED ) ) WHEN - 70 THEN + - ( - 46 ) * 19 + + - 61 * - ( 51 ) * 48 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL CASE - NULLIF ( 62, CAST ( NULL AS INTEGER ) ) WHEN - 70 THEN + - ( - 46 ) * 19 + + - 61 * - ( 51 ) * 48 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT DISTINCT NULLIF ( + + COUNT( - - 13 ), - ( + 28 ) + + ( - 36 ) + + 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT NULLIF ( + + COUNT ( - - 13 ), - ( + 28 ) + + ( - 36 ) + + 10 ) AS col0
----
1

query I rowsort
SELECT - 25 * + 65 AS col1
----
-1625

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT ALL - 61 DIV + + 78
----
0

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL - 61 / + + 78
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT + 24 - + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-7742
SELECT + 24 - + COUNT ( * )
----
23

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

query I rowsort
SELECT DISTINCT + 44 * + 64 AS col2
----
2816

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7746
SELECT + 65 + COALESCE ( 21, - COUNT( * ), 30 ) AS col0, - 61
----
86
-61

skipif mysql # not compatible
query II rowsort label-7746
SELECT + 65 + COALESCE ( 21, - COUNT ( * ), 30 ) AS col0, - 61
----
86
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7747
SELECT ALL CAST( + - COUNT( + - COALESCE ( - 5, - - 6 ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL CAST ( + - COUNT ( + - COALESCE ( - 5, - - 6 ) ) AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT DISTINCT CAST( 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT CAST ( 92 AS INTEGER )
----
92

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

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

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

query I rowsort
SELECT + 93 * + 96 AS col0
----
8928

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

query I rowsort
SELECT + 57 * + ( 67 ) AS col0
----
3819

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

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL + 7 / COUNT ( * ) + 28
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7755
SELECT DISTINCT - NULLIF ( 20, + AVG ( ALL 29 ) + ( COUNT( * ) + ( - 60 ) ) ) DIV - 14 + + 95 col0
----
96

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT - NULLIF ( 20, + AVG ( ALL 29 ) + ( COUNT ( * ) + ( - 60 ) ) ) / - 14 + + 95 col0
----
96

query I rowsort
SELECT ALL 81 * 35 AS col1
----
2835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7757
SELECT ALL 19 DIV + COUNT( * ) + - 88
----
-69

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL 19 / + COUNT ( * ) + - 88
----
-69

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7760
SELECT DISTINCT + NULLIF ( 69, 33 * 28 ) DIV ( - 30 * ( + 19 ) + + ( 13 ) ) + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT + NULLIF ( 69, 33 * 28 ) / ( - 30 * ( + 19 ) + + ( 13 ) ) + - 12
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT ALL - 91 DIV - 31 + - 33
----
-31

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL - 91 / - 31 + - 33
----
-31

query I rowsort
SELECT 1 * - 91 - + 96 AS col2
----
-187

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

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

query I rowsort
SELECT ( 7 ) AS col1
----
7

query I rowsort
SELECT ALL 73 + - 79 * - 26
----
2127

onlyif mysql # DIV for integer division: 
query I rowsort label-7766
SELECT DISTINCT + 47 DIV - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT + 47 / - 72 AS col0
----
0

query I rowsort
SELECT DISTINCT 8 + - 79 AS col2
----
-71

query I rowsort
SELECT 38 * 61 - + 26 AS col1
----
2292

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT DISTINCT 2 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT 2 / 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT 80 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7770
SELECT 80 / 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT ( - MAX( 68 ) ) * - 34 AS col1
----
2312

skipif mysql # not compatible
query I rowsort label-7771
SELECT ( - MAX ( 68 ) ) * - 34 AS col1
----
2312

query I rowsort
SELECT 87 * NULLIF ( 34, 89 * - 29 )
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT DISTINCT - 75 * - COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT - 75 * - COUNT ( * ) AS col2
----
75

query I rowsort
SELECT 96 * 71 AS col1
----
6816

query I rowsort
SELECT 3 + 6 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT DISTINCT - 57 - ( - 71 + + 78 DIV - 17 )
----
18

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT - 57 - ( - 71 + + 78 / - 17 )
----
18

query I rowsort
SELECT DISTINCT 42 * + 15 AS col1
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT 60 * + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT 60 * + COUNT ( * ) AS col0
----
60

query I rowsort
SELECT 86 * - 35 AS col1
----
-3010

query I rowsort
SELECT DISTINCT 95 - 28 * - 23 AS col1
----
739

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT 12 * COALESCE ( 77 * - 22, ( ( MIN( + 36 ) ) ) )
----
-20328

skipif mysql # not compatible
query I rowsort label-7781
SELECT 12 * COALESCE ( 77 * - 22, ( ( MIN ( + 36 ) ) ) )
----
-20328

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT ( COUNT( * ) ) - 33 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7782
SELECT ( COUNT ( * ) ) - 33 AS col0
----
-32

query I rowsort
SELECT 2 + 66
----
68

query I rowsort
SELECT ALL + 95 * 6
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL - MAX( + 18 ) + 38 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - MAX ( + 18 ) + 38 AS col2
----
20

query I rowsort
SELECT DISTINCT + 14 * - 83 AS col2
----
-1162

onlyif mysql # DIV for integer division: 
query I rowsort label-7787
SELECT 30 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-7787
SELECT 30 / + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL 33 + + COUNT( 16 ) * NULLIF ( - ( 47 ), 59 / - 81 )
----
-14

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL 33 + + COUNT ( 16 ) * NULLIF ( - ( 47 ), 59 / - 81 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7789
SELECT CASE - 47 WHEN NULLIF ( - ( + 22 ), + 24 * 22 ) * 25 THEN - COUNT( DISTINCT + 63 ) * - CAST( + 46 AS SIGNED ) WHEN 76 THEN 60 * 24 WHEN - 77 THEN NULL ELSE NULL END - + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT CASE - 47 WHEN NULLIF ( - ( + 22 ), + 24 * 22 ) * 25 THEN - COUNT ( DISTINCT + 63 ) * - CAST ( + 46 AS INTEGER ) WHEN 76 THEN 60 * 24 WHEN - 77 THEN NULL ELSE NULL END - + 38
----
NULL

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

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

query I rowsort
SELECT ALL - 92 + 22 * 56
----
1140

query I rowsort
SELECT + 16 - 89 * + 70
----
-6214

query I rowsort
SELECT DISTINCT - + NULLIF ( + 98, 15 + 87 ) + - 98 col0
----
-196

query I rowsort
SELECT ALL + + 69 + + 55 AS col1
----
124

query I rowsort
SELECT ALL - 26 + - 64 * 10
----
-666

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7797
SELECT ALL 62 - 5 DIV + 30 col2
----
62

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL 62 - 5 / + 30 col2
----
62

query I rowsort
SELECT 79 * - ( - ( + 81 ) + 19 * + 18 ) + + 34 AS col2
----
-20585

query I rowsort
SELECT DISTINCT + - 14 * 68
----
-952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT NULLIF ( 52, ( + 17 ) + CAST( NULL AS SIGNED ) * 16 ) + 88
----
140

skipif mysql # not compatible
query I rowsort label-7800
SELECT NULLIF ( 52, ( + 17 ) + CAST ( NULL AS INTEGER ) * 16 ) + 88
----
140

query I rowsort
SELECT 88 * + 61
----
5368

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL COUNT( * ) * + MIN( 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL COUNT ( * ) * + MIN ( 87 ) AS col0
----
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT + 68 * 64 + COUNT( * ) AS col1
----
4353

skipif mysql # not compatible
query I rowsort label-7804
SELECT + 68 * 64 + COUNT ( * ) AS col1
----
4353

query I rowsort
SELECT + 31 * 49 + + 28 * 54 AS col2
----
3031

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT ( 42 ) DIV 23 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7806
SELECT ( 42 ) / 23 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7807
SELECT CAST( + 87 AS SIGNED ) + 6 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7807
SELECT CAST ( + 87 AS INTEGER ) + 6 AS col2
----
93

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT 76 DIV 78 * - 89
----
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT 76 / 78 * - 89
----
0

query I rowsort
SELECT 12 * - 2
----
-24

query I rowsort
SELECT ALL 47 * - + 10
----
-470

query I rowsort
SELECT 83 + + 97 * - 2 AS col0
----
-111

query I rowsort
SELECT 21 * - 3
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT 2 + CAST( - 70 AS SIGNED ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-7814
SELECT 2 + CAST ( - 70 AS INTEGER ) AS col1
----
-68

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

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

query I rowsort
SELECT ALL + ( - 73 ) * 48
----
-3504

query I rowsort
SELECT ( + + 35 ) * + 56
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL MAX( + 74 ) + 65 * 59 AS col1
----
3909

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL MAX ( + 74 ) + 65 * 59 AS col1
----
3909

query I rowsort
SELECT DISTINCT 46 + - 58 AS col2
----
-12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7821
SELECT ALL - ( - - 9 ) + + CASE + 83 WHEN + COALESCE ( 79, 75 ) THEN 38 + 23 * 0 ELSE + 36 DIV + 16 + COALESCE ( - COALESCE ( 56, + 76 ), + 55 + + MAX( + 78 ) * - 86 ) END
----
-63

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL - ( - - 9 ) + + CASE + 83 WHEN + COALESCE ( 79, 75 ) THEN 38 + 23 * 0 ELSE + 36 / + 16 + COALESCE ( - COALESCE ( 56, + 76 ), + 55 + + MAX ( + 78 ) * - 86 ) END
----
-63

query I rowsort
SELECT DISTINCT 65 + + + 40 * 98
----
3985

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

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

query I rowsort
SELECT DISTINCT + CASE WHEN + 41 BETWEEN NULL AND 57 * 87 THEN NULL ELSE - 56 END
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT - - ( - + COALESCE ( + COUNT( * ), - 41, - 74 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7825
SELECT - - ( - + COALESCE ( + COUNT ( * ), - 41, - 74 ) )
----
-1

query I rowsort
SELECT 54 * - - 13
----
702

query I rowsort
SELECT 98 + 31 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ALL + 38 * NULLIF ( 91, - 82 ) * COUNT( * )
----
3458

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL + 38 * NULLIF ( 91, - 82 ) * COUNT ( * )
----
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL + + 24 * COUNT( * ) * 35 + - 74
----
766

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + + 24 * COUNT ( * ) * 35 + - 74
----
766

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL - - NULLIF ( - 88, - 50 / 82 + - 7 ) * - COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - - NULLIF ( - 88, - 50 / 82 + - 7 ) * - COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT + MAX( - 14 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-7831
SELECT + MAX ( - 14 ) AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7832
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + NULLIF ( + 74, + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT - CAST ( NULL AS REAL ) * + NULLIF ( + 74, + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7833
SELECT - MAX( 48 ) * + COUNT( ALL NULLIF ( CASE + 84 WHEN - CAST( NULL AS SIGNED ) / 40 THEN NULL ELSE 6 END, - 22 ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-7833
SELECT - MAX ( 48 ) * + COUNT ( ALL NULLIF ( CASE + 84 WHEN - CAST ( NULL AS INTEGER ) / 40 THEN NULL ELSE 6 END, - 22 ) ) AS col0
----
-48

query I rowsort
SELECT - 83 - 86 AS col0
----
-169

query I rowsort
SELECT - ( + 61 ) * 92 - + 38 AS col1
----
-5650

query I rowsort
SELECT ALL + NULLIF ( 24, - 0 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7837
SELECT + - CAST( NULL AS SIGNED ) * + 20 + + AVG ( + CAST( - 44 AS DECIMAL ) ) - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT + - CAST ( NULL AS INTEGER ) * + 20 + + AVG ( + CAST ( - 44 AS REAL ) ) - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + - 76, + 53 ) AS col1
----
-76

query I rowsort
SELECT - ( 32 ) * 71
----
-2272

query II rowsort
SELECT ALL + 15 AS col2, - 8 * + 71 + 50 AS col1
----
15
-518

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

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

query I rowsort
SELECT DISTINCT + 31 * 88
----
2728

query I rowsort
SELECT + NULLIF ( - + 38, - 10 ) AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL NULLIF ( + + CAST( NULL AS SIGNED ), + 73 + + 5 ) * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL NULLIF ( + + CAST ( NULL AS INTEGER ), + 73 + + 5 ) * 31
----
NULL

query II rowsort
SELECT DISTINCT 50 AS col2, + 46 / - CASE WHEN ( - 40 ) IS NOT NULL THEN NULL WHEN - NULLIF ( - 35, AVG ( ALL + 9 ) ) NOT IN ( 78 ) THEN ( 52 ) ELSE + 63 END AS col2
----
50
NULL

query I rowsort
SELECT - 30 * + - 16
----
480

query I rowsort
SELECT DISTINCT 59 + - - 40 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL - COUNT( * ) + 44 * - + 68 * + 82 AS col1
----
-245345

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL - COUNT ( * ) + 44 * - + 68 * + 82 AS col1
----
-245345

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

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

query I rowsort
SELECT + 35 * - 78 AS col0
----
-2730

query I rowsort
SELECT ALL 58 + + - 77
----
-19

query I rowsort
SELECT + 64 * 54
----
3456

query I rowsort
SELECT ALL 68 + + 76 + 97 * - 5 col0
----
-341

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT + COUNT( * ) * - + 95 - + 61
----
-156

skipif mysql # not compatible
query I rowsort label-7854
SELECT + COUNT ( * ) * - + 95 - + 61
----
-156

query I rowsort
SELECT + + 79 + - 66 AS col1
----
13

query I rowsort
SELECT ALL + 68 * + 87 col2
----
5916

query I rowsort
SELECT ALL 95 * 81 * - - 61 * 87
----
40837365

query I rowsort
SELECT + - NULLIF ( - - 91, - 42 ) + - 87
----
-178

query I rowsort
SELECT ALL - 98 - + 39 * 91
----
-3647

query I rowsort
SELECT ALL - - 1 - - 62 col2
----
63

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

query II rowsort
SELECT - 21 col0, - 74
----
-21
-74

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

query I rowsort
SELECT - 14 + + 65 AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT ALL + 53 DIV - COUNT( * ) - MAX( DISTINCT + 12 )
----
-65

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL + 53 / - COUNT ( * ) - MAX ( DISTINCT + 12 )
----
-65

query II rowsort
SELECT + 38 AS col2, ( + NULLIF ( 21, + 21 / 84 - 49 ) ) * 51
----
38
1071

query I rowsort
SELECT - + 72 * 3 * - 81 AS col2
----
17496

query I rowsort
SELECT + 81 + - 0 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT + + 24 / + CAST( NULL AS SIGNED ) - + + NULLIF ( + 31, - 25 * 49 + SUM( 62 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT + + 24 / + CAST ( NULL AS INTEGER ) - + + NULLIF ( + 31, - 25 * 49 + SUM ( 62 ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT - MIN( DISTINCT + 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7870
SELECT - MIN ( DISTINCT + 84 ) AS col2
----
-84

query I rowsort
SELECT DISTINCT + + ( + - 92 ) col0
----
-92

query I rowsort
SELECT DISTINCT + - 68 col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7873
SELECT DISTINCT 19 DIV - 97 * + COUNT( - 83 )
----
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT 19 / - 97 * + COUNT ( - 83 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL - 17 * + - 40 * - COUNT( * )
----
-680

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL - 17 * + - 40 * - COUNT ( * )
----
-680

onlyif mysql # aggregate syntax: 
query II rowsort label-7875
SELECT - 66 * 46 AS col0, - 10 * + - ( COUNT( * ) )
----
-3036
10

skipif mysql # not compatible
query II rowsort label-7875
SELECT - 66 * 46 AS col0, - 10 * + - ( COUNT ( * ) )
----
-3036
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT DISTINCT CAST( - - 7 AS SIGNED ) * - CAST( 31 AS SIGNED ) + 6 AS col0
----
-211

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT CAST ( - - 7 AS INTEGER ) * - CAST ( 31 AS INTEGER ) + 6 AS col0
----
-211

query I rowsort
SELECT - 42 * - 54 * - 40
----
-90720

query I rowsort
SELECT 17 * + 56 + + 84 + + - 49 - + 27
----
960

query I rowsort
SELECT ALL - 24 * + 55 + + 79
----
-1241

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7880
SELECT DISTINCT + CAST( + 20 AS SIGNED ) col2, 26 + + 51 + 85 * + 14 AS col2
----
20
1267

skipif mysql # not compatible
query II rowsort label-7880
SELECT DISTINCT + CAST ( + 20 AS INTEGER ) col2, 26 + + 51 + 85 * + 14 AS col2
----
20
1267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7881
SELECT 36 * + - 8 + + NULLIF ( + 46, - CAST( 2 AS SIGNED ) ) - 0
----
-242

skipif mysql # not compatible
query I rowsort label-7881
SELECT 36 * + - 8 + + NULLIF ( + 46, - CAST ( 2 AS INTEGER ) ) - 0
----
-242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7882
SELECT + CASE COUNT( * ) WHEN 28 * NULLIF ( COUNT( * ), CAST( + 19 AS SIGNED ) ) / 61 THEN - 88 * - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT + CASE COUNT ( * ) WHEN 28 * NULLIF ( COUNT ( * ), CAST ( + 19 AS INTEGER ) ) / 61 THEN - 88 * - 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL 97 * 22 + COUNT( * ) AS col2
----
2135

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL 97 * 22 + COUNT ( * ) AS col2
----
2135

query I rowsort
SELECT ALL + 91 * + - 0 + 3 AS col0
----
3

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

query I rowsort
SELECT - CASE + ( + 17 ) WHEN 42 THEN - ( 47 ) WHEN - 10 THEN NULL ELSE 59 END
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT DISTINCT - ( + MAX( - 57 ) ) * - 67
----
-3819

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT - ( + MAX ( - 57 ) ) * - 67
----
-3819

query I rowsort
SELECT ALL - 82 * + 63 AS col0
----
-5166

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT + 28 + + COUNT( * ) - + 83 * - 74 * - 93 AS col2
----
-571177

skipif mysql # not compatible
query I rowsort label-7889
SELECT + 28 + + COUNT ( * ) - + 83 * - 74 * - 93 AS col2
----
-571177

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT - 40 + - + ( - - COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-7890
SELECT - 40 + - + ( - - COUNT ( * ) )
----
-41

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

skipif mysql # not compatible
query I rowsort label-7891
SELECT - MAX ( DISTINCT - - 60 )
----
-60

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

skipif mysql # not compatible
query I rowsort label-7892
SELECT SUM ( ALL 64 )
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT COUNT( * ) + 93
----
94

skipif mysql # not compatible
query I rowsort label-7894
SELECT COUNT ( * ) + 93
----
94

query II rowsort
SELECT - - ( - - 85 ) AS col0, - NULLIF ( + 38, ( 25 ) )
----
85
-38

query I rowsort
SELECT ALL 88 - 59 AS col2
----
29

query I rowsort
SELECT DISTINCT - 11 * - 34 * 90
----
33660

query I rowsort
SELECT 15 + + - ( - - 1 ) AS col1
----
14

query I rowsort
SELECT + 76 * + + 62 AS col0
----
4712

query I rowsort
SELECT - 85 + - 83 * - 25 AS col1
----
1990

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT - 56 * 88 * MIN( DISTINCT 98 ) * - 72 AS col1
----
34771968

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT - 56 * 88 * MIN ( DISTINCT 98 ) * - 72 AS col1
----
34771968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7902
SELECT DISTINCT + 45 DIV - MIN( + - COALESCE ( + + 92, - 97 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT + 45 / - MIN ( + - COALESCE ( + + 92, - 97 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT CASE - COUNT( * ) WHEN + - 18 THEN + 6 ELSE NULL END * 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT CASE - COUNT ( * ) WHEN + - 18 THEN + 6 ELSE NULL END * 29 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT - NULLIF ( - + 97, + MAX( - - ( - 75 ) ) * - 66 + + 73 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7905
SELECT - NULLIF ( - + 97, + MAX ( - - ( - 75 ) ) * - 66 + + 73 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7906
SELECT MAX( + + CAST( NULL AS SIGNED ) ) / + - 74 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT MAX ( + + CAST ( NULL AS INTEGER ) ) / + - 74 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT ALL - COALESCE ( SUM( + 38 ), + 86, ( 40 ) + + 42 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL - COALESCE ( SUM ( + 38 ), + 86, ( 40 ) + + 42 ) AS col0
----
-38

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

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

query I rowsort
SELECT ALL - 62 * 33 + 74
----
-1972

query I rowsort
SELECT - - 32 col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7911
SELECT ALL - CASE - + 86 WHEN + 33 THEN - + 98 * 0 ELSE + 58 DIV COUNT( * ) END AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL - CASE - + 86 WHEN + 33 THEN - + 98 * 0 ELSE + 58 / COUNT ( * ) END AS col0
----
-58

query I rowsort
SELECT + ( - 35 ) * - - 59 + 81 AS col2
----
-1984

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT ALL 71 * + 68 * + + 14 - + NULLIF ( COUNT( * ), NULLIF ( 40, + 45 ) ) * + COUNT( * ) AS col1
----
67591

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL 71 * + 68 * + + 14 - + NULLIF ( COUNT ( * ), NULLIF ( 40, + 45 ) ) * + COUNT ( * ) AS col1
----
67591

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT + ( MAX( - 55 ) ) + + - ( 10 ) + SUM( DISTINCT - ( - 64 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT + ( MAX ( - 55 ) ) + + - ( 10 ) + SUM ( DISTINCT - ( - 64 ) ) col2
----
-1

query I rowsort
SELECT 70 + 11
----
81

query I rowsort
SELECT 5 * 26
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7917
SELECT ALL 31 + NULLIF ( - COUNT( * ), + CAST( + 44 AS SIGNED ) ) + 19 * 39 AS col2
----
771

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL 31 + NULLIF ( - COUNT ( * ), + CAST ( + 44 AS INTEGER ) ) + 19 * 39 AS col2
----
771

query I rowsort
SELECT ( - 80 ) - + 96 col2
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL - CASE + 54 WHEN 31 THEN NULL WHEN - CASE + 67 WHEN - 27 THEN NULL WHEN - 23 / 97 + 46 THEN NULL ELSE 87 END + - MIN( DISTINCT 88 ) THEN 31 * 71 ELSE - 48 END col0
----
48

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL - CASE + 54 WHEN 31 THEN NULL WHEN - CASE + 67 WHEN - 27 THEN NULL WHEN - 23 / 97 + 46 THEN NULL ELSE 87 END + - MIN ( DISTINCT 88 ) THEN 31 * 71 ELSE - 48 END col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT DISTINCT + COUNT( * ) + - 54 + + 62 - 76 * + 10 * COUNT( + 75 ) AS col2
----
-751

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT + COUNT ( * ) + - 54 + + 62 - 76 * + 10 * COUNT ( + 75 ) AS col2
----
-751

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

query I rowsort
SELECT 21 * - - 31 col2
----
651

query I rowsort
SELECT ALL + ( - - 83 ) * + 92
----
7636

onlyif mysql # DIV for integer division: 
query I rowsort label-7924
SELECT 27 DIV - + 33
----
0

skipif mysql # not compatible
query I rowsort label-7924
SELECT 27 / - + 33
----
0

query I rowsort
SELECT ALL + 50 * 6 col0
----
300

query I rowsort
SELECT ( + + COALESCE ( ( + + 76 ), - - 36 - 86, 55 - 77 ) ) * 46 AS col2
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT 5 * COUNT( * ) + + 29 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7927
SELECT 5 * COUNT ( * ) + + 29 AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7928
SELECT COUNT( DISTINCT + 62 ) DIV COUNT( * ) + 75 * + ( + 34 ) AS col1
----
2551

skipif mysql # not compatible
query I rowsort label-7928
SELECT COUNT ( DISTINCT + 62 ) / COUNT ( * ) + 75 * + ( + 34 ) AS col1
----
2551

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL + + COUNT( * ) - - - 88 * - CASE + - SUM( ALL - 34 ) WHEN + COALESCE ( + 61, 4, + 66 ) * + 21 THEN + 72 ELSE + COUNT( * ) END AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL + + COUNT ( * ) - - - 88 * - CASE + - SUM ( ALL - 34 ) WHEN + COALESCE ( + 61, 4, + 66 ) * + 21 THEN + 72 ELSE + COUNT ( * ) END AS col2
----
89

query I rowsort
SELECT 83 * + 60 * - - 44 AS col1
----
219120

query I rowsort
SELECT DISTINCT - ( - 42 ) * - - 96
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT - COALESCE ( + 97, MAX( 22 ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7932
SELECT - COALESCE ( + 97, MAX ( 22 ) ) AS col1
----
-97

query I rowsort
SELECT ALL - 16 * 8 AS col0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT MAX( 70 ) - - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7934
SELECT MAX ( 70 ) - - COUNT ( * ) AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7935
SELECT + 40 * + - COALESCE ( + + COUNT( * ), + CAST( + ( - 28 ) AS SIGNED ) - 34 ) * - 47 + 4 AS col2
----
1884

skipif mysql # not compatible
query I rowsort label-7935
SELECT + 40 * + - COALESCE ( + + COUNT ( * ), + CAST ( + ( - 28 ) AS INTEGER ) - 34 ) * - 47 + 4 AS col2
----
1884

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

skipif mysql # not compatible
query I rowsort label-7936
SELECT + 10 * + NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) - + 54 + - 38
----
NULL

query I rowsort
SELECT ALL + 66 * - - 79 + 92 AS col2
----
5306

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT - 49 + + + COUNT( ALL 92 ), ( - - 0 ) col2
----
-48
0

skipif mysql # not compatible
query II rowsort label-7938
SELECT - 49 + + + COUNT ( ALL 92 ), ( - - 0 ) col2
----
-48
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT 1 + - - SUM( DISTINCT 64 ) * - 56 AS col2
----
-3583

skipif mysql # not compatible
query I rowsort label-7939
SELECT 1 + - - SUM ( DISTINCT 64 ) * - 56 AS col2
----
-3583

query I rowsort
SELECT DISTINCT + 22 * + - 66 AS col0
----
-1452

query I rowsort
SELECT ALL + + 63 + - 69
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7942
SELECT COUNT( ALL - - 77 ) - + - ( + + CASE + - ( - 21 ) WHEN + CAST( + 17 AS DECIMAL ) + 68 THEN NULL WHEN + 43 THEN 11 WHEN + 34 * 26 THEN 39 * + 53 END ) / 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT COUNT ( ALL - - 77 ) - + - ( + + CASE + - ( - 21 ) WHEN + CAST ( + 17 AS REAL ) + 68 THEN NULL WHEN + 43 THEN 11 WHEN + 34 * 26 THEN 39 * + 53 END ) / 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7943
SELECT DISTINCT + 83 + COUNT( * ) + + COUNT( * ) + 36 + - 77 DIV 15 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT + 83 + COUNT ( * ) + + COUNT ( * ) + 36 + - 77 / 15 AS col2
----
116

query II rowsort
SELECT ALL 29 + ( 60 ) AS col2, - 42 * 49
----
89
-2058

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT + 43 DIV + + 20 col1
----
2

skipif mysql # not compatible
query I rowsort label-7945
SELECT + 43 / + + 20 col1
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT SUM( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-7947
SELECT SUM ( - 38 )
----
-38

query I rowsort
SELECT ALL + CASE + 46 WHEN ( - 83 ) THEN NULL WHEN - - 82 + - 58 THEN NULL ELSE ( 12 ) END * 47 + 41 * 18
----
1302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT - CAST( NULL AS SIGNED ) / + CASE + 97 WHEN 14 + 75 THEN - 71 WHEN - 66 * 79 THEN - 44 * 75 WHEN - 52 THEN + 31 ELSE NULL END / 42 - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT - CAST ( NULL AS INTEGER ) / + CASE + 97 WHEN 14 + 75 THEN - 71 WHEN - 66 * 79 THEN - 44 * 75 WHEN - 52 THEN + 31 ELSE NULL END / 42 - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT COUNT( + + 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7950
SELECT COUNT ( + + 33 ) AS col2
----
1

query I rowsort
SELECT 54 * - 67 + + + 77 + - - 0
----
-3541

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT MIN( 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7952
SELECT MIN ( 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7953
SELECT ALL - 47 AS col2, - 15 * + + 42 * - COALESCE ( + 59, + COUNT( * ) + 9, 9 )
----
-47
37170

skipif mysql # not compatible
query II rowsort label-7953
SELECT ALL - 47 AS col2, - 15 * + + 42 * - COALESCE ( + 59, + COUNT ( * ) + 9, 9 )
----
-47
37170

onlyif mysql # aggregate syntax: 
query II rowsort label-7954
SELECT + MAX( DISTINCT + - 12 ) AS col2, 85 AS col1
----
-12
85

skipif mysql # not compatible
query II rowsort label-7954
SELECT + MAX ( DISTINCT + - 12 ) AS col2, 85 AS col1
----
-12
85

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

skipif mysql # not compatible
query I rowsort label-7955
SELECT MIN ( - - 17 ) col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7956
SELECT 40 + - 13 AS col1, - 45 + - + SUM( ALL + 51 ) * + 94
----
27
-4839

skipif mysql # not compatible
query II rowsort label-7956
SELECT 40 + - 13 AS col1, - 45 + - + SUM ( ALL + 51 ) * + 94
----
27
-4839

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT - COUNT( * ) * - 30 * + 70
----
2100

skipif mysql # not compatible
query I rowsort label-7957
SELECT - COUNT ( * ) * - 30 * + 70
----
2100

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

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

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL + 19 * COUNT ( 91 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT + COUNT( 64 ) * + CASE - + 51 WHEN - COUNT( * ) THEN - 79 + - 96 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7960
SELECT + COUNT ( 64 ) * + CASE - + 51 WHEN - COUNT ( * ) THEN - 79 + - 96 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT + - COALESCE ( + + CASE - ( - + 86 ) WHEN + 93 - + - COUNT( DISTINCT 31 ) THEN NULL WHEN 11 THEN + 83 * + 20 ELSE NULL END, + 62 * 89 ) AS col0
----
-5518

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT + - COALESCE ( + + CASE - ( - + 86 ) WHEN + 93 - + - COUNT ( DISTINCT 31 ) THEN NULL WHEN 11 THEN + 83 * + 20 ELSE NULL END, + 62 * 89 ) AS col0
----
-5518

query I rowsort
SELECT DISTINCT 18 * - 29 AS col2
----
-522

onlyif mysql # aggregate syntax: 
query II rowsort label-7963
SELECT - COUNT( * ), - 99 * 73 * + 89 * 80 AS col2
----
-1
-51456240

skipif mysql # not compatible
query II rowsort label-7963
SELECT - COUNT ( * ), - 99 * 73 * + 89 * 80 AS col2
----
-1
-51456240

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL + 61 * MIN( + ( 64 ) )
----
3904

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL + 61 * MIN ( + ( 64 ) )
----
3904

query I rowsort
SELECT + + 56 * 3 AS col0
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-7966
SELECT ALL - 86 * - COUNT( * ) col0, - MIN( DISTINCT + - NULLIF ( - + 32, 1 ) ) AS col1
----
86
-32

skipif mysql # not compatible
query II rowsort label-7966
SELECT ALL - 86 * - COUNT ( * ) col0, - MIN ( DISTINCT + - NULLIF ( - + 32, 1 ) ) AS col1
----
86
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-7967
SELECT DISTINCT + 28 * - COUNT( * ), 41 AS col2
----
-28
41

skipif mysql # not compatible
query II rowsort label-7967
SELECT DISTINCT + 28 * - COUNT ( * ), 41 AS col2
----
-28
41

query I rowsort
SELECT - 89 + + - 61 * - 53
----
3144

query I rowsort
SELECT - 94 / CASE 36 WHEN 90 THEN + CASE 11 WHEN - 40 + 98 THEN NULL WHEN CASE - 85 WHEN 28 THEN NULL ELSE + 58 + + 23 END THEN - 40 END * 77 + - 47 END / - 64 AS col2
----
NULL

query I rowsort
SELECT - 33 * - 22
----
726

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT - 3 + - 16 + + 84 DIV - 27 + 66 * + 12
----
770

skipif mysql # not compatible
query I rowsort label-7971
SELECT - 3 + - 16 + + 84 / - 27 + 66 * + 12
----
770

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT DISTINCT MIN( 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT MIN ( 33 ) AS col0
----
33

query I rowsort
SELECT DISTINCT + 76 + 84 AS col1
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-7976
SELECT - COUNT( * ) AS col1, 73 * + 48
----
-1
3504

skipif mysql # not compatible
query II rowsort label-7976
SELECT - COUNT ( * ) AS col1, 73 * + 48
----
-1
3504

query I rowsort
SELECT ALL + - 27 + 8 * - 7 AS col1
----
-83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7979
SELECT ALL + - 11 + + + 92, + 9 + + + 39 + + COUNT( * ) AS col1
----
81
49

skipif mysql # not compatible
query II rowsort label-7979
SELECT ALL + - 11 + + + 92, + 9 + + + 39 + + COUNT ( * ) AS col1
----
81
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7980
SELECT - 19 AS col1, CASE - 35 WHEN 61 THEN 53 WHEN + 51 THEN NULL ELSE + 89 * 78 END / + CAST( NULL AS SIGNED ) AS col2
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-7980
SELECT - 19 AS col1, CASE - 35 WHEN 61 THEN 53 WHEN + 51 THEN NULL ELSE + 89 * 78 END / + CAST ( NULL AS INTEGER ) AS col2
----
-19
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT - + ( + + MAX( - 34 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7982
SELECT - + ( + + MAX ( - 34 ) ) AS col1
----
34

query I rowsort
SELECT - + 99 * ( 3 ) AS col0
----
-297

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

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

query I rowsort
SELECT - 49 * - 44 * - 31 AS col2
----
-66836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7986
SELECT ALL - NULLIF ( ( + - 61 ), - COUNT( * ) + + - SUM( DISTINCT - 40 ) ) + 36 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - NULLIF ( ( + - 61 ), - COUNT ( * ) + + - SUM ( DISTINCT - 40 ) ) + 36 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 67 + + 18 * - 25 + + 97 AS col1
----
-286

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7988
SELECT ALL + COUNT( * ) DIV - 78 + + 83 AS col2, 99
----
83
99

skipif mysql # not compatible
query II rowsort label-7988
SELECT ALL + COUNT ( * ) / - 78 + + 83 AS col2, 99
----
83
99

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

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL + COUNT ( + + 96 ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT DISTINCT - 81 / + 19 * COUNT( * ) - COALESCE ( 56, + + 3 + 80 ) - CASE ( COUNT( * ) ) WHEN 26 THEN 0 WHEN + 79 THEN 58 ELSE NULL END * 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT - 81 / + 19 * COUNT ( * ) - COALESCE ( 56, + + 3 + 80 ) - CASE ( COUNT ( * ) ) WHEN 26 THEN 0 WHEN + 79 THEN 58 ELSE NULL END * 27 AS col1
----
NULL

query I rowsort
SELECT - 47 * + 28 * 37
----
-48692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7992
SELECT - COUNT( * ) * - + 71 + + - CAST( - 85 AS SIGNED ) - 91 * - 53 + + - 1
----
4978

skipif mysql # not compatible
query I rowsort label-7992
SELECT - COUNT ( * ) * - + 71 + + - CAST ( - 85 AS INTEGER ) - 91 * - 53 + + - 1
----
4978

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT 87 * + 49 - + COUNT( * )
----
4262

skipif mysql # not compatible
query I rowsort label-7994
SELECT 87 * + 49 - + COUNT ( * )
----
4262

query I rowsort
SELECT + 6 * - - 79
----
474

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT - 28 * + 85 - + COUNT( * ) AS col0
----
-2381

skipif mysql # not compatible
query I rowsort label-7996
SELECT - 28 * + 85 - + COUNT ( * ) AS col0
----
-2381

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT + 70 DIV + + 10
----
7

skipif mysql # not compatible
query I rowsort label-7998
SELECT + 70 / + + 10
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7999
SELECT DISTINCT ( + COUNT( * ) ) * + CASE + + 67 WHEN + - 18 THEN - 63 - - COALESCE ( - CAST( NULL AS SIGNED ), - 15 * - 30 ) + 27 * + 68 WHEN - 41 THEN 36 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT ( + COUNT ( * ) ) * + CASE + + 67 WHEN + - 18 THEN - 63 - - COALESCE ( - CAST ( NULL AS INTEGER ), - 15 * - 30 ) + 27 * + 68 WHEN - 41 THEN 36 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8000
SELECT + COUNT( * ) * + + 95 AS col0, 48
----
95
48

skipif mysql # not compatible
query II rowsort label-8000
SELECT + COUNT ( * ) * + + 95 AS col0, 48
----
95
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT DISTINCT - 32 * 95 / - + CASE - CASE - 59 WHEN - + 36 THEN NULL ELSE + 39 / COALESCE ( - 41, - 42 ) + + 80 * - 72 END WHEN 9 * 45 + 55 THEN 90 END * + COUNT( * ) + 53 * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT - 32 * 95 / - + CASE - CASE - 59 WHEN - + 36 THEN NULL ELSE + 39 / COALESCE ( - 41, - 42 ) + + 80 * - 72 END WHEN 9 * 45 + 55 THEN 90 END * + COUNT ( * ) + 53 * + 37
----
NULL

query I rowsort
SELECT + 95 * 55 + 57 AS col1
----
5282

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT + 86 * CASE + COUNT( * ) WHEN + 3 THEN MAX( DISTINCT - - 36 ) - 17 WHEN MAX( ALL - 17 ) THEN NULL END + - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT + 86 * CASE + COUNT ( * ) WHEN + 3 THEN MAX ( DISTINCT - - 36 ) - 17 WHEN MAX ( ALL - 17 ) THEN NULL END + - 69 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8004
SELECT ALL + ( - 41 ) DIV + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + ( - 41 ) / + 90 AS col0
----
0

query I rowsort
SELECT + - 44 * + - 24
----
1056

onlyif mysql # aggregate syntax: 
query II rowsort label-8006
SELECT - + MIN( DISTINCT 2 ) AS col1, - 47
----
-2
-47

skipif mysql # not compatible
query II rowsort label-8006
SELECT - + MIN ( DISTINCT 2 ) AS col1, - 47
----
-2
-47

query I rowsort
SELECT ALL 83 * + 91 + - + 59 AS col0
----
7494

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT ALL + + 80 * - COUNT( * ) + ( + CASE - 26 WHEN COUNT( * ) THEN NULL ELSE - 98 END )
----
-178

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + + 80 * - COUNT ( * ) + ( + CASE - 26 WHEN COUNT ( * ) THEN NULL ELSE - 98 END )
----
-178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8009
SELECT - 67 * + COUNT( * ) + 27 - - 32 DIV - COUNT( ALL - 48 )
----
-72

skipif mysql # not compatible
query I rowsort label-8009
SELECT - 67 * + COUNT ( * ) + 27 - - 32 / - COUNT ( ALL - 48 )
----
-72

query I rowsort
SELECT ALL 37 + + - 28 * 28
----
-747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT + NULLIF ( - - 70, - - ( - + 84 ) ) + - COALESCE ( 85, - CAST( NULL AS SIGNED ) ) + + 99
----
84

skipif mysql # not compatible
query I rowsort label-8011
SELECT + NULLIF ( - - 70, - - ( - + 84 ) ) + - COALESCE ( 85, - CAST ( NULL AS INTEGER ) ) + + 99
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT + 20 + - 78 + + - ( + ( + 45 ) ) DIV + 93 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-8012
SELECT + 20 + - 78 + + - ( + ( + 45 ) ) / + 93 AS col2
----
-58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8014
SELECT - + 12 * + 99 AS col1, + ( CASE + 53 WHEN - 42 THEN + 42 DIV + COALESCE ( 29, + 66, 99 + + CASE ( + COALESCE ( - CAST( 90 AS DECIMAL ), 99 * 72 ) ) + - COUNT( * ) WHEN 80 * ( 6 * COALESCE ( 13 DIV + CAST( COUNT( * ) * + 97 AS SIGNED ), + 42 * 16 ) ) THEN - 48 WHEN 7 + + 77 THEN COUNT( ALL + CAST( NULL AS DECIMAL ) ) WHEN - 11 DIV CAST( COUNT( * ) AS SIGNED ) THEN MAX( - 3 ) DIV - COUNT( * ) - - 34 ELSE NULL END ) + + 66 ELSE - 30 + - 84 END ) * - 99 + + 50 * - 91 AS col0
----
-1188
6736

skipif mysql # not compatible
query II rowsort label-8014
SELECT - + 12 * + 99 AS col1, + ( CASE + 53 WHEN - 42 THEN + 42 / + COALESCE ( 29, + 66, 99 + + CASE ( + COALESCE ( - CAST ( 90 AS REAL ), 99 * 72 ) ) + - COUNT ( * ) WHEN 80 * ( 6 * COALESCE ( 13 / + CAST ( COUNT ( * ) * + 97 AS INTEGER ), + 42 * 16 ) ) THEN - 48 WHEN 7 + + 77 THEN COUNT ( ALL + CAST ( NULL AS REAL ) ) WHEN - 11 / CAST ( COUNT ( * ) AS INTEGER ) THEN MAX ( - 3 ) / - COUNT ( * ) - - 34 ELSE NULL END ) + + 66 ELSE - 30 + - 84 END ) * - 99 + + 50 * - 91 AS col0
----
-1188
6736

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT + - COUNT( * ) + + - 91 + - ( 87 )
----
-179

skipif mysql # not compatible
query I rowsort label-8015
SELECT + - COUNT ( * ) + + - 91 + - ( 87 )
----
-179

query II rowsort
SELECT ALL ( + 32 ) AS col0, 72
----
32
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - 66 + + 8 * 15 * MIN( ALL - 22 ) AS col2
----
-2706

skipif mysql # not compatible
query I rowsort label-8018
SELECT - 66 + + 8 * 15 * MIN ( ALL - 22 ) AS col2
----
-2706

onlyif mysql # aggregate syntax: 
query II rowsort label-8019
SELECT ALL 72 - 81 * + 72 AS col0, + NULLIF ( 93, - 84 - + 56 - + - COUNT( * ) + 54 ) AS col0
----
-5760
93

skipif mysql # not compatible
query II rowsort label-8019
SELECT ALL 72 - 81 * + 72 AS col0, + NULLIF ( 93, - 84 - + 56 - + - COUNT ( * ) + 54 ) AS col0
----
-5760
93

query I rowsort
SELECT - 84 * - 24 * 85 AS col0
----
171360

query I rowsort
SELECT ALL CASE - + 41 WHEN 55 THEN - 15 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL + CASE SUM( ALL - 65 ) WHEN 35 THEN - 32 * - ( + 88 ) WHEN 35 THEN 79 ELSE NULL END - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL + CASE SUM ( ALL - 65 ) WHEN 35 THEN - 32 * - ( + 88 ) WHEN 35 THEN 79 ELSE NULL END - - 53
----
NULL

query I rowsort
SELECT - 60 + 24 AS col1
----
-36

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

query I rowsort
SELECT DISTINCT ( 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT - COUNT( * ) + 94 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8026
SELECT - COUNT ( * ) + 94 AS col0
----
93

query I rowsort
SELECT - 24 * 54 * - + 92 AS col0
----
119232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8028
SELECT NULLIF ( 41, - 25 ) DIV - 1 + + 50 - COUNT( * ) * 85 + + + 18 + 3 * 97
----
233

skipif mysql # not compatible
query I rowsort label-8028
SELECT NULLIF ( 41, - 25 ) / - 1 + + 50 - COUNT ( * ) * 85 + + + 18 + 3 * 97
----
233

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8030
SELECT - 49 DIV 39 + - - ( - - 70 ) AS col1, + COALESCE ( + ( + + 41 ), - - COUNT( * ) ) * - NULLIF ( + CAST( NULL AS SIGNED ) * - 81, 78 * + 2 ) + - 1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-8030
SELECT - 49 / 39 + - - ( - - 70 ) AS col1, + COALESCE ( + ( + + 41 ), - - COUNT ( * ) ) * - NULLIF ( + CAST ( NULL AS INTEGER ) * - 81, 78 * + 2 ) + - 1
----
69
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8031
SELECT 30 + + 97 DIV - 76 * - COUNT( ALL - + 65 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8031
SELECT 30 + + 97 / - 76 * - COUNT ( ALL - + 65 ) AS col2
----
31

query I rowsort
SELECT 36 * + 71
----
2556

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL - MIN( DISTINCT 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL - MIN ( DISTINCT 89 ) AS col0
----
-89

query II rowsort
SELECT 32 AS col0, 55 AS col0
----
32
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8035
SELECT ALL - 91 AS col0, + 47 DIV - + MIN( ALL 73 ) + - + COALESCE ( + 7, + 3 ) + - - 73 + 51 * - 98 AS col1
----
-91
-4932

skipif mysql # not compatible
query II rowsort label-8035
SELECT ALL - 91 AS col0, + 47 / - + MIN ( ALL 73 ) + - + COALESCE ( + 7, + 3 ) + - - 73 + 51 * - 98 AS col1
----
-91
-4932

query I rowsort
SELECT 62 * - - 29 AS col2
----
1798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8037
SELECT MAX( ALL 8 ) + - - 40 + - 20 * NULLIF ( 30, - 11 ) DIV - CASE - 67 WHEN ( - 53 ) THEN NULL WHEN - 69 - + 51 * + 58 THEN NULL ELSE + 42 + 49 END AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8037
SELECT MAX ( ALL 8 ) + - - 40 + - 20 * NULLIF ( 30, - 11 ) / - CASE - 67 WHEN ( - 53 ) THEN NULL WHEN - 69 - + 51 * + 58 THEN NULL ELSE + 42 + 49 END AS col1
----
54

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8039
SELECT + 73 AS col1, - CASE - 28 WHEN - 54 - - 16 / + COUNT( * ) * 57 THEN 26 WHEN + 41 THEN NULL ELSE NULL END AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-8039
SELECT + 73 AS col1, - CASE - 28 WHEN - 54 - - 16 / + COUNT ( * ) * 57 THEN 26 WHEN + 41 THEN NULL ELSE NULL END AS col0
----
73
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8040
SELECT ALL + - 11 + CAST( + - 74 AS SIGNED ) + 76
----
-9

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL + - 11 + CAST ( + - 74 AS INTEGER ) + 76
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8041
SELECT + 23 AS col1, + CASE + 40 WHEN - 77 + - 26 THEN NULL WHEN - + 55 - + COUNT( * ) THEN NULL ELSE - 3 END * ( 42 ) AS col1
----
23
-126

skipif mysql # not compatible
query II rowsort label-8041
SELECT + 23 AS col1, + CASE + 40 WHEN - 77 + - 26 THEN NULL WHEN - + 55 - + COUNT ( * ) THEN NULL ELSE - 3 END * ( 42 ) AS col1
----
23
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT 27 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT 27 / 61
----
0

query I rowsort
SELECT ALL - 28 + 9 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8044
SELECT + + COUNT( * ) AS col2, 40 + ( - 7 ) + 1 * - + COUNT( + ( - NULLIF ( 52, - 45 ) ) ) * 68 col0
----
1
-35

skipif mysql # not compatible
query II rowsort label-8044
SELECT + + COUNT ( * ) AS col2, 40 + ( - 7 ) + 1 * - + COUNT ( + ( - NULLIF ( 52, - 45 ) ) ) * 68 col0
----
1
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + - 11 * CASE - ( + COUNT( * ) ) WHEN - 93 THEN NULL WHEN + COALESCE ( - + ( 62 ), AVG ( 74 ) ) / 43 + 29 THEN 32 WHEN 75 THEN 43 END - 30 * 46 + 80 * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT + - 11 * CASE - ( + COUNT ( * ) ) WHEN - 93 THEN NULL WHEN + COALESCE ( - + ( 62 ), AVG ( 74 ) ) / 43 + 29 THEN 32 WHEN 75 THEN 43 END - 30 * 46 + 80 * - 32
----
NULL

query I rowsort
SELECT - NULLIF ( 18, 96 - - - 71 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL - MIN( ALL - NULLIF ( 48, - 24 ) ) * - COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL - MIN ( ALL - NULLIF ( 48, - 24 ) ) * - COUNT ( * ) AS col1
----
-48

query I rowsort
SELECT ALL + + 69 + 59
----
128

query I rowsort
SELECT ALL 68 + - + 87 AS col0
----
-19

query I rowsort
SELECT 84 + + 62 AS col0
----
146

query I rowsort
SELECT DISTINCT + - 19 * + + 0 + ( 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT - 51 + - SUM( DISTINCT + 7 ) - - 20
----
-38

skipif mysql # not compatible
query I rowsort label-8052
SELECT - 51 + - SUM ( DISTINCT + 7 ) - - 20
----
-38

query I rowsort
SELECT ALL 26 * + 32 AS col0
----
832

onlyif mysql # aggregate syntax: 
query II rowsort label-8054
SELECT - 31, + 31 * COALESCE ( + 74, - 5 * + + COUNT( * ) + + 0 ) AS col2
----
-31
2294

skipif mysql # not compatible
query II rowsort label-8054
SELECT - 31, + 31 * COALESCE ( + 74, - 5 * + + COUNT ( * ) + + 0 ) AS col2
----
-31
2294

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT COALESCE ( - 44, + + 96 + - + COUNT( * ) * + 65 ) * + NULLIF ( + 88, + + 48 ) + SUM( + 87 ) AS col0
----
-3785

skipif mysql # not compatible
query I rowsort label-8055
SELECT COALESCE ( - 44, + + 96 + - + COUNT ( * ) * + 65 ) * + NULLIF ( + 88, + + 48 ) + SUM ( + 87 ) AS col0
----
-3785

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT ALL + 27 + + 27 + - 15 AS col0, + COUNT( * )
----
39
1

skipif mysql # not compatible
query II rowsort label-8056
SELECT ALL + 27 + + 27 + - 15 AS col0, + COUNT ( * )
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT + 79 + - COUNT( * ) * + - COUNT( * ) * + 67 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-8057
SELECT + 79 + - COUNT ( * ) * + - COUNT ( * ) * + 67 AS col0
----
146

query II rowsort
SELECT ALL 3 AS col1, 34 AS col0
----
3
34

query I rowsort
SELECT 53 + + 34 * + + 62 col0
----
2161

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

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

query II rowsort
SELECT ALL + 58 AS col0, - 20 col1
----
58
-20

query I rowsort
SELECT DISTINCT 80 * 28 AS col2
----
2240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT DISTINCT - 33 - - + CAST( - 48 AS SIGNED ) + 87 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT - 33 - - + CAST ( - 48 AS INTEGER ) + 87 AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT 21 DIV + - 80 * - 65 col1
----
0

skipif mysql # not compatible
query I rowsort label-8064
SELECT 21 / + - 80 * - 65 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT ALL 66 DIV - - 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL 66 / - - 44 AS col0
----
1

query I rowsort
SELECT DISTINCT 1 * + 84 * + + 91
----
7644

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8068
SELECT ALL COUNT( * ) * + 20, COUNT( * ) * 87 + - COUNT( ALL + 68 ) + ( COUNT( * ) ) * + 92 * - 69 AS col0
----
20
-6262

skipif mysql # not compatible
query II rowsort label-8068
SELECT ALL COUNT ( * ) * + 20, COUNT ( * ) * 87 + - COUNT ( ALL + 68 ) + ( COUNT ( * ) ) * + 92 * - 69 AS col0
----
20
-6262

onlyif mysql # aggregate syntax: 
query II rowsort label-8069
SELECT 46 * 8, - MAX( 73 ) AS col1
----
368
-73

skipif mysql # not compatible
query II rowsort label-8069
SELECT 46 * 8, - MAX ( 73 ) AS col1
----
368
-73

query I rowsort
SELECT 56 * - 60 * 16
----
-53760

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT DISTINCT + 78 DIV + 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + 78 / + 65 AS col1
----
1

query I rowsort
SELECT 46 * + ( 61 ) AS col2
----
2806

onlyif mysql # DIV for integer division: 
query I rowsort label-8073
SELECT ALL + 60 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL + 60 / 37
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8074
SELECT DISTINCT 11 + - 92 + + 88 + - 30 AS col2, NULLIF ( 66, - 9 - + 41 + + ( 32 ) ) * ( NULLIF ( MIN( ALL + 26 ), + CASE + 1 WHEN 58 + 43 THEN 62 WHEN - ( + 33 ) / 80 THEN NULL WHEN + ( - 69 ) THEN NULL ELSE - 73 * COUNT( * ) END - 18 ) )
----
-23
1716

skipif mysql # not compatible
query II rowsort label-8074
SELECT DISTINCT 11 + - 92 + + 88 + - 30 AS col2, NULLIF ( 66, - 9 - + 41 + + ( 32 ) ) * ( NULLIF ( MIN ( ALL + 26 ), + CASE + 1 WHEN 58 + 43 THEN 62 WHEN - ( + 33 ) / 80 THEN NULL WHEN + ( - 69 ) THEN NULL ELSE - 73 * COUNT ( * ) END - 18 ) )
----
-23
1716

query I rowsort
SELECT DISTINCT - 15 + + 32 * 90 AS col1
----
2865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8076
SELECT ALL + 61 + - 89 - + - NULLIF ( - 21, - - CASE + + 26 WHEN + 63 THEN - 70 + 32 WHEN COUNT( * ) * AVG ( 66 ) THEN NULL END * - COALESCE ( + 46, + CAST( 27 AS DECIMAL ) ) - 70 ) + - ( - 90 + 34 ) * + COUNT( * ) * - CAST( 43 AS SIGNED )
----
-2457

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL + 61 + - 89 - + - NULLIF ( - 21, - - CASE + + 26 WHEN + 63 THEN - 70 + 32 WHEN COUNT ( * ) * AVG ( 66 ) THEN NULL END * - COALESCE ( + 46, + CAST ( 27 AS REAL ) ) - 70 ) + - ( - 90 + 34 ) * + COUNT ( * ) * - CAST ( 43 AS INTEGER )
----
-2457

query I rowsort
SELECT ALL - 99 + + + NULLIF ( 95, + + 79 ) + - 77 + 43 + - 28 + - 56 * + + 21 * 86
----
-101202

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL - + 96 * COUNT( * ) * 58 * + 30 + + MIN( DISTINCT + 49 ) AS col2
----
-166991

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL - + 96 * COUNT ( * ) * 58 * + 30 + + MIN ( DISTINCT + 49 ) AS col2
----
-166991

query I rowsort
SELECT - 86 * + - 95 * - COALESCE ( 66, - + 69 + 66 + + 39 ) AS col0
----
-539220

query I rowsort
SELECT DISTINCT - 49 + + 80
----
31

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT ALL - - 96 + - CASE - 90 WHEN - 33 THEN NULL WHEN + NULLIF ( 6, + - 38 * 67 ) * CAST( 59 AS SIGNED ) THEN 38 WHEN + 23 THEN NULL ELSE NULL END + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL - - 96 + - CASE - 90 WHEN - 33 THEN NULL WHEN + NULLIF ( 6, + - 38 * 67 ) * CAST ( 59 AS INTEGER ) THEN 38 WHEN + 23 THEN NULL ELSE NULL END + 50
----
NULL

query I rowsort
SELECT ALL + 58 + + 57
----
115

query I rowsort
SELECT ALL - 97 + 10 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT + NULLIF ( + COUNT( * ), - 88 / + 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8086
SELECT + NULLIF ( + COUNT ( * ), - 88 / + 89 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL + ( + CASE - COUNT( * ) WHEN 25 + - - 75 THEN - COUNT( * ) ELSE + CASE AVG ( DISTINCT - 55 ) WHEN - 28 THEN SUM( - 63 ) * + 81 END * + 92 END ) - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + ( + CASE - COUNT ( * ) WHEN 25 + - - 75 THEN - COUNT ( * ) ELSE + CASE AVG ( DISTINCT - 55 ) WHEN - 28 THEN SUM ( - 63 ) * + 81 END * + 92 END ) - - 55
----
NULL

query II rowsort
SELECT 1 * 31 AS col2, - 27 AS col0
----
31
-27

query I rowsort
SELECT - 43 * - - CASE + 5 WHEN + 77 THEN - - 66 * 44 * + - 69 END
----
NULL

query I rowsort
SELECT + 52 - 82 AS col2
----
-30

query I rowsort
SELECT 1 * 19
----
19

query II rowsort
SELECT ALL 81 AS col2, 72 * - 51 AS col0
----
81
-3672

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT - 83 * CASE CASE + COUNT( * ) WHEN 28 THEN NULL WHEN + - 24 THEN + COUNT( * ) * + 82 + + 34 END WHEN - 5 THEN - 51 + 91 * - ( 64 + COUNT( * ) ) WHEN - 95 + 29 / + 53 THEN 29 ELSE 34 * - 27 END
----
76194

skipif mysql # not compatible
query I rowsort label-8094
SELECT - 83 * CASE CASE + COUNT ( * ) WHEN 28 THEN NULL WHEN + - 24 THEN + COUNT ( * ) * + 82 + + 34 END WHEN - 5 THEN - 51 + 91 * - ( 64 + COUNT ( * ) ) WHEN - 95 + 29 / + 53 THEN 29 ELSE 34 * - 27 END
----
76194

query I rowsort
SELECT + 89 * + - 60
----
-5340

query I rowsort
SELECT + 77 + - 94
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8097
SELECT + 53 + + COALESCE ( + 9, 7, - CASE - - 99 WHEN - 5 * + - CASE - + 76 WHEN + 84 + - 80 THEN NULL WHEN CAST( NULLIF ( MAX( - 88 ), 52 ) AS SIGNED ) * + 60 THEN NULL ELSE - CAST( - COUNT( - 44 ) AS SIGNED ) END THEN NULL ELSE + 81 + - 58 END, - 68 ) + - 60
----
2

skipif mysql # not compatible
query I rowsort label-8097
SELECT + 53 + + COALESCE ( + 9, 7, - CASE - - 99 WHEN - 5 * + - CASE - + 76 WHEN + 84 + - 80 THEN NULL WHEN CAST ( NULLIF ( MAX ( - 88 ), 52 ) AS INTEGER ) * + 60 THEN NULL ELSE - CAST ( - COUNT ( - 44 ) AS INTEGER ) END THEN NULL ELSE + 81 + - 58 END, - 68 ) + - 60
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT ALL 65 * - 47 * - SUM( CAST( + 62 AS SIGNED ) ) col0
----
189410

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL 65 * - 47 * - SUM ( CAST ( + 62 AS INTEGER ) ) col0
----
189410

query I rowsort
SELECT ALL 41 + - 0 AS col2
----
41

query II rowsort
SELECT + 47 + + - 7 * 29 AS col2, - 35
----
-156
-35

query I rowsort
SELECT + 17 * + + 21 col2
----
357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8102
SELECT 57 AS col1, + 48 + - COUNT( * ) - + + ( + COALESCE ( 28, - 83 * + NULLIF ( + - ( + - COUNT( ALL 0 ) ), CAST( NULL AS SIGNED ) DIV + 1 ) + + ( - COUNT( * ) ) * 46, + ( 28 ) DIV - 95 + - COUNT( * ) ) ) - + 12 * + 34
----
57
-389

skipif mysql # not compatible
query II rowsort label-8102
SELECT 57 AS col1, + 48 + - COUNT ( * ) - + + ( + COALESCE ( 28, - 83 * + NULLIF ( + - ( + - COUNT ( ALL 0 ) ), CAST ( NULL AS INTEGER ) / + 1 ) + + ( - COUNT ( * ) ) * 46, + ( 28 ) / - 95 + - COUNT ( * ) ) ) - + 12 * + 34
----
57
-389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8103
SELECT ALL 5 + + 83 + - 37 - COUNT( * ) + - COUNT( * ) + + 52 DIV - 54 * - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL 5 + + 83 + - 37 - COUNT ( * ) + - COUNT ( * ) + + 52 / - 54 * - COUNT ( * )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8104
SELECT DISTINCT 64 * + MIN( ALL + 63 ) * - CAST( NULL AS SIGNED ) + 66 AS col1, - 32 - - + COUNT( * ) AS col0
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-8104
SELECT DISTINCT 64 * + MIN ( ALL + 63 ) * - CAST ( NULL AS INTEGER ) + 66 AS col1, - 32 - - + COUNT ( * ) AS col0
----
NULL
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT - NULLIF ( - 27, + - 92 + - - 96 ) * + + 90 + - + 5 * + COUNT( * )
----
2425

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT - NULLIF ( - 27, + - 92 + - - 96 ) * + + 90 + - + 5 * + COUNT ( * )
----
2425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8106
SELECT + CASE WHEN ( - 73 ) IS NULL THEN NULL ELSE - 21 END DIV SUM( NULLIF ( + + 90, - 88 + 38 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8106
SELECT + CASE WHEN ( - 73 ) IS NULL THEN NULL ELSE - 21 END / SUM ( NULLIF ( + + 90, - 88 + 38 ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8107
SELECT ALL - CAST( NULL AS DECIMAL ) * - + 97 + + 34 + + - CAST( + + 58 AS SIGNED ) AS col2, 1 * COUNT( * ) * + 68 * - COUNT( + - 25 ) AS col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-8107
SELECT ALL - CAST ( NULL AS REAL ) * - + 97 + + 34 + + - CAST ( + + 58 AS INTEGER ) AS col2, 1 * COUNT ( * ) * + 68 * - COUNT ( + - 25 ) AS col2
----
NULL
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT DISTINCT + - 31 * 27 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT + - 31 * 27 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8109
SELECT DISTINCT CASE + - 76 WHEN - 31 * - ( MAX( 41 ) ) * + 44 * + - SUM( DISTINCT + 28 ) THEN + 19 ELSE + 84 * + ( + 93 ) - - COUNT( * ) END * + 10 - 80 DIV - 69
----
78131

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT CASE + - 76 WHEN - 31 * - ( MAX ( 41 ) ) * + 44 * + - SUM ( DISTINCT + 28 ) THEN + 19 ELSE + 84 * + ( + 93 ) - - COUNT ( * ) END * + 10 - 80 / - 69
----
78131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8110
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * + 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-8110
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + 80 AS col1
----
NULL
80

query I rowsort
SELECT DISTINCT + 94 * + - 55 AS col0
----
-5170

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8112
SELECT ALL 74 * - MIN( DISTINCT - 40 ) + 34 + + 17 + - 63 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL 74 * - MIN ( DISTINCT - 40 ) + 34 + + 17 + - 63 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - 13 + - COUNT( + - 9 ) * + + ( + COUNT( + 83 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8113
SELECT - 13 + - COUNT ( + - 9 ) * + + ( + COUNT ( + 83 ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT + - MAX( DISTINCT + ( - 46 ) ) * - NULLIF ( + + CASE + + 35 WHEN - 92 THEN NULL WHEN - ( 8 ) * - 64 * - 99 + + 56 THEN NULL ELSE 27 END, + 96 + + 20 ) AS col0
----
-1242

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + - MAX ( DISTINCT + ( - 46 ) ) * - NULLIF ( + + CASE + + 35 WHEN - 92 THEN NULL WHEN - ( 8 ) * - 64 * - 99 + + 56 THEN NULL ELSE 27 END, + 96 + + 20 ) AS col0
----
-1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8115
SELECT - - 64 + + - 98 DIV - COUNT( * ) + + + 92 + ( - 11 ) * 14
----
100

skipif mysql # not compatible
query I rowsort label-8115
SELECT - - 64 + + - 98 / - COUNT ( * ) + + + 92 + ( - 11 ) * 14
----
100

query I rowsort
SELECT - - 5 * 79 AS col1
----
395

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

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

query I rowsort
SELECT - 13 + + 90
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8119
SELECT ALL COALESCE ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), + 75 + COALESCE ( + 99, + COUNT( * ) ), + + 96 )
----
174

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL COALESCE ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + 75 + COALESCE ( + 99, + COUNT ( * ) ), + + 96 )
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-8120
SELECT - 84 DIV + 46
----
-1

skipif mysql # not compatible
query I rowsort label-8120
SELECT - 84 / + 46
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8121
SELECT + NULLIF ( + + 91, + 29 + ( 44 ) - 50 / - 40 ) + + CAST( - COUNT( * ) AS SIGNED ) * + 73 - + + ( CAST( 66 AS SIGNED ) ) * - 17 AS col2
----
1140

skipif mysql # not compatible
query I rowsort label-8121
SELECT + NULLIF ( + + 91, + 29 + ( 44 ) - 50 / - 40 ) + + CAST ( - COUNT ( * ) AS INTEGER ) * + 73 - + + ( CAST ( 66 AS INTEGER ) ) * - 17 AS col2
----
1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8122
SELECT DISTINCT + 87 DIV - MIN( + + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT + 87 / - MIN ( + + 96 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL COALESCE ( - NULLIF ( - - ( - ( - COUNT( ALL + 34 ) ) ), 93 ), COUNT( DISTINCT - 78 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL COALESCE ( - NULLIF ( - - ( - ( - COUNT ( ALL + 34 ) ) ), 93 ), COUNT ( DISTINCT - 78 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT DISTINCT + COUNT( * ) DIV NULLIF ( 28, + 37 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT + COUNT ( * ) / NULLIF ( 28, + 37 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8126
SELECT - MAX( + 71 ) DIV - NULLIF ( 77, ( + 98 ) ) * + 95 DIV 4 + + - COUNT( * ), - 19 - 47 AS col2
----
-1
-66

skipif mysql # not compatible
query II rowsort label-8126
SELECT - MAX ( + 71 ) / - NULLIF ( 77, ( + 98 ) ) * + 95 / 4 + + - COUNT ( * ), - 19 - 47 AS col2
----
-1
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL 65 + + NULLIF ( COUNT( * ), + - 63 ) * + - 96
----
-31

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL 65 + + NULLIF ( COUNT ( * ), + - 63 ) * + - 96
----
-31

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

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

query I rowsort
SELECT - 30 * + 59 AS col0
----
-1770

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8131
SELECT 48, COUNT( * ) * - 19 AS col2
----
48
-19

skipif mysql # not compatible
query II rowsort label-8131
SELECT 48, COUNT ( * ) * - 19 AS col2
----
48
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-8132
SELECT DISTINCT 49, - 45 DIV + 46 AS col0
----
49
0

skipif mysql # not compatible
query II rowsort label-8132
SELECT DISTINCT 49, - 45 / + 46 AS col0
----
49
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT DISTINCT + ( + ( - NULLIF ( - - CAST( NULL AS SIGNED ), + 0 ) ) ) + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT + ( + ( - NULLIF ( - - CAST ( NULL AS INTEGER ), + 0 ) ) ) + + 22
----
NULL

query I rowsort
SELECT ALL - 60 + 56 AS col0
----
-4

query I rowsort
SELECT - 94 * + COALESCE ( - + 52, 56 + + + 16 + - 59 )
----
4888

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + MAX( DISTINCT 74 ) * - 70
----
-5180

skipif mysql # not compatible
query I rowsort label-8136
SELECT + MAX ( DISTINCT 74 ) * - 70
----
-5180

query I rowsort
SELECT ALL + 97 + 9
----
106

query I rowsort
SELECT - 11 - + 9 AS col0
----
-20

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

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

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

query II rowsort
SELECT ALL 14, 33 col1
----
14
33

query I rowsort
SELECT - CASE WHEN NOT + 3 > + + 58 THEN + 80 END AS col0
----
-80

query II rowsort
SELECT 58, - 43 AS col2
----
58
-43

query I rowsort
SELECT ALL + 91 + 11 * 70
----
861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8145
SELECT ALL + CAST( NULL AS SIGNED ), 58 + 90 DIV - - 13 + + MIN( + - ( + - 64 ) ) AS col2
----
NULL
128

skipif mysql # not compatible
query II rowsort label-8145
SELECT ALL + CAST ( NULL AS INTEGER ), 58 + 90 / - - 13 + + MIN ( + - ( + - 64 ) ) AS col2
----
NULL
128

query I rowsort
SELECT + 45 * + 30 - 87
----
1263

query I rowsort
SELECT + 4 + + + 54
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT DISTINCT + 98 / + - 39 - 68 * - CASE - + CAST( NULL AS SIGNED ) WHEN 25 THEN - 34 * + 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT + 98 / + - 39 - 68 * - CASE - + CAST ( NULL AS INTEGER ) WHEN 25 THEN - 34 * + 33 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL + - CAST( COALESCE ( - + 17, + + 48, + - 77, - MAX( 98 ) * 36 - 45 ) AS SIGNED ) col0
----
17

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + - CAST ( COALESCE ( - + 17, + + 48, + - 77, - MAX ( 98 ) * 36 - 45 ) AS INTEGER ) col0
----
17

query II rowsort
SELECT + 10 AS col0, + 44 AS col0
----
10
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT + MIN( DISTINCT - 73 ) * 68 col1
----
-4964

skipif mysql # not compatible
query I rowsort label-8151
SELECT + MIN ( DISTINCT - 73 ) * 68 col1
----
-4964

query I rowsort
SELECT + 31 * - 44 AS col0
----
-1364

query I rowsort
SELECT ALL NULLIF ( 99, 63 ) * 9 AS col1
----
891

query I rowsort
SELECT - CASE 21 WHEN 81 * + 19 + + 44 THEN NULL WHEN - 96 + + 43 - 98 / + + 55 * 7 THEN - 18 + + 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - ( - ( - 73 ) ) * ( 56 ) + + + CASE - 14 WHEN CASE ( COUNT( * ) ) WHEN + 56 * + 22 + - ( + MIN( + 7 ) ) * + 13 THEN 70 * NULLIF ( + 0 * 23, - 89 ) WHEN 18 THEN 43 + - 17 END THEN 83 / - 41 + + 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT - ( - ( - 73 ) ) * ( 56 ) + + + CASE - 14 WHEN CASE ( COUNT ( * ) ) WHEN + 56 * + 22 + - ( + MIN ( + 7 ) ) * + 13 THEN 70 * NULLIF ( + 0 * 23, - 89 ) WHEN 18 THEN 43 + - 17 END THEN 83 / - 41 + + 38 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT 63 * COUNT( * ) * + 24
----
1512

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT 63 * COUNT ( * ) * + 24
----
1512

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8158
SELECT + + 34 DIV + COUNT( * ) + 69 + + - 9, COUNT( - + 7 ) col2
----
94
1

skipif mysql # not compatible
query II rowsort label-8158
SELECT + + 34 / + COUNT ( * ) + 69 + + - 9, COUNT ( - + 7 ) col2
----
94
1

query I rowsort
SELECT + 64 * 16 + - 70 AS col2
----
954

query I rowsort
SELECT - 34 * - 65
----
2210

query I rowsort
SELECT 33 * - 96 + + 12 AS col1
----
-3156

query I rowsort
SELECT - + 3 * - + ( - - 89 ) - + - 11 AS col0
----
278

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

skipif mysql # not compatible
query II rowsort label-8163
SELECT COUNT ( * ), 12 AS col1
----
1
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8164
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) + - - 2
----
1

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) + - - 2
----
1

query I rowsort
SELECT 21 - - + 47 AS col1
----
68

query I rowsort
SELECT ALL + ( + + 15 ) * 42 + + 39
----
669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT DISTINCT ( + 59 ) * 37 * CAST( + - 13 AS SIGNED ) * - 6 + + COALESCE ( + ( 80 ), + 93 * + 70 ) col2
----
170354

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT ( + 59 ) * 37 * CAST ( + - 13 AS INTEGER ) * - 6 + + COALESCE ( + ( 80 ), + 93 * + 70 ) col2
----
170354

query I rowsort
SELECT DISTINCT - 19 + 43 + 15
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT MIN( ALL + 15 ) + + + COALESCE ( - 18, - 61, - 35 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT MIN ( ALL + 15 ) + + + COALESCE ( - 18, - 61, - 35 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT COUNT( * ) + + 98 + 35 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-8170
SELECT COUNT ( * ) + + 98 + 35 AS col0
----
134

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

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL - 29 + - COUNT ( * )
----
-30

query I rowsort
SELECT 45 + - - ( - 95 ) col1
----
-50

query I rowsort
SELECT ALL + 2 + - + 63 * + 57 AS col0
----
-3589

query I rowsort
SELECT 90 - - 93 AS col2
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT ALL - 38 DIV - 18
----
2

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL - 38 / - 18
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT 65 + - - NULLIF ( 66, - 11 * - + COUNT( * ) / + 3 )
----
131

skipif mysql # not compatible
query I rowsort label-8176
SELECT 65 + - - NULLIF ( 66, - 11 * - + COUNT ( * ) / + 3 )
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8177
SELECT ALL - 29 * + 26 DIV + COUNT( * ) AS col0
----
-754

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - 29 * + 26 / + COUNT ( * ) AS col0
----
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT 71 * + - COUNT( * ) * - - 55
----
-3905

skipif mysql # not compatible
query I rowsort label-8178
SELECT 71 * + - COUNT ( * ) * - - 55
----
-3905

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT DISTINCT - 57 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT - 57 / - 68
----
0

query I rowsort
SELECT ALL + 66 - + ( - ( - 93 ) )
----
-27

query I rowsort
SELECT DISTINCT 10 * - 30 AS col1
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT MIN( + 52 ) * - COUNT( * ) + + 27 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT MIN ( + 52 ) * - COUNT ( * ) + + 27 AS col0
----
-25

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

skipif mysql # not compatible
query I rowsort label-8183
SELECT - 19 * + CAST ( NULL AS INTEGER ) + 12
----
NULL

query I rowsort
SELECT 20 + - 23 * - 8
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT 66 + COALESCE ( + 48, - MAX( ALL 75 ) + - - SUM( + - 47 ), 70 * + ( + - 11 ) * - - ( + COUNT( * ) ) )
----
114

skipif mysql # not compatible
query I rowsort label-8185
SELECT 66 + COALESCE ( + 48, - MAX ( ALL 75 ) + - - SUM ( + - 47 ), 70 * + ( + - 11 ) * - - ( + COUNT ( * ) ) )
----
114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT + COUNT( * ) * - 18 * + 11 - + 9 col2
----
-207

skipif mysql # not compatible
query I rowsort label-8187
SELECT + COUNT ( * ) * - 18 * + 11 - + 9 col2
----
-207

query I rowsort
SELECT DISTINCT - + 3
----
-3

query I rowsort
SELECT ALL 35 * 26 * - 14 AS col1
----
-12740

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + CASE - 58 WHEN 8 * SUM( ALL + + 41 ) THEN NULL WHEN - 97 THEN - + 92 * + 74 + + + 32 + - 1 + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT + CASE - 58 WHEN 8 * SUM ( ALL + + 41 ) THEN NULL WHEN - 97 THEN - + 92 * + 74 + + + 32 + - 1 + 84 END
----
NULL

query I rowsort
SELECT ALL 92 * - 53 + - 26 col1
----
-4902

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8193
SELECT ALL + 92 + 91 AS col1, CAST( NULL AS SIGNED ) / - + ( 34 ) AS col2
----
183
NULL

skipif mysql # not compatible
query II rowsort label-8193
SELECT ALL + 92 + 91 AS col1, CAST ( NULL AS INTEGER ) / - + ( 34 ) AS col2
----
183
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT - + 42 * + COUNT( * ) + - 72 + 17 + + 6 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8194
SELECT - + 42 * + COUNT ( * ) + - 72 + 17 + + 6 AS col0
----
-91

query I rowsort
SELECT 32 * - 77 + - 18 col1
----
-2482

query I rowsort
SELECT DISTINCT 89 + - - 38 AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ( - MIN( + ( - - 99 ) ) ) + + - 78 + + + 65
----
-112

skipif mysql # not compatible
query I rowsort label-8197
SELECT ( - MIN ( + ( - - 99 ) ) ) + + - 78 + + + 65
----
-112

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

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

query I rowsort
SELECT ALL - 33 + 87 + - 39 * - 96 + - 32 AS col0
----
3766

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT MIN( ALL 84 ) + - 15
----
69

skipif mysql # not compatible
query I rowsort label-8200
SELECT MIN ( ALL 84 ) + - 15
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8201
SELECT ALL SUM( DISTINCT + 85 ) + + + 22 AS col1, + 7
----
107
7

skipif mysql # not compatible
query II rowsort label-8201
SELECT ALL SUM ( DISTINCT + 85 ) + + + 22 AS col1, + 7
----
107
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT + 48 * 23 + + + 90 + + + 98 * + 43 + - - CAST( + 45 AS SIGNED )
----
5453

skipif mysql # not compatible
query I rowsort label-8202
SELECT + 48 * 23 + + + 90 + + + 98 * + 43 + - - CAST ( + 45 AS INTEGER )
----
5453

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

query I rowsort
SELECT 75 + + 8
----
83

query I rowsort
SELECT 55 * - 68 AS col2
----
-3740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT 90 + - ( 30 ) / + - ( NULLIF ( 15, + COUNT( * ) ) ) * + + 77 + + - CAST( NULL AS SIGNED ) / 79 - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT 90 + - ( 30 ) / + - ( NULLIF ( 15, + COUNT ( * ) ) ) * + + 77 + + - CAST ( NULL AS INTEGER ) / 79 - 66
----
NULL

query I rowsort
SELECT ALL + 98 - 21 AS col0
----
77

query I rowsort
SELECT ALL 46 * - - 54 AS col2
----
2484

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8210
SELECT ALL 67, 61 * + CASE - 47 WHEN + 13 * + 42 + 67 * 45 THEN - - CAST( + - 59 AS SIGNED ) WHEN + - ( - COUNT( * ) ) - - - 48 THEN 19 DIV 72 WHEN CASE 89 WHEN - 73 THEN 23 DIV 54 WHEN - 36 THEN - 71 DIV 2 - COALESCE ( - ( - 57 ), 52 * + CAST( NULL AS SIGNED ) ) ELSE + NULLIF ( 33, + 85 ) * + 90 END THEN 42 END AS col2
----
67
0

skipif mysql # not compatible
query II rowsort label-8210
SELECT ALL 67, 61 * + CASE - 47 WHEN + 13 * + 42 + 67 * 45 THEN - - CAST ( + - 59 AS INTEGER ) WHEN + - ( - COUNT ( * ) ) - - - 48 THEN 19 / 72 WHEN CASE 89 WHEN - 73 THEN 23 / 54 WHEN - 36 THEN - 71 / 2 - COALESCE ( - ( - 57 ), 52 * + CAST ( NULL AS INTEGER ) ) ELSE + NULLIF ( 33, + 85 ) * + 90 END THEN 42 END AS col2
----
67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT - SUM( - 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-8211
SELECT - SUM ( - 23 ) AS col2
----
23

query II rowsort
SELECT - 20 AS col1, + ( + 57 ) * ( 1 ) * - 64
----
-20
-3648

query I rowsort
SELECT + 17 * + + 51 AS col0
----
867

query II rowsort
SELECT DISTINCT 33 AS col1, 79
----
33
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8215
SELECT CASE - - COUNT( * ) WHEN 86 THEN - + 47 - - + 12 ELSE - - 17 END * CASE - - 65 WHEN - CASE + COUNT( DISTINCT + - 9 ) WHEN + MIN( - 68 ) * - NULLIF ( NULLIF ( + 69, 67 * COUNT( 38 ) + + 92 ), + MIN( DISTINCT 73 ) ) THEN + 78 WHEN 89 THEN NULL END THEN COUNT( * ) WHEN - 57 THEN + 16 ELSE + COUNT( * ) DIV 9 END * - 77
----
0

skipif mysql # not compatible
query I rowsort label-8215
SELECT CASE - - COUNT ( * ) WHEN 86 THEN - + 47 - - + 12 ELSE - - 17 END * CASE - - 65 WHEN - CASE + COUNT ( DISTINCT + - 9 ) WHEN + MIN ( - 68 ) * - NULLIF ( NULLIF ( + 69, 67 * COUNT ( 38 ) + + 92 ), + MIN ( DISTINCT 73 ) ) THEN + 78 WHEN 89 THEN NULL END THEN COUNT ( * ) WHEN - 57 THEN + 16 ELSE + COUNT ( * ) / 9 END * - 77
----
0

query I rowsort
SELECT + 44 - - 18 AS col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT 11 DIV - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8217
SELECT 11 / - 46 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8218
SELECT - - COALESCE ( - 15, - 3 * + + 10 * - COUNT( * ) * + 10 DIV + + 57 DIV 60 + + 85 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8218
SELECT - - COALESCE ( - 15, - 3 * + + 10 * - COUNT ( * ) * + 10 / + + 57 / 60 + + 85 ) AS col1
----
-15

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

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

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

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL - 79 / + COUNT ( * ) AS col2
----
-79

query I rowsort
SELECT ALL + + 7 * + 36
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8222
SELECT 24 * 9 - - 93 DIV COUNT( * ) * 77 - + 96 DIV + COALESCE ( 41, - + 92, - ( - - 80 ) )
----
7375

skipif mysql # not compatible
query I rowsort label-8222
SELECT 24 * 9 - - 93 / COUNT ( * ) * 77 - + 96 / + COALESCE ( 41, - + 92, - ( - - 80 ) )
----
7375

query I rowsort
SELECT - - 76 + - 46
----
30

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8225
SELECT 70 AS col0, + 56 * - - COALESCE ( - 21, - + 72 + + MIN( + 3 ) + - 14 )
----
70
-1176

skipif mysql # not compatible
query II rowsort label-8225
SELECT 70 AS col0, + 56 * - - COALESCE ( - 21, - + 72 + + MIN ( + 3 ) + - 14 )
----
70
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL - + COUNT( * ) * 9 + + 61 + + 78 * - CASE - 80 WHEN + 54 THEN + + 78 * - - 55 + 11 + ( - NULLIF ( + + COALESCE ( ( 83 ), + 45 ), 11 - 42 ) ) * - 45 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - + COUNT ( * ) * 9 + + 61 + + 78 * - CASE - 80 WHEN + 54 THEN + + 78 * - - 55 + 11 + ( - NULLIF ( + + COALESCE ( ( 83 ), + 45 ), 11 - 42 ) ) * - 45 END * COUNT ( * )
----
NULL

query I rowsort
SELECT - 69 * 72 * 52 - + - 79 col0
----
-258257

query I rowsort
SELECT - + 52 * + - 99 + 61 * + COALESCE ( - 42, + ( - - 39 ) ) col0
----
2586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT DISTINCT - 66 * COUNT( + 40 ) + + 84 DIV + 38 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT - 66 * COUNT ( + 40 ) + + 84 / + 38 AS col0
----
-64

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT DISTINCT + 47 * + ( + + ( + + 19 ) ) * COUNT( * ) + + 51
----
944

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT + 47 * + ( + + ( + + 19 ) ) * COUNT ( * ) + + 51
----
944

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT + 24 DIV 11
----
2

skipif mysql # not compatible
query I rowsort label-8235
SELECT + 24 / 11
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-8236
SELECT DISTINCT 47 * - + COALESCE ( - 25, - + 92 DIV - 80 ) AS col0, - 32 * + 39
----
1175
-1248

skipif mysql # not compatible
query II rowsort label-8236
SELECT DISTINCT 47 * - + COALESCE ( - 25, - + 92 / - 80 ) AS col0, - 32 * + 39
----
1175
-1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT ALL 94 * 28 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL 94 * 28 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 6 * + - 83 - + 90
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + SUM( 4 ) * + SUM( + 26 ) col1
----
104

skipif mysql # not compatible
query I rowsort label-8239
SELECT + SUM ( 4 ) * + SUM ( + 26 ) col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT 0 * SUM( + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT 0 * SUM ( + 0 ) AS col1
----
0

query II rowsort
SELECT DISTINCT - 56 * + 64 AS col2, 33 AS col1
----
-3584
33

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

query I rowsort
SELECT DISTINCT 5 - - 27 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8244
SELECT DISTINCT COUNT( DISTINCT ( - NULLIF ( 88, - 55 * 63 * - 26 + - 17 ) ) ) DIV + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT COUNT ( DISTINCT ( - NULLIF ( 88, - 55 * 63 * - 26 + - 17 ) ) ) / + 51 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8245
SELECT COUNT( * ) * + + COALESCE ( - + 51, - 19 ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT COUNT ( * ) * + + COALESCE ( - + 51, - 19 ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT + COALESCE ( + 42, + 78 ) / + + 3 + + CAST( NULL AS SIGNED ) + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT + COALESCE ( + 42, + 78 ) / + + 3 + + CAST ( NULL AS INTEGER ) + 55 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT COUNT ( * ) / - 31 col0
----
0

query I rowsort
SELECT + 98 + 20
----
118

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

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

query I rowsort
SELECT + 28 + 3 AS col2
----
31

query I rowsort
SELECT + + 71 * 38 col2
----
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT + 55 + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8252
SELECT + 55 + + COUNT ( * )
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8253
SELECT ALL ( - - COUNT( * ) ) + - 39 / + 91 + - 13 / COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL ( - - COUNT ( * ) ) + - 39 / + 91 + - 13 / COUNT ( * ) + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT DISTINCT CAST( NULL AS SIGNED ) * 24 + - + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 24 + - + 49 AS col1
----
NULL

query I rowsort
SELECT ALL + 86 + - - 78 AS col0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL - 27 + COUNT( * ) * - NULLIF ( - 11, - MAX( ALL - 48 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL - 27 + COUNT ( * ) * - NULLIF ( - 11, - MAX ( ALL - 48 ) )
----
-16

query I rowsort
SELECT - + 22 + 56
----
34

query I rowsort
SELECT ALL + 16 * + 66 * - 32
----
-33792

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

skipif mysql # not compatible
query I rowsort label-8259
SELECT + + 11 / COUNT ( * ) AS col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8260
SELECT - 42 DIV 41 * - 72 + + 2 + 79 DIV 62 DIV - 51 + - ( 80 ) + - 71
----
-77

skipif mysql # not compatible
query I rowsort label-8260
SELECT - 42 / 41 * - 72 + + 2 + 79 / 62 / - 51 + - ( 80 ) + - 71
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT NULLIF ( + - COUNT( * ), 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8261
SELECT NULLIF ( + - COUNT ( * ), 52 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT DISTINCT + + NULLIF ( - 86, CASE WHEN ( - + 36 ) IS NOT NULL AND NOT - + COUNT( * ) + - - 30 * 40 NOT IN ( 88 + 36 ) THEN 93 / - 20 ELSE ( - 37 ) + - 25 END + - ( 30 + + 56 * ( - 85 + 71 * + 6 ) ) )
----
-86

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT + + NULLIF ( - 86, CASE WHEN ( - + 36 ) IS NOT NULL AND NOT - + COUNT ( * ) + - - 30 * 40 NOT IN ( 88 + 36 ) THEN 93 / - 20 ELSE ( - 37 ) + - 25 END + - ( 30 + + 56 * ( - 85 + 71 * + 6 ) ) )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8263
SELECT ALL + MIN( 56 ) DIV CAST( - - 62 AS SIGNED ) + - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL + MIN ( 56 ) / CAST ( - - 62 AS INTEGER ) + - 79 AS col0
----
-79

query I rowsort
SELECT ALL + + 75 * + - 76 * + 94
----
-535800

query I rowsort
SELECT ALL - - 62 * - 64
----
-3968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8266
SELECT - COALESCE ( - - CASE - 43 WHEN + - COALESCE ( + 72, + CASE - ( - CASE - + AVG ( 5 ) WHEN - COALESCE ( + CASE - 93 WHEN + + 75 THEN NULL ELSE + - 60 + 23 END, + ( 82 ), + 4 ) THEN + ( - MIN( + 38 ) ) WHEN + 70 THEN - 23 ELSE NULL END ) WHEN 3 THEN NULL WHEN - 80 THEN 45 + 24 END + + ( - 63 ) ) THEN 75 ELSE NULL END, 11 + COALESCE ( - 26 + MIN( 66 ) * 98, - 13 + 46, + CAST( NULL AS SIGNED ) ) ) * 37
----
-238761

skipif mysql # not compatible
query I rowsort label-8266
SELECT - COALESCE ( - - CASE - 43 WHEN + - COALESCE ( + 72, + CASE - ( - CASE - + AVG ( 5 ) WHEN - COALESCE ( + CASE - 93 WHEN + + 75 THEN NULL ELSE + - 60 + 23 END, + ( 82 ), + 4 ) THEN + ( - MIN ( + 38 ) ) WHEN + 70 THEN - 23 ELSE NULL END ) WHEN 3 THEN NULL WHEN - 80 THEN 45 + 24 END + + ( - 63 ) ) THEN 75 ELSE NULL END, 11 + COALESCE ( - 26 + MIN ( 66 ) * 98, - 13 + 46, + CAST ( NULL AS INTEGER ) ) ) * 37
----
-238761

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL + 42 * - COUNT( * ) * + 54 * COUNT( - - 9 )
----
-2268

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL + 42 * - COUNT ( * ) * + 54 * COUNT ( - - 9 )
----
-2268

query I rowsort
SELECT ( - - 67 ) AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8269
SELECT + 2 DIV 3 + + 44 * + 10
----
440

skipif mysql # not compatible
query I rowsort label-8269
SELECT + 2 / 3 + + 44 * + 10
----
440

onlyif mysql # aggregate syntax: 
query II rowsort label-8270
SELECT ( - MAX( - 57 ) ) AS col1, 65 AS col2
----
57
65

skipif mysql # not compatible
query II rowsort label-8270
SELECT ( - MAX ( - 57 ) ) AS col1, 65 AS col2
----
57
65

query I rowsort
SELECT ALL - 70 * 20 * + 19
----
-26600

query I rowsort
SELECT - 12 + 46 + 94 * - 40 * + - 93 AS col1
----
349714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8273
SELECT + ( - 66 ) * - - COALESCE ( - CAST( NULL AS SIGNED ), 45 ) + + + CAST( - - 81 AS SIGNED ) * - 25 AS col1, 44 * - + 31 * - - 71 * 91 + + 90
----
-4995
-8812714

skipif mysql # not compatible
query II rowsort label-8273
SELECT + ( - 66 ) * - - COALESCE ( - CAST ( NULL AS INTEGER ), 45 ) + + + CAST ( - - 81 AS INTEGER ) * - 25 AS col1, 44 * - + 31 * - - 71 * 91 + + 90
----
-4995
-8812714

query I rowsort
SELECT - 47 - - 24
----
-23

query I rowsort
SELECT COALESCE ( 79, 34, + 61 ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT - CAST( + 65 AS SIGNED ) + + COALESCE ( + + ( - 80 ), 58 * + + 37 )
----
-145

skipif mysql # not compatible
query I rowsort label-8276
SELECT - CAST ( + 65 AS INTEGER ) + + COALESCE ( + + ( - 80 ), 58 * + + 37 )
----
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8277
SELECT DISTINCT + 16 AS col0, + MAX( ALL - 54 ) + + 75 DIV 81 AS col2
----
16
-54

skipif mysql # not compatible
query II rowsort label-8277
SELECT DISTINCT + 16 AS col0, + MAX ( ALL - 54 ) + + 75 / 81 AS col2
----
16
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL COUNT( * ) * ( - - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL COUNT ( * ) * ( - - 70 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8279
SELECT - COALESCE ( - 95, COUNT( 0 ) ) + CASE - 51 WHEN - 39 - + CASE - + 61 WHEN - 94 + - 54 * - - 93 THEN 71 WHEN + COUNT( * ) THEN + + 56 END * NULLIF ( ( - COUNT( * ) ) + 40, + 33 ) THEN - CAST( - AVG ( + 70 ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT - COALESCE ( - 95, COUNT ( 0 ) ) + CASE - 51 WHEN - 39 - + CASE - + 61 WHEN - 94 + - 54 * - - 93 THEN 71 WHEN + COUNT ( * ) THEN + + 56 END * NULLIF ( ( - COUNT ( * ) ) + 40, + 33 ) THEN - CAST ( - AVG ( + 70 ) AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT NULLIF ( + - COUNT( * ), 19 * + 61 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8280
SELECT NULLIF ( + - COUNT ( * ), 19 * + 61 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT NULLIF ( + 24, + SUM( - 24 ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8281
SELECT NULLIF ( + 24, + SUM ( - 24 ) ) AS col0
----
24

query I rowsort
SELECT + 87 + + - 13 + + 56 + - + 79
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT SUM( + 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8283
SELECT SUM ( + 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL - MIN( DISTINCT + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL - MIN ( DISTINCT + 17 )
----
-17

query I rowsort
SELECT ALL + + 11 * 4 AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8286
SELECT DISTINCT 74 + 44 DIV COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT 74 + 44 / COUNT ( * )
----
118

query I rowsort
SELECT ALL - ( 80 ) + + - 95 + - 20
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT MIN( + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-8288
SELECT MIN ( + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT 74 * + + 91 * SUM( - - 59 ) AS col1
----
397306

skipif mysql # not compatible
query I rowsort label-8289
SELECT 74 * + + 91 * SUM ( - - 59 ) AS col1
----
397306

query II rowsort
SELECT DISTINCT - 87 + - 70 * - 7 AS col2, + 85 * - 61 * 18 - + + 23 - + 38 + - 63 * + 18 + - - 78
----
403
-94447

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT + COUNT( * ) * - 98 col1
----
-98

skipif mysql # not compatible
query I rowsort label-8291
SELECT + COUNT ( * ) * - 98 col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT - 89 DIV 10 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8292
SELECT - 89 / 10 AS col1
----
-8

query I rowsort
SELECT ALL 59 + - 71 + + 82 * 95
----
7778

query I rowsort
SELECT 54 - + 42
----
12

query I rowsort
SELECT DISTINCT - 94 + - - 85
----
-9

query I rowsort
SELECT ALL - 35 + + - 9 * - 3 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT - + CASE + + 48 WHEN - + 99 + + 12 - - 81 + - 18 THEN NULL WHEN COUNT( * ) THEN - - 62 * - 15 * + - 39 / + MIN( 23 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT - + CASE + + 48 WHEN - + 99 + + 12 - - 81 + - 18 THEN NULL WHEN COUNT ( * ) THEN - - 62 * - 15 * + - 39 / + MIN ( 23 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - + 10 + + 80 AS col0
----
70

query I rowsort
SELECT ALL + 55 + + 3
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8300
SELECT 23 * - - 30 * + 83, ( - - 84 ) * - 62 + - COUNT( * ) + + 93 AS col2
----
57270
-5116

skipif mysql # not compatible
query II rowsort label-8300
SELECT 23 * - - 30 * + 83, ( - - 84 ) * - 62 + - COUNT ( * ) + + 93 AS col2
----
57270
-5116

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT ALL - COUNT( * ) * 56
----
-56

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL - COUNT ( * ) * 56
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT + ( - - 0 ) * COUNT( * ) * COUNT( * ) + - 32 / 71 * 53 - - - CAST( NULL AS SIGNED ) + ( COUNT( * ) ) + + - 17 * + - 14 * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT + ( - - 0 ) * COUNT ( * ) * COUNT ( * ) + - 32 / 71 * 53 - - - CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) + + - 17 * + - 14 * 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT + 11 * + + COALESCE ( + - COUNT( * ), + MAX( - + 53 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT + 11 * + + COALESCE ( + - COUNT ( * ), + MAX ( - + 53 ) )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8304
SELECT + ( - 32 ) DIV + ( + + COUNT( * ) ) - 96
----
-128

skipif mysql # not compatible
query I rowsort label-8304
SELECT + ( - 32 ) / + ( + + COUNT ( * ) ) - 96
----
-128

query I rowsort
SELECT ALL 66 - - - 41
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT + COUNT( * ) * 20 + 94 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-8306
SELECT + COUNT ( * ) * 20 + 94 AS col2
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8307
SELECT ALL + 11 DIV + - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + 11 / + - COUNT ( * ) AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8308
SELECT CAST( - 73 AS SIGNED ) * + + 9 * COUNT( * )
----
-657

skipif mysql # not compatible
query I rowsort label-8308
SELECT CAST ( - 73 AS INTEGER ) * + + 9 * COUNT ( * )
----
-657

query I rowsort
SELECT ALL + 84 - + - NULLIF ( + 11, + 56 + 78 ) + 44 + - 44 - + ( - 95 ) * + 74 * + + 92 * - 5
----
-3233705

onlyif mysql # DIV for integer division: 
query I rowsort label-8310
SELECT ALL 23 DIV - 35 * - 80
----
0

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL 23 / - 35 * - 80
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8311
SELECT + 53 * + + 88 - - + 77 DIV + MAX( ALL + 86 ) col2
----
4664

skipif mysql # not compatible
query I rowsort label-8311
SELECT + 53 * + + 88 - - + 77 / + MAX ( ALL + 86 ) col2
----
4664

query II rowsort
SELECT DISTINCT - 51, + 84 AS col0
----
-51
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT 90 + + + SUM( ALL + 42 ) * + - 62 AS col2
----
-2514

skipif mysql # not compatible
query I rowsort label-8313
SELECT 90 + + + SUM ( ALL + 42 ) * + - 62 AS col2
----
-2514

query II rowsort
SELECT ALL - 64, 30 * 30 * - 31 AS col0
----
-64
-27900

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT DISTINCT + 94 + - - COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT + 94 + - - COUNT ( * ) AS col2
----
95

query I rowsort
SELECT DISTINCT + 22 * + 97 AS col2
----
2134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8317
SELECT ( + COUNT( * ) ) * + 96 + 46 * + 28 + 33 * + 97 - 32 * - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
4585

skipif mysql # not compatible
query I rowsort label-8317
SELECT ( + COUNT ( * ) ) * + 96 + 46 * + 28 + 33 * + 97 - 32 * - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
4585

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL + SUM( DISTINCT - + 92 ) + - 85
----
-177

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL + SUM ( DISTINCT - + 92 ) + - 85
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL - 91 + + + COUNT( * ) * - + ( CASE - + 39 WHEN + - MIN( - 44 ) * - + 6 THEN NULL WHEN 80 + + 80 + - 23 * COUNT( * ) THEN - 77 ELSE - COUNT( * ) END ) + 54 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL - 91 + + + COUNT ( * ) * - + ( CASE - + 39 WHEN + - MIN ( - 44 ) * - + 6 THEN NULL WHEN 80 + + 80 + - 23 * COUNT ( * ) THEN - 77 ELSE - COUNT ( * ) END ) + 54 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT 99 + - COUNT( * ) * - - 55 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8320
SELECT 99 + - COUNT ( * ) * - - 55 AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT ALL + 0 + COUNT( - 98 ) * - 72 AS col0, - MAX( + 76 ) - - COUNT( * )
----
-72
-75

skipif mysql # not compatible
query II rowsort label-8321
SELECT ALL + 0 + COUNT ( - 98 ) * - 72 AS col0, - MAX ( + 76 ) - - COUNT ( * )
----
-72
-75

query I rowsort
SELECT - 36 col2
----
-36

query I rowsort
SELECT + 13 + - 62
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT + 40 + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-8324
SELECT + 40 + - COUNT ( * )
----
39

query I rowsort
SELECT ALL - + 4 + + 74 col1
----
70

query I rowsort
SELECT DISTINCT - 6 * 40 + + 58 AS col2
----
-182

query I rowsort
SELECT + 53 + - - 24 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL COUNT( - - 6 ) - + 50 col1
----
-49

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL COUNT ( - - 6 ) - + 50 col1
----
-49

query I rowsort
SELECT 37 + + 42
----
79

query I rowsort
SELECT ALL 59 - 52
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT + ( - - 15 ) * MAX( + 36 )
----
540

skipif mysql # not compatible
query I rowsort label-8331
SELECT + ( - - 15 ) * MAX ( + 36 )
----
540

query I rowsort
SELECT - 3 + - 13
----
-16

query I rowsort
SELECT ( - NULLIF ( + + 92, - 16 ) ) * - 24 AS col1
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8334
SELECT DISTINCT - ( - COUNT( * ) ) AS col0, MIN( DISTINCT - - 75 ) * + + NULLIF ( + 27, AVG ( DISTINCT - + ( - CAST( NULL AS DECIMAL ) ) ) + - - 82 * + + CAST( + 1 AS SIGNED ) ) + - ( - ( - + 93 ) ) * - 47 * - 20 + + 69 + 62 * 45
----
1
-82536

skipif mysql # not compatible
query II rowsort label-8334
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0, MIN ( DISTINCT - - 75 ) * + + NULLIF ( + 27, AVG ( DISTINCT - + ( - CAST ( NULL AS REAL ) ) ) + - - 82 * + + CAST ( + 1 AS INTEGER ) ) + - ( - ( - + 93 ) ) * - 47 * - 20 + + 69 + 62 * 45
----
1
-82536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8335
SELECT 65 + CASE + 6 WHEN - 98 THEN NULL ELSE + MIN( DISTINCT 68 ) * + 74 - 22 DIV - + 45 + + + 51 * 91 END
----
9738

skipif mysql # not compatible
query I rowsort label-8335
SELECT 65 + CASE + 6 WHEN - 98 THEN NULL ELSE + MIN ( DISTINCT 68 ) * + 74 - 22 / - + 45 + + + 51 * 91 END
----
9738

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT COUNT( DISTINCT + 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8336
SELECT COUNT ( DISTINCT + 37 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8337
SELECT ( 90 ) * + NULLIF ( + - 3, + 1 + + COUNT( * ) - + + 37 ) AS col2, COALESCE ( - 48, - + 45, - 64, - NULLIF ( + 53, - COUNT( * ) ) ) * 8
----
-270
-384

skipif mysql # not compatible
query II rowsort label-8337
SELECT ( 90 ) * + NULLIF ( + - 3, + 1 + + COUNT ( * ) - + + 37 ) AS col2, COALESCE ( - 48, - + 45, - 64, - NULLIF ( + 53, - COUNT ( * ) ) ) * 8
----
-270
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ALL COUNT( * ) * 20 col2
----
20

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL COUNT ( * ) * 20 col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT + 87 * + COUNT( * ) + - COUNT( * ) - - 12 * + 31
----
458

skipif mysql # not compatible
query I rowsort label-8339
SELECT + 87 * + COUNT ( * ) + - COUNT ( * ) - - 12 * + 31
----
458

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL 70 + - COUNT( * ) * - + 26 * + 56 * - 6 + - 42
----
-8708

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL 70 + - COUNT ( * ) * - + 26 * + 56 * - 6 + - 42
----
-8708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT ALL 81 + 61 + - 45 + - CASE - COUNT( * ) WHEN - 25 / - - NULLIF ( - - 98, - + 91 ) * CAST( 60 AS SIGNED ) THEN 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL 81 + 61 + - 45 + - CASE - COUNT ( * ) WHEN - 25 / - - NULLIF ( - - 98, - + 91 ) * CAST ( 60 AS INTEGER ) THEN 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT SUM( DISTINCT - + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-8342
SELECT SUM ( DISTINCT - + 57 )
----
-57

query I rowsort
SELECT ALL + NULLIF ( + 11, - 11 / + - ( - + 1 ) ) + ( + 56 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8344
SELECT + 52 * + + COUNT( * ) + + 47 AS col0, 18 * - 0
----
99
0

skipif mysql # not compatible
query II rowsort label-8344
SELECT + 52 * + + COUNT ( * ) + + 47 AS col0, 18 * - 0
----
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + + COUNT( * ) * 14 * + CASE 7 WHEN + 57 * + COUNT( * ) - - 39 THEN + - 65 WHEN - 43 THEN 8 END * - + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT + + COUNT ( * ) * 14 * + CASE 7 WHEN + 57 * + COUNT ( * ) - - 39 THEN + - 65 WHEN - 43 THEN 8 END * - + 32 AS col0
----
NULL

query I rowsort
SELECT - + 60 AS col0
----
-60

query I rowsort
SELECT - - 60 + + 90 * + 3 + - - 57
----
387

query II rowsort
SELECT DISTINCT + + 31 * - 67 AS col2, 9 + 61
----
-2077
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 80 + + 13 * 47
----
691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8351
SELECT ALL + + CASE - - 75 WHEN + 43 THEN NULL WHEN + + MIN( DISTINCT + + 1 ) + - - 88 THEN + 57 * 4 ELSE - 52 DIV - - 28 + + 19 + + 92 + + - 46 END - + 91
----
-27

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL + + CASE - - 75 WHEN + 43 THEN NULL WHEN + + MIN ( DISTINCT + + 1 ) + - - 88 THEN + 57 * 4 ELSE - 52 / - - 28 + + 19 + + 92 + + - 46 END - + 91
----
-27

query I rowsort
SELECT ALL NULLIF ( 43, 75 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - 60 * + CASE 80 WHEN - - COUNT( + 29 ) - + 94 THEN NULL WHEN - 86 * + - 36 THEN NULL ELSE - COUNT( * ) END
----
60

skipif mysql # not compatible
query I rowsort label-8353
SELECT - 60 * + CASE 80 WHEN - - COUNT ( + 29 ) - + 94 THEN NULL WHEN - 86 * + - 36 THEN NULL ELSE - COUNT ( * ) END
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT - - 16 + + 79 * - MAX( DISTINCT - CASE 93 WHEN - 39 + 81 + + + ( + 20 ) THEN NULL ELSE + 25 END ) AS col1
----
1991

skipif mysql # not compatible
query I rowsort label-8354
SELECT - - 16 + + 79 * - MAX ( DISTINCT - CASE 93 WHEN - 39 + 81 + + + ( + 20 ) THEN NULL ELSE + 25 END ) AS col1
----
1991

onlyif mysql # aggregate syntax: 
query II rowsort label-8355
SELECT + COUNT( DISTINCT - 32 ), 36 AS col2
----
1
36

skipif mysql # not compatible
query II rowsort label-8355
SELECT + COUNT ( DISTINCT - 32 ), 36 AS col2
----
1
36

query I rowsort
SELECT - + 72 - + 62 AS col0
----
-134

query I rowsort
SELECT + - 67 * + 19 * - + 0
----
0

query I rowsort
SELECT - 35 * + 73 + + - 18 + 7
----
-2566

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT DISTINCT - 50 DIV + 82 * - 76 * + 35 + + + 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - 50 / + 82 * - 76 * + 35 + + + 68 AS col2
----
68

query II rowsort
SELECT - 72 AS col0, + 56 * 24 AS col2
----
-72
1344

query I rowsort
SELECT ALL - 11 * + 6 AS col0
----
-66

query II rowsort
SELECT 51 AS col2, + 9 AS col1
----
51
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ( - MIN( + + 28 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-8363
SELECT ( - MIN ( + + 28 ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT + 12 * SUM( - + 6 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8364
SELECT + 12 * SUM ( - + 6 ) AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8365
SELECT - COUNT( - NULLIF ( - 79, + 86 ) ) DIV + - 41 - - 52
----
52

skipif mysql # not compatible
query I rowsort label-8365
SELECT - COUNT ( - NULLIF ( - 79, + 86 ) ) / + - 41 - - 52
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-8366
SELECT ALL + 38 AS col2, + NULLIF ( COUNT( * ), 75 - - 16 ) + - 63 + - ( + 56 )
----
38
-118

skipif mysql # not compatible
query II rowsort label-8366
SELECT ALL + 38 AS col2, + NULLIF ( COUNT ( * ), 75 - - 16 ) + - 63 + - ( + 56 )
----
38
-118

query I rowsort
SELECT ( - + 46 )
----
-46

query I rowsort
SELECT ( + + 98 ) AS col2
----
98

query I rowsort
SELECT ALL + 79 * + - 86 + ( + 76 ) + - 58 AS col1
----
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL ( + 97 ) * - CASE - - COUNT( * ) WHEN + 4 / 80 THEN + + 3 ELSE NULL END + - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL ( + 97 ) * - CASE - - COUNT ( * ) WHEN + 4 / 80 THEN + + 3 ELSE NULL END + - 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL 45 * 68 + - - MIN( ALL - 77 ) AS col2
----
2983

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL 45 * 68 + - - MIN ( ALL - 77 ) AS col2
----
2983

query I rowsort
SELECT + 22 * 5
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL - ( + - 3 ) * + 5 * 10 + + + 16 * COUNT( * ) * 50 AS col1
----
950

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - ( + - 3 ) * + 5 * 10 + + + 16 * COUNT ( * ) * 50 AS col1
----
950

query I rowsort
SELECT + ( - 44 ) - 33 AS col0
----
-77

query I rowsort
SELECT - 51 * - - 45
----
-2295

query I rowsort
SELECT + 95 + + - 79
----
16

query I rowsort
SELECT ALL + + 75 * 36 - - 99 AS col2
----
2799

query I rowsort
SELECT DISTINCT + - CASE - 4 WHEN - 58 THEN - 5 END
----
NULL

query I rowsort
SELECT + NULLIF ( + - 71, - - 29 ) + + - 82 col2
----
-153

query I rowsort
SELECT ALL 16 * + 67 - - 39 AS col2
----
1111

query I rowsort
SELECT + - 12 * + 64 AS col0
----
-768

query II rowsort
SELECT - 49 AS col1, + 0
----
-49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL MIN( ALL - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL MIN ( ALL - 23 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT + - 68 + - 48 + + + 12 DIV - - ( - - 6 ) AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-8384
SELECT + - 68 + - 48 + + + 12 / - - ( - - 6 ) AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT - - MAX( DISTINCT 42 ) - - 22 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8385
SELECT - - MAX ( DISTINCT 42 ) - - 22 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8386
SELECT ALL - 30 * - 32 * + 96 - - COUNT( * ) + 90 DIV - COUNT( * ) AS col0, - 60 + 37 - 6 col2
----
92071
-29

skipif mysql # not compatible
query II rowsort label-8386
SELECT ALL - 30 * - 32 * + 96 - - COUNT ( * ) + 90 / - COUNT ( * ) AS col0, - 60 + 37 - 6 col2
----
92071
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT + + CASE - 98 WHEN + 11 + + + 58 * - COUNT( * ) * + 75 THEN + 74 * - 98 + - 55 - - + 56 - + 26 * COUNT( * ) + - 19 + - 0 + + - 66 * - 25 + - + 11 * 79 - + 56 WHEN MIN( ALL - 37 ) * 96 THEN NULL END * 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT + + CASE - 98 WHEN + 11 + + + 58 * - COUNT ( * ) * + 75 THEN + 74 * - 98 + - 55 - - + 56 - + 26 * COUNT ( * ) + - 19 + - 0 + + - 66 * - 25 + - + 11 * 79 - + 56 WHEN MIN ( ALL - 37 ) * 96 THEN NULL END * 27 AS col0
----
NULL

query I rowsort
SELECT - + 87 + - 3 * - 55 AS col1
----
78

query I rowsort
SELECT + 97 * - 32 col0
----
-3104

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT + COUNT( * ) + - 53 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-8390
SELECT + COUNT ( * ) + - 53 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8391
SELECT - ( 53 ) DIV 69 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8391
SELECT - ( 53 ) / 69 * COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL - + 61 * + 86 + - - COUNT( * ) + - 88
----
-5333

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL - + 61 * + 86 + - - COUNT ( * ) + - 88
----
-5333

onlyif mysql # aggregate syntax: 
query II rowsort label-8393
SELECT + 24 + - 94 + + + COUNT( * ) AS col0, 39
----
-69
39

skipif mysql # not compatible
query II rowsort label-8393
SELECT + 24 + - 94 + + + COUNT ( * ) AS col0, 39
----
-69
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT ALL 94 * 54 + + COUNT( DISTINCT 43 ) AS col2
----
5077

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL 94 * 54 + + COUNT ( DISTINCT 43 ) AS col2
----
5077

query I rowsort
SELECT - - 10 * 52
----
520

query I rowsort
SELECT - 38 + 78 - COALESCE ( + 52, + + 35 - - - ( + 34 ) * + 84 * 17 + 77 * 24, 11, + - 1 * 49 ) * NULLIF ( - - ( - + 26 ), - - 44 - 84 )
----
1392

query I rowsort
SELECT ALL ( - 90 ) AS col1
----
-90

query II rowsort
SELECT ALL - 25 + 41 AS col0, 15 * 9 AS col0
----
16
135

onlyif mysql # DIV for integer division: 
query I rowsort label-8399
SELECT + 30 + - 15 DIV - - ( 5 )
----
27

skipif mysql # not compatible
query I rowsort label-8399
SELECT + 30 + - 15 / - - ( 5 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT DISTINCT - 7 + - COUNT( * ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT - 7 + - COUNT ( * ) col2
----
-8

query I rowsort
SELECT ALL ( 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT + CASE + - 39 WHEN COUNT( * ) THEN + + MAX( 33 ) + - 99 * + + 80 + 53 * + ( + 20 ) ELSE NULL END + + + 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT + CASE + - 39 WHEN COUNT ( * ) THEN + + MAX ( 33 ) + - 99 * + + 80 + 53 * + ( + 20 ) ELSE NULL END + + + 71 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8403
SELECT - 3 * 34 * - CAST( - - COUNT( * ) AS SIGNED ) + 3 + + - 74 + COALESCE ( + + CAST( NULL AS SIGNED ), - 41 ) + - - 3 * - 61
----
-193

skipif mysql # not compatible
query I rowsort label-8403
SELECT - 3 * 34 * - CAST ( - - COUNT ( * ) AS INTEGER ) + 3 + + - 74 + COALESCE ( + + CAST ( NULL AS INTEGER ), - 41 ) + - - 3 * - 61
----
-193

query I rowsort
SELECT ALL + 45 + + - ( - 28 ) AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8405
SELECT COUNT( * ) DIV + 89 + - - 63
----
63

skipif mysql # not compatible
query I rowsort label-8405
SELECT COUNT ( * ) / + 89 + - - 63
----
63

query I rowsort
SELECT 5 + - 49
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT 8 * + 44 * - SUM( - 23 )
----
8096

skipif mysql # not compatible
query I rowsort label-8407
SELECT 8 * + 44 * - SUM ( - 23 )
----
8096

query I rowsort
SELECT - 26 + - 97 AS col0
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8409
SELECT - 68 * COALESCE ( - NULLIF ( - 1, - CAST( 64 AS SIGNED ) ), SUM( ALL - - 67 ) + + 54 * + 24 ) + - 55
----
-123

skipif mysql # not compatible
query I rowsort label-8409
SELECT - 68 * COALESCE ( - NULLIF ( - 1, - CAST ( 64 AS INTEGER ) ), SUM ( ALL - - 67 ) + + 54 * + 24 ) + - 55
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT MAX( + + 94 ) - + 78 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8410
SELECT MAX ( + + 94 ) - + 78 AS col2
----
16

query I rowsort
SELECT ( + 9 ) * + 14 + - - CASE WHEN NOT + 40 IS NOT NULL THEN NULL ELSE + 33 END * - - 75
----
2601

query I rowsort
SELECT ALL 36 * - 30 * - 59
----
63720

query I rowsort
SELECT DISTINCT - - 41
----
41

query I rowsort
SELECT + 93 * 4 + + - 57 * 98 + 54 + + + 85 * 71 * 3 + + 66 + - 23 * + + 27 + + ( - 60 ) AS col0
----
12330

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT COUNT( * ) * - COUNT( * ) * 5 + - ( - - 30 )
----
-35

skipif mysql # not compatible
query I rowsort label-8415
SELECT COUNT ( * ) * - COUNT ( * ) * 5 + - ( - - 30 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + COALESCE ( - + MIN( ALL + 53 ), + + 6 )
----
-53

skipif mysql # not compatible
query I rowsort label-8416
SELECT + COALESCE ( - + MIN ( ALL + 53 ), + + 6 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL + CASE + + COALESCE ( 19, + 98 - + COUNT( * ) + + COUNT( * ) ) WHEN + ( - + ( + 48 ) ) THEN 98 WHEN + COUNT( * ) THEN NULL ELSE NULL END * - + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + CASE + + COALESCE ( 19, + 98 - + COUNT ( * ) + + COUNT ( * ) ) WHEN + ( - + ( + 48 ) ) THEN 98 WHEN + COUNT ( * ) THEN NULL ELSE NULL END * - + 97 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8418
SELECT CAST( - 45 AS SIGNED ) DIV - CAST( - - NULLIF ( 49, 45 ) AS SIGNED ) * + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8418
SELECT CAST ( - 45 AS INTEGER ) / - CAST ( - - NULLIF ( 49, 45 ) AS INTEGER ) * + 96 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT - NULLIF ( NULLIF ( - CASE + - 70 WHEN - 50 THEN - 36 ELSE NULL END, + 59 ), 63 * + 81 * 66 + 65 * 82 + 48 + + COUNT( ALL CAST( NULL AS SIGNED ) ) + + 42 * - ( - 82 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT - NULLIF ( NULLIF ( - CASE + - 70 WHEN - 50 THEN - 36 ELSE NULL END, + 59 ), 63 * + 81 * 66 + 65 * 82 + 48 + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) + + 42 * - ( - 82 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT MAX( CASE 5 WHEN + 41 + - 46 THEN NULL ELSE + 72 END ) * - 48 AS col1
----
-3456

skipif mysql # not compatible
query I rowsort label-8420
SELECT MAX ( CASE 5 WHEN + 41 + - 46 THEN NULL ELSE + 72 END ) * - 48 AS col1
----
-3456

query I rowsort
SELECT ALL + 1 + + 70 + + - 75
----
-4

query II rowsort
SELECT 90 AS col0, 63
----
90
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8423
SELECT 58 + + + CAST( 38 AS SIGNED ) DIV + 45 - - 87 AS col0, - 68 + + COUNT( * )
----
145
-67

skipif mysql # not compatible
query II rowsort label-8423
SELECT 58 + + + CAST ( 38 AS INTEGER ) / + 45 - - 87 AS col0, - 68 + + COUNT ( * )
----
145
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8424
SELECT 3 * + - 51 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT 3 * + - 51 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 80, 2 AS col2
----
-80
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT ALL MIN( ALL - - ( ( - - 27 ) ) ) + + COUNT( * ), 32 * - 0 - + - 67 AS col0
----
28
67

skipif mysql # not compatible
query II rowsort label-8426
SELECT ALL MIN ( ALL - - ( ( - - 27 ) ) ) + + COUNT ( * ), 32 * - 0 - + - 67 AS col0
----
28
67

query I rowsort
SELECT ALL 53 + + 4
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT CAST( - NULLIF ( - 95, 49 * - 0 ) AS SIGNED ) - CASE 37 WHEN + 29 THEN CAST( - 95 AS SIGNED ) + - 44 * - 87 + - 63 WHEN + 57 * MAX( DISTINCT - 69 ) THEN NULL ELSE NULL END / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT CAST ( - NULLIF ( - 95, 49 * - 0 ) AS INTEGER ) - CASE 37 WHEN + 29 THEN CAST ( - 95 AS INTEGER ) + - 44 * - 87 + - 63 WHEN + 57 * MAX ( DISTINCT - 69 ) THEN NULL ELSE NULL END / + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL 17 + 14 + - 54 + - + SUM( + 2 ) * - + 19 + + - 43 + - 63 + + COUNT( * ) * 75
----
-16

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL 17 + 14 + - 54 + - + SUM ( + 2 ) * - + 19 + + - 43 + - 63 + + COUNT ( * ) * 75
----
-16

query I rowsort
SELECT DISTINCT 52 + - 13 AS col0
----
39

query II rowsort
SELECT + 2 AS col0, + 70 AS col2
----
2
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8432
SELECT - CAST( + - ( - 84 ) AS SIGNED ) * + - SUM( DISTINCT - 3 ) * - 29 + 2 + 0 * - + 20 DIV + 8 - + 63 + - COUNT( * ) * + COUNT( * ) - + 85 + - + 35
----
7126

skipif mysql # not compatible
query I rowsort label-8432
SELECT - CAST ( + - ( - 84 ) AS INTEGER ) * + - SUM ( DISTINCT - 3 ) * - 29 + 2 + 0 * - + 20 / + 8 - + 63 + - COUNT ( * ) * + COUNT ( * ) - + 85 + - + 35
----
7126

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL - COUNT( ALL + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL - COUNT ( ALL + 80 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT DISTINCT + COUNT( * ) - + 99 + + 69 + + 79
----
50

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT + COUNT ( * ) - + 99 + + 69 + + 79
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT 18 * + MAX( 88 ) AS col2
----
1584

skipif mysql # not compatible
query I rowsort label-8435
SELECT 18 * + MAX ( 88 ) AS col2
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL - MIN( ALL + - 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - MIN ( ALL + - 34 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT DISTINCT + - 24 - + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT + - 24 - + COUNT ( * )
----
-25

query I rowsort
SELECT DISTINCT + 23 * + + 80
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + 90 * - 50 + + COUNT( * ) * - + COUNT( * )
----
-4501

skipif mysql # not compatible
query I rowsort label-8439
SELECT + 90 * - 50 + + COUNT ( * ) * - + COUNT ( * )
----
-4501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT DISTINCT - + CAST( + 52 AS SIGNED ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT - + CAST ( + 52 AS INTEGER ) AS col2
----
-52

query I rowsort
SELECT DISTINCT + 90 * 10 col2
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL - - CASE COUNT( * ) WHEN + - 73 + + + 0 - 73 THEN NULL WHEN + 50 THEN NULL WHEN + 51 * + 56 THEN 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - - CASE COUNT ( * ) WHEN + - 73 + + + 0 - 73 THEN NULL WHEN + 50 THEN NULL WHEN + 51 * + 56 THEN 98 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT - MAX( - 77 ) * + 33 + 64 + + + 12 AS col1
----
2617

skipif mysql # not compatible
query I rowsort label-8443
SELECT - MAX ( - 77 ) * + 33 + 64 + + + 12 AS col1
----
2617

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8444
SELECT MAX( - NULLIF ( ( - 99 ), - 54 ) ) * - + 13 * - + 91 - 73 + 47 DIV + 74 AS col0, NULLIF ( + - 73, + 84 ) * - - COUNT( * ) + - 41 + 18 * - 28 - - - 14 + 52 AS col0
----
117044
-580

skipif mysql # not compatible
query II rowsort label-8444
SELECT MAX ( - NULLIF ( ( - 99 ), - 54 ) ) * - + 13 * - + 91 - 73 + 47 / + 74 AS col0, NULLIF ( + - 73, + 84 ) * - - COUNT ( * ) + - 41 + 18 * - 28 - - - 14 + 52 AS col0
----
117044
-580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT - 49 * + + 58 - + ( - - 77 ) * + + CASE + 31 WHEN + 55 * 63 THEN 87 + - CAST( + 85 AS SIGNED ) * - ( ( 48 ) ) + - 17 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT - 49 * + + 58 - + ( - - 77 ) * + + CASE + 31 WHEN + 55 * 63 THEN 87 + - CAST ( + 85 AS INTEGER ) * - ( ( 48 ) ) + - 17 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + ( + 60 ) + - + 57 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT DISTINCT + COUNT( * ) + 64 col1
----
65

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT + COUNT ( * ) + 64 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL - 74 * - SUM( DISTINCT 90 ) AS col1
----
6660

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - 74 * - SUM ( DISTINCT 90 ) AS col1
----
6660

query I rowsort
SELECT DISTINCT + ( + 70 )
----
70

query I rowsort
SELECT ALL 59 + + 41 AS col0
----
100

query I rowsort
SELECT + 73 * + + 55 - - + 52 * ( 31 ) + ( - - 0 ) * - 81
----
5627

query I rowsort
SELECT - ( 4 ) + - - 93 - 38 AS col1
----
51

query I rowsort
SELECT 6 + - 36
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ( + 50 ) + + + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8454
SELECT ( + 50 ) + + + COUNT ( * ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL SUM( ALL - 31 ) + + 29 + - 96
----
-98

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL SUM ( ALL - 31 ) + + 29 + - 96
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT + 80 + + 35 + - 89 + COUNT( + 23 ) * - + 73 + - COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT + 80 + + 35 + - 89 + COUNT ( + 23 ) * - + 73 + - COUNT ( * ) AS col0
----
-48

query II rowsort
SELECT 67, - 23 AS col2
----
67
-23

query I rowsort
SELECT ( - - 30 ) + + 85 AS col2
----
115

query I rowsort
SELECT + 29 * - - 9
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT ALL CAST( NULL AS SIGNED ) * + + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL CAST ( NULL AS INTEGER ) * + + 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL COUNT( * ) - - + 46 + + 56 * - 41 - + 31
----
-2280

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL COUNT ( * ) - - + 46 + + 56 * - 41 - + 31
----
-2280

onlyif mysql # aggregate syntax: 
query II rowsort label-8462
SELECT + COUNT( * ) + + 12 + - ( - 52 ) AS col2, - 24 * 65 * + - 52 + + 97 * - + 46 * + 19 AS col2
----
65
-3658

skipif mysql # not compatible
query II rowsort label-8462
SELECT + COUNT ( * ) + + 12 + - ( - 52 ) AS col2, - 24 * 65 * + - 52 + + 97 * - + 46 * + 19 AS col2
----
65
-3658

query I rowsort
SELECT - NULLIF ( - + 19, + - 66 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT + 82 + - - 47 + + 88 - + - COUNT( * ) + + 76
----
294

skipif mysql # not compatible
query I rowsort label-8464
SELECT + 82 + - - 47 + + 88 - + - COUNT ( * ) + + 76
----
294

query I rowsort
SELECT + 93 * + 3
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ALL 5 * + COUNT( * ) * - 34
----
-170

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL 5 * + COUNT ( * ) * - 34
----
-170

query II rowsort
SELECT 5 AS col2, + 56 AS col1
----
5
56

query I rowsort
SELECT + 87 + + - 33
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT + 46 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT + 46 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 51 * 76 AS col2
----
3876

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8471
SELECT DISTINCT + 56, ( + - COUNT( * ) ) * - - 53 + + 49 - 29 DIV - ( - - COUNT( * ) ) + + 46 + 90 + + 39 * + - 92 * - 39 + + 24 * 79 col1
----
56
141989

skipif mysql # not compatible
query II rowsort label-8471
SELECT DISTINCT + 56, ( + - COUNT ( * ) ) * - - 53 + + 49 - 29 / - ( - - COUNT ( * ) ) + + 46 + 90 + + 39 * + - 92 * - 39 + + 24 * 79 col1
----
56
141989

query I rowsort
SELECT ALL 69 * + 80
----
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL + MAX( - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL + MAX ( - 22 )
----
-22

query I rowsort
SELECT + 39 + + - ( + 69 )
----
-30

query I rowsort
SELECT ALL 31 * 80 * - + 88
----
-218240

query I rowsort
SELECT DISTINCT - 93 * + 67
----
-6231

query I rowsort
SELECT - 1 * 18 + 10 col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT + COUNT( * ) * - + CAST( - + 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-8478
SELECT + COUNT ( * ) * - + CAST ( - + 74 AS INTEGER )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8479
SELECT + + 25 * 23 + - 6 + 73 DIV + + 43
----
570

skipif mysql # not compatible
query I rowsort label-8479
SELECT + + 25 * 23 + - 6 + 73 / + + 43
----
570

query II rowsort
SELECT + 17 AS col1, + 36 AS col2
----
17
36

query II rowsort
SELECT 50, 69 AS col2
----
50
69

query I rowsort
SELECT - + 75 + + 79 AS col0
----
4

query I rowsort
SELECT + + 5 * 3 * - 47
----
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT - - 0 + COUNT( DISTINCT - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-8484
SELECT - - 0 + COUNT ( DISTINCT - 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT DISTINCT + 78 * COUNT( * ) - 29 col2
----
49

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT + 78 * COUNT ( * ) - 29 col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT DISTINCT + ( 50 ) * + - 89 + + ( - 29 ) * MIN( DISTINCT - 65 ) * + 6 AS col2
----
6860

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT + ( 50 ) * + - 89 + + ( - 29 ) * MIN ( DISTINCT - 65 ) * + 6 AS col2
----
6860

query I rowsort
SELECT ALL + 45 * - + 39 col0
----
-1755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8488
SELECT - 90 * + 61 * - CASE 78 WHEN - - 38 + MIN( DISTINCT 24 ) THEN + 54 / - CASE - - 54 WHEN - - 86 * - 38 THEN - - CAST( NULL AS SIGNED ) ELSE NULL END * + 4 END + COUNT( * ) / - + 18 * - CAST( NULL AS SIGNED ) * + ( 54 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT - 90 * + 61 * - CASE 78 WHEN - - 38 + MIN ( DISTINCT 24 ) THEN + 54 / - CASE - - 54 WHEN - - 86 * - 38 THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END * + 4 END + COUNT ( * ) / - + 18 * - CAST ( NULL AS INTEGER ) * + ( 54 ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT ALL - CAST( + 38 AS SIGNED ) * - 8 + + + 84 col2
----
388

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL - CAST ( + 38 AS INTEGER ) * - 8 + + + 84 col2
----
388

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT - 57 DIV + + ( + COUNT( * ) ) + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT - 57 / + + ( + COUNT ( * ) ) + 57 AS col1
----
0

query I rowsort
SELECT + 46 * + 44 + NULLIF ( 60, 44 ) * + ( 42 ) - - + 64
----
4608

query II rowsort
SELECT + 80 AS col0, - 73 AS col1
----
80
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT + SUM( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-8493
SELECT + SUM ( ALL + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT + NULLIF ( ( - 32 ), - COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-8494
SELECT + NULLIF ( ( - 32 ), - COUNT ( * ) )
----
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-8495
SELECT - 60 DIV + + 38, 60 AS col0
----
-1
60

skipif mysql # not compatible
query II rowsort label-8495
SELECT - 60 / + + 38, 60 AS col0
----
-1
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8496
SELECT ALL - COUNT( * ) DIV 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - COUNT ( * ) / 64 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8497
SELECT ALL + 94 + 63 AS col1, - 26 * - - 75 * + 83 - - + CAST( NULL AS DECIMAL )
----
157
NULL

skipif mysql # not compatible
query II rowsort label-8497
SELECT ALL + 94 + 63 AS col1, - 26 * - - 75 * + 83 - - + CAST ( NULL AS REAL )
----
157
NULL

query II rowsort
SELECT DISTINCT 6 * + 69 AS col1, - 61
----
414
-61

query II rowsort
SELECT ALL ( 29 ), 65 + 71 * 2 AS col2
----
29
207

query II rowsort
SELECT + 6 * - + 84 AS col2, - 61
----
-504
-61

query I rowsort
SELECT ALL ( + 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8502
SELECT DISTINCT ( + - 95 ), - CAST( 84 AS SIGNED ) AS col1
----
-95
-84

skipif mysql # not compatible
query II rowsort label-8502
SELECT DISTINCT ( + - 95 ), - CAST ( 84 AS INTEGER ) AS col1
----
-95
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT - SUM( + 80 ) + + 42
----
-38

skipif mysql # not compatible
query I rowsort label-8503
SELECT - SUM ( + 80 ) + + 42
----
-38

query I rowsort
SELECT - NULLIF ( + - 78, + 27 ) col2
----
78

query I rowsort
SELECT - NULLIF ( + - 33, 2 )
----
33

query I rowsort
SELECT - 70 * + - 15 AS col2
----
1050

query I rowsort
SELECT DISTINCT - 41 * + 25 AS col0
----
-1025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT DISTINCT CAST( + 32 AS SIGNED ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT CAST ( + 32 AS INTEGER ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8509
SELECT ALL - 32 * + 16 AS col2, - COUNT( * ) - + ( - 52 )
----
-512
51

skipif mysql # not compatible
query II rowsort label-8509
SELECT ALL - 32 * + 16 AS col2, - COUNT ( * ) - + ( - 52 )
----
-512
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT + 40 * - + CAST( 93 AS SIGNED )
----
-3720

skipif mysql # not compatible
query I rowsort label-8510
SELECT + 40 * - + CAST ( 93 AS INTEGER )
----
-3720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8511
SELECT ALL CAST( - - SUM( DISTINCT + CASE - 92 WHEN 11 THEN - 10 + - 20 + - 13 + + - 98 END ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL CAST ( - - SUM ( DISTINCT + CASE - 92 WHEN 11 THEN - 10 + - 20 + - 13 + + - 98 END ) AS REAL )
----
NULL

query I rowsort
SELECT - 3 + CASE + + 36 WHEN + 83 + - 10 THEN NULL WHEN + 55 THEN + 40 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - 84 * - 61 AS col2
----
-5124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8514
SELECT + + CAST( 56 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8514
SELECT + + CAST ( 56 AS INTEGER ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8515
SELECT ALL - COUNT( * ) * ( MIN( + 97 ) ) + - 8, MIN( + 5 ) col1
----
-105
5

skipif mysql # not compatible
query II rowsort label-8515
SELECT ALL - COUNT ( * ) * ( MIN ( + 97 ) ) + - 8, MIN ( + 5 ) col1
----
-105
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8516
SELECT + + 29 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-8516
SELECT + + 29 / + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + 48 * 34 * ( - COUNT( * ) ) + + - 71
----
-1703

skipif mysql # not compatible
query I rowsort label-8517
SELECT + 48 * 34 * ( - COUNT ( * ) ) + + - 71
----
-1703

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT + COUNT( * ) * 3 + + - 3
----
0

skipif mysql # not compatible
query I rowsort label-8518
SELECT + COUNT ( * ) * 3 + + - 3
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8519
SELECT ALL COALESCE ( - - 97, - 53 * + - 94 + + CAST( 71 AS SIGNED ) + - 88 * - COUNT( * ) * + + 45 * 94 ) DIV 63 + + COALESCE ( 19, 2 * CASE + COALESCE ( - - 34, 7, 76 ) WHEN + 52 THEN + + 13 * - 58 + COUNT( * ) ELSE - 21 * SUM( 90 * + 81 ) + 52 END * - 45, COUNT( * ) ) + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL COALESCE ( - - 97, - 53 * + - 94 + + CAST ( 71 AS INTEGER ) + - 88 * - COUNT ( * ) * + + 45 * 94 ) / 63 + + COALESCE ( 19, 2 * CASE + COALESCE ( - - 34, 7, 76 ) WHEN + 52 THEN + + 13 * - 58 + COUNT ( * ) ELSE - 21 * SUM ( 90 * + 81 ) + 52 END * - 45, COUNT ( * ) ) + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + 61 * 90 + + MIN( ALL 95 )
----
5585

skipif mysql # not compatible
query I rowsort label-8520
SELECT + 61 * 90 + + MIN ( ALL 95 )
----
5585

query II rowsort
SELECT ALL 35 * - + 12 AS col1, 63
----
-420
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT + 75 DIV - ( 39 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8522
SELECT + 75 / - ( 39 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8523
SELECT ALL 90 DIV 28 + 0 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL 90 / 28 + 0 AS col0
----
3

query I rowsort
SELECT + NULLIF ( + 85, + CASE - ( - 60 ) WHEN + 54 THEN NULL WHEN 28 * - 71 * 52 * - 27 + + 1 + - 20 * + 65 * - + 73 THEN NULL ELSE - 3 + + - 28 END )
----
85

query II rowsort
SELECT + 2 * 57 + + 45 AS col1, 50 + - 3 * + 20 * - 56 AS col1
----
159
3410

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8526
SELECT - ( - + MIN( ALL CAST( NULL AS DECIMAL ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT - ( - + MIN ( ALL CAST ( NULL AS REAL ) ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8527
SELECT ALL + SUM( ALL + + CAST( - - 86 AS SIGNED ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + SUM ( ALL + + CAST ( - - 86 AS INTEGER ) ) AS col0
----
86

query I rowsort
SELECT ALL - 35 * ( + 60 ) AS col1
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL 38 * - + COUNT( * ) - + CASE + + 82 WHEN + ( - AVG ( ALL - 7 ) ) - + 85 THEN - + 84 / - + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL 38 * - + COUNT ( * ) - + CASE + + 82 WHEN + ( - AVG ( ALL - 7 ) ) - + 85 THEN - + 84 / - + 96 ELSE NULL END
----
NULL

query I rowsort
SELECT 99 * + - 14
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT - 32 * 49 * CASE + NULLIF ( - 35, + COUNT( * ) ) WHEN + 34 * 62 * + 11 + - 41 THEN + 63 ELSE NULL END * - 24 + + - COUNT( * ) + + 47 + - 46 + - - COALESCE ( - 73, - + 23 ) * 17 * 2 / - 61 * - + 43 / + 8 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT - 32 * 49 * CASE + NULLIF ( - 35, + COUNT ( * ) ) WHEN + 34 * 62 * + 11 + - 41 THEN + 63 ELSE NULL END * - 24 + + - COUNT ( * ) + + 47 + - 46 + - - COALESCE ( - 73, - + 23 ) * 17 * 2 / - 61 * - + 43 / + 8 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT ALL + 62 - - - SUM( - 67 ) + 0 * 42
----
129

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL + 62 - - - SUM ( - 67 ) + 0 * 42
----
129

query I rowsort
SELECT ALL - COALESCE ( - 48, + 8 ) * + 62
----
2976

query I rowsort
SELECT 83 + - + 71
----
12

query I rowsort
SELECT 63 * - 75 + - 69 AS col0
----
-4794

query II rowsort
SELECT - 84 AS col2, 18 * + 55 AS col1
----
-84
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT 38 + - COUNT( ALL - 53 ) + - + 17 * 24 col0
----
-371

skipif mysql # not compatible
query I rowsort label-8537
SELECT 38 + - COUNT ( ALL - 53 ) + - + 17 * 24 col0
----
-371

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT 44 DIV - 21
----
-2

skipif mysql # not compatible
query I rowsort label-8538
SELECT 44 / - 21
----
-2

query I rowsort
SELECT NULLIF ( + 73, + 8 + 50 ) + ( + 16 ) * + - 33
----
-455

query II rowsort
SELECT DISTINCT 46 AS col1, 45
----
46
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8541
SELECT ALL + 73 DIV 83 * - 93
----
0

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL + 73 / 83 * - 93
----
0

query I rowsort
SELECT 27 + + 76 AS col2
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8543
SELECT 34 DIV 74 DIV + + 83
----
0

skipif mysql # not compatible
query I rowsort label-8543
SELECT 34 / 74 / + + 83
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8544
SELECT ALL 9 AS col2, 43 * COUNT( * ) * 78
----
9
3354

skipif mysql # not compatible
query II rowsort label-8544
SELECT ALL 9 AS col2, 43 * COUNT ( * ) * 78
----
9
3354

query I rowsort
SELECT DISTINCT + ( + 76 ) + - + 66 + + 0 AS col2
----
10

query II rowsort
SELECT 11 AS col1, 97
----
11
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8547
SELECT DISTINCT + 2 + + + 46 + - - CAST( NULL AS SIGNED ) AS col2, COALESCE ( 84, + 21 ) AS col1, - + 24
----
NULL
84
-24

skipif mysql # not compatible
query III rowsort label-8547
SELECT DISTINCT + 2 + + + 46 + - - CAST ( NULL AS INTEGER ) AS col2, COALESCE ( 84, + 21 ) AS col1, - + 24
----
NULL
84
-24

query II rowsort
SELECT - - 66, 74 AS col1
----
66
74

onlyif mysql # aggregate syntax: 
query III rowsort label-8549
SELECT + 13, + 46 * + + 52 - - 46 * MIN( DISTINCT 67 ) AS col2, - 77 AS col0
----
13
5474
-77

skipif mysql # not compatible
query III rowsort label-8549
SELECT + 13, + 46 * + + 52 - - 46 * MIN ( DISTINCT 67 ) AS col2, - 77 AS col0
----
13
5474
-77

query II rowsort
SELECT ALL 74, 17 + 2 col2
----
74
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT NULLIF ( - 95, - COUNT( 92 ) * - 69 ) + 31 * - MIN( DISTINCT + 95 )
----
-3040

skipif mysql # not compatible
query I rowsort label-8551
SELECT NULLIF ( - 95, - COUNT ( 92 ) * - 69 ) + 31 * - MIN ( DISTINCT + 95 )
----
-3040

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL - + 46 + + COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL - + 46 + + COUNT ( * ) AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT ALL + 8 + - ( + 84 ) / - - MAX( DISTINCT 48 ) * + - NULLIF ( - - NULLIF ( - COUNT( * ), - COUNT( * ) * 53 ), + CASE COUNT( * ) WHEN - - 76 THEN - 45 END ) / CAST( NULL AS SIGNED ) + - - 10 + - - NULLIF ( - - ( - 67 ), + 11 * + + 51 + - 59 + - + CASE + 60 WHEN + 78 + 4 THEN - 10 WHEN + COALESCE ( + 10, 0 * 96 + COUNT( * ) / - 36 ) + - 58 * 18 THEN NULL END * 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL + 8 + - ( + 84 ) / - - MAX ( DISTINCT 48 ) * + - NULLIF ( - - NULLIF ( - COUNT ( * ), - COUNT ( * ) * 53 ), + CASE COUNT ( * ) WHEN - - 76 THEN - 45 END ) / CAST ( NULL AS INTEGER ) + - - 10 + - - NULLIF ( - - ( - 67 ), + 11 * + + 51 + - 59 + - + CASE + 60 WHEN + 78 + 4 THEN - 10 WHEN + COALESCE ( + 10, 0 * 96 + COUNT ( * ) / - 36 ) + - 58 * 18 THEN NULL END * 62 )
----
NULL

query I rowsort
SELECT DISTINCT - 50 * - 97 AS col1
----
4850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL + CAST( + 9 AS SIGNED ) + + 84 + - - 69 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + CAST ( + 9 AS INTEGER ) + + 84 + - - 69 AS col0
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8556
SELECT 23 DIV + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8556
SELECT 23 / + COUNT ( * ) AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8557
SELECT COALESCE ( - CAST( NULL AS SIGNED ), - + 45 - - - 3 + - 9 ) * - 45 * + 68 * + 14 + - + 10
----
2441870

skipif mysql # not compatible
query I rowsort label-8557
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), - + 45 - - - 3 + - 9 ) * - 45 * + 68 * + 14 + - + 10
----
2441870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT + COUNT( - 67 ) DIV - + 96 + - NULLIF ( - - 6, - 67 ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-8558
SELECT + COUNT ( - 67 ) / - + 96 + - NULLIF ( - - 6, - 67 ) col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT - 9 + + 91 + + 88 * + 72 * - COUNT( * ) + 48 * + 43 * + 3
----
-62

skipif mysql # not compatible
query I rowsort label-8559
SELECT - 9 + + 91 + + 88 * + 72 * - COUNT ( * ) + 48 * + 43 * + 3
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8560
SELECT - 48 * - COUNT( + 8 ) + + 47 AS col1, 33 + - 82
----
95
-49

skipif mysql # not compatible
query II rowsort label-8560
SELECT - 48 * - COUNT ( + 8 ) + + 47 AS col1, 33 + - 82
----
95
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT DISTINCT + COUNT( * ) * - 99 + - ( + 78 )
----
-177

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT + COUNT ( * ) * - 99 + - ( + 78 )
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-8562
SELECT DISTINCT + - 29 DIV 13 * 76
----
-152

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT + - 29 / 13 * 76
----
-152

query I rowsort
SELECT ALL - 65 - + + 10 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ALL COUNT( * ) * + 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL COUNT ( * ) * + 19 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL + SUM( DISTINCT - 76 ) - + + 81 AS col0
----
-157

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL + SUM ( DISTINCT - 76 ) - + + 81 AS col0
----
-157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8566
SELECT DISTINCT 53 * 0 DIV COUNT( DISTINCT - + 91 ) * + 39
----
0

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT 53 * 0 / COUNT ( DISTINCT - + 91 ) * + 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8567
SELECT ( - CAST( NULL AS SIGNED ) ) - - - 30 / + COUNT( * ), + 74 AS col0
----
NULL
74

skipif mysql # not compatible
query II rowsort label-8567
SELECT ( - CAST ( NULL AS INTEGER ) ) - - - 30 / + COUNT ( * ), + 74 AS col0
----
NULL
74

query I rowsort
SELECT 47 * - 77
----
-3619

query I rowsort
SELECT DISTINCT 89 col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8570
SELECT COUNT( * ) * + + 49 AS col1, + 6 - + CASE + - NULLIF ( + 53, + COALESCE ( + 36, - 49 ) ) WHEN + - AVG ( 66 ) * + - 53 + - - COUNT( * ) + + COUNT( * ) + + + 32 / - - 36 * 57 + - 24 THEN NULL WHEN COUNT( * ) THEN + 67 - - 75 - - 26 * 54 - + 1 WHEN + 61 THEN NULL ELSE 24 END
----
49
-18

skipif mysql # not compatible
query II rowsort label-8570
SELECT COUNT ( * ) * + + 49 AS col1, + 6 - + CASE + - NULLIF ( + 53, + COALESCE ( + 36, - 49 ) ) WHEN + - AVG ( 66 ) * + - 53 + - - COUNT ( * ) + + COUNT ( * ) + + + 32 / - - 36 * 57 + - 24 THEN NULL WHEN COUNT ( * ) THEN + 67 - - 75 - - 26 * 54 - + 1 WHEN + 61 THEN NULL ELSE 24 END
----
49
-18

query I rowsort
SELECT 37 * - 57 AS col1
----
-2109

query I rowsort
SELECT ALL + 68 * + - 40 AS col2
----
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT ALL COUNT( * ) * - + 72
----
-72

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL COUNT ( * ) * - + 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT COUNT( * ) * - 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8574
SELECT COUNT ( * ) * - 3 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT 59 + + 5 + + ( 89 ) DIV 25 + - - 92 col2
----
159

skipif mysql # not compatible
query I rowsort label-8575
SELECT 59 + + 5 + + ( 89 ) / 25 + - - 92 col2
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT ALL + CAST( 44 AS SIGNED ) * - 7 col1
----
-308

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL + CAST ( 44 AS INTEGER ) * - 7 col1
----
-308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8577
SELECT 69 DIV + - CASE + + 20 WHEN - - 49 + - ( - - CASE - + 25 WHEN + 19 + 31 THEN + 53 WHEN + COUNT( * ) + + - 72 + - MIN( DISTINCT - 4 ) * + 39 THEN + 79 * 77 END ) THEN + COUNT( * ) - - 62 ELSE + - 99 * - + 25 + 87 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8577
SELECT 69 / + - CASE + + 20 WHEN - - 49 + - ( - - CASE - + 25 WHEN + 19 + 31 THEN + 53 WHEN + COUNT ( * ) + + - 72 + - MIN ( DISTINCT - 4 ) * + 39 THEN + 79 * 77 END ) THEN + COUNT ( * ) - - 62 ELSE + - 99 * - + 25 + 87 END AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT DISTINCT CASE + 88 WHEN + 61 THEN + + 24 / - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT CASE + 88 WHEN + 61 THEN + + 24 / - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT - 71 + - CASE + - ( - 48 ) WHEN NULLIF ( 48, + 89 ) THEN NULL WHEN + + 16 THEN NULL ELSE - 37 * - COUNT( * ) * + 32 END / - 37 + - ( COALESCE ( 66, - - 81 * - 67, - + COUNT( + + 50 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT - 71 + - CASE + - ( - 48 ) WHEN NULLIF ( 48, + 89 ) THEN NULL WHEN + + 16 THEN NULL ELSE - 37 * - COUNT ( * ) * + 32 END / - 37 + - ( COALESCE ( 66, - - 81 * - 67, - + COUNT ( + + 50 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT DISTINCT + + ( + 38 ) + + COUNT( * ) * 10 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT + + ( + 38 ) + + COUNT ( * ) * 10 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8581
SELECT - MIN( - 95 ) AS col0, CAST( NULL AS SIGNED ) * + - 57
----
95
NULL

skipif mysql # not compatible
query II rowsort label-8581
SELECT - MIN ( - 95 ) AS col0, CAST ( NULL AS INTEGER ) * + - 57
----
95
NULL

query I rowsort
SELECT + 57 * - + 34
----
-1938

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT ALL + - 31 DIV + + 50 * 36
----
0

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + - 31 / + + 50 * 36
----
0

query I rowsort
SELECT DISTINCT - + 69 + - - 38 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT - + 93 * COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - + 93 * COUNT ( * ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8586
SELECT + 23 DIV + 2 - + 32 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8586
SELECT + 23 / + 2 - + 32 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT 30 * COUNT( * ) * 15 AS col0
----
450

skipif mysql # not compatible
query I rowsort label-8587
SELECT 30 * COUNT ( * ) * 15 AS col0
----
450

onlyif mysql # DIV for integer division: 
query I rowsort label-8588
SELECT ALL + 5 * ( + 59 ) DIV 99 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + 5 * ( + 59 ) / 99 AS col1
----
2

query II rowsort
SELECT ALL 27 * + 70 - - 94 - - 57, + 15 AS col2
----
2041
15

query I rowsort
SELECT ALL - NULLIF ( 99, - 91 )
----
-99

query I rowsort
SELECT - + 18 * + 9 - - 54 AS col2
----
-108

query I rowsort
SELECT - 1 + - 77 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT + COALESCE ( 86, + 16 * - 17 * 20 * - 25 + - + 65 ) * - - 51 + + 26 + - COUNT( * )
----
4411

skipif mysql # not compatible
query I rowsort label-8593
SELECT + COALESCE ( 86, + 16 * - 17 * 20 * - 25 + - + 65 ) * - - 51 + + 26 + - COUNT ( * )
----
4411

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT SUM( - 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8594
SELECT SUM ( - 54 ) AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8595
SELECT - CAST( - 7 AS SIGNED ) DIV 98, - 77 AS col1
----
0
-77

skipif mysql # not compatible
query II rowsort label-8595
SELECT - CAST ( - 7 AS INTEGER ) / 98, - 77 AS col1
----
0
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8596
SELECT DISTINCT COALESCE ( 44, - 90 DIV + 45 + + 13 + ( + 66 ) * - 15, - 46 ) DIV NULLIF ( + ( 73 ), + + CAST( NULL AS SIGNED ) + + 27 + - + 26 + - 87 ) + - - 69 * - 56 * - - 30 AS col0
----
-115920

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT COALESCE ( 44, - 90 / + 45 + + 13 + ( + 66 ) * - 15, - 46 ) / NULLIF ( + ( 73 ), + + CAST ( NULL AS INTEGER ) + + 27 + - + 26 + - 87 ) + - - 69 * - 56 * - - 30 AS col0
----
-115920

query I rowsort
SELECT + 76 * + 88
----
6688

query I rowsort
SELECT ALL ( - 98 ) * - + 59 * 98
----
566636

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + 47 + 79 + + MAX( DISTINCT - 25 )
----
101

skipif mysql # not compatible
query I rowsort label-8599
SELECT + 47 + 79 + + MAX ( DISTINCT - 25 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL COUNT( * ) * SUM( + - 1 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL COUNT ( * ) * SUM ( + - 1 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL ( + - ( + + COUNT( * ) ) ) + + 90 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL ( + - ( + + COUNT ( * ) ) ) + + 90 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT DISTINCT CAST( NULL AS SIGNED ) + 65 * 82 + 13 / - 28 - + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 65 * 82 + 13 / - 28 - + 23 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8603
SELECT ALL CASE 6 WHEN 30 THEN 88 * + 82 + 67 + 87 * + - 82 WHEN + 54 THEN - 55 * 40 * - + CASE 20 WHEN + CAST( NULL AS SIGNED ) THEN + 38 - - + ( + - 7 ) + - 55 WHEN - - ( + 57 ) * - 66 + - - 38 THEN NULL END * - - 23 * + SUM( - - CAST( NULL AS SIGNED ) ) + 35 END * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL CASE 6 WHEN 30 THEN 88 * + 82 + 67 + 87 * + - 82 WHEN + 54 THEN - 55 * 40 * - + CASE 20 WHEN + CAST ( NULL AS INTEGER ) THEN + 38 - - + ( + - 7 ) + - 55 WHEN - - ( + 57 ) * - 66 + - - 38 THEN NULL END * - - 23 * + SUM ( - - CAST ( NULL AS INTEGER ) ) + 35 END * 90
----
NULL

query I rowsort
SELECT + 69 + + 48 AS col1
----
117

query I rowsort
SELECT ALL 75 + - 49
----
26

query I rowsort
SELECT DISTINCT 92 + - 50
----
42

query I rowsort
SELECT ALL 27 + - 54 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT - CASE - SUM( DISTINCT - 36 ) WHEN 76 THEN + - 84 * - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT - CASE - SUM ( DISTINCT - 36 ) WHEN 76 THEN + - 84 * - 58 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT ALL COUNT( ALL + CASE 40 WHEN - ( - 55 ) THEN + CAST( NULL AS SIGNED ) * 18 END )
----
0

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL COUNT ( ALL + CASE 40 WHEN - ( - 55 ) THEN + CAST ( NULL AS INTEGER ) * 18 END )
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( - 71, + 27 ) AS col0
----
-71

query I rowsort
SELECT + - 72 * 40 AS col1
----
-2880

query I rowsort
SELECT ALL + 92 + 77
----
169

query I rowsort
SELECT + 85 * 33
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT - 55 + - 40 - 2 * - + COUNT( * ) * + + 59 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8614
SELECT - 55 + - 40 - 2 * - + COUNT ( * ) * + + 59 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL COUNT( * ) * + 15 * + 15
----
225

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL COUNT ( * ) * + 15 * + 15
----
225

query I rowsort
SELECT - ( 68 ) + 26 col0
----
-42

query I rowsort
SELECT + + 45 * 62
----
2790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT ALL - CAST( + - 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL - CAST ( + - 53 AS INTEGER )
----
53

query I rowsort
SELECT - 30 + - - 60 AS col0
----
30

query I rowsort
SELECT ALL ( + 33 ) AS col2
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8621
SELECT ALL - + CAST( NULL AS DECIMAL ) / - 44 * + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - + CAST ( NULL AS REAL ) / - 44 * + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT - 57 * - ( + COUNT( * ) ) * COUNT( ALL + 36 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8622
SELECT - 57 * - ( + COUNT ( * ) ) * COUNT ( ALL + 36 ) AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8623
SELECT DISTINCT - - 61 DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT - - 61 / + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8624
SELECT ALL + 57 AS col0, SUM( - 89 )
----
57
-89

skipif mysql # not compatible
query II rowsort label-8624
SELECT ALL + 57 AS col0, SUM ( - 89 )
----
57
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8625
SELECT 4 DIV - 31 + 55
----
55

skipif mysql # not compatible
query I rowsort label-8625
SELECT 4 / - 31 + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT - 53 * + COUNT( DISTINCT 24 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8626
SELECT - 53 * + COUNT ( DISTINCT 24 ) AS col0
----
-53

query I rowsort
SELECT ( - 77 ) AS col0
----
-77

query I rowsort
SELECT ( ( 28 ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT DISTINCT + COUNT( * ) * - ( + 59 ) * 49 + + 54
----
-2837

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT + COUNT ( * ) * - ( + 59 ) * 49 + + 54
----
-2837

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT + MAX( - - 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8630
SELECT + MAX ( - - 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT DISTINCT + MIN( ALL + 38 ) * - 41 * - 73 * + - 82 + - 38
----
-9326226

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT + MIN ( ALL + 38 ) * - 41 * - 73 * + - 82 + - 38
----
-9326226

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL - 74 * + 86 * - 67 + MAX( DISTINCT + - 66 ) AS col0
----
426322

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - 74 * + 86 * - 67 + MAX ( DISTINCT + - 66 ) AS col0
----
426322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT ALL + CAST( - 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL + CAST ( - 58 AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8634
SELECT ALL + MIN( - 91 ) AS col0, + 66 AS col1
----
-91
66

skipif mysql # not compatible
query II rowsort label-8634
SELECT ALL + MIN ( - 91 ) AS col0, + 66 AS col1
----
-91
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT NULLIF ( + + SUM( CAST( + 85 AS SIGNED ) ), - - 11 - - 20 - SUM( - - COALESCE ( - 55, + - 72 + 41, + - 6, + 59 + 54 * - ( 76 ) * + 11 ) ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8635
SELECT NULLIF ( + + SUM ( CAST ( + 85 AS INTEGER ) ), - - 11 - - 20 - SUM ( - - COALESCE ( - 55, + - 72 + 41, + - 6, + 59 + 54 * - ( 76 ) * + 11 ) ) ) AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8636
SELECT COALESCE ( + 46, - COALESCE ( - 98, COALESCE ( COALESCE ( - 49, - - CAST( NULL AS SIGNED ) * + 21 ), - COALESCE ( + 88, + - 13 * - + 98, - 74 ) ) ) - - ( - 25 ) * - 33 + + - MAX( - - 89 ) + NULLIF ( - - CAST( ( + COUNT( + + 3 ) ) AS SIGNED ), + 6 ) * - 34, - 49, 41 + - 61 * - 99 )
----
46

skipif mysql # not compatible
query I rowsort label-8636
SELECT COALESCE ( + 46, - COALESCE ( - 98, COALESCE ( COALESCE ( - 49, - - CAST ( NULL AS INTEGER ) * + 21 ), - COALESCE ( + 88, + - 13 * - + 98, - 74 ) ) ) - - ( - 25 ) * - 33 + + - MAX ( - - 89 ) + NULLIF ( - - CAST ( ( + COUNT ( + + 3 ) ) AS INTEGER ), + 6 ) * - 34, - 49, 41 + - 61 * - 99 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8637
SELECT - CASE + + CASE - 7 WHEN - 72 * + + 28 / - CAST( + + CAST( + 58 AS DECIMAL ) AS SIGNED ) THEN - + NULLIF ( - + 79, + CAST( NULL AS SIGNED ) + - 48 * + + 43 + - ( + 33 ) ) * - - 29 WHEN + 1 - + SUM( ALL - 20 ) - + 81 THEN NULL END WHEN 84 THEN 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT - CASE + + CASE - 7 WHEN - 72 * + + 28 / - CAST ( + + CAST ( + 58 AS REAL ) AS INTEGER ) THEN - + NULLIF ( - + 79, + CAST ( NULL AS INTEGER ) + - 48 * + + 43 + - ( + 33 ) ) * - - 29 WHEN + 1 - + SUM ( ALL - 20 ) - + 81 THEN NULL END WHEN 84 THEN 34 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL - 31 * + COUNT( - + 28 ) + + 34
----
3

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL - 31 * + COUNT ( - + 28 ) + + 34
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8639
SELECT DISTINCT CAST( + 39 AS SIGNED ) AS col0, - 91
----
39
-91

skipif mysql # not compatible
query II rowsort label-8639
SELECT DISTINCT CAST ( + 39 AS INTEGER ) AS col0, - 91
----
39
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8640
SELECT ALL + 18 * COUNT( * ) - - 89 * AVG ( + ( - CAST( NULL AS SIGNED ) ) ) + - COUNT( * ) + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL + 18 * COUNT ( * ) - - 89 * AVG ( + ( - CAST ( NULL AS INTEGER ) ) ) + - COUNT ( * ) + + 62
----
NULL

query II rowsort
SELECT - 76, 74 AS col0
----
-76
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8642
SELECT + - 19 + + 67 col2, + NULLIF ( 46, + COUNT( * ) * - 3 / - 25 + - 27 )
----
48
46

skipif mysql # not compatible
query II rowsort label-8642
SELECT + - 19 + + 67 col2, + NULLIF ( 46, + COUNT ( * ) * - 3 / - 25 + - 27 )
----
48
46

query I rowsort
SELECT + + 49 * + - 18
----
-882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT + 19 + - CAST( 83 AS SIGNED ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-8644
SELECT + 19 + - CAST ( 83 AS INTEGER ) col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-8645
SELECT DISTINCT + 72 AS col2, COUNT( * ) + + 33
----
72
34

skipif mysql # not compatible
query II rowsort label-8645
SELECT DISTINCT + 72 AS col2, COUNT ( * ) + + 33
----
72
34

query II rowsort
SELECT - 61 AS col2, - 8
----
-61
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8647
SELECT DISTINCT ( - + COALESCE ( + CASE + 50 WHEN + 86 THEN 49 WHEN + CAST( NULL AS SIGNED ) THEN + 11 ELSE 2 * + 87 * 40 DIV + 33 END, - + ( - 33 ) ) ), - ( + - COUNT( * ) ) AS col2
----
-210
1

skipif mysql # not compatible
query II rowsort label-8647
SELECT DISTINCT ( - + COALESCE ( + CASE + 50 WHEN + 86 THEN 49 WHEN + CAST ( NULL AS INTEGER ) THEN + 11 ELSE 2 * + 87 * 40 / + 33 END, - + ( - 33 ) ) ), - ( + - COUNT ( * ) ) AS col2
----
-210
1

query I rowsort
SELECT + 94 * 2 + + 81 AS col2
----
269

query II rowsort
SELECT 84, + 31 col1
----
84
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8650
SELECT DISTINCT + 12 * - + 75 * - 69 * 32, 69 * + CAST( + + 98 AS SIGNED ) AS col2
----
1987200
6762

skipif mysql # not compatible
query II rowsort label-8650
SELECT DISTINCT + 12 * - + 75 * - 69 * 32, 69 * + CAST ( + + 98 AS INTEGER ) AS col2
----
1987200
6762

query I rowsort
SELECT ALL - NULLIF ( - + 68, + 97 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT - - ( + NULLIF ( 79, - COUNT( 38 ) - - - 20 ) )
----
79

skipif mysql # not compatible
query I rowsort label-8652
SELECT - - ( + NULLIF ( 79, - COUNT ( 38 ) - - - 20 ) )
----
79

query I rowsort
SELECT ( + 12 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8654
SELECT COUNT( * ) DIV + COALESCE ( - 74, + - COALESCE ( - + 85, - - 66 * - ( + 82 ) * - - 46 + 1 + 41 + ( + 92 ) DIV + + 55 + ( 83 ) + + ( + - CAST( - 15 AS SIGNED ) ) ) + + + 61, + ( COUNT( * ) ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8654
SELECT COUNT ( * ) / + COALESCE ( - 74, + - COALESCE ( - + 85, - - 66 * - ( + 82 ) * - - 46 + 1 + 41 + ( + 92 ) / + + 55 + ( 83 ) + + ( + - CAST ( - 15 AS INTEGER ) ) ) + + + 61, + ( COUNT ( * ) ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT 38 * - - 89 * - COUNT( * ) col2
----
-3382

skipif mysql # not compatible
query I rowsort label-8655
SELECT 38 * - - 89 * - COUNT ( * ) col2
----
-3382

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8656
SELECT 36 DIV + 67 - + - 96 + NULLIF ( - - CAST( 59 AS SIGNED ), + 64 ) * + 18
----
1158

skipif mysql # not compatible
query I rowsort label-8656
SELECT 36 / + 67 - + - 96 + NULLIF ( - - CAST ( 59 AS INTEGER ), + 64 ) * + 18
----
1158

query II rowsort
SELECT DISTINCT - 54 + + 37, + 64 AS col1
----
-17
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL 29 + + COUNT( * ) * - 59
----
-30

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL 29 + + COUNT ( * ) * - 59
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8659
SELECT ALL - ( 47 ) AS col1, SUM( ALL + 57 ) DIV 11 AS col1
----
-47
5

skipif mysql # not compatible
query II rowsort label-8659
SELECT ALL - ( 47 ) AS col1, SUM ( ALL + 57 ) / 11 AS col1
----
-47
5

query II rowsort
SELECT 37 * - 26 AS col1, 94 AS col0
----
-962
94

query I rowsort
SELECT ALL ( + 83 ) + 89 AS col0
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8662
SELECT DISTINCT 64 + - 99, CAST( 13 AS SIGNED ) AS col1
----
-35
13

skipif mysql # not compatible
query II rowsort label-8662
SELECT DISTINCT 64 + - 99, CAST ( 13 AS INTEGER ) AS col1
----
-35
13

query I rowsort
SELECT 9 * + 68 + - - 10 AS col0
----
622

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT SUM( + 40 ) * - - 52
----
2080

skipif mysql # not compatible
query I rowsort label-8664
SELECT SUM ( + 40 ) * - - 52
----
2080

query I rowsort
SELECT DISTINCT + 64 * + 31 * - 66
----
-130944

query I rowsort
SELECT ALL - 10 + + + 36
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT 74 * - 84 * - COALESCE ( - + 42, + 17 * 54 - + + 32 ) + - COUNT( * ) * 27 * + COUNT( * ) col1
----
-261099

skipif mysql # not compatible
query I rowsort label-8667
SELECT 74 * - 84 * - COALESCE ( - + 42, + 17 * 54 - + + 32 ) + - COUNT ( * ) * 27 * + COUNT ( * ) col1
----
-261099

query I rowsort
SELECT 53 + - 58 + + 78 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL - 38 * + SUM( DISTINCT + 78 )
----
-2964

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL - 38 * + SUM ( DISTINCT + 78 )
----
-2964

query I rowsort
SELECT ALL + 10 - + 94
----
-84

query I rowsort
SELECT ALL - 47 * + + 66 AS col1
----
-3102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8672
SELECT - + CAST( - CAST( - - COUNT( - 54 ) AS SIGNED ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8672
SELECT - + CAST ( - CAST ( - - COUNT ( - 54 ) AS INTEGER ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT 2 + 83 * + ( - 59 ) * + + ( 78 ) + - COUNT( * ) - - 89
----
-381876

skipif mysql # not compatible
query I rowsort label-8673
SELECT 2 + 83 * + ( - 59 ) * + + ( 78 ) + - COUNT ( * ) - - 89
----
-381876

query I rowsort
SELECT 33 * - 6 AS col0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT ALL - + 12 DIV + 13 * - - 95 * - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL - + 12 / + 13 * - - 95 * - 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT DISTINCT + 51 * - NULLIF ( 64, COUNT( DISTINCT NULLIF ( + 69, ( + 43 ) ) ) ) * - 37 AS col2
----
120768

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT + 51 * - NULLIF ( 64, COUNT ( DISTINCT NULLIF ( + 69, ( + 43 ) ) ) ) * - 37 AS col2
----
120768

onlyif mysql # DIV for integer division: 
query I rowsort label-8677
SELECT 66 + - + 8 DIV 82 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8677
SELECT 66 + - + 8 / 82 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT DISTINCT - MAX( DISTINCT 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - MAX ( DISTINCT 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-8679
SELECT ALL + COUNT( * ) * - 46 col2, - 22 AS col1
----
-46
-22

skipif mysql # not compatible
query II rowsort label-8679
SELECT ALL + COUNT ( * ) * - 46 col2, - 22 AS col1
----
-46
-22

query I rowsort
SELECT + 26 * - 43 AS col2
----
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL - 74 * - + 52 * - MIN( DISTINCT + 59 ) AS col2
----
-227032

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - 74 * - + 52 * - MIN ( DISTINCT + 59 ) AS col2
----
-227032

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT DISTINCT + - 7 * + + 12 + + NULLIF ( - 41, - 98 ) + + 1 * - - ( 11 ) DIV + + 19 * - - 32 * 21 + - - 70 col1
----
-55

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT + - 7 * + + 12 + + NULLIF ( - 41, - 98 ) + + 1 * - - ( 11 ) / + + 19 * - - 32 * 21 + - - 70 col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8683
SELECT ALL - - 45 * + - 0 + - 98 DIV 35
----
-2

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL - - 45 * + - 0 + - 98 / 35
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8684
SELECT ALL - 82 * + 64 * + - 85 - + - 42 DIV + 21 + + 77 AS col0
----
446159

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL - 82 * + 64 * + - 85 - + - 42 / + 21 + + 77 AS col0
----
446159

onlyif mysql # aggregate syntax: 
query II rowsort label-8685
SELECT - 92 * - SUM( DISTINCT - - 71 ) - - 69 + + COUNT( * ) + 89 + 28 AS col1, + 27 col0
----
6719
27

skipif mysql # not compatible
query II rowsort label-8685
SELECT - 92 * - SUM ( DISTINCT - - 71 ) - - 69 + + COUNT ( * ) + 89 + 28 AS col1, + 27 col0
----
6719
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8686
SELECT 81 * + COUNT( * ) AS col0, NULLIF ( 35, + - 12 - + ( + 11 ) + + MIN( ALL + - 79 ) )
----
81
35

skipif mysql # not compatible
query II rowsort label-8686
SELECT 81 * + COUNT ( * ) AS col0, NULLIF ( 35, + - 12 - + ( + 11 ) + + MIN ( ALL + - 79 ) )
----
81
35

query I rowsort
SELECT ALL 31 + + CASE + - 61 WHEN - - 44 * - AVG ( DISTINCT 35 ) * + 16 THEN NULL ELSE - 19 END + + 23
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT NULLIF ( - COALESCE ( + ( + - 10 ), - - 34, 40 DIV 89 - - + ( - 91 ) + + 9 ), - + 47 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8688
SELECT NULLIF ( - COALESCE ( + ( + - 10 ), - - 34, 40 / 89 - - + ( - 91 ) + + 9 ), - + 47 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL 45 + - AVG ( 37 ) * + 25 * CASE - + MAX( CASE + 46 WHEN - 3 * - 86 * + - 2 THEN + + 99 END ) WHEN 96 THEN + 11 WHEN - 92 THEN COALESCE ( 62, ( + - 27 ) + - 69 * + 90 ) * 41 * - COUNT( * ) + - + 65 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL 45 + - AVG ( 37 ) * + 25 * CASE - + MAX ( CASE + 46 WHEN - 3 * - 86 * + - 2 THEN + + 99 END ) WHEN 96 THEN + 11 WHEN - 92 THEN COALESCE ( 62, ( + - 27 ) + - 69 * + 90 ) * 41 * - COUNT ( * ) + - + 65 END * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - + 65 * 38 * + - 7 AS col1
----
17290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8691
SELECT ALL - COUNT( * ) * - ( + COUNT( * ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL - COUNT ( * ) * - ( + COUNT ( * ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8692
SELECT ALL + SUM( - 2 ) * + 83 + 67 AS col1, 7
----
-99
7

skipif mysql # not compatible
query II rowsort label-8692
SELECT ALL + SUM ( - 2 ) * + 83 + 67 AS col1, 7
----
-99
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT MAX( + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-8693
SELECT MAX ( + 16 )
----
16

query II rowsort
SELECT ALL 92 * - + 66 * 65 * - 24 + - 16 * + 18 * - ( + 55 ) AS col2, + 42 AS col1
----
9488160
42

query I rowsort
SELECT 44 + 70
----
114

query I rowsort
SELECT DISTINCT 23 * - 38
----
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT COUNT( 16 )
----
1

skipif mysql # not compatible
query I rowsort label-8697
SELECT COUNT ( 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + COUNT( * ) * - ( CASE MAX( DISTINCT - 82 ) WHEN + 39 THEN + 85 * - - 36 * - - 15 / 39 WHEN + ( - 53 ) * - 26 THEN 30 / - 72 END ) + - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT + COUNT ( * ) * - ( CASE MAX ( DISTINCT - 82 ) WHEN + 39 THEN + 85 * - - 36 * - - 15 / 39 WHEN + ( - 53 ) * - 26 THEN 30 / - 72 END ) + - 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL MIN( DISTINCT - 34 ) * ( - 3 ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL MIN ( DISTINCT - 34 ) * ( - 3 ) AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT MAX( 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8700
SELECT MAX ( 90 ) AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8701
SELECT CASE 97 WHEN + - 35 THEN NULL ELSE - 61 END DIV 9 + 9 DIV - 60 + - 56 + - 27
----
-89

skipif mysql # not compatible
query I rowsort label-8701
SELECT CASE 97 WHEN + - 35 THEN NULL ELSE - 61 END / 9 + 9 / - 60 + - 56 + - 27
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL + 20 * 33 * + COUNT( * ) * + - 42 + - - CASE + MIN( ALL - 37 ) WHEN + SUM( ALL 19 ) * COUNT( * ) - 22 THEN NULL ELSE + + 36 END
----
-27684

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL + 20 * 33 * + COUNT ( * ) * + - 42 + - - CASE + MIN ( ALL - 37 ) WHEN + SUM ( ALL 19 ) * COUNT ( * ) - 22 THEN NULL ELSE + + 36 END
----
-27684

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT + MAX( 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8703
SELECT + MAX ( 44 )
----
44

query I rowsort
SELECT 72 + - 59
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT + MIN( ALL + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8705
SELECT + MIN ( ALL + 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL + COUNT( ALL - + 11 ) * - + ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL + COUNT ( ALL - + 11 ) * - + ( + COUNT ( * ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT ALL 10 DIV + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL 10 / + 97 AS col2
----
0

query I rowsort
SELECT - 51 * 31 * + 2
----
-3162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8709
SELECT + - NULLIF ( COUNT( * ), 63 * COUNT( * ) * + - NULLIF ( + 61, NULLIF ( - - 34, - CAST( + COUNT( DISTINCT - 83 ) AS DECIMAL ) ) ) * - + 87 + 41 + + 95 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8709
SELECT + - NULLIF ( COUNT ( * ), 63 * COUNT ( * ) * + - NULLIF ( + 61, NULLIF ( - - 34, - CAST ( + COUNT ( DISTINCT - 83 ) AS REAL ) ) ) * - + 87 + 41 + + 95 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL - 38 * COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL - 38 * COUNT ( * ) AS col0
----
-38

query I rowsort
SELECT - 74 - - + 78 + - - 46 + - 46
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT DISTINCT - CAST( 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT - CAST ( 20 AS INTEGER )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8713
SELECT DISTINCT + 55 AS col1, + 92 * - + CAST( + - 64 AS SIGNED )
----
55
5888

skipif mysql # not compatible
query II rowsort label-8713
SELECT DISTINCT + 55 AS col1, + 92 * - + CAST ( + - 64 AS INTEGER )
----
55
5888

query I rowsort
SELECT DISTINCT - - 84 + + 39 * + + 41 AS col1
----
1683

query II rowsort
SELECT - 45 col2, - 28 col1
----
-45
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8716
SELECT - + NULLIF ( 15, + 88 ) + - COALESCE ( + COUNT( * ), + 83 DIV + - 29 + - - NULLIF ( - 44, - 4 ) * 42, + 53 - - 32 )
----
-16

skipif mysql # not compatible
query I rowsort label-8716
SELECT - + NULLIF ( 15, + 88 ) + - COALESCE ( + COUNT ( * ), + 83 / + - 29 + - - NULLIF ( - 44, - 4 ) * 42, + 53 - - 32 )
----
-16

query I rowsort
SELECT - 37 - - 56 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8718
SELECT - 76 DIV - 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8718
SELECT - 76 / - 76 AS col2
----
1

query I rowsort
SELECT DISTINCT - 95 + + 16
----
-79

query I rowsort
SELECT ALL - 37 + - 52 col1
----
-89

query I rowsort
SELECT NULLIF ( 9, 96 + + 18 - 46 + ( + 54 ) * - - 2 + 15 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - - SUM( - + 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8722
SELECT - - SUM ( - + 4 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL + + 42 + - + 13 + COUNT( * ) + - 61 * 20 AS col0
----
-1190

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL + + 42 + - + 13 + COUNT ( * ) + - 61 * 20 AS col0
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ALL + COUNT( * ) * 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL + COUNT ( * ) * 77 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT - - 40 DIV + 86 + - 26 + + 74 + + 22 DIV + ( + 99 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8725
SELECT - - 40 / + 86 + - 26 + + 74 + + 22 / + ( + 99 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT DISTINCT + ( - 86 ) + - ( - + 9 ) - - COUNT( * ) + - COUNT( * ) + - + 49
----
-126

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT + ( - 86 ) + - ( - + 9 ) - - COUNT ( * ) + - COUNT ( * ) + - + 49
----
-126

query I rowsort
SELECT ALL - 9 + 38 + + 11 + - 75
----
-35

query I rowsort
SELECT ALL 36 + + 63 + - 66 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT DISTINCT COALESCE ( 53, + MIN( + 88 ) )
----
53

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT COALESCE ( 53, + MIN ( + 88 ) )
----
53

query I rowsort
SELECT ALL 12 + - + 97 + + 38
----
-47

query I rowsort
SELECT DISTINCT + 36 * 16
----
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8732
SELECT ALL - ( 58 ) * + 94 * + + ( CAST( - 80 AS SIGNED ) ) + COUNT( * ) + - + 97 + + - 72 * + 43 * + - COUNT( DISTINCT - 79 ) * + + MAX( ( - 75 ) )
----
203864

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - ( 58 ) * + 94 * + + ( CAST ( - 80 AS INTEGER ) ) + COUNT ( * ) + - + 97 + + - 72 * + 43 * + - COUNT ( DISTINCT - 79 ) * + + MAX ( ( - 75 ) )
----
203864

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ( - NULLIF ( 26, COUNT( * ) ) )
----
-26

skipif mysql # not compatible
query I rowsort label-8733
SELECT ( - NULLIF ( 26, COUNT ( * ) ) )
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-8734
SELECT + COALESCE ( - 27, - 62 * - + 31 + + 96 + - 98 DIV 36, - - 66 - - - 31 + 97, 90, + - 74 ) AS col2, + 12 + - 32 AS col2
----
-27
-20

skipif mysql # not compatible
query II rowsort label-8734
SELECT + COALESCE ( - 27, - 62 * - + 31 + + 96 + - 98 / 36, - - 66 - - - 31 + 97, 90, + - 74 ) AS col2, + 12 + - 32 AS col2
----
-27
-20

query I rowsort
SELECT - 58 - 10
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT + MIN( + - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-8736
SELECT + MIN ( + - 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT ALL + CAST( - MIN( DISTINCT - + 28 ) AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL + CAST ( - MIN ( DISTINCT - + 28 ) AS INTEGER )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT ALL - 98 * - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) - 79 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL - 98 * - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) - 79 * 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT + COALESCE ( + - ( + 4 ), COUNT( * ), - COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-8739
SELECT + COALESCE ( + - ( + 4 ), COUNT ( * ), - COUNT ( * ) )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8740
SELECT ALL 12 * + 20 - - CAST( - 95 AS SIGNED ) * 94 col1
----
-8690

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL 12 * + 20 - - CAST ( - 95 AS INTEGER ) * 94 col1
----
-8690

query I rowsort
SELECT - 98 + - 72 AS col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT ALL 69 * COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL 69 * COUNT ( * ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT + ( + COUNT( * ) ) * - + 29 + + COALESCE ( + 20, 82 * 74 * + 88, + CASE - + ( + + COUNT( * ) ) WHEN - - 42 THEN + 68 - 9 WHEN - COUNT( * ) THEN NULL END ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8743
SELECT + ( + COUNT ( * ) ) * - + 29 + + COALESCE ( + 20, 82 * 74 * + 88, + CASE - + ( + + COUNT ( * ) ) WHEN - - 42 THEN + 68 - 9 WHEN - COUNT ( * ) THEN NULL END ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT + SUM( DISTINCT - 13 ) * + 29
----
-377

skipif mysql # not compatible
query I rowsort label-8744
SELECT + SUM ( DISTINCT - 13 ) * + 29
----
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT CASE 67 WHEN + 31 THEN - + 29 * + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT CASE 67 WHEN + 31 THEN - + 29 * + - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT - ( 12 ) * COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8746
SELECT - ( 12 ) * COUNT ( * ) AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8747
SELECT + + SUM( + 12 ) + + COALESCE ( + 97, + ( 72 ) * - CAST( NULL AS SIGNED ) * - - 63 DIV + COUNT( DISTINCT - + 7 ) ) + + 96 * + 81 + 22 * - 4 + + 66 AS col2
----
7863

skipif mysql # not compatible
query I rowsort label-8747
SELECT + + SUM ( + 12 ) + + COALESCE ( + 97, + ( 72 ) * - CAST ( NULL AS INTEGER ) * - - 63 / + COUNT ( DISTINCT - + 7 ) ) + + 96 * + 81 + 22 * - 4 + + 66 AS col2
----
7863

query I rowsort
SELECT DISTINCT 37 * - 58
----
-2146

query I rowsort
SELECT + + 90 * + + 10 + + + 59 AS col2
----
959

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT ALL + 1 DIV + - 26 + - 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL + 1 / + - 26 + - 68 AS col2
----
-68

query I rowsort
SELECT ALL + - 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT - 21 + - + 44 * COUNT( * ) - - COUNT( * ) + - 98 AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-8752
SELECT - 21 + - + 44 * COUNT ( * ) - - COUNT ( * ) + - 98 AS col0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT + 75 * 41 * - 25 + - SUM( ALL - 18 )
----
-76857

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT + 75 * 41 * - 25 + - SUM ( ALL - 18 )
----
-76857

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8754
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * + ( COUNT( * ) ) + - 36 + COUNT( ALL COALESCE ( 65, 11 ) ) * + 75 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * + ( COUNT ( * ) ) + - 36 + COUNT ( ALL COALESCE ( 65, 11 ) ) * + 75 col1
----
NULL

query I rowsort
SELECT DISTINCT - - 40 * + + 51 + + 3 AS col1
----
2043

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT + COALESCE ( - COUNT( * ), COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT + COALESCE ( - COUNT ( * ), COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8757
SELECT DISTINCT + + 15 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT + + 15 + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL - COUNT( * ) * - - 94
----
-94

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL - COUNT ( * ) * - - 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT DISTINCT + - COUNT( DISTINCT + 72 ) + - 27 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT + - COUNT ( DISTINCT + 72 ) + - 27 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT DISTINCT + - ( 62 ) * - - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + - ( 62 ) * - - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT + 71 - - 67 + - COUNT( * ) + + COUNT( * ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-8761
SELECT + 71 - - 67 + - COUNT ( * ) + + COUNT ( * ) AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT - COUNT( + + 39 ) * - + 38 + - ( - 25 ) + + COUNT( - 13 )
----
64

skipif mysql # not compatible
query I rowsort label-8762
SELECT - COUNT ( + + 39 ) * - + 38 + - ( - 25 ) + + COUNT ( - 13 )
----
64

query I rowsort
SELECT DISTINCT COALESCE ( - NULLIF ( + 43, + 38 + - 64 ), + + 88, - - 60 + + NULLIF ( + 4, + + 55 ) * 97 ) col1
----
-43

query I rowsort
SELECT - 71 + 55 AS col0
----
-16

query I rowsort
SELECT ALL + 23 - - 31
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT 47 AS col1, CASE 53 WHEN 92 + + + ( + 88 ) THEN + 16 + - SUM( DISTINCT + 8 ) + + 41 / - 24 * - 68 / 95 / 37 END * + + ( - ( ( + 94 ) ) ) * + + 99 * + 63 * + CASE + 9 WHEN + 62 THEN + 84 ELSE - + 12 / + COUNT( * ) * 33 END AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-8766
SELECT 47 AS col1, CASE 53 WHEN 92 + + + ( + 88 ) THEN + 16 + - SUM ( DISTINCT + 8 ) + + 41 / - 24 * - 68 / 95 / 37 END * + + ( - ( ( + 94 ) ) ) * + + 99 * + 63 * + CASE + 9 WHEN + 62 THEN + 84 ELSE - + 12 / + COUNT ( * ) * 33 END AS col2
----
47
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT DISTINCT + 5 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT + 5 / + 60
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8768
SELECT - 35 + - ( COUNT( * ) ) AS col1, + 99 DIV + 50 AS col2
----
-36
1

skipif mysql # not compatible
query II rowsort label-8768
SELECT - 35 + - ( COUNT ( * ) ) AS col1, + 99 / + 50 AS col2
----
-36
1

query I rowsort
SELECT - COALESCE ( 95, + 73 * 7, 4 ) * - 2 AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT ALL COUNT( * ) * - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL COUNT ( * ) * - + 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT 79 * + - COUNT( ALL 36 ) + - - COALESCE ( - 45, + - 35 ) AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-8771
SELECT 79 * + - COUNT ( ALL 36 ) + - - COALESCE ( - 45, + - 35 ) AS col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL + COALESCE ( - + 71, - ( COUNT( * ) ) + + + 70 * - 6 )
----
-71

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL + COALESCE ( - + 71, - ( COUNT ( * ) ) + + + 70 * - 6 )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT - 27 DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-8773
SELECT - 27 / 28
----
0

query I rowsort
SELECT 7 + - - 33
----
40

query II rowsort
SELECT DISTINCT - 28 AS col1, ( - + 34 ) AS col1
----
-28
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT ALL + COUNT( * ) + + 10
----
11

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL + COUNT ( * ) + + 10
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT DISTINCT + 89 + + CASE + COUNT( * ) WHEN COUNT( * ) THEN 36 WHEN 16 * + - 16 THEN NULL ELSE NULL END * - 37 + - - 16 col2
----
-1227

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT + 89 + + CASE + COUNT ( * ) WHEN COUNT ( * ) THEN 36 WHEN 16 * + - 16 THEN NULL ELSE NULL END * - 37 + - - 16 col2
----
-1227

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8778
SELECT DISTINCT - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8779
SELECT DISTINCT COUNT( * ) * + - 23 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT COUNT ( * ) * + - 23 / 80
----
0

query I rowsort
SELECT 80 * + + 89 * - - 18 AS col0
----
128160

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL 53 + + MAX( 5 )
----
58

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL 53 + + MAX ( 5 )
----
58

query I rowsort
SELECT + - 15 * + + 30 - 34 - - 47 AS col1
----
-437

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8783
SELECT ALL - CAST( NULL AS DECIMAL ), 43 AS col2
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8783
SELECT ALL - CAST ( NULL AS REAL ), 43 AS col2
----
NULL
43

query I rowsort
SELECT + 19 * + ( 39 ) * + 61 AS col0
----
45201

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL - MIN( DISTINCT 94 ) + 91
----
-3

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - MIN ( DISTINCT 94 ) + 91
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT DISTINCT + 67 + 71 + MAX( + 69 )
----
207

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + 67 + 71 + MAX ( + 69 )
----
207

query I rowsort
SELECT DISTINCT 51 + - + 12 col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT DISTINCT + 87 + - + COUNT( DISTINCT + 27 ) + 76 col0
----
162

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + 87 + - + COUNT ( DISTINCT + 27 ) + 76 col0
----
162

query I rowsort
SELECT 28 * + + 67 AS col2
----
1876

query I rowsort
SELECT ALL + 54 + + - 75 * + + 6
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT + 22 * + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8791
SELECT + 22 * + COUNT ( * )
----
22

query I rowsort
SELECT 53 + - 68 * 7 AS col0
----
-423

query I rowsort
SELECT DISTINCT 1 - + ( - 36 )
----
37

query II rowsort
SELECT - 66 col2, 82
----
-66
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8795
SELECT 37 DIV - CAST( + 33 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8795
SELECT 37 / - CAST ( + 33 AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT 72 * - 87
----
-6264

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT ALL - 83 * + ( COUNT( * ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL - 83 * + ( COUNT ( * ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-8798
SELECT DISTINCT 65 - + 15 + + COUNT( * ) * 56 * - + 30 + - + 90, 94 + - + 17 AS col0
----
-1720
77

skipif mysql # not compatible
query II rowsort label-8798
SELECT DISTINCT 65 - + 15 + + COUNT ( * ) * 56 * - + 30 + - + 90, 94 + - + 17 AS col0
----
-1720
77

query II rowsort
SELECT 95 AS col2, + 51
----
95
51

query I rowsort
SELECT 56 + + 71
----
127

onlyif mysql # DIV for integer division: 
query II rowsort label-8801
SELECT ALL 85, - 46 DIV + 61 * + 67 AS col0
----
85
0

skipif mysql # not compatible
query II rowsort label-8801
SELECT ALL 85, - 46 / + 61 * + 67 AS col0
----
85
0

query I rowsort
SELECT 72 * + + 63
----
4536

query I rowsort
SELECT ALL 93 * + 30 AS col2
----
2790

onlyif mysql # aggregate syntax: 
query II rowsort label-8804
SELECT - 89 AS col2, COUNT( * ) AS col1
----
-89
1

skipif mysql # not compatible
query II rowsort label-8804
SELECT - 89 AS col2, COUNT ( * ) AS col1
----
-89
1

query II rowsort
SELECT 24, 31 * + ( 47 ) AS col2
----
24
1457

query II rowsort
SELECT ALL 96, 47 AS col2
----
96
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT MIN( - + 23 ) * + 9 AS col1
----
-207

skipif mysql # not compatible
query I rowsort label-8807
SELECT MIN ( - + 23 ) * + 9 AS col1
----
-207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT NULLIF ( 92, 71 ) DIV + 37 - + 27 * COUNT( DISTINCT + + 81 )
----
-25

skipif mysql # not compatible
query I rowsort label-8808
SELECT NULLIF ( 92, 71 ) / + 37 - + 27 * COUNT ( DISTINCT + + 81 )
----
-25

query II rowsort
SELECT 5 AS col2, 92 * - 40 AS col1
----
5
-3680

query I rowsort
SELECT ALL + 20 + + 30
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8811
SELECT ALL - 13 AS col0, + 52 * + COUNT( * )
----
-13
52

skipif mysql # not compatible
query II rowsort label-8811
SELECT ALL - 13 AS col0, + 52 * + COUNT ( * )
----
-13
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8812
SELECT ALL - 57 + 8 + - COUNT( * ) + 96 DIV - - COUNT( * ) * + - COUNT( * )
----
-146

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - 57 + 8 + - COUNT ( * ) + 96 / - - COUNT ( * ) * + - COUNT ( * )
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT - 23 + + - 27 * - 72 * - ( CASE 84 WHEN + + 99 * + COUNT( DISTINCT - - 89 ) THEN NULL ELSE 78 * + - 68 * + 68 + - 79 * - 90 END )
----
687324505

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT - 23 + + - 27 * - 72 * - ( CASE 84 WHEN + + 99 * + COUNT ( DISTINCT - - 89 ) THEN NULL ELSE 78 * + - 68 * + 68 + - 79 * - 90 END )
----
687324505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8814
SELECT ALL + CAST( 97 AS SIGNED ) + - ( - 46 )
----
143

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + CAST ( 97 AS INTEGER ) + - ( - 46 )
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8815
SELECT DISTINCT - CASE - CAST( + COUNT( * ) AS SIGNED ) WHEN - MIN( DISTINCT + - 28 ) + 65 THEN - + ( + - COUNT( * ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT - CASE - CAST ( + COUNT ( * ) AS INTEGER ) WHEN - MIN ( DISTINCT + - 28 ) + 65 THEN - + ( + - COUNT ( * ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL - + COUNT( * ) + - + 8 - - 94 + + COUNT( * ) * + ( + 29 ) * + 82
----
2463

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL - + COUNT ( * ) + - + 8 - - 94 + + COUNT ( * ) * + ( + 29 ) * + 82
----
2463

onlyif mysql # aggregate syntax: 
query II rowsort label-8817
SELECT ( + ( 28 ) ) + - - CASE + 54 WHEN + - COUNT( * ) * + + AVG ( - 52 ) * 79 THEN 45 * + 85 + - - 28 + 17 WHEN 19 THEN + - AVG ( ALL 42 ) END col2, + 58 AS col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-8817
SELECT ( + ( 28 ) ) + - - CASE + 54 WHEN + - COUNT ( * ) * + + AVG ( - 52 ) * 79 THEN 45 * + 85 + - - 28 + 17 WHEN 19 THEN + - AVG ( ALL 42 ) END col2, + 58 AS col0
----
NULL
58

query II rowsort
SELECT + - 53 * + 24 + - 14 * 54 + - 58 * - 95 AS col0, - 80 AS col0
----
3482
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL + + ( COUNT( * ) ) + - 90 * - + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL + + ( COUNT ( * ) ) + - 90 * - + COUNT ( * )
----
91

query I rowsort
SELECT + 19 * + 44 + 56 * + 58
----
4084

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8821
SELECT - 43 * + 14 * - SUM( - 58 ) * - 74 * - + CAST( NULL AS DECIMAL ) * + 41 AS col0, 57 + - - 13 AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-8821
SELECT - 43 * + 14 * - SUM ( - 58 ) * - 74 * - + CAST ( NULL AS REAL ) * + 41 AS col0, 57 + - - 13 AS col0
----
NULL
70

query I rowsort
SELECT 2 * 29
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8823
SELECT ALL MIN( - 86 ) + 41 * 21 DIV - + 10 AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL MIN ( - 86 ) + 41 * 21 / - + 10 AS col0
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT 5 + - 18 + 23 + + MAX( + 9 ) col2
----
19

skipif mysql # not compatible
query I rowsort label-8824
SELECT 5 + - 18 + 23 + + MAX ( + 9 ) col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL + - 6 * COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + - 6 * COUNT ( * ) AS col0
----
-6

query II rowsort
SELECT DISTINCT - - 44, - 9 AS col2
----
44
-9

query I rowsort
SELECT ALL + 83 - - 45
----
128

query I rowsort
SELECT ALL - + 62 AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8829
SELECT + 19 + - 24 + + + CAST( - 26 AS SIGNED ) * 33 col0
----
-863

skipif mysql # not compatible
query I rowsort label-8829
SELECT + 19 + - 24 + + + CAST ( - 26 AS INTEGER ) * 33 col0
----
-863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT ALL 89 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL 89 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT - 59 * COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8831
SELECT - 59 * COUNT ( * ) AS col0
----
-59

query I rowsort
SELECT ALL 12 * - + 46 AS col0
----
-552

query I rowsort
SELECT ALL - 24 * 73 * + 25
----
-43800

onlyif mysql # aggregate syntax: 
query II rowsort label-8834
SELECT DISTINCT 59 * COUNT( * ), - 79 AS col2
----
59
-79

skipif mysql # not compatible
query II rowsort label-8834
SELECT DISTINCT 59 * COUNT ( * ), - 79 AS col2
----
59
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8835
SELECT ALL 82 DIV + - 6 AS col0, - COALESCE ( + COUNT( * ), - - 69 + CASE - - ( - + 92 ) WHEN 17 THEN - ( 91 ) END ) * + - 99 + + 9 AS col2
----
-13
108

skipif mysql # not compatible
query II rowsort label-8835
SELECT ALL 82 / + - 6 AS col0, - COALESCE ( + COUNT ( * ), - - 69 + CASE - - ( - + 92 ) WHEN 17 THEN - ( 91 ) END ) * + - 99 + + 9 AS col2
----
-13
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT 43 + + MAX( + + 42 ) + - MIN( ALL - 56 ) + 52 + - SUM( DISTINCT + 72 ) * - 27 col1
----
2137

skipif mysql # not compatible
query I rowsort label-8836
SELECT 43 + + MAX ( + + 42 ) + - MIN ( ALL - 56 ) + 52 + - SUM ( DISTINCT + 72 ) * - 27 col1
----
2137

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT - COUNT( DISTINCT - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-8837
SELECT - COUNT ( DISTINCT - 57 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT CAST( 84 AS SIGNED ) + 21 + - 12 + + 65 * - - COUNT( * ) * + 6 AS col1
----
483

skipif mysql # not compatible
query I rowsort label-8838
SELECT CAST ( 84 AS INTEGER ) + 21 + - 12 + + 65 * - - COUNT ( * ) * + 6 AS col1
----
483

onlyif mysql # DIV for integer division: 
query II rowsort label-8839
SELECT ALL 46 DIV - + 37 AS col0, + 78 DIV + + 81 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-8839
SELECT ALL 46 / - + 37 AS col0, + 78 / + + 81 AS col0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT 97 + + CAST( ( - 37 ) AS SIGNED ) * - 35
----
1392

skipif mysql # not compatible
query I rowsort label-8840
SELECT 97 + + CAST ( ( - 37 ) AS INTEGER ) * - 35
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL COUNT( * ) + 93 * COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL COUNT ( * ) + 93 * COUNT ( * )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT + CAST( NULL AS SIGNED ) + 78 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT + CAST ( NULL AS INTEGER ) + 78 * - - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT ALL 51 + - - 96 + 26 DIV + - 64 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL 51 + - - 96 + 26 / + - 64 AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT + COALESCE ( - COALESCE ( - - 92, + - 87 ), 58 ) + 69 * - 39 * + MIN( ALL + 60 ) AS col1
----
-161552

skipif mysql # not compatible
query I rowsort label-8844
SELECT + COALESCE ( - COALESCE ( - - 92, + - 87 ), 58 ) + 69 * - 39 * + MIN ( ALL + 60 ) AS col1
----
-161552

query I rowsort
SELECT ALL + 16 + + 97 + 15
----
128

query I rowsort
SELECT + 98 * 43 AS col0
----
4214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT NULLIF ( 47, - CAST( NULL AS SIGNED ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8847
SELECT NULLIF ( 47, - CAST ( NULL AS INTEGER ) ) AS col1
----
47

query I rowsort
SELECT + + 17 AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8849
SELECT ALL - 64 * 84 * - NULLIF ( - - 36, + MIN( DISTINCT 5 ) ) + - + 19 AS col2, 91 col0
----
193517
91

skipif mysql # not compatible
query II rowsort label-8849
SELECT ALL - 64 * 84 * - NULLIF ( - - 36, + MIN ( DISTINCT 5 ) ) + - + 19 AS col2, 91 col0
----
193517
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT - 28 * + - COUNT( * ) + + 43 + - + 95 + - 25 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT - 28 * + - COUNT ( * ) + + 43 + - + 95 + - 25 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT + NULLIF ( + + COUNT( ALL + 16 ), - COUNT( * ) ) * + 15
----
15

skipif mysql # not compatible
query I rowsort label-8851
SELECT + NULLIF ( + + COUNT ( ALL + 16 ), - COUNT ( * ) ) * + 15
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT + 67 DIV + 88 * + 72 + + 41 + - 6 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8852
SELECT + 67 / + 88 * + 72 + + 41 + - 6 AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8853
SELECT - 88 + COALESCE ( + 90, - CAST( NULL AS SIGNED ) ) * + 81 DIV - COUNT( * ) AS col2
----
-7378

skipif mysql # not compatible
query I rowsort label-8853
SELECT - 88 + COALESCE ( + 90, - CAST ( NULL AS INTEGER ) ) * + 81 / - COUNT ( * ) AS col2
----
-7378

query I rowsort
SELECT ALL + + 10 AS col2
----
10

query I rowsort
SELECT DISTINCT + - 38 * + 19 - + - 70 AS col1
----
-652

query I rowsort
SELECT ALL + + 93 col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8857
SELECT CASE + + MAX( + 35 ) WHEN 36 + + 83 * + 58 * + 26 THEN NULL WHEN - 74 THEN NULL ELSE - 16 * - SUM( + 21 ) / - CAST( NULL AS SIGNED ) + + 14 END, 28 AS col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-8857
SELECT CASE + + MAX ( + 35 ) WHEN 36 + + 83 * + 58 * + 26 THEN NULL WHEN - 74 THEN NULL ELSE - 16 * - SUM ( + 21 ) / - CAST ( NULL AS INTEGER ) + + 14 END, 28 AS col0
----
NULL
28

onlyif mysql # DIV for integer division: 
query II rowsort label-8858
SELECT ALL - 18 DIV - 82 AS col2, + COALESCE ( + - 73, 13 ) AS col1
----
0
-73

skipif mysql # not compatible
query II rowsort label-8858
SELECT ALL - 18 / - 82 AS col2, + COALESCE ( + - 73, 13 ) AS col1
----
0
-73

query II rowsort
SELECT - 34 + + 33 AS col1, + 40 AS col0
----
-1
40

query I rowsort
SELECT + 74 * + 73 + - 98
----
5304

query I rowsort
SELECT DISTINCT + + ( 77 ) AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8862
SELECT - 56 * + 70 + + - 56 * CASE + 68 WHEN + - 36 THEN NULL ELSE - + 18 + - 67 END - + 59 DIV + + 62 + + 89 AS col0
----
929

skipif mysql # not compatible
query I rowsort label-8862
SELECT - 56 * + 70 + + - 56 * CASE + 68 WHEN + - 36 THEN NULL ELSE - + 18 + - 67 END - + 59 / + + 62 + + 89 AS col0
----
929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8863
SELECT ALL + NULLIF ( CAST( 36 AS SIGNED ), COALESCE ( + 1, - + ( + + COUNT( * ) ) * 54 + - 7 + - 13 + 82 * - 90, + + ( 25 ) ) * + 75 + + + 32 )
----
36

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL + NULLIF ( CAST ( 36 AS INTEGER ), COALESCE ( + 1, - + ( + + COUNT ( * ) ) * 54 + - 7 + - 13 + 82 * - 90, + + ( 25 ) ) * + 75 + + + 32 )
----
36

query I rowsort
SELECT - 53 * + 76 - + 57 * 85 AS col2
----
-8873

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL + MAX( DISTINCT 49 )
----
49

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL + MAX ( DISTINCT 49 )
----
49

query I rowsort
SELECT DISTINCT - ( - 96 ) * - 78 + - 24 AS col1
----
-7512

query I rowsort
SELECT - 12 * + - 42
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL CASE + 33 WHEN + SUM( DISTINCT + + 98 ) THEN - NULLIF ( - 48, - 42 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL CASE + 33 WHEN + SUM ( DISTINCT + + 98 ) THEN - NULLIF ( - 48, - 42 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8869
SELECT DISTINCT - 1 + - COUNT( * ) * + - 14 DIV - + 6
----
-3

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT - 1 + - COUNT ( * ) * + - 14 / - + 6
----
-3

query I rowsort
SELECT - 58 + + - 34 * 48
----
-1690

onlyif mysql # aggregate syntax: 
query II rowsort label-8871
SELECT - 76 * - ( - COUNT( * ) ), 98 AS col2
----
-76
98

skipif mysql # not compatible
query II rowsort label-8871
SELECT - 76 * - ( - COUNT ( * ) ), 98 AS col2
----
-76
98

query I rowsort
SELECT + 82 * 83
----
6806

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT DISTINCT 5 * + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT 5 * + + COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT + CAST( NULL AS SIGNED ) + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT + CAST ( NULL AS INTEGER ) + - 75
----
NULL

query I rowsort
SELECT ALL ( + 94 ) col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8876
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + 23 / - + 71 * ( - - 32 ) * + 30 * - + SUM( CAST( NULL AS DECIMAL ) ) * - + 29 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + 23 / - + 71 * ( - - 32 ) * + 30 * - + SUM ( CAST ( NULL AS REAL ) ) * - + 29 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8877
SELECT DISTINCT 63 + COUNT( * ) - COUNT( * ), + 50 AS col2
----
63
50

skipif mysql # not compatible
query II rowsort label-8877
SELECT DISTINCT 63 + COUNT ( * ) - COUNT ( * ), + 50 AS col2
----
63
50

query I rowsort
SELECT - 86 + + 1 AS col1
----
-85

query II rowsort
SELECT DISTINCT 9, 9
----
9
9

query I rowsort
SELECT + 89 + ( + 26 ) AS col1
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8881
SELECT + SUM( - COALESCE ( - 66, + 6 ) ) DIV - - 20 * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-8881
SELECT + SUM ( - COALESCE ( - 66, + 6 ) ) / - - 20 * COUNT ( * )
----
3

query I rowsort
SELECT ALL - 82 - - 44 + ( 18 ) AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT 77 DIV 12 - - - 19 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8883
SELECT 77 / 12 - - - 19 AS col0
----
-13

query II rowsort
SELECT DISTINCT + + 81 AS col0, 50 AS col0
----
81
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8885
SELECT ALL + NULLIF ( 81, - 95 / CAST( COUNT( * ) AS SIGNED ) + 83 ) * - - ( + ( - COUNT( * ) ) ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL + NULLIF ( 81, - 95 / CAST ( COUNT ( * ) AS INTEGER ) + 83 ) * - - ( + ( - COUNT ( * ) ) ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT DISTINCT COUNT( - 19 ) * - 79 + - 3 - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT COUNT ( - 19 ) * - 79 + - 3 - COUNT ( * )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8887
SELECT COUNT( * ) * 77 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8887
SELECT COUNT ( * ) * 77 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8888
SELECT ALL - - 95 DIV - 8 - + 7 * - + 64 AS col0
----
437

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - - 95 / - 8 - + 7 * - + 64 AS col0
----
437

query I rowsort
SELECT ALL + + ( - 70 )
----
-70

query I rowsort
SELECT ALL + - ( + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-8891
SELECT COUNT( * ), NULLIF ( - + 59, 55 + + COUNT( * ) + + COUNT( * ) ) AS col0
----
1
-59

skipif mysql # not compatible
query II rowsort label-8891
SELECT COUNT ( * ), NULLIF ( - + 59, 55 + + COUNT ( * ) + + COUNT ( * ) ) AS col0
----
1
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT + COUNT( * ) + - + 74 * - SUM( ALL 8 ) AS col1
----
593

skipif mysql # not compatible
query I rowsort label-8892
SELECT + COUNT ( * ) + - + 74 * - SUM ( ALL 8 ) AS col1
----
593

query I rowsort
SELECT - 74 - + 70 col0
----
-144

query I rowsort
SELECT ALL + 56 * 15
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT + + 50 * ( - COUNT( * ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8895
SELECT + + 50 * ( - COUNT ( * ) ) AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8896
SELECT - 68 * - 45 * + 60 - - 50 + 77 DIV COALESCE ( + 94, + 15 ) + 19 + + 37 AS col1
----
183706

skipif mysql # not compatible
query I rowsort label-8896
SELECT - 68 * - 45 * + 60 - - 50 + 77 / COALESCE ( + 94, + 15 ) + 19 + + 37 AS col1
----
183706

query I rowsort
SELECT + ( + - 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8898
SELECT - 72 * + COALESCE ( NULLIF ( + 9, + - CASE - 39 WHEN - - ( COUNT( * ) ) THEN NULL ELSE 88 END * 63 + - 87 ), - ( + 5 ) ) + - 96 AS col0, 39 * - CAST( NULL AS SIGNED ) AS col1
----
-744
NULL

skipif mysql # not compatible
query II rowsort label-8898
SELECT - 72 * + COALESCE ( NULLIF ( + 9, + - CASE - 39 WHEN - - ( COUNT ( * ) ) THEN NULL ELSE 88 END * 63 + - 87 ), - ( + 5 ) ) + - 96 AS col0, 39 * - CAST ( NULL AS INTEGER ) AS col1
----
-744
NULL

query I rowsort
SELECT + - 26 + + - 95 + + 25
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT DISTINCT + MAX( DISTINCT + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT + MAX ( DISTINCT + 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT - + CASE - CASE + AVG ( DISTINCT - + 57 ) WHEN - COUNT( * ) THEN + - 75 + - COUNT( * ) + - 38 + - 34 - + + 88 * + SUM( ALL 70 ) * - - 81 + + COUNT( * ) WHEN - - 0 THEN 18 ELSE NULL END WHEN + 18 * - 35 * COUNT( - 77 ) THEN - COUNT( * ) + - - COUNT( * ) ELSE NULL END + - ( - COUNT( * ) ) - - ( + + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT - + CASE - CASE + AVG ( DISTINCT - + 57 ) WHEN - COUNT ( * ) THEN + - 75 + - COUNT ( * ) + - 38 + - 34 - + + 88 * + SUM ( ALL 70 ) * - - 81 + + COUNT ( * ) WHEN - - 0 THEN 18 ELSE NULL END WHEN + 18 * - 35 * COUNT ( - 77 ) THEN - COUNT ( * ) + - - COUNT ( * ) ELSE NULL END + - ( - COUNT ( * ) ) - - ( + + 15 )
----
NULL

query I rowsort
SELECT ALL + 60 * - 2
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8903
SELECT - COUNT( * ) DIV 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT - COUNT ( * ) / 36 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8904
SELECT DISTINCT + 79 DIV + ( + + COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT + 79 / + ( + + COUNT ( * ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + MAX( - + 43 ) * + 69 AS col0
----
-2967

skipif mysql # not compatible
query I rowsort label-8905
SELECT + MAX ( - + 43 ) * + 69 AS col0
----
-2967

query I rowsort
SELECT - ( 28 ) + 10 AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8907
SELECT ALL + 61 * 38 * - CASE 68 WHEN + 92 THEN 7 ELSE - CAST( NULL AS SIGNED ) + - ( + 21 ) - 3 * + 47 END * + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL + 61 * 38 * - CASE 68 WHEN + 92 THEN 7 ELSE - CAST ( NULL AS INTEGER ) + - ( + 21 ) - 3 * + 47 END * + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + MAX( ALL - ( - 75 ) ) + + 22 - - - 9 * 93
----
-740

skipif mysql # not compatible
query I rowsort label-8908
SELECT + MAX ( ALL - ( - 75 ) ) + + 22 - - - 9 * 93
----
-740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8909
SELECT - ( COUNT( * ) ) * - - COUNT( * ) * + + 79, CAST( + + CAST( 57 AS SIGNED ) AS SIGNED ) - - 57 AS col2
----
-79
114

skipif mysql # not compatible
query II rowsort label-8909
SELECT - ( COUNT ( * ) ) * - - COUNT ( * ) * + + 79, CAST ( + + CAST ( 57 AS INTEGER ) AS INTEGER ) - - 57 AS col2
----
-79
114

query II rowsort
SELECT - 41 + + 90, - 87 * 65 AS col1
----
49
-5655

query I rowsort
SELECT DISTINCT + 43 * + 55 * - + 95
----
-224675

query I rowsort
SELECT ALL + 34 + 43
----
77

query I rowsort
SELECT 87 + - COALESCE ( 41, + 71 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL - 89 + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL - 89 + - COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT COUNT( ALL 7 ) + - 92
----
-91

skipif mysql # not compatible
query I rowsort label-8915
SELECT COUNT ( ALL 7 ) + - 92
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL ( + 14 ) + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL ( + 14 ) + - COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT 22 + - MIN( DISTINCT - 10 )
----
32

skipif mysql # not compatible
query I rowsort label-8917
SELECT 22 + - MIN ( DISTINCT - 10 )
----
32

query II rowsort
SELECT - ( + + 44 ), - 61 AS col1
----
-44
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8919
SELECT ALL + 12 * + - 35 AS col0, CAST( NULL AS SIGNED )
----
-420
NULL

skipif mysql # not compatible
query II rowsort label-8919
SELECT ALL + 12 * + - 35 AS col0, CAST ( NULL AS INTEGER )
----
-420
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8920
SELECT - CASE + 67 WHEN - 30 * - CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN + - CASE + - 33 WHEN 71 THEN 81 * - - 94 + - 68 + + 87 ELSE NULL END DIV 61 + + AVG ( - 16 ) THEN 11 ELSE NULL END + + 43 + + + 40 + 14 AS col1, 95 + - - 62 DIV 29 * + - 57 AS col0
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-8920
SELECT - CASE + 67 WHEN - 30 * - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN + - CASE + - 33 WHEN 71 THEN 81 * - - 94 + - 68 + + 87 ELSE NULL END / 61 + + AVG ( - 16 ) THEN 11 ELSE NULL END + + 43 + + + 40 + 14 AS col1, 95 + - - 62 / 29 * + - 57 AS col0
----
NULL
-19

query I rowsort
SELECT 10 + - 74
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + 13 * - COUNT( * ) + + - 76 * 98
----
-7461

skipif mysql # not compatible
query I rowsort label-8922
SELECT + 13 * - COUNT ( * ) + + - 76 * 98
----
-7461

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT + + 49 * + + 42 - + COUNT( * ) + - - 91 AS col0
----
2148

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT + + 49 * + + 42 - + COUNT ( * ) + - - 91 AS col0
----
2148

query I rowsort
SELECT DISTINCT - + ( + - 30 )
----
30

query I rowsort
SELECT ALL - + 28 col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8926
SELECT - 20 DIV 84 + 98
----
98

skipif mysql # not compatible
query I rowsort label-8926
SELECT - 20 / 84 + 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT + 11 * COUNT( * ) * - 87 * + 65
----
-62205

skipif mysql # not compatible
query I rowsort label-8927
SELECT + 11 * COUNT ( * ) * - 87 * + 65
----
-62205

query I rowsort
SELECT 28 * + 75 AS col2
----
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT ALL - 35 DIV 11 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL - 35 / 11 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL - COALESCE ( + - CAST( - + 61 AS SIGNED ), + MAX( 37 ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL - COALESCE ( + - CAST ( - + 61 AS INTEGER ), + MAX ( 37 ) ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-8931
SELECT ALL 78 * 57, - 74 * COUNT( * ) AS col0
----
4446
-74

skipif mysql # not compatible
query II rowsort label-8931
SELECT ALL 78 * 57, - 74 * COUNT ( * ) AS col0
----
4446
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL 82 + + 73 * COUNT( * ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL 82 + + 73 * COUNT ( * ) AS col0
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT 51 * + + CAST( NULL AS SIGNED ) * COALESCE ( - 17, - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT 51 * + + CAST ( NULL AS INTEGER ) * COALESCE ( - 17, - 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL 94 * + 89 * - COUNT( * ) AS col1
----
-8366

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL 94 * + 89 * - COUNT ( * ) AS col1
----
-8366

query I rowsort
SELECT 1 * + 63 + + 39 col2
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8936
SELECT + 15 AS col1, + 26 * + 54 DIV + COUNT( * ) AS col1
----
15
1404

skipif mysql # not compatible
query II rowsort label-8936
SELECT + 15 AS col1, + 26 * + 54 / + COUNT ( * ) AS col1
----
15
1404

query II rowsort
SELECT + 17 col2, - 51 AS col2
----
17
-51

query I rowsort
SELECT 91 * 74 col2
----
6734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8939
SELECT ALL 23 + - - 97 + 84 + 44 + ( + MAX( DISTINCT + 6 ) ) - - + 94 - + - COUNT( * ) + - - ( - + CAST( - + SUM( DISTINCT 71 ) AS SIGNED ) ) + + 21 DIV - ( - - 51 )
----
420

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL 23 + - - 97 + 84 + 44 + ( + MAX ( DISTINCT + 6 ) ) - - + 94 - + - COUNT ( * ) + - - ( - + CAST ( - + SUM ( DISTINCT 71 ) AS INTEGER ) ) + + 21 / - ( - - 51 )
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT DISTINCT 93 + - 73 - - + 1 * SUM( ALL + 67 ) * + 14
----
958

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT 93 + - 73 - - + 1 * SUM ( ALL + 67 ) * + 14
----
958

onlyif mysql # DIV for integer division: 
query I rowsort label-8941
SELECT ALL + 30 DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL + 30 / 62 AS col1
----
0

query I rowsort
SELECT DISTINCT 28 + + + 81 AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT ALL 87 + - COUNT( 24 ) + + - 89 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL 87 + - COUNT ( 24 ) + + - 89 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT DISTINCT + COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * )
----
1

query I rowsort
SELECT ( - - 59 ) + - 37 * + 54 * + + 71 AS col0
----
-141799

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT 6 * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8946
SELECT 6 * + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8947
SELECT ALL MAX( DISTINCT 50 ) DIV 89 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL MAX ( DISTINCT 50 ) / 89 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT COUNT( * ) * - 25 + + 26 * - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-8948
SELECT COUNT ( * ) * - 25 + + 26 * - COUNT ( * )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT DISTINCT + 12 * 10 DIV + 73
----
1

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT + 12 * 10 / + 73
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8950
SELECT ALL + CASE - + CAST( - 62 AS DECIMAL ) WHEN + ( + COUNT( * ) ) THEN NULL WHEN - + 80 + + 27 + - 24 THEN NULL WHEN - 21 * 91 THEN NULL ELSE + + ( + ( 46 ) ) + + 93 + - 33 END - ( + 21 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + CASE - + CAST ( - 62 AS REAL ) WHEN + ( + COUNT ( * ) ) THEN NULL WHEN - + 80 + + 27 + - 24 THEN NULL WHEN - 21 * 91 THEN NULL ELSE + + ( + ( 46 ) ) + + 93 + - 33 END - ( + 21 ) AS col1
----
85

query I rowsort
SELECT 96 * + 92 AS col1
----
8832

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT 3 DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8952
SELECT 3 / + 60 AS col0
----
0

query I rowsort
SELECT DISTINCT + 13 * 47
----
611

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8954
SELECT 94 + - + ( 79 ) - - ( + 97 ), + 94 * - - 42 - CASE - 68 WHEN + + 97 - - + 25 THEN ( - 97 ) ELSE NULL END + - CAST( NULL AS SIGNED ) + - 11 + - - 86 + - 22 * - + 86 * 21 * 35 AS col0
----
112
NULL

skipif mysql # not compatible
query II rowsort label-8954
SELECT 94 + - + ( 79 ) - - ( + 97 ), + 94 * - - 42 - CASE - 68 WHEN + + 97 - - + 25 THEN ( - 97 ) ELSE NULL END + - CAST ( NULL AS INTEGER ) + - 11 + - - 86 + - 22 * - + 86 * 21 * 35 AS col0
----
112
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8955
SELECT ALL - SUM( 26 ) / - CAST( NULL AS SIGNED ) * NULLIF ( + 34, - + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - SUM ( 26 ) / - CAST ( NULL AS INTEGER ) * NULLIF ( + 34, - + 58 )
----
NULL

query I rowsort
SELECT 25 * 20 * - - 61 + 26 + + + 14 * - 12 * - 97 * + 20
----
356446

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8957
SELECT ALL + + 97 - - 49 + - - 78 * + ( + 50 ) DIV + NULLIF ( - COUNT( * ), - 72 ) AS col0
----
-3754

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL + + 97 - - 49 + - - 78 * + ( + 50 ) / + NULLIF ( - COUNT ( * ), - 72 ) AS col0
----
-3754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8958
SELECT - + CASE - - CAST( + COUNT( * ) AS SIGNED ) WHEN - 11 THEN + MIN( 86 ) * ( + 89 ) WHEN 34 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT - + CASE - - CAST ( + COUNT ( * ) AS INTEGER ) WHEN - 11 THEN + MIN ( 86 ) * ( + 89 ) WHEN 34 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT CAST( - NULLIF ( + + 12, - 23 ) AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-8959
SELECT CAST ( - NULLIF ( + + 12, - 23 ) AS INTEGER )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT - 9 + - NULLIF ( - - 58, + CAST( NULL AS SIGNED ) * + 48 - 1 ) * 19 AS col2
----
-1111

skipif mysql # not compatible
query I rowsort label-8960
SELECT - 9 + - NULLIF ( - - 58, + CAST ( NULL AS INTEGER ) * + 48 - 1 ) * 19 AS col2
----
-1111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8961
SELECT DISTINCT + - AVG ( ALL CAST( NULL AS SIGNED ) ) * - COALESCE ( + COUNT( DISTINCT 56 ), - - 11 ) + - 47 * - + 25 * - 74 / + ( - - 13 ) * 44 + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT + - AVG ( ALL CAST ( NULL AS INTEGER ) ) * - COALESCE ( + COUNT ( DISTINCT 56 ), - - 11 ) + - 47 * - + 25 * - 74 / + ( - - 13 ) * 44 + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL + 70 * 99 - - 16 + - ( - 11 ) + + 22 - - COUNT( * ) * + - 95
----
6884

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL + 70 * 99 - - 16 + - ( - 11 ) + + 22 - - COUNT ( * ) * + - 95
----
6884

query I rowsort
SELECT - 1 * 75 + - 81 + + 54 * + 80 AS col2
----
4164

query I rowsort
SELECT ALL - 56 * - 42 + ( 51 )
----
2403

query I rowsort
SELECT DISTINCT + 45 * + 97 col1
----
4365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8966
SELECT COUNT( * ) DIV + 55 + - - 15 + + 40
----
55

skipif mysql # not compatible
query I rowsort label-8966
SELECT COUNT ( * ) / + 55 + - - 15 + + 40
----
55

query I rowsort
SELECT + + ( + - NULLIF ( - 2, + 29 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT SUM( 45 ) - - - 82 + - COALESCE ( - + 34, + MAX( ALL - 25 ), COUNT( * ) * + 90 )
----
-3

skipif mysql # not compatible
query I rowsort label-8968
SELECT SUM ( 45 ) - - - 82 + - COALESCE ( - + 34, + MAX ( ALL - 25 ), COUNT ( * ) * + 90 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8969
SELECT - 3 * ( - 59 ) + - 85 / 17 + - - SUM( + - 89 ) + + ( + 38 ) * MAX( + CAST( NULL AS SIGNED ) ) * - 8 / 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT - 3 * ( - 59 ) + - 85 / 17 + - - SUM ( + - 89 ) + + ( + 38 ) * MAX ( + CAST ( NULL AS INTEGER ) ) * - 8 / 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8970
SELECT + 27 DIV - - 27 + + NULLIF ( 96, + - COUNT( * ) + 49 ) * + 44 AS col1
----
4225

skipif mysql # not compatible
query I rowsort label-8970
SELECT + 27 / - - 27 + + NULLIF ( 96, + - COUNT ( * ) + 49 ) * + 44 AS col1
----
4225

query II rowsort
SELECT ALL + 42, + 83 + - 52 AS col2
----
42
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8972
SELECT ALL CASE CAST( - 89 AS SIGNED ) WHEN + 28 - ( - 39 ) + - ( COUNT( * ) ) + - - CAST( 83 AS DECIMAL ) THEN AVG ( - + ( - 57 ) ) * + COALESCE ( + + ( + 73 ), + - 68, - CASE 17 WHEN + + ( + 38 ) * + ( - - 60 ) THEN - 67 END ) * - 58 END * + + 26 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL CASE CAST ( - 89 AS INTEGER ) WHEN + 28 - ( - 39 ) + - ( COUNT ( * ) ) + - - CAST ( 83 AS REAL ) THEN AVG ( - + ( - 57 ) ) * + COALESCE ( + + ( + 73 ), + - 68, - CASE 17 WHEN + + ( + 38 ) * + ( - - 60 ) THEN - 67 END ) * - 58 END * + + 26 + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT + 40 * - - CASE 23 WHEN - 57 + - 95 THEN - 38 + + - COUNT( * ) + + - 96 + + 7 + 37 * + 97 * - 40 WHEN + 79 THEN - 55 + + 5 ELSE NULL END + SUM( ALL - + 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT + 40 * - - CASE 23 WHEN - 57 + - 95 THEN - 38 + + - COUNT ( * ) + + - 96 + + 7 + 37 * + 97 * - 40 WHEN + 79 THEN - 55 + + 5 ELSE NULL END + SUM ( ALL - + 97 ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - 32 ) * 38 * - 66 + - - 97 - + 41 * - + 25
----
81378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8975
SELECT DISTINCT 46 * + CAST( + 90 AS SIGNED )
----
4140

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT 46 * + CAST ( + 90 AS INTEGER )
----
4140

query I rowsort
SELECT + NULLIF ( - - 49, - - 26 * + 97 * + + 62 * + 63 ) AS col1
----
49

query I rowsort
SELECT ALL + 42 col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT + SUM( - + 99 ) + 76 * + COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8978
SELECT + SUM ( - + 99 ) + 76 * + COUNT ( * ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT + CAST( NULL AS SIGNED ) * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT + CAST ( NULL AS INTEGER ) * + 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8980
SELECT DISTINCT CASE + - 20 WHEN + CAST( NULL AS SIGNED ) THEN + COUNT( * ) WHEN - COALESCE ( 3, + 94, - 20 * - - MIN( - - 65 ) ) THEN + 79 + - + 67 END * ( + 32 ) * + + 49 * - 58 + - ( + 26 ) - - 97 - - + 47 + + + 75 * - - 48 + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT CASE + - 20 WHEN + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) WHEN - COALESCE ( 3, + 94, - 20 * - - MIN ( - - 65 ) ) THEN + 79 + - + 67 END * ( + 32 ) * + + 49 * - 58 + - ( + 26 ) - - 97 - - + 47 + + + 75 * - - 48 + + 84
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8981
SELECT - COUNT( * ) AS col0, - 50 AS col2
----
-1
-50

skipif mysql # not compatible
query II rowsort label-8981
SELECT - COUNT ( * ) AS col0, - 50 AS col2
----
-1
-50

query II rowsort
SELECT ALL 0 AS col0, 45
----
0
45

query I rowsort
SELECT + 15 * - 62 col2
----
-930

query II rowsort
SELECT DISTINCT 16 AS col0, - 55
----
16
-55

query II rowsort
SELECT DISTINCT 39 col2, + 39 AS col0
----
39
39

query I rowsort
SELECT + + 71 - - 52
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT - + CAST( - - 99 AS SIGNED ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-8987
SELECT - + CAST ( - - 99 AS INTEGER ) AS col0
----
-99

query I rowsort
SELECT + 71 * - 48 * + 14 + 44
----
-47668

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT - COUNT( DISTINCT 85 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8989
SELECT - COUNT ( DISTINCT 85 ) AS col2
----
-1

query I rowsort
SELECT ALL - + 57 + + - 13 + + - 99 * 37 AS col0
----
-3733

query II rowsort
SELECT - - 13 * - 85 AS col1, - 99 AS col0
----
-1105
-99

query I rowsort
SELECT ALL + 44 + ( + 40 ) + + 67
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-8993
SELECT ALL + + 44 + + 50 AS col2, - 94 * + 17 * COUNT( * ) AS col2
----
94
-1598

skipif mysql # not compatible
query II rowsort label-8993
SELECT ALL + + 44 + + 50 AS col2, - 94 * + 17 * COUNT ( * ) AS col2
----
94
-1598

onlyif mysql # aggregate syntax: 
query II rowsort label-8994
SELECT DISTINCT 96 AS col0, - MIN( + 81 )
----
96
-81

skipif mysql # not compatible
query II rowsort label-8994
SELECT DISTINCT 96 AS col0, - MIN ( + 81 )
----
96
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - SUM( - + 26 ) * - 76 - - + 42 + COUNT( * ) + + COUNT( * )
----
-1932

skipif mysql # not compatible
query I rowsort label-8995
SELECT - SUM ( - + 26 ) * - 76 - - + 42 + COUNT ( * ) + + COUNT ( * )
----
-1932

query I rowsort
SELECT ( + ( - 93 ) )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8997
SELECT + COUNT( ALL 13 ) AS col1, + 72 + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8997
SELECT + COUNT ( ALL 13 ) AS col1, + 72 + CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8998
SELECT ( + 44 ) col1, CASE 11 WHEN + MIN( - 58 ) THEN NULL ELSE + + 5 DIV 65 DIV + 13 DIV + 9 END AS col2
----
44
0

skipif mysql # not compatible
query II rowsort label-8998
SELECT ( + 44 ) col1, CASE 11 WHEN + MIN ( - 58 ) THEN NULL ELSE + + 5 / 65 / + 13 / + 9 END AS col2
----
44
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - 29 * COUNT( + 65 )
----
-29

skipif mysql # not compatible
query I rowsort label-8999
SELECT - 29 * COUNT ( + 65 )
----
-29

query I rowsort
SELECT ALL - 29 * - 64 AS col0
----
1856

query I rowsort
SELECT ALL + ( + 4 ) AS col0
----
4

query I rowsort
SELECT ALL 73 * + 30 * - + 42 + 8 - + - 98 * + - 49
----
-96774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT ( - CAST( - 95 AS SIGNED ) ) col0
----
95

skipif mysql # not compatible
query I rowsort label-9003
SELECT ( - CAST ( - 95 AS INTEGER ) ) col0
----
95

query I rowsort
SELECT DISTINCT + NULLIF ( - ( 92 ), 56 ) AS col0
----
-92

query I rowsort
SELECT ALL - 30 * - 95 col0
----
2850

onlyif mysql # DIV for integer division: 
query II rowsort label-9006
SELECT + 52 DIV + 98, + 93 AS col0
----
0
93

skipif mysql # not compatible
query II rowsort label-9006
SELECT + 52 / + 98, + 93 AS col0
----
0
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - SUM( - 88 ) * 42
----
3696

skipif mysql # not compatible
query I rowsort label-9007
SELECT - SUM ( - 88 ) * 42
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT + 69 + - COUNT( * ) - + COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9008
SELECT + 69 + - COUNT ( * ) - + COUNT ( * ) AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT - 16 DIV 66 * - + ( 32 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9009
SELECT - 16 / 66 * - + ( 32 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT ALL COUNT( * ) DIV + + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL COUNT ( * ) / + + 26 AS col0
----
0

query II rowsort
SELECT + NULLIF ( - 60, - 0 ) AS col1, + 30 AS col0
----
-60
30

query I rowsort
SELECT + 68 + + ( + - 73 ) - 38 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL SUM( + 58 ) * + 33 + - 72 AS col1
----
1842

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL SUM ( + 58 ) * + 33 + - 72 AS col1
----
1842

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT - COUNT( * ) * + 26 * + 58 AS col1
----
-1508

skipif mysql # not compatible
query I rowsort label-9014
SELECT - COUNT ( * ) * + 26 * + 58 AS col1
----
-1508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9015
SELECT - - 70 * CASE + 40 WHEN 39 THEN CAST( - + ( + 67 ) AS SIGNED ) DIV - 61 + - COUNT( * ) WHEN - 94 + - 38 - + COUNT( * ) THEN - 39 - + 0 + - COUNT( * ) * 46 ELSE + CAST( - ( - MIN( DISTINCT + 67 ) ) AS SIGNED ) END + - - 81 + + COUNT( * ) + 20
----
4792

skipif mysql # not compatible
query I rowsort label-9015
SELECT - - 70 * CASE + 40 WHEN 39 THEN CAST ( - + ( + 67 ) AS INTEGER ) / - 61 + - COUNT ( * ) WHEN - 94 + - 38 - + COUNT ( * ) THEN - 39 - + 0 + - COUNT ( * ) * 46 ELSE + CAST ( - ( - MIN ( DISTINCT + 67 ) ) AS INTEGER ) END + - - 81 + + COUNT ( * ) + 20
----
4792

query II rowsort
SELECT + 16 - 70, 53 AS col1
----
-54
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT + + COUNT( * ) * + COUNT( * ) * - 52 * - 23 * 24 col2
----
28704

skipif mysql # not compatible
query I rowsort label-9017
SELECT + + COUNT ( * ) * + COUNT ( * ) * - 52 * - 23 * 24 col2
----
28704

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL - 48 + - ( 97 ) - + MAX( + 93 )
----
-238

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - 48 + - ( 97 ) - + MAX ( + 93 )
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT COALESCE ( - 44, - 34 * - - MIN( DISTINCT 10 ) ) + 65
----
21

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT COALESCE ( - 44, - 34 * - - MIN ( DISTINCT 10 ) ) + 65
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT + + 84 + + MIN( 63 ) * - + 56 AS col2
----
-3444

skipif mysql # not compatible
query I rowsort label-9020
SELECT + + 84 + + MIN ( 63 ) * - + 56 AS col2
----
-3444

query II rowsort
SELECT + - 67 * 87 AS col1, + 87 AS col0
----
-5829
87

query I rowsort
SELECT ALL - 56 + - 68 AS col0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL + MIN( ALL + 56 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL + MIN ( ALL + 56 ) col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT + COUNT( * ) - 25
----
-24

skipif mysql # not compatible
query I rowsort label-9024
SELECT + COUNT ( * ) - 25
----
-24

query I rowsort
SELECT + 71 + - ( + - 16 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL + 96 + 67 - COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL + 96 + 67 - COUNT ( * )
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9027
SELECT 7 * - - NULLIF ( + CAST( NULL AS SIGNED ), + 74 + 44 - - 74 / + 48 * + AVG ( + + 23 ) + + - COUNT( * ) + + 87 + - 25 * 20 * ( COUNT( ALL 5 ) ) / + 61 * + CAST( + 43 AS DECIMAL ) + 30 ) + - COUNT( * ) - - - 60 * - 81 * 20 - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT 7 * - - NULLIF ( + CAST ( NULL AS INTEGER ), + 74 + 44 - - 74 / + 48 * + AVG ( + + 23 ) + + - COUNT ( * ) + + 87 + - 25 * 20 * ( COUNT ( ALL 5 ) ) / + 61 * + CAST ( + 43 AS REAL ) + 30 ) + - COUNT ( * ) - - - 60 * - 81 * 20 - 99
----
NULL

query I rowsort
SELECT ALL 12 - 90 + - 64
----
-142

query I rowsort
SELECT DISTINCT 71 * - 59 * + + 56 * - 72 * - 2
----
-33780096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9030
SELECT 97 * 69 DIV + - COUNT( * ) AS col0
----
-6693

skipif mysql # not compatible
query I rowsort label-9030
SELECT 97 * 69 / + - COUNT ( * ) AS col0
----
-6693

onlyif mysql # aggregate syntax: 
query II rowsort label-9031
SELECT DISTINCT - COUNT( * ), - NULLIF ( - - 85, + - 28 * - 69 ) AS col1
----
-1
-85

skipif mysql # not compatible
query II rowsort label-9031
SELECT DISTINCT - COUNT ( * ), - NULLIF ( - - 85, + - 28 * - 69 ) AS col1
----
-1
-85

query I rowsort
SELECT 71 + + 11
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-9033
SELECT 6 * + SUM( + + 2 ) AS col0, - 72 AS col1
----
12
-72

skipif mysql # not compatible
query II rowsort label-9033
SELECT 6 * + SUM ( + + 2 ) AS col0, - 72 AS col1
----
12
-72

query I rowsort
SELECT 96 * 67 AS col0
----
6432

query I rowsort
SELECT 6 + - + 73
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT ALL - CAST( + 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - CAST ( + 34 AS INTEGER ) AS col2
----
-34

query I rowsort
SELECT 15 + 45 + + 70 - + 3 * - 51
----
283

query I rowsort
SELECT DISTINCT - ( - + 56 )
----
56

query II rowsort
SELECT + 0, 38 + 67 AS col1
----
0
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT 12 + - - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9040
SELECT 12 + - - COUNT ( * )
----
13

query I rowsort
SELECT DISTINCT + + 40 + 38 * 18 * 78 + - 87 + + 26 + + - 55 + 79 * 51 * 64 + + 77
----
311209

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT SUM( ALL NULLIF ( 48, 2 + 81 ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9042
SELECT SUM ( ALL NULLIF ( 48, 2 + 81 ) ) AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9043
SELECT ALL + CAST( - 55 AS SIGNED ) + + 93, 47 AS col1
----
38
47

skipif mysql # not compatible
query II rowsort label-9043
SELECT ALL + CAST ( - 55 AS INTEGER ) + + 93, 47 AS col1
----
38
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT 33 + + + ( + - ( + ( - 62 ) ) ) + - - 11 + + ( - - 37 ) * CASE - 8 WHEN COUNT( * ) THEN + + 55 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT 33 + + + ( + - ( + ( - 62 ) ) ) + - - 11 + + ( - - 37 ) * CASE - 8 WHEN COUNT ( * ) THEN + + 55 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 48 + - 21
----
27

query I rowsort
SELECT DISTINCT ( - 4 )
----
-4

query I rowsort
SELECT ALL 28 + - 3 * - ( - + 41 ) AS col0
----
-95

query I rowsort
SELECT ALL 33 * 35 AS col1
----
1155

query I rowsort
SELECT DISTINCT + 58 + - 87
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT - COUNT( * ) - + + 44 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9050
SELECT - COUNT ( * ) - + + 44 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT CASE COALESCE ( + 37, 44 ) WHEN COUNT( * ) THEN NULL ELSE + 15 END AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9051
SELECT CASE COALESCE ( + 37, 44 ) WHEN COUNT ( * ) THEN NULL ELSE + 15 END AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + COALESCE ( + MAX( DISTINCT + 76 ), + + 52 ) + - COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9052
SELECT + COALESCE ( + MAX ( DISTINCT + 76 ), + + 52 ) + - COUNT ( * ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9053
SELECT 82 * - 35 + - COUNT( * ) AS col1, + 2 + - CAST( + 10 AS SIGNED ) AS col1
----
-2871
-8

skipif mysql # not compatible
query II rowsort label-9053
SELECT 82 * - 35 + - COUNT ( * ) AS col1, + 2 + - CAST ( + 10 AS INTEGER ) AS col1
----
-2871
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT - COUNT( DISTINCT - 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-9054
SELECT - COUNT ( DISTINCT - 31 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9055
SELECT ALL CAST( NULL AS SIGNED ) col1, 56 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-9055
SELECT ALL CAST ( NULL AS INTEGER ) col1, 56 AS col0
----
NULL
56

query I rowsort
SELECT + 96 * - 67
----
-6432

query I rowsort
SELECT DISTINCT + NULLIF ( - 58, + - 57 - - + 21 * + 21 )
----
-58

query I rowsort
SELECT ALL 94 - 16 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT ALL COUNT( - 65 ) * - NULLIF ( - 9, + - 72 + + + 67 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL COUNT ( - 65 ) * - NULLIF ( - 9, + - 72 + + + 67 ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT COALESCE ( 41, - + 49 * - COUNT( * ) ) * + 85 * + + 69 * CAST( 95 AS SIGNED )
----
22844175

skipif mysql # not compatible
query I rowsort label-9060
SELECT COALESCE ( 41, - + 49 * - COUNT ( * ) ) * + 85 * + + 69 * CAST ( 95 AS INTEGER )
----
22844175

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT MAX( ALL - - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9061
SELECT MAX ( ALL - - 96 )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT ( - + 83 ) DIV - 64 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9062
SELECT ( - + 83 ) / - 64 AS col1
----
1

query I rowsort
SELECT ALL 11 * + 76 * - 64
----
-53504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9065
SELECT ALL - CASE COUNT( * ) WHEN 76 + - 58 - + 52 THEN - 82 ELSE - 50 - CAST( NULL AS DECIMAL ) + + + 89 * - - ( - 30 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - CASE COUNT ( * ) WHEN 76 + - 58 - + 52 THEN - 82 ELSE - 50 - CAST ( NULL AS REAL ) + + + 89 * - - ( - 30 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT DISTINCT COALESCE ( 81, 31 * 1 + - 42 + + CAST( 45 AS SIGNED ) + - COUNT( * ) * + - 30 ) + - COALESCE ( 11, + + 41 - COUNT( - CAST( + 79 AS SIGNED ) ) )
----
70

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT COALESCE ( 81, 31 * 1 + - 42 + + CAST ( 45 AS INTEGER ) + - COUNT ( * ) * + - 30 ) + - COALESCE ( 11, + + 41 - COUNT ( - CAST ( + 79 AS INTEGER ) ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT ALL - COUNT( ALL + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL - COUNT ( ALL + 59 )
----
-1

query I rowsort
SELECT ALL ( - 47 ) + + 4 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT NULLIF ( + + COUNT( * ), - 44 ) + + 18 * + 83 AS col0
----
1495

skipif mysql # not compatible
query I rowsort label-9069
SELECT NULLIF ( + + COUNT ( * ), - 44 ) + + 18 * + 83 AS col0
----
1495

onlyif mysql # aggregate syntax: 
query II rowsort label-9070
SELECT ALL - MIN( DISTINCT 82 ) AS col1, 93
----
-82
93

skipif mysql # not compatible
query II rowsort label-9070
SELECT ALL - MIN ( DISTINCT 82 ) AS col1, 93
----
-82
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9071
SELECT + MAX( ALL + 11 ) AS col1, 50 AS col2
----
11
50

skipif mysql # not compatible
query II rowsort label-9071
SELECT + MAX ( ALL + 11 ) AS col1, 50 AS col2
----
11
50

query I rowsort
SELECT 17 - + 72
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT COUNT( * ) * - + 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9073
SELECT COUNT ( * ) * - + 66 AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9074
SELECT ALL - 20 + - + NULLIF ( + + 90, + SUM( DISTINCT - COALESCE ( 31, + 55, 56 ) ) - 54 ), + 81 DIV - 99 AS col0
----
-110
0

skipif mysql # not compatible
query II rowsort label-9074
SELECT ALL - 20 + - + NULLIF ( + + 90, + SUM ( DISTINCT - COALESCE ( 31, + 55, 56 ) ) - 54 ), + 81 / - 99 AS col0
----
-110
0

query I rowsort
SELECT + CASE - - 22 WHEN - 0 THEN - 16 / + + 56 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT CAST( NULL AS SIGNED ) / + 43 + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT CAST ( NULL AS INTEGER ) / + 43 + + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT - + 1 - - COUNT( * ) * + 7
----
6

skipif mysql # not compatible
query I rowsort label-9077
SELECT - + 1 - - COUNT ( * ) * + 7
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9078
SELECT DISTINCT - - 29 DIV 4 AS col2, + 66 + - ( - 42 ) * + COUNT( DISTINCT 52 )
----
7
108

skipif mysql # not compatible
query II rowsort label-9078
SELECT DISTINCT - - 29 / 4 AS col2, + 66 + - ( - 42 ) * + COUNT ( DISTINCT 52 )
----
7
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9079
SELECT ALL - COALESCE ( + - CASE - 49 WHEN - + 45 + + - CASE 5 WHEN - - 2 * + + 47 + - ( - CAST( - 43 AS SIGNED ) ) THEN NULL ELSE + COUNT( * ) * + 66 * + - 99 * - + 85 END THEN - - 14 ELSE + + 92 + ( + 13 ) END, + 70 * 76 * - NULLIF ( + 82, - + 23 * + + 9 ) - MAX( 46 ) )
----
105

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL - COALESCE ( + - CASE - 49 WHEN - + 45 + + - CASE 5 WHEN - - 2 * + + 47 + - ( - CAST ( - 43 AS INTEGER ) ) THEN NULL ELSE + COUNT ( * ) * + 66 * + - 99 * - + 85 END THEN - - 14 ELSE + + 92 + ( + 13 ) END, + 70 * 76 * - NULLIF ( + 82, - + 23 * + + 9 ) - MAX ( 46 ) )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + 59 * + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-9080
SELECT + 59 * + COUNT ( * )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT - 71 + + - 54 * 67 + - CAST( NULL AS SIGNED ) + ( 93 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT - 71 + + - 54 * 67 + - CAST ( NULL AS INTEGER ) + ( 93 ) + COUNT ( * )
----
NULL

query I rowsort
SELECT + 76 - + 21 col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT - 23 + - COALESCE ( - COUNT( * ), + + 37 )
----
-22

skipif mysql # not compatible
query I rowsort label-9083
SELECT - 23 + - COALESCE ( - COUNT ( * ), + + 37 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT - 99 * + MIN( + 0 ) * - 23
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT - 99 * + MIN ( + 0 ) * - 23
----
0

query I rowsort
SELECT 81 * - 23 + - 0 AS col1
----
-1863

query I rowsort
SELECT ( - + 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT DISTINCT - COUNT( * ) * - 52 + 50 - + 32
----
70

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT - COUNT ( * ) * - 52 + 50 - + 32
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL + NULLIF ( - 47, - COUNT( * ) + - + 50 ) * 10 + - + NULLIF ( - + 11, + 53 ) * COUNT( * ) + - 51 + - + 6 * + COUNT( * )
----
-516

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL + NULLIF ( - 47, - COUNT ( * ) + - + 50 ) * 10 + - + NULLIF ( - + 11, + 53 ) * COUNT ( * ) + - 51 + - + 6 * + COUNT ( * )
----
-516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9089
SELECT + 45 + - - COALESCE ( + ( + 55 ), + 44 DIV + 2 + + 84 - + 51 ) + - 28 + - + 31, - NULLIF ( COALESCE ( + 14, COUNT( * ) + - CAST( + COUNT( + 26 ) AS SIGNED ) * - 37 ), + 69 ) * + ( - 57 ) + + 61 AS col0
----
41
859

skipif mysql # not compatible
query II rowsort label-9089
SELECT + 45 + - - COALESCE ( + ( + 55 ), + 44 / + 2 + + 84 - + 51 ) + - 28 + - + 31, - NULLIF ( COALESCE ( + 14, COUNT ( * ) + - CAST ( + COUNT ( + 26 ) AS INTEGER ) * - 37 ), + 69 ) * + ( - 57 ) + + 61 AS col0
----
41
859

query I rowsort
SELECT ( - 53 )
----
-53

query I rowsort
SELECT + 33 * 38 * + - 9
----
-11286

query II rowsort
SELECT + COALESCE ( - 44, - 33 * - 6 ) + + 13 AS col0, 94 AS col1
----
-31
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT ALL COUNT( * ) * + 19 + - 31 + - 8 + CASE + ( - 97 ) WHEN 38 + 19 / - + COALESCE ( + 37, - 60 ) - + 35 THEN + 68 + + 98 + ( - 26 ) WHEN + 16 / 64 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL COUNT ( * ) * + 19 + - 31 + - 8 + CASE + ( - 97 ) WHEN 38 + 19 / - + COALESCE ( + 37, - 60 ) - + 35 THEN + 68 + + 98 + ( - 26 ) WHEN + 16 / 64 THEN NULL END col2
----
NULL

query I rowsort
SELECT ALL 5 * COALESCE ( + + 67, - + 51 )
----
335

query I rowsort
SELECT DISTINCT + - 9 AS col2
----
-9

query I rowsort
SELECT + - 80 * 62
----
-4960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9097
SELECT + CAST( SUM( - 97 ) AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-9097
SELECT + CAST ( SUM ( - 97 ) AS INTEGER )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9098
SELECT + COUNT( * ) + ( + 67 ) AS col2, 7 col2
----
68
7

skipif mysql # not compatible
query II rowsort label-9098
SELECT + COUNT ( * ) + ( + 67 ) AS col2, 7 col2
----
68
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT + SUM( DISTINCT + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT + SUM ( DISTINCT + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL SUM( ALL 16 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL SUM ( ALL 16 ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT + MIN( - 7 ) * - COUNT( * ) - - + 93
----
100

skipif mysql # not compatible
query I rowsort label-9101
SELECT + MIN ( - 7 ) * - COUNT ( * ) - - + 93
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT + - COUNT( * ) + + + 40 + + 67
----
106

skipif mysql # not compatible
query I rowsort label-9102
SELECT + - COUNT ( * ) + + + 40 + + 67
----
106

query I rowsort
SELECT DISTINCT + + 93 * - 43 AS col1
----
-3999

query II rowsort
SELECT + 99, 72 AS col0
----
99
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9105
SELECT ALL + 73 * - 90 * + CAST( NULL AS DECIMAL ) + - NULLIF ( - CAST( + 66 AS SIGNED ), + 55 / + - 29 * - + 89 * + 43 * 77 * 77 + - 79 + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL + 73 * - 90 * + CAST ( NULL AS REAL ) + - NULLIF ( - CAST ( + 66 AS INTEGER ), + 55 / + - 29 * - + 89 * + 43 * 77 * 77 + - 79 + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT - + ( - 86 ) AS col2
----
86

query I rowsort
SELECT - 10 + - 76 AS col1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT - - 29 DIV + 20
----
1

skipif mysql # not compatible
query I rowsort label-9108
SELECT - - 29 / + 20
----
1

query II rowsort
SELECT DISTINCT ( - 78 ) col0, 34
----
-78
34

query I rowsort
SELECT ALL ( - 29 ) col0
----
-29

query I rowsort
SELECT DISTINCT CASE - 23 WHEN 64 * + 37 THEN NULL ELSE + 13 END AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9112
SELECT DISTINCT - 40 DIV - - CAST( - AVG ( + - 91 ) AS SIGNED ), - 22 col1
----
0
-22

skipif mysql # not compatible
query II rowsort label-9112
SELECT DISTINCT - 40 / - - CAST ( - AVG ( + - 91 ) AS INTEGER ), - 22 col1
----
0
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT DISTINCT - 67 + - COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT - 67 + - COUNT ( * ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL 64 * COUNT( * ) col2
----
64

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL 64 * COUNT ( * ) col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9115
SELECT - 69 DIV + + 98 AS col1, - 17 * + 37 * - + MAX( DISTINCT + 27 )
----
0
16983

skipif mysql # not compatible
query II rowsort label-9115
SELECT - 69 / + + 98 AS col1, - 17 * + 37 * - + MAX ( DISTINCT + 27 )
----
0
16983

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT DISTINCT + 95 + COUNT( - 72 ) + + - 47 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT + 95 + COUNT ( - 72 ) + + - 47 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9117
SELECT ALL CAST( - 64 AS SIGNED ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL CAST ( - 64 AS INTEGER ) AS col2
----
-64

query I rowsort
SELECT ALL - 22 * - 99 AS col1
----
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT + ( + 31 ) * - + 47 * - 57 + + + 38 + 20 * 38 * + COUNT( * )
----
83847

skipif mysql # not compatible
query I rowsort label-9119
SELECT + ( + 31 ) * - + 47 * - 57 + + + 38 + 20 * 38 * + COUNT ( * )
----
83847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9120
SELECT ALL + 77 * - NULLIF ( + + CAST( NULL AS SIGNED ), + 56 * COALESCE ( + AVG ( DISTINCT + - 84 ), - + NULLIF ( - COUNT( * ), 14 + + - COUNT( * ) ) * 71 ) ), - COALESCE ( 45, + 39 * - CASE - - CAST( NULL AS SIGNED ) WHEN + 21 THEN COUNT( * ) - - COUNT( * ) + - ( 89 ) ELSE NULL END * + ( 2 ) + 72 + + + ( + 11 ) / - 22, 23 ) * - + AVG ( 84 ) + + CASE + 4 WHEN + 16 THEN 49 * 53 ELSE NULL END + + 75 * + COUNT( * ) / - 77
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9120
SELECT ALL + 77 * - NULLIF ( + + CAST ( NULL AS INTEGER ), + 56 * COALESCE ( + AVG ( DISTINCT + - 84 ), - + NULLIF ( - COUNT ( * ), 14 + + - COUNT ( * ) ) * 71 ) ), - COALESCE ( 45, + 39 * - CASE - - CAST ( NULL AS INTEGER ) WHEN + 21 THEN COUNT ( * ) - - COUNT ( * ) + - ( 89 ) ELSE NULL END * + ( 2 ) + 72 + + + ( + 11 ) / - 22, 23 ) * - + AVG ( 84 ) + + CASE + 4 WHEN + 16 THEN 49 * 53 ELSE NULL END + + 75 * + COUNT ( * ) / - 77
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT - 62 * 49 * + 10 - MAX( DISTINCT + 26 ) + + + 63 * + 87 AS col0
----
-24925

skipif mysql # not compatible
query I rowsort label-9121
SELECT - 62 * 49 * + 10 - MAX ( DISTINCT + 26 ) + + + 63 * + 87 AS col0
----
-24925

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT DISTINCT - 92 DIV 2 + - 59 * NULLIF ( - - 55, + 15 + - 71 + + 41 * - - 81 DIV 85 ) AS col0
----
-3291

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT - 92 / 2 + - 59 * NULLIF ( - - 55, + 15 + - 71 + + 41 * - - 81 / 85 ) AS col0
----
-3291

query II rowsort
SELECT + + 31, - 91 AS col0
----
31
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9124
SELECT ALL + 96 / + + 69 * 43 * - 96 * + CAST( NULL AS DECIMAL ) * + CAST( 39 AS DECIMAL ) * - - 87 - 16 * + ( + - COUNT( + ( - 34 ) ) ) + + 59 + - 59 / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + 96 / + + 69 * 43 * - 96 * + CAST ( NULL AS REAL ) * + CAST ( 39 AS REAL ) * - - 87 - 16 * + ( + - COUNT ( + ( - 34 ) ) ) + + 59 + - 59 / - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT + 81 AS col2, MIN( ALL + 26 )
----
81
26

skipif mysql # not compatible
query II rowsort label-9125
SELECT + 81 AS col2, MIN ( ALL + 26 )
----
81
26

query I rowsort
SELECT - 69 * + ( + + 15 ) + + + 10
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT - + COALESCE ( 0, COUNT( * ), + - 80 )
----
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT - + COALESCE ( 0, COUNT ( * ), + - 80 )
----
0

query I rowsort
SELECT 26 + 39
----
65

query II rowsort
SELECT + 82 AS col0, - 84
----
82
-84

query II rowsort
SELECT - 32, 44 AS col1
----
-32
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9131
SELECT + 35 * + + 30 * + NULLIF ( - 94, - - ( + - 55 ) + ( + CAST( NULL AS DECIMAL ) ) ) DIV + COUNT( ALL - + ( - 12 ) )
----
-98700

skipif mysql # not compatible
query I rowsort label-9131
SELECT + 35 * + + 30 * + NULLIF ( - 94, - - ( + - 55 ) + ( + CAST ( NULL AS REAL ) ) ) / + COUNT ( ALL - + ( - 12 ) )
----
-98700

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9132
SELECT ALL - - 87 DIV - - 82 DIV + 1 + - - 31 + - COUNT( DISTINCT + + CAST( + 54 AS DECIMAL ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL - - 87 / - - 82 / + 1 + - - 31 + - COUNT ( DISTINCT + + CAST ( + 54 AS REAL ) ) AS col1
----
31

query I rowsort
SELECT DISTINCT 23 * + 5
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-9134
SELECT ALL - 24, SUM( DISTINCT - 8 ) AS col0
----
-24
-8

skipif mysql # not compatible
query II rowsort label-9134
SELECT ALL - 24, SUM ( DISTINCT - 8 ) AS col0
----
-24
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9135
SELECT ALL - 13, 45 * - MIN( DISTINCT 26 ) * - 79 AS col2
----
-13
92430

skipif mysql # not compatible
query II rowsort label-9135
SELECT ALL - 13, 45 * - MIN ( DISTINCT 26 ) * - 79 AS col2
----
-13
92430

onlyif mysql # aggregate syntax: 
query II rowsort label-9136
SELECT DISTINCT COUNT( * ), + 61 * COUNT( * ) AS col1
----
1
61

skipif mysql # not compatible
query II rowsort label-9136
SELECT DISTINCT COUNT ( * ), + 61 * COUNT ( * ) AS col1
----
1
61

query II rowsort
SELECT + 61 AS col2, - 82
----
61
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9138
SELECT - - COUNT( * ) AS col2, MAX( - 81 )
----
1
-81

skipif mysql # not compatible
query II rowsort label-9138
SELECT - - COUNT ( * ) AS col2, MAX ( - 81 )
----
1
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9139
SELECT ALL 0 AS col0, - COUNT( * ) + + 61 AS col0
----
0
60

skipif mysql # not compatible
query II rowsort label-9139
SELECT ALL 0 AS col0, - COUNT ( * ) + + 61 AS col0
----
0
60

query I rowsort
SELECT 64 + 44 AS col2
----
108

query I rowsort
SELECT 90 * + 84
----
7560

query I rowsort
SELECT ALL 35 + + 31 * + 29
----
934

query I rowsort
SELECT 97 - + 86 + - 39
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL 6 + + COUNT( DISTINCT + 31 ) * + - 1 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL 6 + + COUNT ( DISTINCT + 31 ) * + - 1 AS col0
----
5

query I rowsort
SELECT ( - 61 ) - 32
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ALL - ( - SUM( - + 72 ) ) + - COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - ( - SUM ( - + 72 ) ) + - COUNT ( * ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-9147
SELECT 16 * - 3 * 12 col2, + SUM( - + COALESCE ( - 15, 5 ) )
----
-576
15

skipif mysql # not compatible
query II rowsort label-9147
SELECT 16 * - 3 * 12 col2, + SUM ( - + COALESCE ( - 15, 5 ) )
----
-576
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT ( MAX( ALL - + 53 ) ) + - 1 + + 67 + 42
----
55

skipif mysql # not compatible
query I rowsort label-9148
SELECT ( MAX ( ALL - + 53 ) ) + - 1 + + 67 + 42
----
55

query I rowsort
SELECT 6 + 79
----
85

query I rowsort
SELECT 51 - + 49 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9151
SELECT 60 DIV + 25 AS col0, + COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-9151
SELECT 60 / + 25 AS col0, + COUNT ( * )
----
2
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9152
SELECT ALL - 18 + 50 AS col1, 34 DIV - 57 col2
----
32
0

skipif mysql # not compatible
query II rowsort label-9152
SELECT ALL - 18 + 50 AS col1, 34 / - 57 col2
----
32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT 31 + + + 37 - - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9153
SELECT 31 + + + 37 - - COUNT ( * ) AS col1
----
69

query I rowsort
SELECT ALL 33 * - ( 53 )
----
-1749

query I rowsort
SELECT 41 + - 80
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT ALL - 91 DIV - - 55
----
-1

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL - 91 / - - 55
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9157
SELECT ALL + CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2, - NULLIF ( + 92, 57 + + - 7 ) * - - 47 AS col2
----
NULL
-4324

skipif mysql # not compatible
query II rowsort label-9157
SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2, - NULLIF ( + 92, 57 + + - 7 ) * - - 47 AS col2
----
NULL
-4324

query I rowsort
SELECT 56 * - 73 AS col2
----
-4088

query I rowsort
SELECT 3 * - + 85 + - 25 * 21 * - - 55 + - 4
----
-29134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9160
SELECT + + COUNT( * ) DIV - COUNT( * ) + ( - 58 ) * + 95 * 89 * COUNT( * ) AS col2, + COUNT( DISTINCT - - 58 ) AS col1
----
-490391
1

skipif mysql # not compatible
query II rowsort label-9160
SELECT + + COUNT ( * ) / - COUNT ( * ) + ( - 58 ) * + 95 * 89 * COUNT ( * ) AS col2, + COUNT ( DISTINCT - - 58 ) AS col1
----
-490391
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT 79 * + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-9161
SELECT 79 * + + COUNT ( * )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT DISTINCT + 41 * CAST( 95 AS SIGNED ) * - 83
----
-323285

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT + 41 * CAST ( 95 AS INTEGER ) * - 83
----
-323285

query II rowsort
SELECT DISTINCT - 50 * 17 AS col0, ( 3 ) AS col2
----
-850
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT - COUNT( * ) * + 16
----
-16

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT - COUNT ( * ) * + 16
----
-16

query I rowsort
SELECT 49 * - 52
----
-2548

query II rowsort
SELECT DISTINCT - 6 * 63 AS col2, 11 + - 92
----
-378
-81

query I rowsort
SELECT ALL - + 39 AS col0
----
-39

query II rowsort
SELECT - ( - - 75 ), - 17 - - + 62 AS col2
----
-75
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT DISTINCT + MIN( DISTINCT - + 89 ) + - - ( MAX( + 76 ) ) - + + 96 * - + 70 + 18
----
6725

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT + MIN ( DISTINCT - + 89 ) + - - ( MAX ( + 76 ) ) - + + 96 * - + 70 + 18
----
6725

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT 20 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-9170
SELECT 20 / 67
----
0

query I rowsort
SELECT + 5 * + - 39 * + 30
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT ALL + 32 + - 17 + + - 4 * 29 * ( + NULLIF ( + COUNT( * ), - - 72 * - 76 * + - 55 - + 27 ) ) * - 40 + + 44 + 94 * - - NULLIF ( + 40, - - COUNT( * ) / ( + - 47 ) + - - 21 * 28 * + + 75 ) AS col2
----
8459

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL + 32 + - 17 + + - 4 * 29 * ( + NULLIF ( + COUNT ( * ), - - 72 * - 76 * + - 55 - + 27 ) ) * - 40 + + 44 + 94 * - - NULLIF ( + 40, - - COUNT ( * ) / ( + - 47 ) + - - 21 * 28 * + + 75 ) AS col2
----
8459

query I rowsort
SELECT - CASE 19 WHEN + + 93 THEN - 52 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT DISTINCT - 12 + + COUNT( ALL - 64 )
----
-11

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT - 12 + + COUNT ( ALL - 64 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT ALL CASE 61 WHEN + 96 THEN - - 6 ELSE NULL END * CAST( + 82 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL CASE 61 WHEN + 96 THEN - - 6 ELSE NULL END * CAST ( + 82 AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL COUNT( * ) + + + 60 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL COUNT ( * ) + + + 60 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT - MAX( - 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9177
SELECT - MAX ( - 96 ) AS col0
----
96

query II rowsort
SELECT ALL 71 AS col1, 80 * - 70
----
71
-5600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9179
SELECT COUNT( * ) DIV + + MAX( - + 2 )
----
0

skipif mysql # not compatible
query I rowsort label-9179
SELECT COUNT ( * ) / + + MAX ( - + 2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ( - 31 ) + - COUNT( * ) + - + 14 * - 88 col2
----
1200

skipif mysql # not compatible
query I rowsort label-9180
SELECT ( - 31 ) + - COUNT ( * ) + - + 14 * - 88 col2
----
1200

query I rowsort
SELECT DISTINCT ( - - 24 ) + + - 81
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - MAX( + 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9182
SELECT - MAX ( + 98 ) AS col2
----
-98

query I rowsort
SELECT 60 + + - 52 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9184
SELECT COUNT( * ) * + 70 * + 15 AS col2, 65 DIV + + 81 col2
----
1050
0

skipif mysql # not compatible
query II rowsort label-9184
SELECT COUNT ( * ) * + 70 * + 15 AS col2, 65 / + + 81 col2
----
1050
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL COUNT( * ) - - 6
----
7

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL COUNT ( * ) - - 6
----
7

query II rowsort
SELECT ALL 92, 26 col2
----
92
26

query I rowsort
SELECT DISTINCT - 5 * - + 9 AS col2
----
45

query II rowsort
SELECT DISTINCT 45 AS col0, - 63
----
45
-63

query I rowsort
SELECT + 68 - + 24 * 0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - MIN( DISTINCT + + 5 ) * + 32 + 46 + 36 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-9190
SELECT - MIN ( DISTINCT + + 5 ) * + 32 + 46 + 36 AS col1
----
-78

query I rowsort
SELECT + 44 - 86 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - + MAX( ALL - + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-9192
SELECT - + MAX ( ALL - + 53 )
----
53

query I rowsort
SELECT + - ( - - COALESCE ( + 64, - 63 ) ) col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL - 1 * + COUNT( * ) - NULLIF ( + CASE + - 6 WHEN + - 52 THEN + COUNT( * ) WHEN - 12 THEN NULL END, + 9 * + 64 * COUNT( * ) ) * 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - 1 * + COUNT ( * ) - NULLIF ( + CASE + - 6 WHEN + - 52 THEN + COUNT ( * ) WHEN - 12 THEN NULL END, + 9 * + 64 * COUNT ( * ) ) * 27 AS col0
----
NULL

query I rowsort
SELECT + 90 * - 56
----
-5040

onlyif mysql # DIV for integer division: 
query II rowsort label-9196
SELECT DISTINCT + 15 AS col0, 14 - + COALESCE ( + - 19, + 10 DIV ( 25 ) ) AS col0
----
15
33

skipif mysql # not compatible
query II rowsort label-9196
SELECT DISTINCT + 15 AS col0, 14 - + COALESCE ( + - 19, + 10 / ( 25 ) ) AS col0
----
15
33

onlyif mysql # DIV for integer division: 
query II rowsort label-9197
SELECT ALL + - 87 AS col2, - 20 DIV 57
----
-87
0

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL + - 87 AS col2, - 20 / 57
----
-87
0

query I rowsort
SELECT - + 41 * 76 AS col2
----
-3116

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT DISTINCT + - 86 DIV 11
----
-7

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT + - 86 / 11
----
-7

query I rowsort
SELECT - 45 * 56 AS col0
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + + COUNT( * ) * + COUNT( * ) + + - COUNT( * ) * 48 * - 19 AS col2
----
913

skipif mysql # not compatible
query I rowsort label-9201
SELECT + + COUNT ( * ) * + COUNT ( * ) + + - COUNT ( * ) * 48 * - 19 AS col2
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT CASE 89 WHEN COUNT( * ) THEN - ( 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT CASE 89 WHEN COUNT ( * ) THEN - ( 75 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9203
SELECT ALL + + 20 DIV - + 46 col1
----
0

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL + + 20 / - + 46 col1
----
0

query I rowsort
SELECT - 49 * + - 42 + + 94 + 69
----
2221

query I rowsort
SELECT - - 5 * + 52 AS col0
----
260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9206
SELECT DISTINCT + 7 * 88 DIV COUNT( * ) * + + 38 * + 51 + 37 * + + COUNT( * ) + - 31 - + - 47 AS col1
----
1193861

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT + 7 * 88 / COUNT ( * ) * + + 38 * + 51 + 37 * + + COUNT ( * ) + - 31 - + - 47 AS col1
----
1193861

query I rowsort
SELECT ALL + - 44 * - - 59 col2
----
-2596

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT + 90 DIV - 61 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9208
SELECT + 90 / - 61 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL ( + 36 ) * + COUNT( * ) + 12 + + 93 col2
----
141

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL ( + 36 ) * + COUNT ( * ) + 12 + + 93 col2
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9210
SELECT ALL - - COUNT( * ) * - 11 * + 53 + 85 * + 55 - + 55 + + - COUNT( - - 96 ) + - - 34 DIV - 44 * - 88
----
4036

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL - - COUNT ( * ) * - 11 * + 53 + 85 * + 55 - + 55 + + - COUNT ( - - 96 ) + - - 34 / - 44 * - 88
----
4036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9211
SELECT - COUNT( * ) * - 99 DIV + 23
----
4

skipif mysql # not compatible
query I rowsort label-9211
SELECT - COUNT ( * ) * - 99 / + 23
----
4

query II rowsort
SELECT ALL + 25, 12 AS col0
----
25
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT - 53 + - CAST( 58 AS SIGNED )
----
-111

skipif mysql # not compatible
query I rowsort label-9213
SELECT - 53 + - CAST ( 58 AS INTEGER )
----
-111

query I rowsort
SELECT ALL + 36 * - - 2 + + 61 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT + MAX( DISTINCT - 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9215
SELECT + MAX ( DISTINCT - 61 ) AS col1
----
-61

query I rowsort
SELECT ALL ( + ( 86 ) )
----
86

query I rowsort
SELECT - 58 + 34 * + + ( ( + 77 ) ) col0
----
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + COUNT( * ) * + 1 * + 6
----
6

skipif mysql # not compatible
query I rowsort label-9218
SELECT + COUNT ( * ) * + 1 * + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT SUM( ALL 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9219
SELECT SUM ( ALL 44 ) AS col2
----
44

query I rowsort
SELECT ALL ( - - 83 ) - + 39 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9221
SELECT ALL COALESCE ( 44, + + 97 + + ( COUNT( * ) ), + 32 DIV + 97 ) AS col1, ( - COALESCE ( - 1, 49 ) )
----
44
1

skipif mysql # not compatible
query II rowsort label-9221
SELECT ALL COALESCE ( 44, + + 97 + + ( COUNT ( * ) ), + 32 / + 97 ) AS col1, ( - COALESCE ( - 1, 49 ) )
----
44
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT DISTINCT + COALESCE ( - + CAST( NULL AS SIGNED ), - 82 ) - - - 67
----
-149

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + COALESCE ( - + CAST ( NULL AS INTEGER ), - 82 ) - - - 67
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT - 87 * - - 57 * NULLIF ( - 57, - 13 + + - 13 / - CAST( NULL AS SIGNED ) ) AS col1
----
282663

skipif mysql # not compatible
query I rowsort label-9223
SELECT - 87 * - - 57 * NULLIF ( - 57, - 13 + + - 13 / - CAST ( NULL AS INTEGER ) ) AS col1
----
282663

query I rowsort
SELECT ALL 98 * - + NULLIF ( - - 58, + - 50 )
----
-5684

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT + COUNT( * ) - + 13 + - 45
----
-57

skipif mysql # not compatible
query I rowsort label-9225
SELECT + COUNT ( * ) - + 13 + - 45
----
-57

query I rowsort
SELECT ALL + 18 - 9
----
9

query I rowsort
SELECT ALL ( 86 ) AS col0
----
86

query I rowsort
SELECT ALL 92 - + 62
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9229
SELECT + ( - 6 ) DIV + + COALESCE ( - COUNT( * ), - 15 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9229
SELECT + ( - 6 ) / + + COALESCE ( - COUNT ( * ), - 15 ) AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT - 45 + - - 38 + 29 - - + CAST( NULL AS SIGNED ) * + + 9 + + + 32 + + - 60 + - 76 / - CAST( + + 59 AS SIGNED ) + + NULLIF ( + - 93, 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT - 45 + - - 38 + 29 - - + CAST ( NULL AS INTEGER ) * + + 9 + + + 32 + + - 60 + - 76 / - CAST ( + + 59 AS INTEGER ) + + NULLIF ( + - 93, 63 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9231
SELECT + MIN( DISTINCT + 7 ) - - 25 + - COUNT( * ) DIV + 41 + ( - 31 ), 55 + CAST( + - MIN( ALL 5 ) AS SIGNED ) AS col0
----
1
50

skipif mysql # not compatible
query II rowsort label-9231
SELECT + MIN ( DISTINCT + 7 ) - - 25 + - COUNT ( * ) / + 41 + ( - 31 ), 55 + CAST ( + - MIN ( ALL 5 ) AS INTEGER ) AS col0
----
1
50

query I rowsort
SELECT + 21 + - 20 AS col0
----
1

query I rowsort
SELECT + 27 - + ( 92 )
----
-65

query I rowsort
SELECT + ( - - 62 ) AS col0
----
62

query I rowsort
SELECT ALL 49 * + - 19 * + + 35 AS col1
----
-32585

query I rowsort
SELECT + 88 + + 9 * + 65 col2
----
673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9237
SELECT + COUNT( * ) + + 96 DIV 65 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9237
SELECT + COUNT ( * ) + + 96 / 65 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9238
SELECT + 1 * - 83 * + 0 + + 11 * CAST( + COUNT( * ) AS SIGNED ) + 60 + + 74 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-9238
SELECT + 1 * - 83 * + 0 + + 11 * CAST ( + COUNT ( * ) AS INTEGER ) + 60 + + 74 AS col1
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9239
SELECT ALL + COALESCE ( - + CAST( NULL AS SIGNED ), + - 38 DIV + ( - 80 ) + + - 33 * + + ( COUNT( * ) ) ) * - + 32 AS col2, + MIN( - - 68 ) AS col2
----
1056
68

skipif mysql # not compatible
query II rowsort label-9239
SELECT ALL + COALESCE ( - + CAST ( NULL AS INTEGER ), + - 38 / + ( - 80 ) + + - 33 * + + ( COUNT ( * ) ) ) * - + 32 AS col2, + MIN ( - - 68 ) AS col2
----
1056
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9240
SELECT DISTINCT + ( - 57 ) DIV - - COUNT( * ) + - - 1 + - + 10
----
-66

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT + ( - 57 ) / - - COUNT ( * ) + - - 1 + - + 10
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9241
SELECT ALL 17 DIV + 65 * + + 40 * - + CASE MIN( - - 5 ) WHEN - 77 DIV - 41 + + NULLIF ( + + NULLIF ( 48, - - 8 + 80 - + 52 ), - 94 ) DIV - 64 + - 32 - + 3 THEN - 86 * + 60 ELSE + + COUNT( * ) * + COUNT( * ) + 54 END * 16 + - + COUNT( * ) * - 1
----
1

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL 17 / + 65 * + + 40 * - + CASE MIN ( - - 5 ) WHEN - 77 / - 41 + + NULLIF ( + + NULLIF ( 48, - - 8 + 80 - + 52 ), - 94 ) / - 64 + - 32 - + 3 THEN - 86 * + 60 ELSE + + COUNT ( * ) * + COUNT ( * ) + 54 END * 16 + - + COUNT ( * ) * - 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - + 45 + - 70 + + - COUNT( * ) col1
----
-116

skipif mysql # not compatible
query I rowsort label-9242
SELECT - + 45 + - 70 + + - COUNT ( * ) col1
----
-116

query II rowsort
SELECT + ( 37 ), 83 AS col2
----
37
83

query I rowsort
SELECT - 65 + + 27
----
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9245
SELECT ALL CAST( NULL AS DECIMAL ) / 97 + 36 + + 2 * + 27 - + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL CAST ( NULL AS REAL ) / 97 + 36 + + 2 * + 27 - + - 39
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9246
SELECT DISTINCT MAX( - 59 ) DIV - + 28 + + 50 AS col0, + 16 AS col2
----
52
16

skipif mysql # not compatible
query II rowsort label-9246
SELECT DISTINCT MAX ( - 59 ) / - + 28 + + 50 AS col0, + 16 AS col2
----
52
16

query I rowsort
SELECT ALL + - 65 * - 91 * 83 * + + 87 + - 91 AS col1
----
42712124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9248
SELECT - CAST( NULL AS SIGNED ) / MIN( ( 76 ) ) + - + 48 + - - 72 + 55 + - + 87 * - 31 - - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9248
SELECT - CAST ( NULL AS INTEGER ) / MIN ( ( 76 ) ) + - + 48 + - - 72 + 55 + - + 87 * - 31 - - - 27
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9249
SELECT ALL - ( 62 ) DIV + - ( + 72 ) * 17 + + COUNT( * ) * + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - ( 62 ) / + - ( + 72 ) * 17 + + COUNT ( * ) * + 59 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT CAST( + 11 AS SIGNED ) * + 93 * 4 + - - 5 AS col1
----
4097

skipif mysql # not compatible
query I rowsort label-9250
SELECT CAST ( + 11 AS INTEGER ) * + 93 * 4 + - - 5 AS col1
----
4097

query I rowsort
SELECT - 15 * + 52 + + + 3
----
-777

query I rowsort
SELECT - COALESCE ( + 18, + 32 * + + ( + + 40 ) + + 23, - 68 ) * 1 + - - 93
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT + 9 * - COUNT( * ) - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT + 9 * - COUNT ( * ) - COUNT ( * ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT NULLIF ( 5, - 83 * - 86 + + - ( + 7 ) + + - 53 * + MIN( - - 23 ) )
----
5

skipif mysql # not compatible
query I rowsort label-9254
SELECT NULLIF ( 5, - 83 * - 86 + + - ( + 7 ) + + - 53 * + MIN ( - - 23 ) )
----
5

query I rowsort
SELECT 22 * + 33 * + 67 + - + 9 AS col0
----
48633

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ALL + 31 * 57 * - CASE - - 29 WHEN 45 THEN - 96 ELSE - + 52 + 94 + - COUNT( * ) + + + 13 END AS col2
----
-95418

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL + 31 * 57 * - CASE - - 29 WHEN 45 THEN - 96 ELSE - + 52 + 94 + - COUNT ( * ) + + + 13 END AS col2
----
-95418

query I rowsort
SELECT DISTINCT - ( 0 ) * - + 55 col1
----
0

query I rowsort
SELECT DISTINCT 75 * 27 AS col2
----
2025

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT DISTINCT CASE + + 68 WHEN + - 28 * + 29 * - 36 * + ( - + 49 ) THEN + AVG ( DISTINCT - + CASE 62 WHEN + - 10 THEN NULL ELSE 49 END ) ELSE - COUNT( * ) END AS col1, 46 col0
----
-1
46

skipif mysql # not compatible
query II rowsort label-9259
SELECT DISTINCT CASE + + 68 WHEN + - 28 * + 29 * - 36 * + ( - + 49 ) THEN + AVG ( DISTINCT - + CASE 62 WHEN + - 10 THEN NULL ELSE 49 END ) ELSE - COUNT ( * ) END AS col1, 46 col0
----
-1
46

query I rowsort
SELECT 23 * + + 12 + - + 19
----
257

query II rowsort
SELECT ALL 35 AS col2, - 80
----
35
-80

query II rowsort
SELECT CASE - 49 WHEN - 15 + - 47 THEN NULL ELSE + - 39 * - 95 END + + - ( - 47 ) * + 92 * - 72 AS col2, 53
----
-307623
53

query II rowsort
SELECT ALL 93, 27 AS col0
----
93
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT MAX( ALL - + 47 ) + - - ( + 16 ) + + COUNT( * ) + - 41 + COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9264
SELECT MAX ( ALL - + 47 ) + - - ( + 16 ) + + COUNT ( * ) + - 41 + COUNT ( * ) AS col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT ALL + 69 DIV + 7 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL + 69 / + 7 AS col0
----
9

query I rowsort
SELECT 59 * - 57 AS col2
----
-3363

query II rowsort
SELECT ALL 1 AS col1, + 64
----
1
64

query I rowsort
SELECT ALL ( - 79 )
----
-79

query I rowsort
SELECT ALL - 21 + - - 75 * - - 57 AS col1
----
4254

query I rowsort
SELECT - + 24 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL - MIN( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL - MIN ( - 0 )
----
0

query I rowsort
SELECT DISTINCT + + ( 7 ) + + 43 AS col0
----
50

query I rowsort
SELECT - ( - 24 ) AS col1
----
24

query I rowsort
SELECT - 66 - - 0 * - 34
----
-66

query I rowsort
SELECT - 36 * + + 77 AS col0
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT 95 * - - 77 + - - COUNT( * )
----
7316

skipif mysql # not compatible
query I rowsort label-9276
SELECT 95 * - - 77 + - - COUNT ( * )
----
7316

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + MAX( + ( + 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-9277
SELECT + MAX ( + ( + 15 ) )
----
15

query II rowsort
SELECT - 86, - 32 AS col2
----
-86
-32

query I rowsort
SELECT DISTINCT + 67 + 72
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL + COUNT( * ) + 77 * + 17
----
1310

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL + COUNT ( * ) + 77 * + 17
----
1310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9281
SELECT - 81 DIV + + CAST( 31 AS SIGNED ) + + 34 - + SUM( + + 92 ) - 56 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-9281
SELECT - 81 / + + CAST ( 31 AS INTEGER ) + + 34 - + SUM ( + + 92 ) - 56 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL - + ( - CASE COUNT( * ) WHEN 45 THEN - + 4 + 76 WHEN 62 * 1 * - + 9 + AVG ( ALL + 5 ) + - 24 + + - 9 THEN - CASE 24 WHEN 15 * + - 65 * - - COUNT( * ) * + COALESCE ( - - 61, + 75 * - 96 * 80 / - 99 * - COALESCE ( 98, + - 45 ) ) THEN + 93 + 91 + - 35 WHEN - 75 THEN - 18 END END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - + ( - CASE COUNT ( * ) WHEN 45 THEN - + 4 + 76 WHEN 62 * 1 * - + 9 + AVG ( ALL + 5 ) + - 24 + + - 9 THEN - CASE 24 WHEN 15 * + - 65 * - - COUNT ( * ) * + COALESCE ( - - 61, + 75 * - 96 * 80 / - 99 * - COALESCE ( 98, + - 45 ) ) THEN + 93 + 91 + - 35 WHEN - 75 THEN - 18 END END ) AS col1
----
NULL

query I rowsort
SELECT ALL + 84 - - NULLIF ( 4, + + 5 ) + + + 55 AS col0
----
143

query I rowsort
SELECT - 52 * + - 25
----
1300

query I rowsort
SELECT 25 * 76
----
1900

query II rowsort
SELECT ALL - 96, 44 * - ( - 71 ) AS col0
----
-96
3124

onlyif mysql # DIV for integer division: 
query II rowsort label-9287
SELECT 93 AS col2, 28 DIV + 41 AS col1
----
93
0

skipif mysql # not compatible
query II rowsort label-9287
SELECT 93 AS col2, 28 / + 41 AS col1
----
93
0

query I rowsort
SELECT 36 * - - 65 + - + 34
----
2306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT 50 * - CAST( - 69 AS SIGNED ) AS col1
----
3450

skipif mysql # not compatible
query I rowsort label-9289
SELECT 50 * - CAST ( - 69 AS INTEGER ) AS col1
----
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL - ( COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - ( COUNT ( * ) ) AS col1
----
-1

query II rowsort
SELECT + 78 AS col0, 48 AS col2
----
78
48

query I rowsort
SELECT ( - 39 ) + 28 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-9293
SELECT 59 DIV - 79 AS col1, 17
----
0
17

skipif mysql # not compatible
query II rowsort label-9293
SELECT 59 / - 79 AS col1, 17
----
0
17

query I rowsort
SELECT ALL - 29 + + ( + 6 )
----
-23

query I rowsort
SELECT 66 - - - 80
----
-14

query I rowsort
SELECT DISTINCT 21 * - - 48 AS col1
----
1008

query I rowsort
SELECT 75 + + - 10 + 79 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT - MIN( + 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9298
SELECT - MIN ( + 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL - - ( + SUM( ALL - 21 ) ) + - + ( + - 22 )
----
1

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL - - ( + SUM ( ALL - 21 ) ) + - + ( + - 22 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT 72 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT 72 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT - 50 + - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-9301
SELECT - 50 + - COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL ( + MIN( + - 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL ( + MIN ( + - 59 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT 64 + MAX( + 61 )
----
125

skipif mysql # not compatible
query I rowsort label-9303
SELECT 64 + MAX ( + 61 )
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9304
SELECT + 33 + - CASE + 33 WHEN 53 * 87 THEN + 9 + 40 * + MAX( DISTINCT 6 ) + - 41 + - + MAX( DISTINCT + 68 ) + + 6 + + - 66 * - 18 * + CAST( + - 33 AS SIGNED ) * + 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT + 33 + - CASE + 33 WHEN 53 * 87 THEN + 9 + 40 * + MAX ( DISTINCT 6 ) + - 41 + - + MAX ( DISTINCT + 68 ) + + 6 + + - 66 * - 18 * + CAST ( + - 33 AS INTEGER ) * + 49 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + + 38 + + - 42 + - 91
----
-95

query II rowsort
SELECT ALL 3 AS col0, - 9 + + 66 AS col0
----
3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT + COUNT( * ) + + 32
----
33

skipif mysql # not compatible
query I rowsort label-9307
SELECT + COUNT ( * ) + + 32
----
33

query I rowsort
SELECT ALL COALESCE ( + 0, COALESCE ( + - 45, - 38, - + 97 * - NULLIF ( - ( 15 ), - 2 / - 23 ) - + + 23 ) ) * + 30
----
0

query I rowsort
SELECT COALESCE ( - + 36, + CASE - 8 WHEN + 13 THEN 78 WHEN - COALESCE ( NULLIF ( 68, - + 68 + 61 ), - + 14 ) THEN NULL WHEN 40 THEN + 48 - - + 3 END ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT - + COUNT( * ) * + COALESCE ( COUNT( * ), - 91 * 47 - + 14, NULLIF ( + 66, - + AVG ( - 92 ) * - - 93 ) * + 45 * + 51 - - 67 - 82 + + 40 + + ( + + 36 ) ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT - + COUNT ( * ) * + COALESCE ( COUNT ( * ), - 91 * 47 - + 14, NULLIF ( + 66, - + AVG ( - 92 ) * - - 93 ) * + 45 * + 51 - - 67 - 82 + + 40 + + ( + + 36 ) ) + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9311
SELECT 19 DIV - 29 + + - 92 * + 92 DIV + COUNT( * ) AS col0
----
-8464

skipif mysql # not compatible
query I rowsort label-9311
SELECT 19 / - 29 + + - 92 * + 92 / + COUNT ( * ) AS col0
----
-8464

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL - - 58 * + + 36 * COUNT( * ) * 36
----
75168

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - - 58 * + + 36 * COUNT ( * ) * 36
----
75168

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT COUNT( * ) * - 16 * - 32
----
512

skipif mysql # not compatible
query I rowsort label-9313
SELECT COUNT ( * ) * - 16 * - 32
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT MIN( + - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-9314
SELECT MIN ( + - 67 )
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT ALL COALESCE ( + 93, - ( + - 74 ) ) DIV + 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL COALESCE ( + 93, - ( + - 74 ) ) / + 60 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT + COUNT( 83 ) + - 13
----
-12

skipif mysql # not compatible
query I rowsort label-9316
SELECT + COUNT ( 83 ) + - 13
----
-12

query I rowsort
SELECT - 52 * - + 72
----
3744

query I rowsort
SELECT + 58 * 20 AS col2
----
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT + SUM( + 98 ) * + 7 + - MAX( DISTINCT - - 53 ) - + + 32 * 65
----
-1447

skipif mysql # not compatible
query I rowsort label-9319
SELECT + SUM ( + 98 ) * + 7 + - MAX ( DISTINCT - - 53 ) - + + 32 * 65
----
-1447

onlyif mysql # aggregate syntax: 
query II rowsort label-9320
SELECT MAX( ALL + 88 ), COUNT( * ) + - + 9 + + 17 AS col1
----
88
9

skipif mysql # not compatible
query II rowsort label-9320
SELECT MAX ( ALL + 88 ), COUNT ( * ) + - + 9 + + 17 AS col1
----
88
9

query I rowsort
SELECT + 22 * ( - 16 )
----
-352

query I rowsort
SELECT 96 * - 63 + - 43 AS col2
----
-6091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9323
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col2, 25, COALESCE ( - 54, 83 * + 27 DIV - 65 DIV - 47 - + COUNT( * ) + + 24, - 33 + - 60 + + 70 + + COUNT( * ) + 19 + - CAST( + + 80 AS SIGNED ) DIV - AVG ( ALL + 10 ) + 70 + 88 * - 41 * - COUNT( * ) ) AS col2
----
-1
25
-54

skipif mysql # not compatible
query III rowsort label-9323
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2, 25, COALESCE ( - 54, 83 * + 27 / - 65 / - 47 - + COUNT ( * ) + + 24, - 33 + - 60 + + 70 + + COUNT ( * ) + 19 + - CAST ( + + 80 AS INTEGER ) / - AVG ( ALL + 10 ) + 70 + 88 * - 41 * - COUNT ( * ) ) AS col2
----
-1
25
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL 9 + + + COUNT( * ) + + + COALESCE ( - + 92, COUNT( * ) ) + + ( + NULLIF ( + - 35, 38 * 46 + + 22 + 4 + + 21 ) ) AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL 9 + + + COUNT ( * ) + + + COALESCE ( - + 92, COUNT ( * ) ) + + ( + NULLIF ( + - 35, 38 * 46 + + 22 + 4 + + 21 ) ) AS col2
----
-117

query I rowsort
SELECT + ( 9 ) + + 24 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT - COALESCE ( 0, - ( - + COUNT( * ) ) + + + 36, - 89 )
----
0

skipif mysql # not compatible
query I rowsort label-9326
SELECT - COALESCE ( 0, - ( - + COUNT ( * ) ) + + + 36, - 89 )
----
0

query I rowsort
SELECT ALL 80 * + - 34
----
-2720

query I rowsort
SELECT DISTINCT 39 + - 85 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL MIN( DISTINCT + - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL MIN ( DISTINCT + - 44 ) AS col0
----
-44

query I rowsort
SELECT ALL 74 + - 40 - + - 22 * + 31 AS col1
----
716

onlyif mysql # aggregate syntax: 
query II rowsort label-9331
SELECT + + 13 * + SUM( - - ( 18 ) ) + + - 14 AS col1, ( - + 33 ) + + ( - 78 ) AS col2
----
220
-111

skipif mysql # not compatible
query II rowsort label-9331
SELECT + + 13 * + SUM ( - - ( 18 ) ) + + - 14 AS col1, ( - + 33 ) + + ( - 78 ) AS col2
----
220
-111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9332
SELECT - + CAST( NULL AS SIGNED ) + - - 10, - 93 AS col1
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-9332
SELECT - + CAST ( NULL AS INTEGER ) + - - 10, - 93 AS col1
----
NULL
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT + - COUNT( * ) * + 76 + - + 85 * + 45 + + 35 AS col1
----
-3866

skipif mysql # not compatible
query I rowsort label-9333
SELECT + - COUNT ( * ) * + 76 + - + 85 * + 45 + + 35 AS col1
----
-3866

query I rowsort
SELECT ALL + + NULLIF ( ( - NULLIF ( 6, + - 70 ) ), 24 / 10 ) * + 97 AS col1
----
-582

onlyif mysql # aggregate syntax: 
query II rowsort label-9335
SELECT - CASE - AVG ( ALL - - 46 ) WHEN ( 27 ) - - 25 THEN 30 + - - 80 * MIN( DISTINCT + 65 ) WHEN - 63 + 45 - + + COUNT( * ) THEN NULL END AS col0, - 82 col1
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-9335
SELECT - CASE - AVG ( ALL - - 46 ) WHEN ( 27 ) - - 25 THEN 30 + - - 80 * MIN ( DISTINCT + 65 ) WHEN - 63 + 45 - + + COUNT ( * ) THEN NULL END AS col0, - 82 col1
----
NULL
-82

query I rowsort
SELECT - + 58 + - 39
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT + ( + - COUNT( * ) ) * - 36 + + 43 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9337
SELECT + ( + - COUNT ( * ) ) * - 36 + + 43 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT DISTINCT 27 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT 27 / 53 AS col0
----
0

query I rowsort
SELECT ALL - 78 - - 97 * - 36 + - - ( - 69 ) + - 80 AS col1
----
-3719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9340
SELECT DISTINCT COUNT( - CAST( 98 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT COUNT ( - CAST ( 98 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT ( + 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT + + COUNT( * ) - - COUNT( * ) * 18
----
19

skipif mysql # not compatible
query I rowsort label-9342
SELECT + + COUNT ( * ) - - COUNT ( * ) * 18
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT CASE - COALESCE ( - 92, ( - 41 ) * - 58 ) WHEN + - NULLIF ( 6, - 68 * + + 72 - + + 17 ) THEN - 92 ELSE + 16 + - - 54 + CAST( - 85 AS SIGNED ) END AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-9343
SELECT CASE - COALESCE ( - 92, ( - 41 ) * - 58 ) WHEN + - NULLIF ( 6, - 68 * + + 72 - + + 17 ) THEN - 92 ELSE + 16 + - - 54 + CAST ( - 85 AS INTEGER ) END AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9344
SELECT - 73 * + COUNT( * ) - - ( - + 50 ) + - ( - COUNT( * ) ) * + COUNT( * ) col0, + 30 + - 20
----
-122
10

skipif mysql # not compatible
query II rowsort label-9344
SELECT - 73 * + COUNT ( * ) - - ( - + 50 ) + - ( - COUNT ( * ) ) * + COUNT ( * ) col0, + 30 + - 20
----
-122
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT ALL + CAST( 16 AS SIGNED ) * - 5
----
-80

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL + CAST ( 16 AS INTEGER ) * - 5
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT - COUNT( * ) * + 19 - 14 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9346
SELECT - COUNT ( * ) * + 19 - 14 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT - COUNT( * ) + NULLIF ( + + COUNT( * ), + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-9347
SELECT - COUNT ( * ) + NULLIF ( + + COUNT ( * ), + 55 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT 73 * + 48 + COUNT( * ) * + 90 AS col2, - 74 * + 60 + - 86 AS col0
----
3594
-4526

skipif mysql # not compatible
query II rowsort label-9348
SELECT 73 * + 48 + COUNT ( * ) * + 90 AS col2, - 74 * + 60 + - 86 AS col0
----
3594
-4526

query I rowsort
SELECT ( + - ( + 6 ) )
----
-6

query I rowsort
SELECT ALL - 1 * - 8 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT - COUNT( * ) + 32 - - + ( + 11 )
----
42

skipif mysql # not compatible
query I rowsort label-9351
SELECT - COUNT ( * ) + 32 - - + ( + 11 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9352
SELECT - COUNT( * ) DIV - 14
----
0

skipif mysql # not compatible
query I rowsort label-9352
SELECT - COUNT ( * ) / - 14
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9353
SELECT + ( + - CASE + + SUM( 64 ) WHEN 98 * 14 * - 84 - - 4 THEN 80 * + 41 * ( 5 ) + - - 43 + + 26 WHEN + ( + 39 ) / 77 * ( - + 83 ) THEN + - 36 END ) / 94 AS col1, 62
----
NULL
62

skipif mysql # not compatible
query II rowsort label-9353
SELECT + ( + - CASE + + SUM ( 64 ) WHEN 98 * 14 * - 84 - - 4 THEN 80 * + 41 * ( 5 ) + - - 43 + + 26 WHEN + ( + 39 ) / 77 * ( - + 83 ) THEN + - 36 END ) / 94 AS col1, 62
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL 27 * + COUNT( * ) + - 47 col0
----
-20

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL 27 * + COUNT ( * ) + - 47 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT + MIN( + 21 ) * + MAX( DISTINCT 98 )
----
2058

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT + MIN ( + 21 ) * + MAX ( DISTINCT 98 )
----
2058

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9356
SELECT NULLIF ( - CAST( - 40 AS SIGNED ), + + 49 + + - 12 - CAST( NULL AS DECIMAL ) + ( + + 2 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9356
SELECT NULLIF ( - CAST ( - 40 AS INTEGER ), + + 49 + + - 12 - CAST ( NULL AS REAL ) + ( + + 2 ) ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT + SUM( DISTINCT - + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-9357
SELECT + SUM ( DISTINCT - + 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL AVG ( ALL + 40 ) * + CASE COUNT( * ) WHEN + 62 THEN + + 69 ELSE NULL END + - 20 * - - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL AVG ( ALL + 40 ) * + CASE COUNT ( * ) WHEN + 62 THEN + + 69 ELSE NULL END + - 20 * - - 7 AS col2
----
NULL

query I rowsort
SELECT - ( - 94 ) + 67 AS col0
----
161

query I rowsort
SELECT + ( + 45 ) AS col2
----
45

query I rowsort
SELECT + + 67 + + - 79
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9362
SELECT + CAST( + ( - 49 ) AS SIGNED ) * - - 23, + 92 AS col0
----
-1127
92

skipif mysql # not compatible
query II rowsort label-9362
SELECT + CAST ( + ( - 49 ) AS INTEGER ) * - - 23, + 92 AS col0
----
-1127
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT 93 * - 17 + - + ( 13 ) * + 68 * - COUNT( * ) * 57 * - + ( - COUNT( * ) ) + COUNT( * ) + + 55
----
48863

skipif mysql # not compatible
query I rowsort label-9363
SELECT 93 * - 17 + - + ( 13 ) * + 68 * - COUNT ( * ) * 57 * - + ( - COUNT ( * ) ) + COUNT ( * ) + + 55
----
48863

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL - + 54 * - ( - - 65 ) * - CASE 6 WHEN + COUNT( * ) THEN - 53 * + 19 ELSE NULL END + - 24 - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL - + 54 * - ( - - 65 ) * - CASE 6 WHEN + COUNT ( * ) THEN - 53 * + 19 ELSE NULL END + - 24 - + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT DISTINCT CASE 99 WHEN + COUNT( * ) THEN - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT CASE 99 WHEN + COUNT ( * ) THEN - 88 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT ALL CAST( NULL AS SIGNED ) * + - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL CAST ( NULL AS INTEGER ) * + - 80 AS col1
----
NULL

query I rowsort
SELECT + 55 - + 77 + 24
----
2

query II rowsort
SELECT - - 93 AS col0, 13
----
93
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL + 21 - + + ( 22 ) * - 32 * 96 * + + COUNT( * ) * - 49 AS col2
----
-3311595

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + 21 - + + ( 22 ) * - 32 * 96 * + + COUNT ( * ) * - 49 AS col2
----
-3311595

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL MAX( 43 ) col2
----
43

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL MAX ( 43 ) col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT + - 41 + CAST( - + 12 AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-9371
SELECT + - 41 + CAST ( - + 12 AS INTEGER ) AS col1
----
-53

query I rowsort
SELECT + - 35 * + - 40 AS col1
----
1400

query I rowsort
SELECT + + 66 + + 27 AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9374
SELECT ALL - 97 DIV + - 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL - 97 / + - 35 AS col0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9375
SELECT + - 91 + - 64 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT + - 91 + - 64 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT + CASE 79 WHEN + NULLIF ( - 81, - - COUNT( * ) + - + 49 + - 23 ) THEN NULL WHEN - ( + - 22 ) THEN NULL ELSE 49 + + - CASE 34 WHEN - 92 * 54 + + 16 * - 2 + 72 THEN + NULLIF ( 63, + CASE - NULLIF ( 7, 76 - - - 53 ) WHEN 25 * - 83 + COUNT( * ) THEN + COUNT( * ) END + + 21 * + ( 0 ) ) WHEN 78 THEN NULL END END / - CASE 69 WHEN - + 62 * + - 33 THEN NULL ELSE + CASE 21 WHEN + + 48 THEN NULL WHEN + - COUNT( * ) * + COUNT( * ) / + 62 THEN - 49 ELSE + 69 END END * + - MIN( DISTINCT + NULLIF ( 60, + 85 ) ) * + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT + CASE 79 WHEN + NULLIF ( - 81, - - COUNT ( * ) + - + 49 + - 23 ) THEN NULL WHEN - ( + - 22 ) THEN NULL ELSE 49 + + - CASE 34 WHEN - 92 * 54 + + 16 * - 2 + 72 THEN + NULLIF ( 63, + CASE - NULLIF ( 7, 76 - - - 53 ) WHEN 25 * - 83 + COUNT ( * ) THEN + COUNT ( * ) END + + 21 * + ( 0 ) ) WHEN 78 THEN NULL END END / - CASE 69 WHEN - + 62 * + - 33 THEN NULL ELSE + CASE 21 WHEN + + 48 THEN NULL WHEN + - COUNT ( * ) * + COUNT ( * ) / + 62 THEN - 49 ELSE + 69 END END * + - MIN ( DISTINCT + NULLIF ( 60, + 85 ) ) * + 68 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT - + CAST( 40 AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9377
SELECT - + CAST ( 40 AS INTEGER ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT - COUNT( * ) + - 88 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9378
SELECT - COUNT ( * ) + - 88 AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9379
SELECT DISTINCT - 52 DIV COUNT( * ) + 22
----
-30

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT - 52 / COUNT ( * ) + 22
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9380
SELECT ALL COUNT( * ) DIV - NULLIF ( + 67, - + ( + MAX( 31 ) ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL COUNT ( * ) / - NULLIF ( + 67, - + ( + MAX ( 31 ) ) ) col0
----
0

query II rowsort
SELECT ALL 83 AS col1, - 51
----
83
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT 12 * + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT 12 * + COUNT ( * )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9383
SELECT 77 DIV + + NULLIF ( + CAST( 30 AS SIGNED ), + 83 DIV - + 45 ) + - MAX( - + 41 )
----
43

skipif mysql # not compatible
query I rowsort label-9383
SELECT 77 / + + NULLIF ( + CAST ( 30 AS INTEGER ), + 83 / - + 45 ) + - MAX ( - + 41 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9384
SELECT DISTINCT + 87 * 16, - COUNT( * ) AS col2
----
1392
-1

skipif mysql # not compatible
query II rowsort label-9384
SELECT DISTINCT + 87 * 16, - COUNT ( * ) AS col2
----
1392
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9385
SELECT ALL - ( + COUNT( * ) ) + + CASE - CAST( - + 62 AS SIGNED ) WHEN - - 62 * + - 29 THEN - 20 DIV - 27 * - COUNT( * ) * - 25 ELSE - - ( 17 ) END * + - 6
----
-103

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - ( + COUNT ( * ) ) + + CASE - CAST ( - + 62 AS INTEGER ) WHEN - - 62 * + - 29 THEN - 20 / - 27 * - COUNT ( * ) * - 25 ELSE - - ( 17 ) END * + - 6
----
-103

query I rowsort
SELECT ( 82 ) + 72 AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT - 96 + - 23 + + CASE + COUNT( * ) WHEN ( 38 ) / + COUNT( * ) THEN + - 29 * + 54 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT - 96 + - 23 + + CASE + COUNT ( * ) WHEN ( 38 ) / + COUNT ( * ) THEN + - 29 * + 54 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 42 + - ( - 13 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT DISTINCT + 24 * - CASE + COUNT( DISTINCT - 85 ) WHEN 30 THEN + 78 WHEN + 51 THEN NULL WHEN + 38 THEN 22 / + COUNT( * ) + + NULLIF ( 45, + + 29 * - + 9 ) + - 13 END * 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT + 24 * - CASE + COUNT ( DISTINCT - 85 ) WHEN 30 THEN + 78 WHEN + 51 THEN NULL WHEN + 38 THEN 22 / + COUNT ( * ) + + NULLIF ( 45, + + 29 * - + 9 ) + - 13 END * 66 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT DISTINCT + 51 + CAST( NULL AS SIGNED ) - + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT + 51 + CAST ( NULL AS INTEGER ) - + 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT DISTINCT - 97 + - 2 + - 46 + + 8 + - + COUNT( * ) * - ( - 57 ) * + 90 - + 95 * + 55 AS col0
----
-10492

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT - 97 + - 2 + - 46 + + 8 + - + COUNT ( * ) * - ( - 57 ) * + 90 - + 95 * + 55 AS col0
----
-10492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT SUM( DISTINCT - CAST( + 85 AS SIGNED ) ) + 99 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9392
SELECT SUM ( DISTINCT - CAST ( + 85 AS INTEGER ) ) + 99 AS col0
----
14

query I rowsort
SELECT ALL - 79 + ( - 8 )
----
-87

query I rowsort
SELECT 68 - + 73 - + ( 12 ) + + COALESCE ( + 48, - 79, + ( 4 ) * - + 40 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT NULLIF ( MIN( DISTINCT + 99 ), + + MIN( - - 9 ) ) * NULLIF ( - 58, - 43 ) col1
----
-5742

skipif mysql # not compatible
query I rowsort label-9395
SELECT NULLIF ( MIN ( DISTINCT + 99 ), + + MIN ( - - 9 ) ) * NULLIF ( - 58, - 43 ) col1
----
-5742

query I rowsort
SELECT - 35 * 20 + 80 AS col2
----
-620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT DISTINCT + 98 - - COALESCE ( - - 28, + 1 + + - 65 ) + - CAST( + 95 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT + 98 - - COALESCE ( - - 28, + 1 + + - 65 ) + - CAST ( + 95 AS INTEGER )
----
31

query I rowsort
SELECT - 86 + + 2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + + 6 - + - 40 * - COALESCE ( - COUNT( * ), - - 43 ) * - 11 AS col1
----
-434

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + + 6 - + - 40 * - COALESCE ( - COUNT ( * ), - - 43 ) * - 11 AS col1
----
-434

query I rowsort
SELECT ALL - - 60 AS col0
----
60

query II rowsort
SELECT 16 * + 31 AS col1, 33 AS col2
----
496
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9402
SELECT ALL - 41 * + 14 - + COUNT( 11 ) DIV - 50 * - 68 * - + 87
----
-574

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL - 41 * + 14 - + COUNT ( 11 ) / - 50 * - 68 * - + 87
----
-574

onlyif mysql # aggregate syntax: 
query II rowsort label-9403
SELECT DISTINCT + + 64 * - 13 AS col2, + 97 + + COUNT( * ) AS col0
----
-832
98

skipif mysql # not compatible
query II rowsort label-9403
SELECT DISTINCT + + 64 * - 13 AS col2, + 97 + + COUNT ( * ) AS col0
----
-832
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9404
SELECT COALESCE ( - CASE - - 75 WHEN 35 * - 91 * + + CAST( NULL AS SIGNED ) + 68 THEN 43 * 82 + + - ( NULLIF ( 62, - 74 + - 21 ) ) WHEN - - MIN( - 6 ) THEN + 19 END, - SUM( + 82 ) * - - COUNT( * ), - + 58 )
----
-82

skipif mysql # not compatible
query I rowsort label-9404
SELECT COALESCE ( - CASE - - 75 WHEN 35 * - 91 * + + CAST ( NULL AS INTEGER ) + 68 THEN 43 * 82 + + - ( NULLIF ( 62, - 74 + - 21 ) ) WHEN - - MIN ( - 6 ) THEN + 19 END, - SUM ( + 82 ) * - - COUNT ( * ), - + 58 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL - ( + - MAX( - + 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL - ( + - MAX ( - + 25 ) )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9406
SELECT ALL - 92 DIV + MIN( + 32 )
----
-2

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - 92 / + MIN ( + 32 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9407
SELECT DISTINCT + + 64 - + COUNT( * ) DIV - 26 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT + + 64 - + COUNT ( * ) / - 26 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT + COUNT( * ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9408
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT - CAST( + CAST( + 20 AS SIGNED ) AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-9409
SELECT - CAST ( + CAST ( + 20 AS INTEGER ) AS INTEGER )
----
-20

query II rowsort
SELECT - ( - - 39 ) AS col0, 51 AS col0
----
-39
51

query I rowsort
SELECT 8 + - ( - + 76 ) col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL + NULLIF ( + 12, + COUNT( * ) + + CASE NULLIF ( 43, - 2 - - - 93 ) WHEN - AVG ( ALL 17 ) THEN NULL ELSE - 57 / - - 10 END ) * 29 * - COUNT( * ) AS col1
----
-348

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL + NULLIF ( + 12, + COUNT ( * ) + + CASE NULLIF ( 43, - 2 - - - 93 ) WHEN - AVG ( ALL 17 ) THEN NULL ELSE - 57 / - - 10 END ) * 29 * - COUNT ( * ) AS col1
----
-348

query I rowsort
SELECT DISTINCT + 7 * - - 13 + ( + 68 ) + 79 * - 86 AS col0
----
-6635

query I rowsort
SELECT ALL + 74 * + ( 4 ) AS col2
----
296

onlyif mysql # DIV for integer division: 
query I rowsort label-9415
SELECT 18 DIV + + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9415
SELECT 18 / + + 34 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9416
SELECT 25 - 55 + + 17 + + ( + - 6 ) * - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT 25 - 55 + + 17 + + ( + - 6 ) * - + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL CASE 67 WHEN + + 8 / 70 + - 53 + 83 THEN NULL ELSE + 88 * - - 56 * - 88 END + + 51
----
-433613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9418
SELECT 34 - 83 + + 36 - - - NULLIF ( - COUNT( * ), + AVG ( - - ( + ( 9 ) ) ) * - 58 + - 46 + - - 60 ) * + 28 DIV 78 * 52
----
-13

skipif mysql # not compatible
query I rowsort label-9418
SELECT 34 - 83 + + 36 - - - NULLIF ( - COUNT ( * ), + AVG ( - - ( + ( 9 ) ) ) * - 58 + - 46 + - - 60 ) * + 28 / 78 * 52
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT 40 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9419
SELECT 40 / - 68 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT COUNT( * ) + - 14
----
-13

skipif mysql # not compatible
query I rowsort label-9420
SELECT COUNT ( * ) + - 14
----
-13

query I rowsort
SELECT 85 + + 4 + - + 14 AS col0
----
75

query I rowsort
SELECT ALL 93 + + 89 col0
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT ALL 5 / MIN( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL 5 / MIN ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 1 * - 50 AS col1
----
50

query I rowsort
SELECT DISTINCT 22 + + 92 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL - 83 + - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL - 83 + - COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL 57 * + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL 57 * + COUNT ( * ) AS col1
----
57

query I rowsort
SELECT 88 + + ( + - 71 ) col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT ALL 51 * COALESCE ( - COUNT( * ), + + CAST( + + COUNT( * ) AS SIGNED ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL 51 * COALESCE ( - COUNT ( * ), + + CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col0
----
-51

query I rowsort
SELECT 47 * - 37 * + 24 + - 80 - - ( 95 ) AS col0
----
-41721

onlyif mysql # aggregate syntax: 
query II rowsort label-9431
SELECT + COUNT( * ) AS col1, - 21
----
1
-21

skipif mysql # not compatible
query II rowsort label-9431
SELECT + COUNT ( * ) AS col1, - 21
----
1
-21

query I rowsort
SELECT ALL - ( - - 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT + COUNT( + + 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9433
SELECT + COUNT ( + + 85 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL - SUM( 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL - SUM ( 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL - COUNT( + 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL - COUNT ( + 11 )
----
-1

query I rowsort
SELECT DISTINCT 8 - CASE + ( + 1 ) WHEN - 90 * - 31 THEN NULL WHEN + 38 THEN 19 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9437
SELECT - COUNT( ALL 9 ) * - 80 + - COALESCE ( 30 + + 65 * - ( 73 DIV 28 ), 98 )
----
180

skipif mysql # not compatible
query I rowsort label-9437
SELECT - COUNT ( ALL 9 ) * - 80 + - COALESCE ( 30 + + 65 * - ( 73 / 28 ), 98 )
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT DISTINCT - 94 DIV - 63
----
1

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT - 94 / - 63
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9439
SELECT ( + CAST( COUNT( * ) AS SIGNED ) ) + 71
----
72

skipif mysql # not compatible
query I rowsort label-9439
SELECT ( + CAST ( COUNT ( * ) AS INTEGER ) ) + 71
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9440
SELECT 93 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-9440
SELECT 93 / 55
----
1

query I rowsort
SELECT 29 * 66 AS col0
----
1914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT ALL - 76 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL - 76 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT 9 + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-9443
SELECT 9 + COUNT ( * )
----
10

query I rowsort
SELECT 13 * + 74 + + 46
----
1008

query I rowsort
SELECT ALL - 77 + - 20 AS col2
----
-97

query I rowsort
SELECT 4 * - 58 + 75
----
-157

query I rowsort
SELECT 28 * + 79
----
2212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9448
SELECT ALL + COALESCE ( COUNT( * ), + SUM( DISTINCT 73 ), + CASE WHEN NOT - 18 IS NOT NULL THEN 8 * + 46 END ) + CASE + CAST( NULL AS SIGNED ) + 12 * 31 WHEN 0 THEN 40 END * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL + COALESCE ( COUNT ( * ), + SUM ( DISTINCT 73 ), + CASE WHEN NOT - 18 IS NOT NULL THEN 8 * + 46 END ) + CASE + CAST ( NULL AS INTEGER ) + 12 * 31 WHEN 0 THEN 40 END * 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + 29 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + 29 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT COUNT( * ) + COALESCE ( 11, + 82 + COUNT( * ), - 27 ) * + 54
----
595

skipif mysql # not compatible
query I rowsort label-9450
SELECT COUNT ( * ) + COALESCE ( 11, + 82 + COUNT ( * ), - 27 ) * + 54
----
595

query I rowsort
SELECT ALL + ( + 64 ) * 68
----
4352

query I rowsort
SELECT ALL 59 + 14
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - 65 + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9453
SELECT - 65 + COUNT ( * )
----
-64

query I rowsort
SELECT ALL - ( 32 ) + - 90 AS col2
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + ( + 13 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + ( + 13 ) col2
----
NULL

query I rowsort
SELECT - 53 + + 11 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT - SUM( ALL 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9457
SELECT - SUM ( ALL 7 ) AS col1
----
-7

query I rowsort
SELECT ALL - 14 + + 19
----
5

query I rowsort
SELECT - 29 + 48
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT + COUNT( * ) - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-9460
SELECT + COUNT ( * ) - + 15
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT - 5 + + COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9461
SELECT - 5 + + COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT + 11 + 97 * 39 AS col2
----
3794

query I rowsort
SELECT ALL 17 * 69 AS col1
----
1173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT ALL + CAST( NULL AS SIGNED ) + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + CAST ( NULL AS INTEGER ) + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT - MIN( ALL ( 3 ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9465
SELECT - MIN ( ALL ( 3 ) ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL - ( NULLIF ( + MAX( DISTINCT - 97 ), + 86 ) ) * + NULLIF ( + 30, - 59 + + 37 ) AS col2
----
2910

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL - ( NULLIF ( + MAX ( DISTINCT - 97 ), + 86 ) ) * + NULLIF ( + 30, - 59 + + 37 ) AS col2
----
2910

query I rowsort
SELECT ALL 69 + 12
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT + 75 + - 94 DIV + 25
----
72

skipif mysql # not compatible
query I rowsort label-9468
SELECT + 75 + - 94 / + 25
----
72

query I rowsort
SELECT ALL - 42 * 52
----
-2184

query I rowsort
SELECT ALL 57 - + 40
----
17

query I rowsort
SELECT DISTINCT 16 * 10 col2
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9472
SELECT 52 DIV COUNT( * ) + - 45 * + 30
----
-1298

skipif mysql # not compatible
query I rowsort label-9472
SELECT 52 / COUNT ( * ) + - 45 * + 30
----
-1298

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT - 39 * - NULLIF ( - 36 DIV 53, ( + 75 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9473
SELECT - 39 * - NULLIF ( - 36 / 53, ( + 75 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + 45 * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-9474
SELECT + 45 * COUNT ( * )
----
45

query I rowsort
SELECT ( 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT + CASE - CASE - COUNT( * ) WHEN 31 THEN 57 / 3 ELSE NULL END WHEN + MAX( ALL + 9 ) THEN 88 * 80 WHEN 74 * + 21 + - 40 THEN - 13 + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT + CASE - CASE - COUNT ( * ) WHEN 31 THEN 57 / 3 ELSE NULL END WHEN + MAX ( ALL + 9 ) THEN 88 * 80 WHEN 74 * + 21 + - 40 THEN - 13 + + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + ( + 43 ) + 52 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + 98 + - SUM( DISTINCT 29 )
----
69

skipif mysql # not compatible
query I rowsort label-9478
SELECT + 98 + - SUM ( DISTINCT 29 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9479
SELECT ALL 3 DIV + COALESCE ( + 47, - COUNT( * ) * 48, + 72 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL 3 / + COALESCE ( + 47, - COUNT ( * ) * 48, + 72 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9480
SELECT + COUNT( * ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT + COUNT ( * ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT ALL + CASE 48 WHEN SUM( DISTINCT ( 30 ) ) + - 72 / 30 THEN NULL ELSE SUM( ALL + 6 ) END
----
6

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL + CASE 48 WHEN SUM ( DISTINCT ( 30 ) ) + - 72 / 30 THEN NULL ELSE SUM ( ALL + 6 ) END
----
6

query I rowsort
SELECT - 26 * + 31 + 16
----
-790

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9483
SELECT + 62 DIV CAST( 7 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-9483
SELECT + 62 / CAST ( 7 AS INTEGER )
----
8

query I rowsort
SELECT + 21 + - 65 AS col0
----
-44

query I rowsort
SELECT DISTINCT + 92 * 89
----
8188

query I rowsort
SELECT ALL + 34 * 90
----
3060

query I rowsort
SELECT + + ( + 86 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT COUNT( * ) * ( 86 )
----
86

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT COUNT ( * ) * ( 86 )
----
86

query I rowsort
SELECT + + 78 * - ( 21 ) col1
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ( - MIN( + 67 ) ) * 75 + 16 AS col2
----
-5009

skipif mysql # not compatible
query I rowsort label-9490
SELECT ( - MIN ( + 67 ) ) * 75 + 16 AS col2
----
-5009

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT DISTINCT - 44 * 26 + COUNT( * ) AS col2
----
-1143

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT - 44 * 26 + COUNT ( * ) AS col2
----
-1143

query I rowsort
SELECT DISTINCT + - 19 * 62 + 86 * 12 AS col1
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL + - 75 * 6 + COUNT( * ) AS col1
----
-449

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL + - 75 * 6 + COUNT ( * ) AS col1
----
-449

query I rowsort
SELECT - 37 * 65 AS col2
----
-2405

query I rowsort
SELECT DISTINCT + 58 * 33 + - 61
----
1853

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT + 8 * CASE WHEN + 87 IS NULL THEN + 81 WHEN NULL < - ( MAX( ALL 32 ) ) THEN NULL END + - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT + 8 * CASE WHEN + 87 IS NULL THEN + 81 WHEN NULL < - ( MAX ( ALL 32 ) ) THEN NULL END + - 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL - 57 + - COUNT( * ) * + 94 col1
----
-151

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL - 57 + - COUNT ( * ) * + 94 col1
----
-151

query I rowsort
SELECT + + 52 * - 24
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT - + 2 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-9500
SELECT - + 2 / - 95
----
0

query I rowsort
SELECT - + 97 + 14 * 17 AS col0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT - 23 * - 43 * + COUNT( * )
----
989

skipif mysql # not compatible
query I rowsort label-9502
SELECT - 23 * - 43 * + COUNT ( * )
----
989

query I rowsort
SELECT DISTINCT ( ( + 73 ) ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9504
SELECT DISTINCT + COALESCE ( MIN( ALL + CAST( NULL AS SIGNED ) ), 51 ) + - 15 DIV 48 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT + COALESCE ( MIN ( ALL + CAST ( NULL AS INTEGER ) ), 51 ) + - 15 / 48 AS col1
----
51

query I rowsort
SELECT ALL + 83 + 58 + + 38
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT ALL CASE - 62 WHEN 77 THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL CASE - 62 WHEN 77 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT ALL NULLIF ( CAST( + 42 AS SIGNED ), - CAST( NULL AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL NULLIF ( CAST ( + 42 AS INTEGER ), - CAST ( NULL AS INTEGER ) )
----
42

query I rowsort
SELECT - 52 * - 0 * - 50 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9509
SELECT - COUNT( * ) + - CAST( - 93 AS SIGNED ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9509
SELECT - COUNT ( * ) + - CAST ( - 93 AS INTEGER ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT ALL + 83 DIV 54 * 90
----
90

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL + 83 / 54 * 90
----
90

query I rowsort
SELECT - 16 + + 11 * 77 AS col0
----
831

query I rowsort
SELECT + 22 * - 49
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT - ( CASE - 59 WHEN 48 + - COUNT( - 26 ) THEN COUNT( ALL 26 ) + ( 31 ) WHEN + 29 + NULLIF ( - 63, - 35 + CASE 30 + - 83 * ( - 61 * COUNT( * ) ) WHEN MAX( DISTINCT - 25 ) THEN 22 ELSE NULL END ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT - ( CASE - 59 WHEN 48 + - COUNT ( - 26 ) THEN COUNT ( ALL 26 ) + ( 31 ) WHEN + 29 + NULLIF ( - 63, - 35 + CASE 30 + - 83 * ( - 61 * COUNT ( * ) ) WHEN MAX ( DISTINCT - 25 ) THEN 22 ELSE NULL END ) THEN NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 62 * + 21
----
1302

query I rowsort
SELECT ALL 97 * - + 92
----
-8924

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT DISTINCT - 3 * - - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT - 3 * - - COUNT ( * )
----
-3

query I rowsort
SELECT + 56 * - 1 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT ALL - CAST( 89 AS SIGNED ) * 60
----
-5340

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL - CAST ( 89 AS INTEGER ) * 60
----
-5340

query I rowsort
SELECT + 85 * 66 AS col2
----
5610

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT NULLIF ( COALESCE ( - 49, - 97 ), COUNT( * ) )
----
-49

skipif mysql # not compatible
query I rowsort label-9520
SELECT NULLIF ( COALESCE ( - 49, - 97 ), COUNT ( * ) )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT ALL - - 8 DIV - 43 + 40 * 45 AS col1
----
1800

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - - 8 / - 43 + 40 * 45 AS col1
----
1800

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9522
SELECT + COUNT( * ) * CASE 63 WHEN - COUNT( * ) THEN 82 ELSE NULL END * - CASE + CAST( NULL AS DECIMAL ) WHEN + 53 * - 26 THEN 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT + COUNT ( * ) * CASE 63 WHEN - COUNT ( * ) THEN 82 ELSE NULL END * - CASE + CAST ( NULL AS REAL ) WHEN + 53 * - 26 THEN 13 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 3
----
NULL

query I rowsort
SELECT DISTINCT - 30 * 52 + 98 * 9 col0
----
-678

query I rowsort
SELECT DISTINCT 0 + - + 82 col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT - + COUNT( * ) + - - 87 * COALESCE ( - 50, + NULLIF ( - 79, 17 ) )
----
-4351

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - + COUNT ( * ) + - - 87 * COALESCE ( - 50, + NULLIF ( - 79, 17 ) )
----
-4351

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT SUM( DISTINCT + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-9527
SELECT SUM ( DISTINCT + 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT + MAX( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-9528
SELECT + MAX ( - 38 )
----
-38

query I rowsort
SELECT ALL + 86 + - + 28
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT + 88 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT + 88 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + 29 ) AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT ALL CAST( - 37 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL CAST ( - 37 AS INTEGER ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9533
SELECT - 56 * - CAST( NULL AS SIGNED ) * 7 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT - 56 * - CAST ( NULL AS INTEGER ) * 7 + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT ALL - COALESCE ( + COUNT( * ), ( - 76 ) - 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL - COALESCE ( + COUNT ( * ), ( - 76 ) - 51 )
----
-1

query I rowsort
SELECT 78 * 10 + - - 69 * + 12 AS col1
----
1608

query II rowsort
SELECT 91, - 0 * - + 0 AS col0
----
91
0

query I rowsort
SELECT 69 + - - 51 AS col2
----
120

query II rowsort
SELECT ALL 4, 76 AS col2
----
4
76

query II rowsort
SELECT ALL 5, 6 AS col0
----
5
6

query I rowsort
SELECT 85 * - - 20
----
1700

query I rowsort
SELECT 88 + - 16 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT DISTINCT + 97 * MIN( + + 23 ) AS col0
----
2231

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT + 97 * MIN ( + + 23 ) AS col0
----
2231

query I rowsort
SELECT 98 + + 6 - - 24 + + 13
----
141

query I rowsort
SELECT 4 + + 92
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT 14 + - + COUNT( * ) + + - 9 * - 33 * 44 AS col0
----
13081

skipif mysql # not compatible
query I rowsort label-9545
SELECT 14 + - + COUNT ( * ) + + - 9 * - 33 * 44 AS col0
----
13081

query II rowsort
SELECT - 26 AS col1, - ( 40 ) * 21 AS col1
----
-26
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT 88 * - 32 * - COUNT( * ) AS col0
----
2816

skipif mysql # not compatible
query I rowsort label-9547
SELECT 88 * - 32 * - COUNT ( * ) AS col0
----
2816

query I rowsort
SELECT ALL 74 * - + 62
----
-4588

onlyif mysql # aggregate syntax: 
query II rowsort label-9549
SELECT ALL 34 col1, COUNT( * ) * - - 88 * 52 - + 95
----
34
4481

skipif mysql # not compatible
query II rowsort label-9549
SELECT ALL 34 col1, COUNT ( * ) * - - 88 * 52 - + 95
----
34
4481

query I rowsort
SELECT 4 + - ( 29 ) AS col2
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9551
SELECT ALL - 16 * - 96 DIV + COUNT( * ) AS col2
----
1536

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL - 16 * - 96 / + COUNT ( * ) AS col2
----
1536

query I rowsort
SELECT 13 + + + 82 * + 77 AS col0
----
6327

query II rowsort
SELECT - 91 AS col2, - 80 AS col2
----
-91
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9554
SELECT COUNT( * ) DIV + + COUNT( + 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9554
SELECT COUNT ( * ) / + + COUNT ( + 16 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL + COUNT( * ) + + COUNT( * ) + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL - MAX( DISTINCT + - 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - MAX ( DISTINCT + - 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT DISTINCT + NULLIF ( COUNT( * ), + COUNT( * ) ) / + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT + NULLIF ( COUNT ( * ), + COUNT ( * ) ) / + 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9558
SELECT - 72 DIV + 14 + + 56 DIV - CAST( COUNT( - 9 ) + 12 AS SIGNED ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-9558
SELECT - 72 / + 14 + + 56 / - CAST ( COUNT ( - 9 ) + 12 AS INTEGER ) col2
----
-9

query I rowsort
SELECT - 70 + - 96
----
-166

query I rowsort
SELECT 8 * + NULLIF ( + - 63, + 0 )
----
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9561
SELECT - 44 + 98 + + 99 + CAST( + COUNT( * ) AS SIGNED ) * 67 col2
----
220

skipif mysql # not compatible
query I rowsort label-9561
SELECT - 44 + 98 + + 99 + CAST ( + COUNT ( * ) AS INTEGER ) * 67 col2
----
220

query I rowsort
SELECT DISTINCT - - 42 + + - 4
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9563
SELECT ALL + - 80 + + CAST( 96 AS SIGNED ) + 31 * + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL + - 80 + + CAST ( 96 AS INTEGER ) + 31 * + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT 71 * - - 17 + + 51 * CASE WHEN NOT ( NULL ) < 47 * COUNT( * ) THEN - 42 + 74 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT 71 * - - 17 + + 51 * CASE WHEN NOT ( NULL ) < 47 * COUNT ( * ) THEN - 42 + 74 END col0
----
NULL

query I rowsort
SELECT COALESCE ( 44, + 69, 12 ) AS col1
----
44

query I rowsort
SELECT ALL + + 13 * 77
----
1001

query I rowsort
SELECT ALL - ( + 38 ) AS col0
----
-38

query I rowsort
SELECT ALL + 90 + + + 89 * - - COALESCE ( 29, + 64 + - 9 ) * 78
----
201408

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + COALESCE ( - + 83, - COUNT( * ) + 23, - ( - 81 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9569
SELECT + COALESCE ( - + 83, - COUNT ( * ) + 23, - ( - 81 ) ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT COUNT( * ) + 85
----
86

skipif mysql # not compatible
query I rowsort label-9570
SELECT COUNT ( * ) + 85
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL - + 0 + MIN( ALL 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL - + 0 + MIN ( ALL 91 ) AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9572
SELECT + - 95 AS col0, + AVG ( ALL + - 60 ) + CAST( NULL AS SIGNED ) AS col2
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-9572
SELECT + - 95 AS col0, + AVG ( ALL + - 60 ) + CAST ( NULL AS INTEGER ) AS col2
----
-95
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT - 86 DIV 54 DIV ( - 98 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9573
SELECT - 86 / 54 / ( - 98 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT + + COUNT( * ) * - 79 + COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-9574
SELECT + + COUNT ( * ) * - 79 + COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT DISTINCT - ( + ( - 15 ) ) AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9576
SELECT ALL - 74 DIV 70 + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL - 74 / 70 + - 96
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT MAX( ALL - 32 ) DIV - 15 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9577
SELECT MAX ( ALL - 32 ) / - 15 AS col2
----
2

query I rowsort
SELECT DISTINCT 70 - + 80 col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9579
SELECT ALL 41 DIV + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL 41 / + 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL 47 * + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL 47 * + COUNT ( * ) AS col1
----
47

query I rowsort
SELECT ALL 58 * + 63 AS col2
----
3654

query I rowsort
SELECT DISTINCT 52 * 21 AS col1
----
1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT - AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT 23 * + 69 * - COUNT( * )
----
-1587

skipif mysql # not compatible
query I rowsort label-9584
SELECT 23 * + 69 * - COUNT ( * )
----
-1587

query I rowsort
SELECT - NULLIF ( + 82, + 37 ) AS col2
----
-82

query I rowsort
SELECT - 28 * + 44 + + + 43 AS col2
----
-1189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT CAST( + 14 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-9587
SELECT CAST ( + 14 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT ALL + 10 * - - 66 + + 5 - - COUNT( DISTINCT + 89 ) AS col2
----
666

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL + 10 * - - 66 + + 5 - - COUNT ( DISTINCT + 89 ) AS col2
----
666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT ALL + + CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL + + CAST ( + 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9590
SELECT ALL - COUNT( * ) DIV - - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL - COUNT ( * ) / - - 49 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT DISTINCT 2 * + - ( + 32 ) + - - COUNT( * ) - + 49
----
-112

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT 2 * + - ( + 32 ) + - - COUNT ( * ) - + 49
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - + 67 + COUNT( * ) * NULLIF ( - + 91, AVG ( ALL 61 ) * 27 )
----
-158

skipif mysql # not compatible
query I rowsort label-9592
SELECT - + 67 + COUNT ( * ) * NULLIF ( - + 91, AVG ( ALL 61 ) * 27 )
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL - + ( - 97 ) * 46 + + COUNT( * ) * - 11
----
4451

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL - + ( - 97 ) * 46 + + COUNT ( * ) * - 11
----
4451

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9594
SELECT + 56 - - + CASE + 23 WHEN - 2 * CAST( 85 AS DECIMAL ) THEN + 71 ELSE + 46 + CAST( NULL AS SIGNED ) END + CASE - 32 WHEN 8 THEN NULL ELSE - 10 + 27 END * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT + 56 - - + CASE + 23 WHEN - 2 * CAST ( 85 AS REAL ) THEN + 71 ELSE + 46 + CAST ( NULL AS INTEGER ) END + CASE - 32 WHEN 8 THEN NULL ELSE - 10 + 27 END * 2
----
NULL

query I rowsort
SELECT - 31 * + + CASE + 13 WHEN + + 36 * 16 THEN NULL WHEN + 40 + + 77 THEN NULL WHEN + 61 THEN 77 * + ( 84 ) WHEN 54 / - 12 THEN - 45 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT ALL - + 73 DIV 99 * + + 85
----
0

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL - + 73 / 99 * + + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT + + MIN( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-9597
SELECT + + MIN ( - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL 60 * + 80 - - COUNT( * ) - 12 AS col0
----
4789

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL 60 * + 80 - - COUNT ( * ) - 12 AS col0
----
4789

query I rowsort
SELECT DISTINCT 47 + - 82
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT ALL CAST( MIN( DISTINCT + 14 ) AS SIGNED ) col0
----
14

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL CAST ( MIN ( DISTINCT + 14 ) AS INTEGER ) col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT ( 45 ) DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT ( 45 ) / 74
----
0

query I rowsort
SELECT DISTINCT ( + 11 )
----
11

query I rowsort
SELECT DISTINCT - 59 * - 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT - SUM( - 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9604
SELECT - SUM ( - 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL MIN( ALL + 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL MIN ( ALL + 26 ) AS col1
----
26

query I rowsort
SELECT - 98 * + 75 AS col0
----
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT NULLIF ( - 61, COUNT( * ) )
----
-61

skipif mysql # not compatible
query I rowsort label-9607
SELECT NULLIF ( - 61, COUNT ( * ) )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-9608
SELECT ALL + 94 col1, - ( - COUNT( * ) )
----
94
1

skipif mysql # not compatible
query II rowsort label-9608
SELECT ALL + 94 col1, - ( - COUNT ( * ) )
----
94
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9609
SELECT ALL + + 85, + COUNT( * ) AS col1
----
85
1

skipif mysql # not compatible
query II rowsort label-9609
SELECT ALL + + 85, + COUNT ( * ) AS col1
----
85
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT - CAST( - ( - + 16 ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-9610
SELECT - CAST ( - ( - + 16 ) AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9611
SELECT - COUNT( * ) DIV 22 + + 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9611
SELECT - COUNT ( * ) / 22 + + 60 AS col1
----
60

query I rowsort
SELECT + ( ( 28 ) )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT COUNT( - + 92 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9613
SELECT COUNT ( - + 92 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT 80 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT 80 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT COUNT( * ) * + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9615
SELECT COUNT ( * ) * + 91 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9616
SELECT ALL MAX( ALL - CAST( NULL AS DECIMAL ) ) + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL MAX ( ALL - CAST ( NULL AS REAL ) ) + + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT COUNT( * ) * + + 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-9617
SELECT COUNT ( * ) * + + 74 AS col0
----
74

query I rowsort
SELECT DISTINCT - 92 col2
----
-92

query I rowsort
SELECT DISTINCT - - 9 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT DISTINCT - + CAST( + - 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT - + CAST ( + - 78 AS INTEGER )
----
78

query I rowsort
SELECT ALL - + 49 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + SUM( 19 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-9622
SELECT + SUM ( 19 ) col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT COUNT( * ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9623
SELECT COUNT ( * ) * - - COUNT ( * )
----
1

query I rowsort
SELECT - 29 col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9625
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT - COUNT( * ) + - 21 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9626
SELECT - COUNT ( * ) + - 21 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT ALL - - CAST( + 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL - - CAST ( + 18 AS INTEGER )
----
18

query I rowsort
SELECT ALL 61 + - 75
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT COUNT( DISTINCT 64 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9629
SELECT COUNT ( DISTINCT 64 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL + MIN( 74 )
----
74

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + MIN ( 74 )
----
74

query I rowsort
SELECT - ( + 38 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT ALL 51 * - CAST( + + 30 AS SIGNED )
----
-1530

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL 51 * - CAST ( + + 30 AS INTEGER )
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - ( - ( - MIN( + + 39 ) ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9633
SELECT - ( - ( - MIN ( + + 39 ) ) ) AS col1
----
-39

query I rowsort
SELECT - - 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ALL 68 * + 81 + + + 58 + - COUNT( * ) AS col2
----
5565

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL 68 * + 81 + + + 58 + - COUNT ( * ) AS col2
----
5565

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT SUM( + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9636
SELECT SUM ( + 77 )
----
77

query II rowsort
SELECT ALL 80 AS col2, + 55
----
80
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9638
SELECT DISTINCT 32 AS col1, COUNT( * ) + 29 + - COUNT( * ) * + - COUNT( * ) * - 24
----
32
6

skipif mysql # not compatible
query II rowsort label-9638
SELECT DISTINCT 32 AS col1, COUNT ( * ) + 29 + - COUNT ( * ) * + - COUNT ( * ) * - 24
----
32
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT + 27 + + COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9639
SELECT + 27 + + COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT - COUNT( * ) - 84
----
-85

skipif mysql # not compatible
query I rowsort label-9640
SELECT - COUNT ( * ) - 84
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-9641
SELECT + 95 AS col1, - COUNT( * ) AS col1
----
95
-1

skipif mysql # not compatible
query II rowsort label-9641
SELECT + 95 AS col1, - COUNT ( * ) AS col1
----
95
-1

query II rowsort
SELECT DISTINCT - + 87 col0, - 95
----
-87
-95

query I rowsort
SELECT 25 * 79 AS col1
----
1975

query I rowsort
SELECT 15 * - + 82 AS col0
----
-1230

query I rowsort
SELECT ALL - ( - + 46 )
----
46

query I rowsort
SELECT DISTINCT - 73 col2
----
-73

query I rowsort
SELECT 40 * - + 38
----
-1520

query I rowsort
SELECT ALL - - 94 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL - MIN( ALL 32 ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL - MIN ( ALL 32 ) col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT 40 DIV + 18
----
2

skipif mysql # not compatible
query I rowsort label-9650
SELECT 40 / + 18
----
2

query I rowsort
SELECT 78 - + 1 + + - 1 * - - 79 * ( 64 )
----
-4979

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL COUNT( - 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL COUNT ( - 38 ) AS col0
----
1

query I rowsort
SELECT ALL - 69 + + - 44 AS col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT - - COUNT( * ) + + - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9654
SELECT - - COUNT ( * ) + + - COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9655
SELECT - + 40 + + ( - COUNT( * ) ), 51 AS col1
----
-41
51

skipif mysql # not compatible
query II rowsort label-9655
SELECT - + 40 + + ( - COUNT ( * ) ), 51 AS col1
----
-41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT + - 13 + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9656
SELECT + - 13 + COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT + NULLIF ( - COUNT( * ), + 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-9657
SELECT + NULLIF ( - COUNT ( * ), + 50 )
----
-1

query I rowsort
SELECT + ( + 13 ) AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9659
SELECT - ( SUM( ALL CAST( + - ( - 76 ) AS SIGNED ) ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9659
SELECT - ( SUM ( ALL CAST ( + - ( - 76 ) AS INTEGER ) ) ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL NULLIF ( - COUNT( * ), + - 8 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL NULLIF ( - COUNT ( * ), + - 8 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9661
SELECT 67 * - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) + 42 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT 67 * - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) + 42 * + 39
----
NULL

query I rowsort
SELECT ALL - - 30 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL SUM( ALL + + ( + + 55 ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL SUM ( ALL + + ( + + 55 ) ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT ALL CAST( + + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT - + ( 16 ) AS col0
----
-16

query I rowsort
SELECT ALL + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT - COUNT( * ) + - 29 + + 38 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9667
SELECT - COUNT ( * ) + - 29 + + 38 AS col0
----
8

query I rowsort
SELECT ALL - ( 77 ) col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT 84 * COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9669
SELECT 84 * COUNT ( * ) AS col0
----
84

query II rowsort
SELECT 76 col1, - 27
----
76
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL 64 * + COUNT( * ) * + + COUNT( 96 )
----
64

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL 64 * + COUNT ( * ) * + + COUNT ( 96 )
----
64

query I rowsort
SELECT ALL + 23 AS col0
----
23

query I rowsort
SELECT ALL + - 48 AS col1
----
-48

query I rowsort
SELECT DISTINCT + 79 col2
----
79

query I rowsort
SELECT DISTINCT + + 10 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9676
SELECT - MAX( + CAST( NULL AS SIGNED ) ) AS col0, 89 AS col0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-9676
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0, 89 AS col0
----
NULL
89

query I rowsort
SELECT ALL 22 * + 17 col1
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT DISTINCT MAX( DISTINCT + 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT MAX ( DISTINCT + 65 ) AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT - CAST( NULL AS SIGNED ) / + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT - CAST ( NULL AS INTEGER ) / + 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9680
SELECT DISTINCT + - COUNT( CAST( CAST( + - 29 AS SIGNED ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT + - COUNT ( CAST ( CAST ( + - 29 AS INTEGER ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + - MIN( ALL - + 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9681
SELECT + - MIN ( ALL - + 82 ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT ALL - + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 95 AS col2
----
95

query I rowsort
SELECT DISTINCT - 85 col2
----
-85

query I rowsort
SELECT 59 - - + 37 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9687
SELECT DISTINCT 21, CAST( NULL AS SIGNED ) AS col1
----
21
NULL

skipif mysql # not compatible
query II rowsort label-9687
SELECT DISTINCT 21, CAST ( NULL AS INTEGER ) AS col1
----
21
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT 3 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9688
SELECT 3 / 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + MIN( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-9689
SELECT + MIN ( DISTINCT 3 )
----
3

query I rowsort
SELECT ALL + ( + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL - ( + COUNT( * ) ) + 42
----
41

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL - ( + COUNT ( * ) ) + 42
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT - ( - COUNT( * ) ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT - ( - COUNT ( * ) ) - COUNT ( * )
----
0

query I rowsort
SELECT ALL + 40 col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT ALL + CAST( + 23 AS SIGNED ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL + CAST ( + 23 AS INTEGER ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT CASE WHEN COUNT( * ) NOT BETWEEN - COUNT( * ) AND ( + 39 ) THEN + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT CASE WHEN COUNT ( * ) NOT BETWEEN - COUNT ( * ) AND ( + 39 ) THEN + 21 END
----
NULL

query I rowsort
SELECT + 86 + 3 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL - COUNT( * ) + 73 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL - COUNT ( * ) + 73 AS col0
----
72

query I rowsort
SELECT ALL - - 6 AS col2
----
6

query I rowsort
SELECT - 48 col2
----
-48

query I rowsort
SELECT ALL - + 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT SUM( ALL - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-9701
SELECT SUM ( ALL - 28 )
----
-28

query I rowsort
SELECT + - ( - - 62 )
----
-62

query I rowsort
SELECT DISTINCT 64 + - ( + 71 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT COUNT( ALL + 15 ) * + 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9704
SELECT COUNT ( ALL + 15 ) * + 49 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9705
SELECT ALL SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT CASE + COUNT( * ) WHEN - COUNT( * ) THEN 76 + + 20 ELSE 65 END
----
65

skipif mysql # not compatible
query I rowsort label-9706
SELECT CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN 76 + + 20 ELSE 65 END
----
65

query II rowsort
SELECT - 47, - 48 col2
----
-47
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT - 24 + ( COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-9708
SELECT - 24 + ( COUNT ( * ) )
----
-23

query I rowsort
SELECT - 38 * + + 81
----
-3078

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL SUM( + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL SUM ( + 69 )
----
69

query I rowsort
SELECT + - 39
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9712
SELECT ALL - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 92 + + - ( - + 59 ) * - 3
----
-269

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT - COUNT( * ) + + + 7
----
6

skipif mysql # not compatible
query I rowsort label-9714
SELECT - COUNT ( * ) + + + 7
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9715
SELECT + + 83 + AVG ( ALL + 23 ) + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9715
SELECT + + 83 + AVG ( ALL + 23 ) + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL COALESCE ( COUNT( * ), + 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL COALESCE ( COUNT ( * ), + 40 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT NULLIF ( - 65, COUNT( * ) / + - ( - - 44 ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-9717
SELECT NULLIF ( - 65, COUNT ( * ) / + - ( - - 44 ) ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT DISTINCT + COUNT( - - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT + COUNT ( - - 46 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9719
SELECT - 9 + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT - 9 + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT + ( + - 90 ) AS col0
----
-90

query I rowsort
SELECT + + 27 AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9722
SELECT + 56 DIV + 32 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9722
SELECT + 56 / + 32 AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9723
SELECT - - CAST( NULL AS DECIMAL ) - - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT - - CAST ( NULL AS REAL ) - - 36 AS col2
----
NULL

query I rowsort
SELECT - ( + 95 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9725
SELECT - - MIN( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT - - MIN ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT - SUM( DISTINCT + 79 ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-9726
SELECT - SUM ( DISTINCT + 79 ) col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT + 68 + - + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-9727
SELECT + 68 + - + COUNT ( * )
----
67

query I rowsort
SELECT + 86 * + 68 AS col2
----
5848

query I rowsort
SELECT DISTINCT + - 16
----
-16

query I rowsort
SELECT ALL + 11 * + + 43
----
473

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT - + COUNT( * ) * - 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT - + COUNT ( * ) * - 70 AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9732
SELECT DISTINCT - - MAX( ALL - CAST( NULL AS SIGNED ) ) + + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT - - MAX ( ALL - CAST ( NULL AS INTEGER ) ) + + + 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) - - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) - - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 75, 14 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9735
SELECT ALL + - COUNT( * ), 4 AS col1
----
-1
4

skipif mysql # not compatible
query II rowsort label-9735
SELECT ALL + - COUNT ( * ), 4 AS col1
----
-1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT - ( COUNT( + 78 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9736
SELECT - ( COUNT ( + 78 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL COUNT( DISTINCT 70 )
----
1

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL COUNT ( DISTINCT 70 )
----
1

query I rowsort
SELECT + + 63 AS col2
----
63

query I rowsort
SELECT ALL - 9 * 78 + + - 87 - + ( + 39 ) AS col2
----
-828

query I rowsort
SELECT ALL 39 * - 41 AS col2
----
-1599

query I rowsort
SELECT + + 14 AS col0
----
14

query I rowsort
SELECT - 66 * + 5
----
-330

query I rowsort
SELECT ALL ( 63 )
----
63

query I rowsort
SELECT + 69 * + 80 AS col0
----
5520

query I rowsort
SELECT ALL - - 20 * + + 79
----
1580

query I rowsort
SELECT ( - 40 ) + - - 5
----
-35

query I rowsort
SELECT + ( - - 39 ) AS col0
----
39

query I rowsort
SELECT DISTINCT - - 52 col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT DISTINCT - CAST( - 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT - CAST ( - 19 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9750
SELECT ALL - 58 AS col0, COUNT( * ) AS col0
----
-58
1

skipif mysql # not compatible
query II rowsort label-9750
SELECT ALL - 58 AS col0, COUNT ( * ) AS col0
----
-58
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT 31 DIV MIN( 43 )
----
0

skipif mysql # not compatible
query I rowsort label-9751
SELECT 31 / MIN ( 43 )
----
0

query I rowsort
SELECT - 24 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9753
SELECT DISTINCT - 54 * - - 26, - COUNT( * ) AS col2
----
-1404
-1

skipif mysql # not compatible
query II rowsort label-9753
SELECT DISTINCT - 54 * - - 26, - COUNT ( * ) AS col2
----
-1404
-1

query II rowsort
SELECT - 68 * 21, - 14 col0
----
-1428
-14

query I rowsort
SELECT DISTINCT - 66 AS col0
----
-66

query I rowsort
SELECT DISTINCT - COALESCE ( - + 19, + 97 ) * + 65 + 90
----
1325

query I rowsort
SELECT - 9 * - 83 col0
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT - 64 * COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9758
SELECT - 64 * COUNT ( * ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT DISTINCT - + MIN( - + 62 ) + - ( 9 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT - + MIN ( - + 62 ) + - ( 9 ) AS col1
----
53

query I rowsort
SELECT - 62 + - 32
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT - MIN( ALL + + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-9761
SELECT - MIN ( ALL + + 70 )
----
-70

query I rowsort
SELECT 47 - - - 80
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT ALL - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL 9 * - ( + COUNT( * ) ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL 9 * - ( + COUNT ( * ) ) col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ALL - ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - ( + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 28 col2
----
28

query I rowsort
SELECT DISTINCT - ( 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT 20 * - 50 + - COUNT( * )
----
-1001

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT 20 * - 50 + - COUNT ( * )
----
-1001

query I rowsort
SELECT DISTINCT - 99 - + 93 AS col1
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9770
SELECT + CAST( + + 41 AS SIGNED ) * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9770
SELECT + CAST ( + + 41 AS INTEGER ) * COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9771
SELECT + 17 + - - CAST( - ( - - COUNT( * ) ) AS SIGNED ) - + 55 DIV - ( + - ( 72 ) )
----
16

skipif mysql # not compatible
query I rowsort label-9771
SELECT + 17 + - - CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) - + 55 / - ( + - ( 72 ) )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9772
SELECT - CAST( + - NULLIF ( 87, COUNT( * ) ) AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-9772
SELECT - CAST ( + - NULLIF ( 87, COUNT ( * ) ) AS INTEGER )
----
87

query I rowsort
SELECT + ( + 2 )
----
2

query I rowsort
SELECT + + 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT DISTINCT 33 * - - 27 - COUNT( * )
----
890

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT 33 * - - 27 - COUNT ( * )
----
890

query I rowsort
SELECT ALL 87 AS col0
----
87

query II rowsort
SELECT DISTINCT + 49 + + 18 * - + 52 AS col0, 49 AS col0
----
-887
49

query I rowsort
SELECT ALL 50 + + 12 col1
----
62

query I rowsort
SELECT ALL - 36 col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT DISTINCT COUNT( * ) - - 21
----
22

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT COUNT ( * ) - - 21
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL + MIN( - 94 ) + + 14
----
-80

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL + MIN ( - 94 ) + + 14
----
-80

query I rowsort
SELECT - - 73 + - 1
----
72

query I rowsort
SELECT DISTINCT + - 78 AS col1
----
-78

query I rowsort
SELECT DISTINCT + + 17 AS col1
----
17

query I rowsort
SELECT ALL + + 58 AS col1
----
58

query I rowsort
SELECT ALL + 69 col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT + COUNT( - 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT + COUNT ( - 37 ) AS col0
----
1

query I rowsort
SELECT + + 32 * - - 57
----
1824

query II rowsort
SELECT 11 AS col1, + 59 col1
----
11
59

query I rowsort
SELECT - ( + 82 ) AS col0
----
-82

query I rowsort
SELECT DISTINCT + 45 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT ALL + CAST( NULL AS SIGNED ) * + 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL + CAST ( NULL AS INTEGER ) * + 79 col2
----
NULL

query I rowsort
SELECT + - 97 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT MIN( + ( + - 26 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-9795
SELECT MIN ( + ( + - 26 ) )
----
-26

query I rowsort
SELECT - 23 + 9
----
-14

query II rowsort
SELECT DISTINCT - - 29 AS col1, 66
----
29
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT 75 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT 75 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 56 col1
----
56

query I rowsort
SELECT DISTINCT 11 col1
----
11

query I rowsort
SELECT DISTINCT ( - 40 ) + + - 94
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT COUNT( * ) - + COUNT( * ) * - 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-9802
SELECT COUNT ( * ) - + COUNT ( * ) * - 81 AS col0
----
82

query I rowsort
SELECT ALL 73 AS col1
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9804
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT CAST ( NULL AS REAL ) + - + 68
----
NULL

query I rowsort
SELECT DISTINCT 78 AS col2
----
78

query I rowsort
SELECT ALL - - 29
----
29

query I rowsort
SELECT 95 * - ( ( - - 27 ) ) AS col0
----
-2565

query I rowsort
SELECT DISTINCT - - 69 col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL MIN( + + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL MIN ( + + 67 )
----
67

query I rowsort
SELECT ALL - ( - 33 ) + - 81
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT - + 73 DIV - + 50
----
1

skipif mysql # not compatible
query I rowsort label-9811
SELECT - + 73 / - + 50
----
1

query I rowsort
SELECT ALL 97 * 15 + - 62 - - 51
----
1444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT ALL 29 * - CAST( + 16 AS SIGNED )
----
-464

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL 29 * - CAST ( + 16 AS INTEGER )
----
-464

query I rowsort
SELECT + ( + 87 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9815
SELECT - CAST( + - 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-9815
SELECT - CAST ( + - 80 AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT - MIN( ALL - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9816
SELECT - MIN ( ALL - 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT + ( + MIN( + 82 ) ) col2
----
82

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + ( + MIN ( + 82 ) ) col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT - + SUM( - 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9820
SELECT - + SUM ( - 78 ) AS col2
----
78

query I rowsort
SELECT DISTINCT - 46 AS col1
----
-46

query I rowsort
SELECT 34 * 15
----
510

query I rowsort
SELECT ALL - - 79
----
79

query I rowsort
SELECT ALL 0 * 43 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT + + MIN( DISTINCT + 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT + + MIN ( DISTINCT + 79 ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9826
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL COUNT( * ) + + MIN( DISTINCT + 52 )
----
53

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL COUNT ( * ) + + MIN ( DISTINCT + 52 )
----
53

query I rowsort
SELECT ALL - + 57
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT - CAST( NULL AS SIGNED ) + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT - CAST ( NULL AS INTEGER ) + 26 AS col1
----
NULL

query I rowsort
SELECT - 12 col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9831
SELECT ALL + COUNT( * ) DIV - 2
----
0

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL + COUNT ( * ) / - 2
----
0

query I rowsort
SELECT 64 * 13
----
832

query I rowsort
SELECT ALL 99 col2
----
99

query I rowsort
SELECT 54 + 86 * - 42
----
-3558

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT - COUNT( * ) * 12
----
-12

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT - COUNT ( * ) * 12
----
-12

query I rowsort
SELECT ALL + 88 col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9837
SELECT ALL + + 15, - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-9837
SELECT ALL + + 15, - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + + MIN( DISTINCT + - 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9838
SELECT + + MIN ( DISTINCT + - 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT + COUNT( * ) * - COUNT( * ) * + 27 col2
----
-27

skipif mysql # not compatible
query I rowsort label-9839
SELECT + COUNT ( * ) * - COUNT ( * ) * + 27 col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT - CAST( + 66 AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9840
SELECT - CAST ( + 66 AS INTEGER ) AS col1
----
-66

query II rowsort
SELECT - 17 col1, - 69
----
-17
-69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9842
SELECT ALL + CAST( CAST( + 75 AS DECIMAL ) AS SIGNED ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL + CAST ( CAST ( + 75 AS REAL ) AS INTEGER ) AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT - CAST( NULL AS SIGNED ) - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT - CAST ( NULL AS INTEGER ) - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT MAX( ALL + 14 ) col2
----
14

skipif mysql # not compatible
query I rowsort label-9844
SELECT MAX ( ALL + 14 ) col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9845
SELECT - CAST( - COUNT( * ) AS SIGNED ), ( - 17 ) AS col0
----
1
-17

skipif mysql # not compatible
query II rowsort label-9845
SELECT - CAST ( - COUNT ( * ) AS INTEGER ), ( - 17 ) AS col0
----
1
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT MAX( + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9846
SELECT MAX ( + 50 ) AS col1
----
50

query I rowsort
SELECT ALL 39 * - - 84
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL - + COUNT( * ) - - + 0
----
-1

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL - + COUNT ( * ) - - + 0
----
-1

query I rowsort
SELECT + - 9 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT ALL - + CAST( NULL AS SIGNED ) * + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL - + CAST ( NULL AS INTEGER ) * + - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL COUNT( * ) + ( + 36 ) * - COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL COUNT ( * ) + ( + 36 ) * - COUNT ( * ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9852
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, ( - 95 )
----
NULL
-95

skipif mysql # not compatible
query II rowsort label-9852
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, ( - 95 )
----
NULL
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT + 98 + + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT + 98 + + COUNT ( * )
----
99

query I rowsort
SELECT DISTINCT + 27 * - 92
----
-2484

query I rowsort
SELECT ALL 20 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT - - 22 + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-9856
SELECT - - 22 + COUNT ( * )
----
23

query I rowsort
SELECT + + 72 AS col2
----
72

query I rowsort
SELECT + 92 + - 58 AS col2
----
34

query I rowsort
SELECT ALL ( 17 ) AS col1
----
17

query I rowsort
SELECT ALL 37 * + 53 col1
----
1961

query I rowsort
SELECT - ( + 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT CAST( + COUNT( * ) AS SIGNED ) * + CAST( NULL AS SIGNED ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL 4 * SUM( DISTINCT - 23 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL 4 * SUM ( DISTINCT - 23 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9864
SELECT ALL + 74, - ( + + ( COUNT( * ) ) ) + - 84 AS col2
----
74
-85

skipif mysql # not compatible
query II rowsort label-9864
SELECT ALL + 74, - ( + + ( COUNT ( * ) ) ) + - 84 AS col2
----
74
-85

query I rowsort
SELECT DISTINCT + ( - 18 )
----
-18

query I rowsort
SELECT 30 + - - 15 AS col0
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-9867
SELECT ALL 79 AS col0, + 62 DIV + 81
----
79
0

skipif mysql # not compatible
query II rowsort label-9867
SELECT ALL 79 AS col0, + 62 / + 81
----
79
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9868
SELECT DISTINCT - COUNT( * ) col1, + COUNT( * ) * 24 AS col2
----
-1
24

skipif mysql # not compatible
query II rowsort label-9868
SELECT DISTINCT - COUNT ( * ) col1, + COUNT ( * ) * 24 AS col2
----
-1
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9869
SELECT CAST( NULL AS DECIMAL ) / + 44 + - ( + 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT CAST ( NULL AS REAL ) / + 44 + - ( + 60 ) AS col0
----
NULL

query I rowsort
SELECT 63 * - + 18 * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9871
SELECT DISTINCT MIN( - 56 ) AS col2, - COUNT( * ) * - - 96 AS col0
----
-56
-96

skipif mysql # not compatible
query II rowsort label-9871
SELECT DISTINCT MIN ( - 56 ) AS col2, - COUNT ( * ) * - - 96 AS col0
----
-56
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL MAX( ( - 31 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL MAX ( ( - 31 ) ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9873
SELECT ALL 77, ( + COUNT( - CASE WHEN NULL IS NULL THEN NULL ELSE + CAST( NULL AS SIGNED ) END ) ) AS col1
----
77
0

skipif mysql # not compatible
query II rowsort label-9873
SELECT ALL 77, ( + COUNT ( - CASE WHEN NULL IS NULL THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) ) AS col1
----
77
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9874
SELECT - MIN( ALL - + 80 ) DIV - - 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9874
SELECT - MIN ( ALL - + 80 ) / - - 70 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT COALESCE ( + 17, 62 * COUNT( * ) + + + 52 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9875
SELECT COALESCE ( + 17, 62 * COUNT ( * ) + + + 52 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT + ( COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT + ( COUNT ( * ) ) col1
----
1

query I rowsort
SELECT - ( + 30 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9878
SELECT CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9878
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9879
SELECT CAST( 25 AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9879
SELECT CAST ( 25 AS INTEGER ) AS col2
----
25

query I rowsort
SELECT - 19 * - - 71
----
-1349

query I rowsort
SELECT DISTINCT + + 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT DISTINCT - COUNT( * ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT - COUNT ( * ) + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT + + 53 * + + COUNT( * ) + + 60 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-9883
SELECT + + 53 * + + COUNT ( * ) + + 60 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT DISTINCT - COALESCE ( - 0, COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT - COALESCE ( - 0, COUNT ( * ) ) AS col0
----
0

query I rowsort
SELECT ALL - + 14 col2
----
-14

query I rowsort
SELECT ALL + 74 * + 80 col0
----
5920

query I rowsort
SELECT ALL - 22 + + - 89 * 60 + - - 35
----
-5327

query I rowsort
SELECT + 60 col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT + CAST( NULL AS SIGNED ) * - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT + CAST ( NULL AS INTEGER ) * - 74 AS col1
----
NULL

query II rowsort
SELECT - - 42 AS col0, 73
----
42
73

query I rowsort
SELECT ALL + 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT + ( - - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT + ( - - COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT + CASE WHEN NOT ( NULL ) IS NOT NULL THEN + MAX( DISTINCT + + 99 ) END AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9893
SELECT + CASE WHEN NOT ( NULL ) IS NOT NULL THEN + MAX ( DISTINCT + + 99 ) END AS col0
----
99

query I rowsort
SELECT ALL + 62 col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT - CAST( + 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-9895
SELECT - CAST ( + 72 AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9896
SELECT - 93, ( + COUNT( * ) ) AS col0
----
-93
1

skipif mysql # not compatible
query II rowsort label-9896
SELECT - 93, ( + COUNT ( * ) ) AS col0
----
-93
1

query I rowsort
SELECT ALL + 18 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT + ( + CAST( - 62 AS SIGNED ) )
----
-62

skipif mysql # not compatible
query I rowsort label-9898
SELECT + ( + CAST ( - 62 AS INTEGER ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT COUNT( * ) - - 53
----
54

skipif mysql # not compatible
query I rowsort label-9899
SELECT COUNT ( * ) - - 53
----
54

query I rowsort
SELECT + 39 + - ( - 93 ) AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT DISTINCT - 55 + COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - 55 + COUNT ( * ) AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9902
SELECT - 98 * - COUNT( * ) * + CAST( - - 45 AS SIGNED ) AS col1
----
4410

skipif mysql # not compatible
query I rowsort label-9902
SELECT - 98 * - COUNT ( * ) * + CAST ( - - 45 AS INTEGER ) AS col1
----
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL COUNT( * ) * - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL COUNT ( * ) * - 92 AS col2
----
-92

query I rowsort
SELECT ALL - 87 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT 32 + + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9905
SELECT 32 + + COUNT ( * ) AS col1
----
33

query I rowsort
SELECT ALL - 70 + 82 AS col0
----
12

query I rowsort
SELECT DISTINCT + 3 AS col2
----
3

query I rowsort
SELECT - - 8
----
8

query I rowsort
SELECT DISTINCT - 28 col1
----
-28

query I rowsort
SELECT DISTINCT - 64 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT DISTINCT - COUNT( * ) * - + 12 + + ( + COUNT( * ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT - COUNT ( * ) * - + 12 + + ( + COUNT ( * ) ) AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9912
SELECT ALL - MIN( - + 39 ) + + COUNT( * ) * + 39 DIV - - COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL - MIN ( - + 39 ) + + COUNT ( * ) * + 39 / - - COUNT ( * ) AS col0
----
78

query I rowsort
SELECT DISTINCT - ( - 93 ) AS col0
----
93

query I rowsort
SELECT ALL 43 * + 5
----
215

query I rowsort
SELECT DISTINCT - 44 col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT - 72 * - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT - 72 * - COUNT ( * ) AS col2
----
72

query I rowsort
SELECT DISTINCT - - 13 AS col2
----
13

query I rowsort
SELECT + 22 + + 59
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL - SUM( ALL + - 95 ) col0
----
95

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL - SUM ( ALL + - 95 ) col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9920
SELECT ALL ( - COUNT( * ) ) + CAST( NULL AS DECIMAL ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL ( - COUNT ( * ) ) + CAST ( NULL AS REAL ) + + 48
----
NULL

query I rowsort
SELECT ALL + 96 col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - ( COUNT( * ) ) * - - 22 - + - 95
----
73

skipif mysql # not compatible
query I rowsort label-9922
SELECT - ( COUNT ( * ) ) * - - 22 - + - 95
----
73

query I rowsort
SELECT + 86 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT - COUNT( * ) + - + 35 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9924
SELECT - COUNT ( * ) + - + 35 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT + 59 + COUNT( * ) + + - 32 col0
----
28

skipif mysql # not compatible
query I rowsort label-9925
SELECT + 59 + COUNT ( * ) + + - 32 col0
----
28

query I rowsort
SELECT ALL + 8 col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT 54 + + - 26 * 95 * + COUNT( * ) * - 22 * + 69 AS col2
----
3749514

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT 54 + + - 26 * 95 * + COUNT ( * ) * - 22 * + 69 AS col2
----
3749514

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9928
SELECT ALL MAX( ALL - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL MAX ( ALL - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT + CAST( + 99 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9929
SELECT + CAST ( + 99 AS INTEGER ) AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT ( CAST( 4 AS SIGNED ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9930
SELECT ( CAST ( 4 AS INTEGER ) ) AS col2
----
4

query I rowsort
SELECT ( - 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + MAX( - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9932
SELECT + MAX ( - 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL + COUNT( 71 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL + COUNT ( 71 ) AS col1
----
1

query I rowsort
SELECT ALL ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT - COUNT( * ) * 5 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - COUNT ( * ) * 5 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT SUM( ALL - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-9936
SELECT SUM ( ALL - 56 )
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9937
SELECT ALL - CAST( NULL AS DECIMAL ) - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL - CAST ( NULL AS REAL ) - 11
----
NULL

query I rowsort
SELECT 35 + 6
----
41

query I rowsort
SELECT 86 * - 69 AS col1
----
-5934

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9940
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT - CAST ( NULL AS REAL ) - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + MIN( DISTINCT - 7 ) * - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9941
SELECT + MIN ( DISTINCT - 7 ) * - COUNT ( * ) AS col0
----
7

query I rowsort
SELECT - 71 col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL COUNT( * ) + + + 60 col1
----
61

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL COUNT ( * ) + + + 60 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT 12 * - + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9944
SELECT 12 * - + COUNT ( * ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT DISTINCT + + COUNT( - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT + + COUNT ( - 60 )
----
1

query I rowsort
SELECT + + 53
----
53

query II rowsort
SELECT 7 AS col0, 33 - 88 AS col0
----
7
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9948
SELECT 98 * - - 61 + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT 98 * - - 61 + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT MAX( - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT MAX ( - 71 )
----
-71

query I rowsort
SELECT - ( + 15 ) + + 88 + 49 * 6 * NULLIF ( 4, + 2 ) AS col0
----
1249

onlyif mysql # aggregate syntax: 
query II rowsort label-9951
SELECT ALL COUNT( * ), + 82 AS col1
----
1
82

skipif mysql # not compatible
query II rowsort label-9951
SELECT ALL COUNT ( * ), + 82 AS col1
----
1
82

query I rowsort
SELECT ALL ( + 35 )
----
35

query I rowsort
SELECT ALL + - 23 col0
----
-23

query I rowsort
SELECT + ( + 33 ) * + 37
----
1221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT + ( - CAST( NULL AS SIGNED ) ) / + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT + ( - CAST ( NULL AS INTEGER ) ) / + 23
----
NULL

query I rowsort
SELECT ALL + 35 * + 7
----
245

query I rowsort
SELECT + ( - - 42 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ( COUNT( * ) ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-9958
SELECT ( COUNT ( * ) ) + - 58
----
-57

query I rowsort
SELECT 95 + - 82 AS col1
----
13

query I rowsort
SELECT + - 35 col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT 96 + - COUNT( * ) + + 47
----
142

skipif mysql # not compatible
query I rowsort label-9961
SELECT 96 + - COUNT ( * ) + + 47
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT ALL - CAST( - CAST( - - 66 AS SIGNED ) AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL - CAST ( - CAST ( - - 66 AS INTEGER ) AS INTEGER )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT DISTINCT - 14 DIV + + 46
----
0

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT - 14 / + + 46
----
0

query I rowsort
SELECT 95 * - 18
----
-1710

query I rowsort
SELECT DISTINCT 49 * - 53 AS col2
----
-2597

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9966
SELECT - - 50, + CAST( NULL AS SIGNED ) AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-9966
SELECT - - 50, + CAST ( NULL AS INTEGER ) AS col2
----
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL MAX( 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL MAX ( 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT COALESCE ( - - 39, + + 94, 39 + COUNT( * ) * 23 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9968
SELECT COALESCE ( - - 39, + + 94, 39 + COUNT ( * ) * 23 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT NULLIF ( - COUNT( * ), - + 72 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9969
SELECT NULLIF ( - COUNT ( * ), - + 72 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT 37 * + 93 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT 37 * + 93 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT DISTINCT + COALESCE ( 44, + + COUNT( * ) ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT + COALESCE ( 44, + + COUNT ( * ) ) AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT - - 3 DIV - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9972
SELECT - - 3 / - 72 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT ALL 85 DIV COALESCE ( + 99, + 5 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL 85 / COALESCE ( + 99, + 5 ) AS col0
----
0

query I rowsort
SELECT + 84 * 62 AS col2
----
5208

query I rowsort
SELECT + CASE WHEN NOT NULL IS NOT NULL THEN 20 END AS col2
----
20

query I rowsort
SELECT ( 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT - ( COUNT( - 51 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9977
SELECT - ( COUNT ( - 51 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9978
SELECT - - 13, + SUM( DISTINCT - + 87 ) AS col2
----
13
-87

skipif mysql # not compatible
query II rowsort label-9978
SELECT - - 13, + SUM ( DISTINCT - + 87 ) AS col2
----
13
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT + MIN( DISTINCT - + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-9979
SELECT + MIN ( DISTINCT - + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT DISTINCT + 27 * + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT + 27 * + COUNT ( * ) AS col2
----
27

query I rowsort
SELECT ALL 99 + + 27
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT DISTINCT 68 * - COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT 68 * - COUNT ( * ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT 24 * + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9983
SELECT 24 * + COUNT ( * ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT COALESCE ( COUNT( * ), - 50, + CAST( NULL AS SIGNED ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9984
SELECT COALESCE ( COUNT ( * ), - 50, + CAST ( NULL AS INTEGER ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL + MIN( - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + MIN ( - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT - 60 + + - COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9986
SELECT - 60 + + - COUNT ( * ) AS col0
----
-61

query I rowsort
SELECT 80 col1
----
80

query I rowsort
SELECT DISTINCT - ( + 91 ) AS col0
----
-91

query I rowsort
SELECT DISTINCT 8 col0
----
8

query I rowsort
SELECT 53 col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT + ( + 54 ) + - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-9991
SELECT + ( + 54 ) + - COUNT ( * )
----
53

query I rowsort
SELECT ALL 8 * + - 65
----
-520

query II rowsort
SELECT DISTINCT + 81, + 65 AS col0
----
81
65

query I rowsort
SELECT DISTINCT - + 95 AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT DISTINCT - + ( - - CAST( - 0 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT - + ( - - CAST ( - 0 AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 10 + + 60
----
50

query I rowsort
SELECT ALL - 86 * + 57 AS col0
----
-4902

query I rowsort
SELECT ALL - + 55
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - COUNT( * ) - + COUNT( - + 87 )
----
-2

skipif mysql # not compatible
query I rowsort label-9999
SELECT - COUNT ( * ) - + COUNT ( - + 87 )
----
-2

